You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/monaco-editor.ea4c1301.asyn...

227 lines
2.2 MiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"+3Gp":function(Mt,F,e){"use strict";e.d(F,"a",function(){return K}),e.d(F,"b",function(){return D});var T=e("MNsG"),pe=e("Yr1X"),J=function(){var U=function(j,h){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var m in O)O.hasOwnProperty(m)&&(b[m]=O[m])},U(j,h)};return function(j,h){U(j,h);function b(){this.constructor=j}j.prototype=h===null?Object.create(h):(b.prototype=h.prototype,new b)}}(),I=T.e?1.5:1.35,H=8,K=function(){function U(j){this.zoomLevel=j.zoomLevel,this.fontFamily=String(j.fontFamily),this.fontWeight=String(j.fontWeight),this.fontSize=j.fontSize,this.fontFeatureSettings=j.fontFeatureSettings,this.lineHeight=j.lineHeight|0,this.letterSpacing=j.letterSpacing}return U.createFromValidatedSettings=function(j,h,b){var O=j.get(33),m=j.get(37),C=j.get(36),w=j.get(35),v=j.get(49),p=j.get(46);return U._create(O,m,C,w,v,p,h,b)},U._create=function(j,h,b,O,m,C,w,v){m===0?m=Math.round(I*b):m<H&&(m=H);var p=1+(v?0:pe.a.getZoomLevel()*.1);return b*=p,m*=p,new U({zoomLevel:w,fontFamily:j,fontWeight:h,fontSize:b,fontFeatureSettings:O,lineHeight:m,letterSpacing:C})},U.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},U.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},U}(),D=function(U){J(j,U);function j(h,b){var O=U.call(this,h)||this;return O.isTrusted=b,O.isMonospace=h.isMonospace,O.typicalHalfwidthCharacterWidth=h.typicalHalfwidthCharacterWidth,O.typicalFullwidthCharacterWidth=h.typicalFullwidthCharacterWidth,O.canUseHalfwidthRightwardsArrow=h.canUseHalfwidthRightwardsArrow,O.spaceWidth=h.spaceWidth,O.middotWidth=h.middotWidth,O.maxDigitWidth=h.maxDigitWidth,O}return j.prototype.equals=function(h){return this.fontFamily===h.fontFamily&&this.fontWeight===h.fontWeight&&this.fontSize===h.fontSize&&this.fontFeatureSettings===h.fontFeatureSettings&&this.lineHeight===h.lineHeight&&this.letterSpacing===h.letterSpacing&&this.typicalHalfwidthCharacterWidth===h.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===h.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===h.canUseHalfwidthRightwardsArrow&&this.spaceWidth===h.spaceWidth&&this.middotWidth===h.middotWidth&&this.maxDigitWidth===h.maxDigitWidth},j}(K)},"+7oY":function(Mt,F,e){"use strict";e.d(F,"a",function(){return I}),e.d(F,"i",function(){return H}),e.d(F,"b",function(){return K}),e.d(F,"h",function(){return D}),e.d(F,"d",function(){return j}),e.d(F,"c",function(){return h}),e.d(F,"e",function(){return b}),e.d(F,"g",function(){return O}),e.d(F,"f",function(){return m});var T=e("ic2d"),pe=e("Cg/j"),J=e("CRAX"),I=Object(pe.c)("configurationService");function H(C,w){var v=Object.create(null);for(var p in C)K(v,p,C[p],w);return v}function K(C,w,v,p){for(var d=w.split("."),c=d.pop(),u=C,f=0;f<d.length;f++){var E=d[f],L=u[E];switch(typeof L){case"undefined":L=u[E]=Object.create(null);break;case"object":break;default:p("Ignoring "+w+" as "+d.slice(0,f+1).join(".")+" is "+JSON.stringify(L));return}u=L}typeof u=="object"?u[c]=v:p("Ignoring "+w+" as "+d.join(".")+" is "+JSON.stringify(u))}function D(C,w){var v=w.split(".");U(C,v)}function U(C,w){var v=w.shift();if(w.length===0){delete C[v];return}if(Object.keys(C).indexOf(v)!==-1){var p=C[v];typeof p=="object"&&!Array.isArray(p)&&(U(p,w),Object.keys(p).length===0&&delete C[v])}}function j(C,w,v){function p(u,f){for(var E=u,L=0,R=f;L<R.length;L++){var P=R[L];if(typeof E!="object"||E===null)return;E=E[P]}return E}var d=w.split("."),c=p(C,d);return typeof c=="undefined"?v:c}function h(){var C=T.a.as(J.a.Configuration).getConfigurationProperties();return Object.keys(C)}function b(){var C=Object.create(null),w=T.a.as(J.a.Configuration).getConfigurationProperties();for(var v in w){var p=w[v].default;K(C,v,p,function(d){return console.error("Conflict in default settings: "+d)})}return C}function O(C){return C.substring(1,C.length-1)}function m(C,w,v){var p=C.inspect(w),d=C.inspect(v);return typeof p.userValue!="undefined"||typeof p.workspaceValue!="undefined"||typeof p.workspaceFolderValue!="undefined"?p.value:typeof d.userValue!="undefined"||typeof d.workspaceValue!="undefined"||typeof d.workspaceFolderValue!="undefined"?d.value:p.defaultValue}},"+Fos":function(Mt,F,e){"use strict";e.d(F,"a",function(){return K});var T=e("Ll0s"),pe=e("cGHE"),J=e("aokT"),I=e("N0LK"),H=function(){function D(U,j,h){this.lineNumber=U,this.column=j,this.leftoverVisibleColumns=h}return D}(),K=function(){function D(){}return D.leftPosition=function(U,j,h){return h>U.getLineMinColumn(j)?h=h-I.G(U.getLineContent(j),h-1):j>1&&(j=j-1,h=U.getLineMaxColumn(j)),new pe.a(j,h)},D.left=function(U,j,h,b){var O=D.leftPosition(j,h,b);return new H(O.lineNumber,O.column,0)},D.moveLeft=function(U,j,h,b,O){var m,C;if(h.hasSelection()&&!b)m=h.selection.startLineNumber,C=h.selection.startColumn;else{var w=D.left(U,j,h.position.lineNumber,h.position.column-(O-1));m=w.lineNumber,C=w.column}return h.move(b,m,C,0)},D.rightPosition=function(U,j,h){return h<U.getLineMaxColumn(j)?h=h+I.E(U.getLineContent(j),h-1):j<U.getLineCount()&&(j=j+1,h=U.getLineMinColumn(j)),new pe.a(j,h)},D.right=function(U,j,h,b){var O=D.rightPosition(j,h,b);return new H(O.lineNumber,O.column,0)},D.moveRight=function(U,j,h,b,O){var m,C;if(h.hasSelection()&&!b)m=h.selection.endLineNumber,C=h.selection.endColumn;else{var w=D.right(U,j,h.position.lineNumber,h.position.column+(O-1));m=w.lineNumber,C=w.column}return h.move(b,m,C,0)},D.down=function(U,j,h,b,O,m,C){var w=T.a.visibleColumnFromColumn(j.getLineContent(h),b,U.tabSize)+O;h=h+m;var v=j.getLineCount();return h>v?(h=v,C?b=j.getLineMaxColumn(h):b=Math.min(j.getLineMaxColumn(h),b)):b=T.a.columnFromVisibleColumn2(U,j,h,w),O=w-T.a.visibleColumnFromColumn(j.getLineContent(h),b,U.tabSize),new H(h,b,O)},D.moveDown=function(U,j,h,b,O){var m,C;h.hasSelection()&&!b?(m=h.selection.endLineNumber,C=h.selection.endColumn):(m=h.position.lineNumber,C=h.position.column);var w=D.down(U,j,m,C,h.leftoverVisibleColumns,O,!0);return h.move(b,w.lineNumber,w.column,w.leftoverVisibleColumns)},D.translateDown=function(U,j,h){var b=h.selection,O=D.down(U,j,b.selectionStartLineNumber,b.selectionStartColumn,h.selectionStartLeftoverVisibleColumns,1,!1),m=D.down(U,j,b.positionLineNumber,b.positionColumn,h.leftoverVisibleColumns,1,!1);return new T.f(new J.a(O.lineNumber,O.column,O.lineNumber,O.column),O.leftoverVisibleColumns,new pe.a(m.lineNumber,m.column),m.leftoverVisibleColumns)},D.up=function(U,j,h,b,O,m,C){var w=T.a.visibleColumnFromColumn(j.getLineContent(h),b,U.tabSize)+O;return h=h-m,h<1?(h=1,C?b=j.getLineMinColumn(h):b=Math.min(j.getLineMaxColumn(h),b)):b=T.a.columnFromVisibleColumn2(U,j,h,w),O=w-T.a.visibleColumnFromColumn(j.getLineContent(h),b,U.tabSize),new H(h,b,O)},D.moveUp=function(U,j,h,b,O){var m,C;h.hasSelection()&&!b?(m=h.selection.startLineNumber,C=h.selection.startColumn):(m=h.position.lineNumber,C=h.position.column);var w=D.up(U,j,m,C,h.leftoverVisibleColumns,O,!0);return h.move(b,w.lineNumber,w.column,w.leftoverVisibleColumns)},D.translateUp=function(U,j,h){var b=h.selection,O=D.up(U,j,b.selectionStartLineNumber,b.selectionStartColumn,h.selectionStartLeftoverVisibleColumns,1,!1),m=D.up(U,j,b.positionLineNumber,b.positionColumn,h.leftoverVisibleColumns,1,!1);return new T.f(new J.a(O.lineNumber,O.column,O.lineNumber,O.column),O.leftoverVisibleColumns,new pe.a(m.lineNumber,m.column),m.leftoverVisibleColumns)},D.moveToBeginningOfLine=function(U,j,h,b){var O=h.position.lineNumber,m=j.getLineMinColumn(O),C=j.getLineFirstNonWhitespaceColumn(O)||m,w,v=h.position.column;return v===C?w=m:w=C,h.move(b,O,w,0)},D.moveToEndOfLine=function(U,j,h,b){var O=h.position.lineNumber,m=j.getLineMaxColumn(O);return h.move(b,O,m,0)},D.moveToBeginningOfBuffer=function(U,j,h,b){return h.move(b,1,1,0)},D.moveToEndOfBuffer=function(U,j,h,b){var O=j.getLineCount(),m=j.getLineMaxColumn(O);return h.move(b,O,m,0)},D}()},"+a1H":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return e.e(305).then(e.bind(null,"O3xE"))}})},"+hIS":function(Mt,F,e){"use strict";e.d(F,"a",function(){return K});var T=typeof monaco=="undefined"?self.monaco:monaco,pe={},J={},I=function(){function D(U){var j=this;this._languageId=U,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(h,b){j._lazyLoadPromiseResolve=h,j._lazyLoadPromiseReject=b})}return D.getOrCreate=function(U){return J[U]||(J[U]=new D(U)),J[U]},D.prototype.whenLoaded=function(){return this._lazyLoadPromise},D.prototype.load=function(){var U=this;return this._loadingTriggered||(this._loadingTriggered=!0,pe[this._languageId].loader().then(function(j){return U._lazyLoadPromiseResolve(j)},function(j){return U._lazyLoadPromiseReject(j)})),this._lazyLoadPromise},D}();function H(D){return I.getOrCreate(D).load()}function K(D){var U=D.id;pe[U]=D,T.languages.register(D);var j=I.getOrCreate(U);T.languages.setMonarchTokensProvider(U,j.whenLoaded().then(function(h){return h.language})),T.languages.onLanguage(U,function(){j.load().then(function(h){T.languages.setLanguageConfiguration(U,h.conf)})})}},"/RFl":function(Mt,F,e){"use strict";e.r(F),e.d(F,"DragAndDropController",function(){return O});var T=e("OhnE"),pe=e("pmY6"),J=e("MNsG"),I=e("sswD"),H=e("cGHE"),K=e("aokT"),D=e("gCVg"),U=function(){function m(C,w,v){this.selection=C,this.targetPosition=w,this.copy=v,this.targetSelection=null}return m.prototype.getEditOperations=function(C,w){var v=C.getValueInRange(this.selection);if(this.copy||w.addEditOperation(this.selection,null),w.addEditOperation(new K.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),v),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new D.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new D.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new D.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new D.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column-this.selection.endColumn+this.selection.startColumn:this.targetPosition.column-this.selection.endColumn+this.selection.startColumn,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new D.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)},m.prototype.computeCursorState=function(C,w){return this.targetSelection},m}(),j=e("tX9W"),h=function(){var m=function(C,w){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,p){v.__proto__=p}||function(v,p){for(var d in p)p.hasOwnProperty(d)&&(v[d]=p[d])},m(C,w)};return function(C,w){m(C,w);function v(){this.constructor=C}C.prototype=w===null?Object.create(w):(v.prototype=w.prototype,new v)}}();function b(m){return J.e?m.altKey:m.ctrlKey}var O=function(m){h(C,m);function C(w){var v=m.call(this)||this;return v._editor=w,v._register(v._editor.onMouseDown(function(p){return v._onEditorMouseDown(p)})),v._register(v._editor.onMouseUp(function(p){return v._onEditorMouseUp(p)})),v._register(v._editor.onMouseDrag(function(p){return v._onEditorMouseDrag(p)})),v._register(v._editor.onMouseDrop(function(p){return v._onEditorMouseDrop(p)})),v._register(v._editor.onKeyDown(function(p){return v.onEditorKeyDown(p)})),v._register(v._editor.onKeyUp(function(p){return v.onEditorKeyUp(p)})),v._register(v._editor.onDidBlurEditorWidget(function(){return v.onEditorBlur()})),v._dndDecorationIds=[],v._mouseDown=!1,v._modifierPressed=!1,v._dragSelection=null,v}return C.prototype.onEditorBlur=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1},C.prototype.onEditorKeyDown=function(w){if(!this._editor.getOption(24))return;b(w)&&(this._modifierPressed=!0),this._mouseDown&&b(w)&&this._editor.updateOptions({mouseStyle:"copy"})},C.prototype.onEditorKeyUp=function(w){if(!this._editor.getOption(24))return;b(w)&&(this._modifierPressed=!1),this._mouseDown&&w.keyCode===C.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"})},C.prototype._onEditorMouseDown=function(w){this._mouseDown=!0},C.prototype._onEditorMouseUp=function(w){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})},C.prototype._onEditorMouseDrag=function(w){var v=w.target;if(this._dragSelection===null){var p=this._editor.getSelections()||[],d=p.filter(function(c){return v.position&&c.containsPosition(v.position)});if(d.length===1)this._dragSelection=d[0];else return}b(w.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),v.position&&(this._dragSelection.containsPosition(v.position)?this._removeDecoration():this.showAt(v.position))},C.prototype._onEditorMouseDrop=function(w){if(w.target&&(this._hitContent(w.target)||this._hitMargin(w.target))&&w.target.position){var v=new H.a(w.target.position.lineNumber,w.target.position.column);if(this._dragSelection===null){var p=null;if(w.event.shiftKey){var d=this._editor.getSelection();if(d){var c=d.selectionStartLineNumber,u=d.selectionStartColumn;p=[new D.a(c,u,v.lineNumber,v.column)]}}else p=(this._editor.getSelections()||[]).map(function(f){return f.containsPosition(v)?new D.a(v.lineNumber,v.column,v.lineNumber,v.column):f});this._editor.setSelections(p||[],"mouse")}else(!this._dragSelection.containsPosition(v)||(b(w.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(v)||this._dragSelection.getStartPosition().equals(v)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(C.ID,new U(this._dragSelection,v,b(w.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1},C.prototype.showAt=function(w){var v=[{range:new K.a(w.lineNumber,w.column,w.lineNumber,w.column),options:C._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,v),this._editor.revealPosition(w,1)},C.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])},C.prototype._hitContent=function(w){return w.type===6||w.type===7},C.prototype._hitMargin=function(w){return w.type===2||w.type===3||w.type===4},C.prototype.dispose=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,m.prototype.dispose.call(this)},C.ID="editor.contrib.dragAndDrop",C.TRIGGER_KEY_VALUE=J.e?6:5,C._DECORATION_OPTIONS=j.a.register({className:"dnd-target"}),C}(pe.a);Object(I.h)(O.ID,O)},"/UlZ":function(Mt,F,e){"use strict";e.d(F,"f",function(){return K}),e.d(F,"a",function(){return D}),e.d(F,"h",function(){return U}),e.d(F,"g",function(){return E}),e.d(F,"d",function(){return Q}),e.d(F,"j",function(){return q}),e.d(F,"b",function(){return fe}),e.d(F,"c",function(){return $}),e.d(F,"i",function(){return S}),e.d(F,"e",function(){return ce});var T=e("3/fG"),pe=e("MNsG"),J=e("0JNc"),I=function(){var se=function(ye,Re){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,Ue){Le.__proto__=Ue}||function(Le,Ue){for(var Je in Ue)Ue.hasOwnProperty(Je)&&(Le[Je]=Ue[Je])},se(ye,Re)};return function(ye,Re){se(ye,Re);function Le(){this.constructor=ye}ye.prototype=Re===null?Object.create(Re):(Le.prototype=Re.prototype,new Le)}}(),H=function(){return H=Object.assign||function(se){for(var ye,Re=1,Le=arguments.length;Re<Le;Re++){ye=arguments[Re];for(var Ue in ye)Object.prototype.hasOwnProperty.call(ye,Ue)&&(se[Ue]=ye[Ue])}return se},H.apply(this,arguments)},K=8,D=function(){function se(ye){this._values=ye}return se.prototype.hasChanged=function(ye){return this._values[ye]},se}(),U=function(){function se(){this._values=[]}return se.prototype._read=function(ye){return this._values[ye]},se.prototype.get=function(ye){return this._values[ye]},se.prototype._write=function(ye,Re){this._values[ye]=Re},se}(),j=function(){function se(ye,Re,Le,Ue){this.id=ye,this.name=Re,this.defaultValue=Le,this.schema=Ue}return se.prototype.compute=function(ye,Re,Le){return Le},se}(),h=function(){function se(ye,Re){Re===void 0&&(Re=null),this.schema=void 0,this.id=ye,this.name="_never_",this.defaultValue=void 0,this.deps=Re}return se.prototype.validate=function(ye){return this.defaultValue},se}(),b=function(){function se(ye,Re,Le,Ue){this.id=ye,this.name=Re,this.defaultValue=Le,this.schema=Ue}return se.prototype.validate=function(ye){return typeof ye=="undefined"?this.defaultValue:ye},se.prototype.compute=function(ye,Re,Le){return Le},se}(),O=function(se){I(ye,se);function ye(Re,Le,Ue,Je){Je===void 0&&(Je=void 0);var nt=this;return typeof Je!="undefined"&&(Je.type="boolean",Je.default=Ue),nt=se.call(this,Re,Le,Ue,Je)||this,nt}return ye.boolean=function(Re,Le){return typeof Re=="undefined"?Le:Re==="false"?!1:Boolean(Re)},ye.prototype.validate=function(Re){return ye.boolean(Re,this.defaultValue)},ye}(b),m=function(se){I(ye,se);function ye(Re,Le,Ue,Je,nt,vt){vt===void 0&&(vt=void 0);var Rt=this;return typeof vt!="undefined"&&(vt.type="integer",vt.default=Ue,vt.minimum=Je,vt.maximum=nt),Rt=se.call(this,Re,Le,Ue,vt)||this,Rt.minimum=Je,Rt.maximum=nt,Rt}return ye.clampedInt=function(Re,Le,Ue,Je){var nt;return typeof Re=="undefined"?nt=Le:(nt=parseInt(Re,10),isNaN(nt)&&(nt=Le)),nt=Math.max(Ue,nt),nt=Math.min(Je,nt),nt|0},ye.prototype.validate=function(Re){return ye.clampedInt(Re,this.defaultValue,this.minimum,this.maximum)},ye}(b),C=function(se){I(ye,se);function ye(Re,Le,Ue,Je,nt){var vt=this;return typeof nt!="undefined"&&(nt.type="number",nt.default=Ue),vt=se.call(this,Re,Le,Ue,nt)||this,vt.validationFn=Je,vt}return ye.clamp=function(Re,Le,Ue){return Re<Le?Le:Re>Ue?Ue:Re},ye.float=function(Re,Le){if(typeof Re=="number")return Re;if(typeof Re=="undefined")return Le;var Ue=parseFloat(Re);return isNaN(Ue)?Le:Ue},ye.prototype.validate=function(Re){return this.validationFn(ye.float(Re,this.defaultValue))},ye}(b),w=function(se){I(ye,se);function ye(Re,Le,Ue,Je){Je===void 0&&(Je=void 0);var nt=this;return typeof Je!="undefined"&&(Je.type="string",Je.default=Ue),nt=se.call(this,Re,Le,Ue,Je)||this,nt}return ye.string=function(Re,Le){return typeof Re!="string"?Le:Re},ye.prototype.validate=function(Re){return ye.string(Re,this.defaultValue)},ye}(b),v=function(se){I(ye,se);function ye(Re,Le,Ue,Je,nt){nt===void 0&&(nt=void 0);var vt=this;return typeof nt!="undefined"&&(nt.type="string",nt.enum=Je,nt.default=Ue),vt=se.call(this,Re,Le,Ue,nt)||this,vt._allowedValues=Je,vt}return ye.stringSet=function(Re,Le,Ue){return typeof Re!="string"||Ue.indexOf(Re)===-1?Le:Re},ye.prototype.validate=function(Re){return ye.stringSet(Re,this.defaultValue,this._allowedValues)},ye}(b),p=function(se){I(ye,se);function ye(Re,Le,Ue,Je,nt,vt,Rt){Rt===void 0&&(Rt=void 0);var Ot=this;return typeof Rt!="undefined"&&(Rt.type="string",Rt.enum=nt,Rt.default=Je),Ot=se.call(this,Re,Le,Ue,Rt)||this,Ot._allowedValues=nt,Ot._convert=vt,Ot}return ye.prototype.validate=function(Re){return typeof Re!="string"?this.defaultValue:this._allowedValues.indexOf(Re)===-1?this.defaultValue:this._convert(Re)},ye}(j);function d(se){switch(se){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var c=function(se){I(ye,se);function ye(){return se.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[T.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),T.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),T.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:T.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return ye.prototype.validate=function(Re){switch(Re){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},ye.prototype.compute=function(Re,Le,Ue){return Ue===0?Re.accessibilitySupport:Ue},ye}(j),u=function(se){I(ye,se);function ye(){var Re=this,Le={insertSpace:!0};return Re=se.call(this,13,"comments",Le,{"editor.comments.insertSpace":{type:"boolean",default:Le.insertSpace,description:T.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,Re}return ye.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var Le=Re;return{insertSpace:O.boolean(Le.insertSpace,this.defaultValue.insertSpace)}},ye}(j);function f(se){switch(se){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var E;(function(se){se[se.Line=1]="Line",se[se.Block=2]="Block",se[se.Underline=3]="Underline",se[se.LineThin=4]="LineThin",se[se.BlockOutline=5]="BlockOutline",se[se.UnderlineThin=6]="UnderlineThin"})(E||(E={}));function L(se){switch(se){case"line":return E.Line;case"block":return E.Block;case"underline":return E.Underline;case"line-thin":return E.LineThin;case"block-outline":return E.BlockOutline;case"underline-thin":return E.UnderlineThin}}var R=function(se){I(ye,se);function ye(){return se.call(this,104,[55,26])||this}return ye.prototype.compute=function(Re,Le,Ue){var Je="monaco-editor";return Le.get(26)&&(Je+=" "+Le.get(26)),Re.extraEditorClassName&&(Je+=" "+Re.extraEditorClassName),Le.get(55)==="default"?Je+=" mouse-default":Le.get(55)==="copy"&&(Je+=" mouse-copy"),Le.get(85)&&(Je+=" showUnused"),Je},ye}(h),P=function(se){I(ye,se);function ye(){return se.call(this,25,"emptySelectionClipboard",!0,{description:T.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return ye.prototype.compute=function(Re,Le,Ue){return Ue&&Re.emptySelectionClipboard},ye}(O),x=function(se){I(ye,se);function ye(){var Re=this,Le={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return Re=se.call(this,28,"find",Le,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Le.seedSearchStringFromSelection,description:T.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:Le.autoFindInSelection,enumDescriptions:[T.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),T.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),T.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:T.a("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:Le.globalFindClipboard,description:T.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:pe.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:Le.addExtraSpaceOnTop,description:T.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this,Re}return ye.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var Le=Re;return{seedSearchStringFromSelection:O.boolean(Le.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof Re.autoFindInSelection=="boolean"?Re.autoFindInSelection?"always":"never":v.stringSet(Le.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:O.boolean(Le.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:O.boolean(Le.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},ye}(j),Q=function(se){I(ye,se);function ye(){return se.call(this,35,"fontLigatures",ye.OFF,{anyOf:[{type:"boolean",description:T.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:T.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:T.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return ye.prototype.validate=function(Re){return typeof Re=="undefined"?this.defaultValue:typeof Re=="string"?Re==="false"?ye.OFF:Re==="true"?ye.ON:Re:Boolean(Re)?ye.ON:ye.OFF},ye.OFF='"liga" off, "calt" off',ye.ON='"liga" on, "calt" on',ye}(j),V=function(se){I(ye,se);function ye(){return se.call(this,34)||this}return ye.prototype.compute=function(Re,Le,Ue){return Re.fontInfo},ye}(h),W=function(se){I(ye,se);function ye(){return se.call(this,36,"fontSize",fe.fontSize,{type:"number",minimum:6,maximum:100,default:fe.fontSize,description:T.a("fontSize","Controls the font size in pixels.")})||this}return ye.prototype.validate=function(Re){var Le=C.float(Re,this.defaultValue);return Le===0?fe.fontSize:C.clamp(Le,6,100)},ye.prototype.compute=function(Re,Le,Ue){return Re.fontInfo.fontSize},ye}(b),B=function(se){I(ye,se);function ye(){var Re=this,Le={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},Ue={type:"string",enum:["peek","gotoAndPeek","goto"],default:Le.multiple,enumDescriptions:[T.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),T.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),T.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return Re=se.call(this,41,"gotoLocation",Le,{"editor.gotoLocation.multiple":{deprecationMessage:T.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":H({description:T.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},Ue),"editor.gotoLocation.multipleTypeDefinitions":H({description:T.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},Ue),"editor.gotoLocation.multipleDeclarations":H({description:T.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},Ue),"editor.gotoLocation.multipleImplementations":H({description:T.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},Ue),"editor.gotoLocation.multipleReferences":H({description:T.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},Ue),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:Le.alternativeDefinitionCommand,description:T.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:Le.alternativeTypeDefinitionCommand,description:T.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:Le.alternativeDeclarationCommand,description:T.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:Le.alternativeImplementationCommand,description:T.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:Le.alternativeReferenceCommand,description:T.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,Re}return ye.prototype.validate=function(Re){var Le,Ue,Je,nt,vt;if(typeof Re!="object")return this.defaultValue;var Rt=Re;return{multiple:v.stringSet(Rt.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(Le=Rt.multipleDefinitions)!==null&&Le!==void 0?Le:v.stringSet(Rt.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(Ue=Rt.multipleTypeDefinitions)!==null&&Ue!==void 0?Ue:v.stringSet(Rt.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Je=Rt.multipleDeclarations)!==null&&Je!==void 0?Je:v.stringSet(Rt.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(nt=Rt.multipleImplementations)!==null&&nt!==void 0?nt:v.stringSet(Rt.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(vt=Rt.multipleReferences)!==null&&vt!==void 0?vt:v.stringSet(Rt.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:w.string(Rt.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:w.string(Rt.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:w.string(Rt.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:w.string(Rt.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:w.string(Rt.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},ye}(j),ae=function(se){I(ye,se);function ye(){var Re=this,Le={enabled:!0,delay:300,sticky:!0};return Re=se.call(this,44,"hover",Le,{"editor.hover.enabled":{type:"boolean",default:Le.enabled,description:T.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Le.delay,description:T.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Le.sticky,description:T.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,Re}return ye.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var Le=Re;return{enabled:O.boolean(Le.enabled,this.defaultValue.enabled),delay:m.clampedInt(Le.delay,this.defaultValue.delay,0,1e4),sticky:O.boolean(Le.sticky,this.defaultValue.sticky)}},ye}(j),we=function(se){I(ye,se);function ye(){return se.call(this,107,[40,48,30,54,78,50])||this}return ye.prototype.compute=function(Re,Le,Ue){return ye.computeLayout(Le,{outerWidth:Re.outerWidth,outerHeight:Re.outerHeight,lineHeight:Re.fontInfo.lineHeight,lineNumbersDigitCount:Re.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Re.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Re.fontInfo.maxDigitWidth,pixelRatio:Re.pixelRatio})},ye.computeLayout=function(Re,Le){var Ue=Le.outerWidth|0,Je=Le.outerHeight|0,nt=Le.lineHeight|0,vt=Le.lineNumbersDigitCount|0,Rt=Le.typicalHalfwidthCharacterWidth,Ot=Le.maxDigitWidth,Kt=Le.pixelRatio,ao=Re.get(40),lo=Re.get(50).renderType!==0,so=Re.get(51)|0,jt=Re.get(54),pt=jt.enabled,gt=jt.side,Tt=jt.renderCharacters,it=Kt>=2?Math.round(jt.scale*2):jt.scale,et=jt.maxColumn|0,ut=Re.get(78),Ct=ut.verticalScrollbarSize|0,ht=ut.verticalHasArrows,Et=ut.arrowSize|0,Yt=ut.horizontalScrollbarSize|0,Nt=Re.get(48),bt=Re.get(30),$e;if(typeof Nt=="string"&&/^\d+(\.\d+)?ch$/.test(Nt)){var Ye=parseFloat(Nt.substr(0,Nt.length-2));$e=m.clampedInt(Ye*Rt,0,0,1e3)}else $e=m.clampedInt(Nt,0,0,1e3);bt&&($e+=16);var Ve=0;if(lo){var ze=Math.max(vt,so);Ve=Math.round(ze*Ot)}var me=0;ao&&(me=nt);var G=0,oe=G+me,Y=oe+Ve,ie=Y+$e,je=Ue-me-Ve-$e,dt,Dt,Qt,to;if(!pt)Dt=0,Qt=0,dt=0,to=je;else{var fo=it/Kt;dt=Tt?1:2,Qt=Math.max(0,Math.floor((je-Ct-2)*fo/(Rt+fo)))+K;var ho=Qt/fo;ho>et&&(Qt=Math.floor(et*fo)),to=je-Qt,gt==="left"?(Dt=0,G+=Qt,oe+=Qt,Y+=Qt,ie+=Qt):Dt=Ue-Qt-Ct}var wo=Math.max(1,Math.floor((to-Ct-2)/Rt)),Oo=ht?Et:0;return{width:Ue,height:Je,glyphMarginLeft:G,glyphMarginWidth:me,lineNumbersLeft:oe,lineNumbersWidth:Ve,decorationsLeft:Y,decorationsWidth:$e,contentLeft:ie,contentWidth:to,renderMinimap:dt,minimapLeft:Dt,minimapWidth:Qt,viewportColumn:wo,verticalScrollbarWidth:Ct,horizontalScrollbarHeight:Yt,overviewRuler:{top:Oo,width:Ct,height:Je-2*Oo,right:0}}},ye}(h),Me=function(se){I(ye,se);function ye(){var Re=this,Le={enabled:!0};return Re=se.call(this,47,"lightbulb",Le,{"editor.lightbulb.enabled":{type:"boolean",default:Le.enabled,description:T.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,Re}return ye.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var Le=Re;return{enabled:O.boolean(Le.enabled,this.defaultValue.enabled)}},ye}(j),Pe=function(se){I(ye,se);function ye(){return se.call(this,49,"lineHeight",fe.lineHeight,0,150,{description:T.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return ye.prototype.compute=function(Re,Le,Ue){return Re.fontInfo.lineHeight},ye}(m),Be=function(se){I(ye,se);function ye(){var Re=this,Le={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return Re=se.call(this,54,"minimap",Le,{"editor.minimap.enabled":{type:"boolean",default:Le.enabled,description:T.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Le.side,description:T.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Le.showSlider,description:T.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:Le.scale,minimum:1,maximum:3,description:T.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:Le.renderCharacters,description:T.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Le.maxColumn,description:T.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,Re}return ye.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var Le=Re;return{enabled:O.boolean(Le.enabled,this.defaultValue.enabled),side:v.stringSet(Le.side,this.defaultValue.side,["right","left"]),showSlider:v.stringSet(Le.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:O.boolean(Le.renderCharacters,this.defaultValue.renderCharacters),scale:m.clampedInt(Le.scale,1,1,3),maxColumn:m.clampedInt(Le.maxColumn,this.defaultValue.maxColumn,1,1e4)}},ye}(j);function Ke(se){return se==="ctrlCmd"?pe.e?"metaKey":"ctrlKey":"altKey"}var Fe=function(se){I(ye,se);function ye(){var Re=this,Le={enabled:!0,cycle:!1};return Re=se.call(this,64,"parameterHints",Le,{"editor.parameterHints.enabled":{type:"boolean",default:Le.enabled,description:T.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:Le.cycle,description:T.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,Re}return ye.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var Le=Re;return{enabled:O.boolean(Le.enabled,this.defaultValue.enabled),cycle:O.boolean(Le.cycle,this.defaultValue.cycle)}},ye}(j),re=function(se){I(ye,se);function ye(){return se.call(this,105)||this}return ye.prototype.compute=function(Re,Le,Ue){return Re.pixelRatio},ye}(h),ee=function(se){I(ye,se);function ye(){var Re=this,Le={other:!0,comments:!1,strings:!1};return Re=se.call(this,66,"quickSuggestions",Le,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:Le.strings,description:T.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:Le.comments,description:T.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:Le.other,description:T.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Le,description:T.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,Re.defaultValue=Le,Re}return ye.prototype.validate=function(Re){if(typeof Re=="boolean")return Re;if(typeof Re=="object"){var Le=Re,Ue={other:O.boolean(Le.other,this.defaultValue.other),comments:O.boolean(Le.comments,this.defaultValue.comments),strings:O.boolean(Le.strings,this.defaultValue.strings)};return Ue.other&&Ue.comments&&Ue.strings?!0:!Ue.other&&!Ue.comments&&!Ue.strings?!1:Ue}return this.defaultValue},ye}(j),ne=function(se){I(ye,se);function ye(){return se.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[T.a("lineNumbers.off","Line numbers are not rendered."),T.a("lineNumbers.on","Line numbers are rendered as absolute number."),T.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),T.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:T.a("lineNumbers","Controls the display of line numbers.")})||this}return ye.prototype.validate=function(Re){var Le=this.defaultValue.renderType,Ue=this.defaultValue.renderFn;return typeof Re!="undefined"&&(typeof Re=="function"?(Le=4,Ue=Re):Re==="interval"?Le=3:Re==="relative"?Le=2:Re==="on"?Le=1:Le=0),{renderType:Le,renderFn:Ue}},ye}(j);function q(se){var ye=se.get(73);return ye==="editable"?se.get(68):!(ye==="on")}var le=function(se){I(ye,se);function ye(){var Re=this,Le=[];return Re=se.call(this,77,"rulers",Le,{type:"array",items:{type:"number"},default:Le,description:T.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this,Re}return ye.prototype.validate=function(Re){if(Array.isArray(Re)){for(var Le=[],Ue=0,Je=Re;Ue<Je.length;Ue++){var nt=Je[Ue];Le.push(m.clampedInt(nt,0,0,1e4))}return Le.sort(function(vt,Rt){return vt-Rt}),Le}return this.defaultValue},ye}(b);function Z(se,ye){if(typeof se!="string")return ye;switch(se){case"hidden":return 2;case"visible":return 3;default:return 1}}var ve=function(se){I(ye,se);function ye(){return se.call(this,78,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})||this}return ye.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var Le=Re,Ue=m.clampedInt(Le.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),Je=m.clampedInt(Le.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:m.clampedInt(Le.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Z(Le.vertical,this.defaultValue.vertical),horizontal:Z(Le.horizontal,this.defaultValue.horizontal),useShadows:O.boolean(Le.useShadows,this.defaultValue.useShadows),verticalHasArrows:O.boolean(Le.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:O.boolean(Le.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:O.boolean(Le.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:O.boolean(Le.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:Ue,horizontalSliderSize:m.clampedInt(Le.horizontalSliderSize,Ue,0,1e3),verticalScrollbarSize:Je,verticalSliderSize:m.clampedInt(Le.verticalSliderSize,Je,0,1e3)}},ye}(j),Ne=function(se){I(ye,se);function ye(){var Re=this,Le={insertMode:"insert",insertHighlight:!1,filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,hideStatusBar:!0};return Re=se.call(this,89,"suggest",Le,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[T.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),T.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:Le.insertMode,description:T.a("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.insertHighlight":{type:"boolean",default:Le.insertHighlight,description:T.a("suggest.insertHighlight","Controls whether unexpected text modifications while accepting completions should be highlighted, e.g `insertMode` is `replace` but the completion only supports `insert`.")},"editor.suggest.filterGraceful":{type:"boolean",default:Le.filterGraceful,description:T.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:Le.localityBonus,description:T.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:Le.shareSuggestSelections,markdownDescription:T.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:Le.snippetsPreventQuickSuggestions,description:T.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:Le.showIcons,description:T.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:Le.maxVisibleSuggestions,minimum:1,maximum:15,description:T.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:T.a("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.hideStatusBar":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.hideStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")}})||this,Re}return ye.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var Le=Re;return{insertMode:v.stringSet(Le.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:O.boolean(Le.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:O.boolean(Le.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:O.boolean(Le.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:O.boolean(Le.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:O.boolean(Le.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:O.boolean(Le.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:m.clampedInt(Le.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:O.boolean(Le.showMethods,this.defaultValue.showMethods),showFunctions:O.boolean(Le.showFunctions,this.defaultValue.showFunctions),showConstructors:O.boolean(Le.showConstructors,this.defaultValue.showConstructors),showFields:O.boolean(Le.showFields,this.defaultValue.showFields),showVariables:O.boolean(Le.showVariables,this.defaultValue.showVariables),showClasses:O.boolean(Le.showClasses,this.defaultValue.showClasses),showStructs:O.boolean(Le.showStructs,this.defaultValue.showStructs),showInterfaces:O.boolean(Le.showInterfaces,this.defaultValue.showInterfaces),showModules:O.boolean(Le.showModules,this.defaultValue.showModules),showProperties:O.boolean(Le.showProperties,this.defaultValue.showProperties),showEvents:O.boolean(Le.showEvents,this.defaultValue.showEvents),showOperators:O.boolean(Le.showOperators,this.defaultValue.showOperators),showUnits:O.boolean(Le.showUnits,this.defaultValue.showUnits),showValues:O.boolean(Le.showValues,this.defaultValue.showValues),showConstants:O.boolean(Le.showConstants,this.defaultValue.showConstants),showEnums:O.boolean(Le.showEnums,this.defaultValue.showEnums),showEnumMembers:O.boolean(Le.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:O.boolean(Le.showKeywords,this.defaultValue.showKeywords),showWords:O.boolean(Le.showWords,this.defaultValue.showWords),showColors:O.boolean(Le.showColors,this.defaultValue.showColors),showFiles:O.boolean(Le.showFiles,this.defaultValue.showFiles),showReferences:O.boolean(Le.showReferences,this.defaultValue.showReferences),showFolders:O.boolean(Le.showFolders,this.defaultValue.showFolders),showTypeParameters:O.boolean(Le.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:O.boolean(Le.showSnippets,this.defaultValue.showSnippets),hideStatusBar:O.boolean(Le.hideStatusBar,this.defaultValue.hideStatusBar)}},ye}(j),Xe=function(se){I(ye,se);function ye(){return se.call(this,106,[68])||this}return ye.prototype.compute=function(Re,Le,Ue){var Je=Le.get(68);return Je?!0:Re.tabFocusMode},ye}(h);function de(se){switch(se){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}var ge=function(se){I(ye,se);function ye(){return se.call(this,108,[97,100,101,107,2])||this}return ye.prototype.compute=function(Re,Le,Ue){var Je=Le.get(97),nt=Le.get(100),vt=Le.get(101),Rt=Le.get(107),Ot=Le.get(2),Kt=null;return Ot===2?Kt={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:vt&&Re.isDominatedByLongLines?Kt={isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,Rt.viewportColumn)}:Je==="on"?Kt={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,Rt.viewportColumn)}:Je==="bounded"?Kt={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,Rt.viewportColumn),nt)}:Je==="wordWrapColumn"?Kt={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:nt}:Kt={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:Re.isDominatedByLongLines,isWordWrapMinified:Kt.isWordWrapMinified,isViewportWrapping:Kt.isViewportWrapping,wrappingColumn:Kt.wrappingColumn}},ye}(h),Ee="Consolas, 'Courier New', monospace",Te="Menlo, Monaco, 'Courier New', monospace",Ce="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",fe={fontFamily:pe.e?Te:pe.d?Ce:Ee,fontWeight:"normal",fontSize:pe.e?12:14,lineHeight:0,letterSpacing:0},$={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},S=[];function z(se){return S[se.id]=se,se}var ce={acceptSuggestionOnCommitCharacter:z(new O(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:T.a("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:z(new v(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",T.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:T.a("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:z(new c),accessibilityPageSize:z(new m(3,"accessibilityPageSize",10,1,1073741824,{description:T.a("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:z(new w(4,"ariaLabel",T.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:z(new v(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",T.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),T.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:T.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:z(new v(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",T.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:T.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:z(new v(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",T.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),T.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:T.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:z(new p(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],d,{enumDescriptions:[T.a("editor.autoIndent.none","The editor will not insert indentation automatically."),T.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),T.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),T.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),T.a("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:T.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:z(new O(9,"automaticLayout",!1)),autoSurround:z(new v(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[T.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),T.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),T.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:T.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:z(new O(11,"codeLens",!0,{description:T.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:z(new O(12,"colorDecorators",!0,{description:T.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:z(new u),contextmenu:z(new O(14,"contextmenu",!0)),copyWithSyntaxHighlighting:z(new O(15,"copyWithSyntaxHighlighting",!0,{description:T.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:z(new p(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],f,{description:T.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:z(new O(17,"cursorSmoothCaretAnimation",!1,{description:T.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:z(new p(18,"cursorStyle",E.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],L,{description:T.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:z(new m(19,"cursorSurroundingLines",0,0,1073741824,{description:T.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:z(new v(20,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[T.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),T.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:T.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:z(new m(21,"cursorWidth",0,0,1073741824,{markdownDescription:T.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:z(new O(22,"disableLayerHinting",!1)),disableMonospaceOptimizations:z(new O(23,"disableMonospaceOptimizations",!1)),dragAndDrop:z(new O(24,"dragAndDrop",!0,{description:T.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:z(new P),extraEditorClassName:z(new w(26,"extraEditorClassName","")),fastScrollSensitivity:z(new C(27,"fastScrollSensitivity",5,function(se){return se<=0?5:se},{markdownDescription:T.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:z(new x),fixedOverflowWidgets:z(new O(29,"fixedOverflowWidgets",!1)),folding:z(new O(30,"folding",!0,{description:T.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:z(new v(31,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:T.a("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")})),foldingHighlight:z(new O(32,"foldingHighlight",!0,{description:T.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:z(new w(33,"fontFamily",fe.fontFamily,{description:T.a("fontFamily","Controls the font family.")})),fontInfo:z(new V),fontLigatures2:z(new Q),fontSize:z(new W),fontWeight:z(new w(37,"fontWeight",fe.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:T.a("fontWeight","Controls the font weight.")})),formatOnPaste:z(new O(38,"formatOnPaste",!1,{description:T.a("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:z(new O(39,"formatOnType",!1,{description:T.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:z(new O(40,"glyphMargin",!0,{description:T.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:z(new B),hideCursorInOverviewRuler:z(new O(42,"hideCursorInOverviewRuler",!1,{description:T.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:z(new O(43,"highlightActiveIndentGuide",!0,{description:T.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:z(new ae),inDiffEditor:z(new O(45,"inDiffEditor",!1)),letterSpacing:z(new C(46,"letterSpacing",fe.letterSpacing,function(se){return C.clamp(se,-5,20)},{description:T.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:z(new Me),lineDecorationsWidth:z(new b(48,"lineDecorationsWidth",10)),lineHeight:z(new Pe),lineNumbers:z(new ne),lineNumbersMinChars:z(new m(51,"lineNumbersMinChars",5,1,300)),links:z(new O(52,"links",!0,{description:T.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:z(new v(53,"matchBrackets","always",["always","near","never"],{description:T.a("matchBrackets","Highlight matching brackets.")})),minimap:z(new Be),mouseStyle:z(new v(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:z(new C(56,"mouseWheelScrollSensitivity",1,function(se){return se===0?1:se},{markdownDescription:T.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:z(new O(57,"mouseWheelZoom",!1,{markdownDescription:T.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:z(new O(58,"multiCursorMergeOverlapping",!0,{description:T.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:z(new p(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Ke,{markdownEnumDescriptions:[T.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),T.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:T.a({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:z(new v(60,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[T.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),T.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:T.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:z(new O(61,"occurrencesHighlight",!0,{description:T.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:z(new O(62,"overviewRulerBorder",!0,{description:T.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:z(new m(63,"overviewRulerLanes",3,0,3)),parameterHints:z(new Fe),peekWidgetDefaultFocus:z(new v(65,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[T.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),T.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:T.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),quickSuggestions:z(new ee),quickSuggestionsDelay:z(new m(67,"quickSuggestionsDelay",10,0,1073741824,{description:T.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:z(new O(68,"readOnly",!1)),renderControlCharacters:z(new O(69,"renderControlCharacters",!1,{description:T.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:z(new O(70,"renderIndentGuides",!0,{description:T.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:z(new O(71,"renderFinalNewline",!0,{description:T.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:z(new v(72,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",T.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:T.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderValidationDecorations:z(new v(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:z(new v(74,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",T.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),T.a("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:T.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:z(new m(75,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:z(new O(76,"roundedSelection",!0,{description:T.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:z(new le),scrollbar:z(new ve),scrollBeyondLastColumn:z(new m(79,"scrollBeyondLastColumn",5,0,1073741824,{description:T.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:z(new O(80,"scrollBeyondLastLine",!0,{description:T.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:z(new O(81,"selectionClipboard",!0,{description:T.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:pe.d})),selectionHighlight:z(new O(82,"selectionHighlight",!0,{description:T.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:z(new O(83,"selectOnLineNumbers",!0)),showFoldingControls:z(new v(84,"showFoldingControls","mouseover",["always","mouseover"],{description:T.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:z(new O(85,"showUnused",!0,{description:T.a("showUnused","Controls fading out of unused code.")})),snippetSuggestions:z(new v(86,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[T.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),T.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),T.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),T.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:T.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:z(new O(87,"smoothScrolling",!1,{description:T.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:z(new m(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:z(new Ne),suggestFontSize:z(new m(90,"suggestFontSize",0,0,1e3,{markdownDescription:T.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:z(new m(91,"suggestLineHeight",0,0,1e3,{markdownDescription:T.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:z(new O(92,"suggestOnTriggerCharacters",!0,{description:T.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:z(new v(93,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[T.a("suggestSelection.first","Always select the first suggestion."),T.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),T.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:T.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:z(new v(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[T.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),T.a("tabCompletion.off","Disable tab completions."),T.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:T.a("tabCompletion","Enables tab completions.")})),useTabStops:z(new O(95,"useTabStops",!0,{description:T.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:z(new w(96,"wordSeparators",J.b,{description:T.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:z(new v(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[T.a("wordWrap.off","Lines will never wrap."),T.a("wordWrap.on","Lines will wrap at the viewport width."),T.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),T.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:T.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:z(new w(98,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:z(new w(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:z(new m(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:T.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:z(new O(101,"wordWrapMinified",!0)),wrappingIndent:z(new p(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],de,{enumDescriptions:[T.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),T.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),T.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),T.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:T.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:z(new v(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[T.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),T.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:T.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:z(new R),pixelRatio:z(new re),tabFocusMode:z(new Xe),layoutInfo:z(new we),wrappingInfo:z(new ge)}},"/cAr":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return e.e(314).then(e.bind(null,"8m5U"))}})},"/kV6":function(Mt,F,e){"use strict";e.d(F,"b",function(){return K}),e.d(F,"a",function(){return D}),e.d(F,"f",function(){return U}),e.d(F,"e",function(){return h}),e.d(F,"d",function(){return O}),e.d(F,"c",function(){return m});var T=e("/cxE"),pe=function(){function C(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return C.prototype.define=function(w,v){this._keyCodeToStr[w]=v,this._strToKeyCode[v.toLowerCase()]=w},C.prototype.keyCodeToStr=function(w){return this._keyCodeToStr[w]},C.prototype.strToKeyCode=function(w){return this._strToKeyCode[w.toLowerCase()]||0},C}(),J=new pe,I=new pe,H=new pe;(function(){function C(w,v,p,d){p===void 0&&(p=v),d===void 0&&(d=p),J.define(w,v),I.define(w,p),H.define(w,d)}C(0,"unknown"),C(1,"Backspace"),C(2,"Tab"),C(3,"Enter"),C(4,"Shift"),C(5,"Ctrl"),C(6,"Alt"),C(7,"PauseBreak"),C(8,"CapsLock"),C(9,"Escape"),C(10,"Space"),C(11,"PageUp"),C(12,"PageDown"),C(13,"End"),C(14,"Home"),C(15,"LeftArrow","Left"),C(16,"UpArrow","Up"),C(17,"RightArrow","Right"),C(18,"DownArrow","Down"),C(19,"Insert"),C(20,"Delete"),C(21,"0"),C(22,"1"),C(23,"2"),C(24,"3"),C(25,"4"),C(26,"5"),C(27,"6"),C(28,"7"),C(29,"8"),C(30,"9"),C(31,"A"),C(32,"B"),C(33,"C"),C(34,"D"),C(35,"E"),C(36,"F"),C(37,"G"),C(38,"H"),C(39,"I"),C(40,"J"),C(41,"K"),C(42,"L"),C(43,"M"),C(44,"N"),C(45,"O"),C(46,"P"),C(47,"Q"),C(48,"R"),C(49,"S"),C(50,"T"),C(51,"U"),C(52,"V"),C(53,"W"),C(54,"X"),C(55,"Y"),C(56,"Z"),C(57,"Meta"),C(58,"ContextMenu"),C(59,"F1"),C(60,"F2"),C(61,"F3"),C(62,"F4"),C(63,"F5"),C(64,"F6"),C(65,"F7"),C(66,"F8"),C(67,"F9"),C(68,"F10"),C(69,"F11"),C(70,"F12"),C(71,"F13"),C(72,"F14"),C(73,"F15"),C(74,"F16"),C(75,"F17"),C(76,"F18"),C(77,"F19"),C(78,"NumLock"),C(79,"ScrollLock"),C(80,";",";","OEM_1"),C(81,"=","=","OEM_PLUS"),C(82,",",",","OEM_COMMA"),C(83,"-","-","OEM_MINUS"),C(84,".",".","OEM_PERIOD"),C(85,"/","/","OEM_2"),C(86,"`","`","OEM_3"),C(110,"ABNT_C1"),C(111,"ABNT_C2"),C(87,"[","[","OEM_4"),C(88,"\\","\\","OEM_5"),C(89,"]","]","OEM_6"),C(90,"'","'","OEM_7"),C(91,"OEM_8"),C(92,"OEM_102"),C(93,"NumPad0"),C(94,"NumPad1"),C(95,"NumPad2"),C(96,"NumPad3"),C(97,"NumPad4"),C(98,"NumPad5"),C(99,"NumPad6"),C(100,"NumPad7"),C(101,"NumPad8"),C(102,"NumPad9"),C(103,"NumPad_Multiply"),C(104,"NumPad_Add"),C(105,"NumPad_Separator"),C(106,"NumPad_Subtract"),C(107,"NumPad_Decimal"),C(108,"NumPad_Divide")})();var K;(function(C){function w(u){return J.keyCodeToStr(u)}C.toString=w;function v(u){return J.strToKeyCode(u)}C.fromString=v;function p(u){return I.keyCodeToStr(u)}C.toUserSettingsUS=p;function d(u){return H.keyCodeToStr(u)}C.toUserSettingsGeneral=d;function c(u){return I.strToKeyCode(u)||H.strToKeyCode(u)}C.fromUserSettings=c})(K||(K={}));function D(C,w){var v=(w&65535)<<16>>>0;return(C|v)>>>0}function U(C,w){if(C===0)return null;var v=(C&65535)>>>0,p=(C&4294901760)>>>16;return p!==0?new b([j(v,w),j(p,w)]):new b([j(v,w)])}function j(C,w){var v=!!(C&2048),p=!!(C&256),d=w===2?p:v,c=!!(C&1024),u=!!(C&512),f=w===2?v:p,E=C&255;return new h(d,c,u,f,E)}var h=function(){function C(w,v,p,d,c){this.ctrlKey=w,this.shiftKey=v,this.altKey=p,this.metaKey=d,this.keyCode=c}return C.prototype.equals=function(w){return this.ctrlKey===w.ctrlKey&&this.shiftKey===w.shiftKey&&this.altKey===w.altKey&&this.metaKey===w.metaKey&&this.keyCode===w.keyCode},C.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},C.prototype.toChord=function(){return new b([this])},C.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},C}(),b=function(){function C(w){if(w.length===0)throw Object(T.b)("parts");this.parts=w}return C.prototype.equals=function(w){if(w===null)return!1;if(this.parts.length!==w.parts.length)return!1;for(var v=0;v<this.parts.length;v++)if(!this.parts[v].equals(w.parts[v]))return!1;return!0},C}(),O=function(){function C(w,v,p,d,c,u){this.ctrlKey=w,this.shiftKey=v,this.altKey=p,this.metaKey=d,this.keyLabel=c,this.keyAriaLabel=u}return C}(),m=function(){function C(){}return C}()},"/oaI":function(Mt,F,e){},"0+8E":function(Mt,F,e){"use strict";e.d(F,"b",function(){return c}),e.d(F,"a",function(){return u});var T=e("i/Rh"),pe=e("3/fG"),J=e("D3Dy"),I=e("EffR"),H=e("Md8J"),K=e("OBOq"),D=e("WqXY"),U=e("MI8n"),j=e("G300"),h=e("zrhQ"),b=e("qj0h"),O=e("JYp7"),m=function(){function f(E,L){E===void 0&&(E=[]),L===void 0&&(L=10),this._initialize(E),this._limit=L,this._onChange()}return f.prototype.add=function(E){this._history.delete(E),this._history.add(E),this._onChange()},f.prototype.next=function(){return this._navigator.next()},f.prototype.previous=function(){return this._navigator.previous()},f.prototype.current=function(){return this._navigator.current()},f.prototype.parent=function(){return null},f.prototype.first=function(){return this._navigator.first()},f.prototype.last=function(){return this._navigator.last()},f.prototype.has=function(E){return this._history.has(E)},f.prototype._onChange=function(){this._reduceToLimit();var E=this._elements;this._navigator=new O.b(E,0,E.length,E.length)},f.prototype._reduceToLimit=function(){var E=this._elements;E.length>this._limit&&this._initialize(E.slice(E.length-this._limit))},f.prototype._initialize=function(E){this._history=new Set;for(var L=0,R=E;L<R.length;L++){var P=R[L];this._history.add(P)}},Object.defineProperty(f.prototype,"_elements",{get:function(){var E=[];return this._history.forEach(function(L){return E.push(L)}),E},enumerable:!0,configurable:!0}),f}(),C=e("GJhM"),w=e("4y0V"),v=function(){var f=function(E,L){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,P){R.__proto__=P}||function(R,P){for(var x in P)P.hasOwnProperty(x)&&(R[x]=P[x])},f(E,L)};return function(E,L){f(E,L);function R(){this.constructor=E}E.prototype=L===null?Object.create(L):(R.prototype=L.prototype,new R)}}(),p=I.a,d={inputBackground:h.a.fromHex("#3C3C3C"),inputForeground:h.a.fromHex("#CCCCCC"),inputValidationInfoBorder:h.a.fromHex("#55AAFF"),inputValidationInfoBackground:h.a.fromHex("#063B49"),inputValidationWarningBorder:h.a.fromHex("#B89500"),inputValidationWarningBackground:h.a.fromHex("#352A05"),inputValidationErrorBorder:h.a.fromHex("#BE1100"),inputValidationErrorBackground:h.a.fromHex("#5A1D1D")},c=function(f){v(E,f);function E(L,R,P){var x=f.call(this)||this;x.state="idle",x.maxHeight=Number.POSITIVE_INFINITY,x._onDidChange=x._register(new U.a),x.onDidChange=x._onDidChange.event,x._onDidHeightChange=x._register(new U.a),x.onDidHeightChange=x._onDidHeightChange.event,x.contextViewProvider=R,x.options=P||Object.create(null),Object(b.g)(x.options,d,!1),x.message=null,x.placeholder=x.options.placeholder||"",x.ariaLabel=x.options.ariaLabel||"",x.inputBackground=x.options.inputBackground,x.inputForeground=x.options.inputForeground,x.inputBorder=x.options.inputBorder,x.inputValidationInfoBorder=x.options.inputValidationInfoBorder,x.inputValidationInfoBackground=x.options.inputValidationInfoBackground,x.inputValidationInfoForeground=x.options.inputValidationInfoForeground,x.inputValidationWarningBorder=x.options.inputValidationWarningBorder,x.inputValidationWarningBackground=x.options.inputValidationWarningBackground,x.inputValidationWarningForeground=x.options.inputValidationWarningForeground,x.inputValidationErrorBorder=x.options.inputValidationErrorBorder,x.inputValidationErrorBackground=x.options.inputValidationErrorBackground,x.inputValidationErrorForeground=x.options.inputValidationErrorForeground,x.options.validationOptions&&(x.validation=x.options.validationOptions.validation),x.element=I.q(L,p(".monaco-inputbox.idle"));var Q=x.options.flexibleHeight?"textarea":"input",V=I.q(x.element,p(".wrapper"));if(x.input=I.q(V,p(Q+".input.empty")),x.input.setAttribute("autocorrect","off"),x.input.setAttribute("autocapitalize","off"),x.input.setAttribute("spellcheck","false"),x.onfocus(x.input,function(){return I.f(x.element,"synthetic-focus")}),x.onblur(x.input,function(){return I.P(x.element,"synthetic-focus")}),x.options.flexibleHeight){x.maxHeight=typeof x.options.flexibleMaxHeight=="number"?x.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,x.mirror=I.q(V,p("div.mirror")),x.mirror.innerHTML="&#160;",x.scrollableElement=new C.b(x.element,{vertical:1}),x.options.flexibleWidth&&(x.input.setAttribute("wrap","off"),x.mirror.style.whiteSpace="pre",x.mirror.style.wordWrap="initial"),I.q(L,x.scrollableElement.getDomNode()),x._register(x.scrollableElement),x._register(x.scrollableElement.onScroll(function(B){return x.input.scrollTop=B.scrollTop}));var W=U.b.filter(Object(w.a)(document,"selectionchange"),function(){var B=document.getSelection();return(B==null?void 0:B.anchorNode)===V});x._register(W(x.updateScrollDimensions,x)),x._register(x.onDidHeightChange(x.updateScrollDimensions,x))}else x.input.type=x.options.type||"text",x.input.setAttribute("wrap","off");return x.ariaLabel&&x.input.setAttribute("aria-label",x.ariaLabel),x.placeholder&&x.setPlaceHolder(x.placeholder),x.oninput(x.input,function(){return x.onValueChange()}),x.onblur(x.input,function(){return x.onBlur()}),x.onfocus(x.input,function(){return x.onFocus()}),x.placeholder&&J.i&&x.onclick(x.input,function(B){I.c.stop(B,!0),x.input.focus()}),x.ignoreGesture(x.input),setTimeout(function(){return x.updateMirror()},0),x.options.actions&&(x.actionbar=x._register(new D.a(x.element)),x.actionbar.push(x.options.actions,{icon:!0,label:!1})),x.applyStyles(),x}return E.prototype.onBlur=function(){this._hideMessage()},E.prototype.onFocus=function(){this._showMessage()},E.prototype.setPlaceHolder=function(L){this.placeholder=L,this.input.setAttribute("placeholder",L),this.input.title=L},E.prototype.setAriaLabel=function(L){this.ariaLabel=L,L?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(E.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"value",{get:function(){return this.input.value},set:function(L){this.input.value!==L&&(this.input.value=L,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"height",{get:function(){return typeof this.cachedHeight=="number"?this.cachedHeight:I.G(this.element)},enumerable:!0,configurable:!0}),E.prototype.focus=function(){this.input.focus()},E.prototype.blur=function(){this.input.blur()},E.prototype.hasFocus=function(){return document.activeElement===this.input},E.prototype.select=function(L){L===void 0&&(L=null),this.input.select(),L&&this.input.setSelectionRange(L.start,L.end)},E.prototype.enable=function(){this.input.removeAttribute("disabled")},E.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(E.prototype,"width",{get:function(){return I.H(this.input)},set:function(L){if(this.options.flexibleHeight&&this.options.flexibleWidth){var R=0;if(this.mirror){var P=parseFloat(this.mirror.style.paddingLeft||"")||0,x=parseFloat(this.mirror.style.paddingRight||"")||0;R=P+x}this.input.style.width=L-R+"px"}else this.input.style.width=L+"px";this.mirror&&(this.mirror.style.width=L+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"paddingRight",{set:function(L){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+L+"px)":this.input.style.paddingRight=L+"px",this.mirror&&(this.mirror.style.paddingRight=L+"px")},enumerable:!0,configurable:!0}),E.prototype.updateScrollDimensions=function(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;var L=this.cachedContentHeight,R=this.cachedHeight,P=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:L,height:R}),this.scrollableElement.setScrollPosition({scrollTop:P})},E.prototype.showMessage=function(L,R){this.message=L,I.P(this.element,"idle"),I.P(this.element,"info"),I.P(this.element,"warning"),I.P(this.element,"error"),I.f(this.element,this.classForType(L.type));var P=this.stylesForType(this.message.type);this.element.style.border=P.border?"1px solid "+P.border:"";var x;L.type===3?x=pe.a("alertErrorMessage","Error: {0}",L.content):L.type===2?x=pe.a("alertWarningMessage","Warning: {0}",L.content):x=pe.a("alertInfoMessage","Info: {0}",L.content),K.a(x),(this.hasFocus()||R)&&this._showMessage()},E.prototype.hideMessage=function(){this.message=null,I.P(this.element,"info"),I.P(this.element,"warning"),I.P(this.element,"error"),I.f(this.element,"idle"),this._hideMessage(),this.applyStyles()},E.prototype.validate=function(){var L=null;return this.validation&&(L=this.validation(this.value),L?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(L)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!L},E.prototype.stylesForType=function(L){switch(L){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}},E.prototype.classForType=function(L){switch(L){case 1:return"info";case 2:return"warning";default:return"error"}},E.prototype._showMessage=function(){var L=this;if(!this.contextViewProvider||!this.message)return;var R,P=function(){return R.style.width=I.H(L.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return L.element},anchorAlignment:1,render:function(x){if(!L.message)return null;R=I.q(x,p(".monaco-inputbox-container")),P();var Q={inline:!0,className:"monaco-inputbox-message"},V=L.message.formatContent?Object(H.b)(L.message.content,Q):Object(H.c)(L.message.content,Q);I.f(V,L.classForType(L.message.type));var W=L.stylesForType(L.message.type);return V.style.backgroundColor=W.background?W.background.toString():"",V.style.color=W.foreground?W.foreground.toString():"",V.style.border=W.border?"1px solid "+W.border:"",I.q(R,V),null},onHide:function(){L.state="closed"},layout:P}),this.state="open"},E.prototype._hideMessage=function(){if(!this.contextViewProvider)return;this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle"},E.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),I.Y(this.input,"empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()},E.prototype.updateMirror=function(){if(!this.mirror)return;var L=this.value,R=L.charCodeAt(L.length-1),P=R===10?" ":"",x=L+P;x?this.mirror.textContent=L+P:this.mirror.innerHTML="&#160;",this.layout()},E.prototype.style=function(L){this.inputBackground=L.inputBackground,this.inputForeground=L.inputForeground,this.inputBorder=L.inputBorder,this.inputValidationInfoBackground=L.inputValidationInfoBackground,this.inputValidationInfoForeground=L.inputValidationInfoForeground,this.inputValidationInfoBorder=L.inputValidationInfoBorder,this.inputValidationWarningBackground=L.inputValidationWarningBackground,this.inputValidationWarningForeground=L.inputValidationWarningForeground,this.inputValidationWarningBorder=L.inputValidationWarningBorder,this.inputValidationErrorBackground=L.inputValidationErrorBackground,this.inputValidationErrorForeground=L.inputValidationErrorForeground,this.inputValidationErrorBorder=L.inputValidationErrorBorder,this.applyStyles()},E.prototype.applyStyles=function(){var L=this.inputBackground?this.inputBackground.toString():"",R=this.inputForeground?this.inputForeground.toString():"",P=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=L,this.element.style.color=R,this.input.style.backgroundColor=L,this.input.style.color=R,this.element.style.borderWidth=P?"1px":"",this.element.style.borderStyle=P?"solid":"",this.element.style.borderColor=P},E.prototype.layout=function(){if(!this.mirror)return;var L=this.cachedContentHeight;this.cachedContentHeight=I.G(this.mirror),L!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))},E.prototype.insertAtCursor=function(L){var R=this.inputElement,P=R.selectionStart,x=R.selectionEnd,Q=R.value;P!==null&&x!==null&&(this.value=Q.substr(0,P)+L+Q.substr(x),R.setSelectionRange(P+1,P+1),this.layout())},E.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),f.prototype.dispose.call(this)},E}(j.a),u=function(f){v(E,f);function E(L,R,P){var x=f.call(this,L,R,P)||this;return x.history=new m(P.history,100),x}return E.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},E.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var L=this.getNextValue();L&&(L=L===this.value?this.getNextValue():L),L&&(this.value=L,K.c(this.value))},E.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var L=this.getPreviousValue();L&&(L=L===this.value?this.getPreviousValue():L),L&&(this.value=L,K.c(this.value))},E.prototype.getCurrentValue=function(){var L=this.history.current();return L||(L=this.history.last(),this.history.next()),L},E.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},E.prototype.getNextValue=function(){return this.history.next()||this.history.last()},E}(c)},"0/Sa":function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("aokT"),pe=function(){function J(){}return J.insert=function(I,H){return{range:new T.a(I.lineNumber,I.column,I.lineNumber,I.column),text:H,forceMoveMarkers:!0}},J.delete=function(I){return{range:I,text:null}},J.replace=function(I,H){return{range:I,text:H}},J.replaceMove=function(I,H){return{range:I,text:H,forceMoveMarkers:!0}},J}()},"03kh":function(Mt,F,e){"use strict";e.d(F,"a",function(){return m});var T=e("qj0h"),pe=e("Vxe3"),J=e("nB0o"),I=e("nnTU"),H=e("T8No"),K=e("Cg/j"),D=e("sM1p"),U=e("t9D7"),j=e("R3nR"),h=function(){var C=function(w,v){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])},C(w,v)};return function(w,v){C(w,v);function p(){this.constructor=w}w.prototype=v===null?Object.create(v):(p.prototype=v.prototype,new p)}}(),b=function(C,w,v,p){var d=arguments.length,c=d<3?w:p===null?p=Object.getOwnPropertyDescriptor(w,v):p,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(C,w,v,p);else for(var f=C.length-1;f>=0;f--)(u=C[f])&&(c=(d<3?u(c):d>3?u(w,v,c):u(w,v))||c);return d>3&&c&&Object.defineProperty(w,v,c),c},O=function(C,w){return function(v,p){w(v,p,C)}},m=function(C){h(w,C);function w(v,p,d,c,u,f,E,L,R,P){var x=C.call(this,v,d.getRawOptions(),{},c,u,f,E,L,R,P)||this;return x._parentEditor=d,x._overwriteOptions=p,C.prototype.updateOptions.call(x,x._overwriteOptions),x._register(d.onDidChangeConfiguration(function(Q){return x._onParentConfigurationChanged(Q)})),x}return w.prototype.getParentEditor=function(){return this._parentEditor},w.prototype._onParentConfigurationChanged=function(v){C.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),C.prototype.updateOptions.call(this,this._overwriteOptions)},w.prototype.updateOptions=function(v){T.g(this._overwriteOptions,v,!0),C.prototype.updateOptions.call(this,this._overwriteOptions)},w=b([O(3,K.a),O(4,pe.a),O(5,I.b),O(6,H.c),O(7,U.c),O(8,D.a),O(9,j.b)],w),w}(J.a)},"09fa":function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"b",function(){return J}),e.d(F,"c",function(){return I});var T=e("Cg/j"),pe=Object(T.c)("logService"),J;(function(H){H[H.Trace=0]="Trace",H[H.Debug=1]="Debug",H[H.Info=2]="Info",H[H.Warning=3]="Warning",H[H.Error=4]="Error",H[H.Critical=5]="Critical",H[H.Off=6]="Off"})(J||(J={}));var I=function(){function H(){}return H.prototype.getLevel=function(){return J.Info},H.prototype.trace=function(K){for(var D=[],U=1;U<arguments.length;U++)D[U-1]=arguments[U]},H.prototype.error=function(K){for(var D=[],U=1;U<arguments.length;U++)D[U-1]=arguments[U]},H.prototype.dispose=function(){},H}()},"0JNc":function(Mt,F,e){"use strict";e.d(F,"b",function(){return T}),e.d(F,"a",function(){return J}),e.d(F,"c",function(){return I}),e.d(F,"d",function(){return D});var T="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function pe(U){U===void 0&&(U="");for(var j="(-?\\d*\\.\\d\\w*)|([^",h=0,b=T;h<b.length;h++){var O=b[h];if(U.indexOf(O)>=0)continue;j+="\\"+O}return j+="\\s]+)",new RegExp(j,"g")}var J=pe();function I(U){var j=J;if(U&&U instanceof RegExp)if(U.global)j=U;else{var h="g";U.ignoreCase&&(h+="i"),U.multiline&&(h+="m"),U.unicode&&(h+="u"),j=new RegExp(U.source,h)}return j.lastIndex=0,j}function H(U,j,h,b){var O=U-1-b,m=h.lastIndexOf(" ",O-1)+1;j.lastIndex=m;for(var C;C=j.exec(h);){var w=C.index||0;if(w<=O&&j.lastIndex>=O)return{word:C[0],startColumn:b+1+w,endColumn:b+1+j.lastIndex}}return null}function K(U,j,h,b){var O=U-1-b;j.lastIndex=0;for(var m;m=j.exec(h);){var C=m.index||0;if(C>O)return null;if(j.lastIndex>=O)return{word:m[0],startColumn:b+1+C,endColumn:b+1+j.lastIndex}}return null}function D(U,j,h,b){j.lastIndex=0;var O=j.exec(h);if(!O)return null;var m=O[0].indexOf(" ")>=0?K(U,j,h,b):H(U,j,h,b);return j.lastIndex=0,m}},"0oIH":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return e.e(304).then(e.bind(null,"Eg73"))}})},"10Fh":function(Mt,F,e){"use strict";e.r(F),e.d(F,"provideSelectionRanges",function(){return R});var T=e("6OMU"),pe=e("JQT/"),J=e("sswD"),I=e("cGHE"),H=e("aokT"),K=e("gCVg"),D=e("wQH0"),U=e("twdY"),j=e("3/fG"),h=e("pmY6"),b=e("N0LK"),O=function(){function P(){}return P.prototype.provideSelectionRanges=function(x,Q){for(var V=[],W=0,B=Q;W<B.length;W++){var ae=B[W],we=[];V.push(we),this._addInWordRanges(we,x,ae),this._addWordRanges(we,x,ae),this._addWhitespaceLine(we,x,ae),we.push({range:x.getFullModelRange()})}return V},P.prototype._addInWordRanges=function(x,Q,V){var W=Q.getWordAtPosition(V);if(!W)return;for(var B=W.word,ae=W.startColumn,we=V.column-ae,Me=we,Pe=we,Be=0;Me>=0;Me--){var Ke=B.charCodeAt(Me);if(Ke===95||Ke===45)break;if(Object(b.B)(Ke)&&Object(b.C)(Be))break;Be=Ke}for(Me+=1;Pe<B.length;Pe++){var Ke=B.charCodeAt(Pe);if(Object(b.C)(Ke)&&Object(b.B)(Be))break;if(Ke===95||Ke===45)break;Be=Ke}Me<Pe&&x.push({range:new H.a(V.lineNumber,ae+Me,V.lineNumber,ae+Pe)})},P.prototype._addWordRanges=function(x,Q,V){var W=Q.getWordAtPosition(V);W&&x.push({range:new H.a(V.lineNumber,W.startColumn,V.lineNumber,W.endColumn)})},P.prototype._addWhitespaceLine=function(x,Q,V){Q.getLineLength(V.lineNumber)>0&&Q.getLineFirstNonWhitespaceColumn(V.lineNumber)===0&&Q.getLineLastNonWhitespaceColumn(V.lineNumber)===0&&x.push({range:new H.a(V.lineNumber,1,V.lineNumber,Q.getLineMaxColumn(V.lineNumber))})},P}(),m=e("Z7SF"),C=e("nnTU"),w=e("/cxE"),v=function(){var P=function(x,Q){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,W){V.__proto__=W}||function(V,W){for(var B in W)W.hasOwnProperty(B)&&(V[B]=W[B])},P(x,Q)};return function(x,Q){P(x,Q);function V(){this.constructor=x}x.prototype=Q===null?Object.create(Q):(V.prototype=Q.prototype,new V)}}(),p=function(P,x,Q,V){function W(B){return B instanceof Q?B:new Q(function(ae){ae(B)})}return new(Q||(Q=Promise))(function(B,ae){function we(Be){try{Pe(V.next(Be))}catch(Ke){ae(Ke)}}function Me(Be){try{Pe(V.throw(Be))}catch(Ke){ae(Ke)}}function Pe(Be){Be.done?B(Be.value):W(Be.value).then(we,Me)}Pe((V=V.apply(P,x||[])).next())})},d=function(P,x){var Q={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]},V,W,B,ae;return ae={next:we(0),throw:we(1),return:we(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function we(Pe){return function(Be){return Me([Pe,Be])}}function Me(Pe){if(V)throw new TypeError("Generator is already executing.");for(;Q;)try{if(V=1,W&&(B=Pe[0]&2?W.return:Pe[0]?W.throw||((B=W.return)&&B.call(W),0):W.next)&&!(B=B.call(W,Pe[1])).done)return B;(W=0,B)&&(Pe=[Pe[0]&2,B.value]);switch(Pe[0]){case 0:case 1:B=Pe;break;case 4:return Q.label++,{value:Pe[1],done:!1};case 5:Q.label++,W=Pe[1],Pe=[0];continue;case 7:Pe=Q.ops.pop(),Q.trys.pop();continue;default:if(!(B=Q.trys,B=B.length>0&&B[B.length-1])&&(Pe[0]===6||Pe[0]===2)){Q=0;continue}if(Pe[0]===3&&(!B||Pe[1]>B[0]&&Pe[1]<B[3])){Q.label=Pe[1];break}if(Pe[0]===6&&Q.label<B[1]){Q.label=B[1],B=Pe;break}if(B&&Q.label<B[2]){Q.label=B[2],Q.ops.push(Pe);break}B[2]&&Q.ops.pop(),Q.trys.pop();continue}Pe=x.call(P,Q)}catch(Be){Pe=[6,Be],W=0}finally{V=B=0}if(Pe[0]&5)throw Pe[1];return{value:Pe[0]?Pe[1]:void 0,done:!0}}},c=function(){function P(x,Q){this.index=x,this.ranges=Q}return P.prototype.mov=function(x){var Q=this.index+(x?1:-1);if(Q<0||Q>=this.ranges.length)return this;var V=new P(Q,this.ranges);return V.ranges[Q].equalsRange(this.ranges[this.index])?V.mov(x):V},P}(),u=function(){function P(x){this._ignoreSelection=!1,this._editor=x}return P.get=function(x){return x.getContribution(P.ID)},P.prototype.dispose=function(){Object(h.f)(this._selectionListener)},P.prototype.run=function(x){var Q=this;if(!this._editor.hasModel())return;var V=this._editor.getSelections(),W=this._editor.getModel();if(!U.w.has(W))return;var B=Promise.resolve(void 0);return this._state||(B=R(W,V.map(function(ae){return ae.getPosition()}),pe.a.None).then(function(ae){if(!T.q(ae)||ae.length!==V.length)return;if(!Q._editor.hasModel()||!T.g(Q._editor.getSelections(),V,function(Pe,Be){return Pe.equalsSelection(Be)}))return;for(var we=function(Pe){ae[Pe]=ae[Pe].filter(function(Be){return Be.containsPosition(V[Pe].getStartPosition())&&Be.containsPosition(V[Pe].getEndPosition())}),ae[Pe].unshift(V[Pe])},Me=0;Me<ae.length;Me++)we(Me);Q._state=ae.map(function(Pe){return new c(0,Pe)}),Object(h.f)(Q._selectionListener),Q._selectionListener=Q._editor.onDidChangeCursorPosition(function(){Q._ignoreSelection||(Object(h.f)(Q._selectionListener),Q._state=void 0)})})),B.then(function(){if(!Q._state)return;Q._state=Q._state.map(function(we){return we.mov(x)});var ae=Q._state.map(function(we){return K.a.fromPositions(we.ranges[we.index].getStartPosition(),we.ranges[we.index].getEndPosition())});Q._ignoreSelection=!0;try{Q._editor.setSelections(ae)}finally{Q._ignoreSelection=!1}})},P.ID="editor.contrib.smartSelectController",P}(),f=function(P){v(x,P);function x(Q,V){var W=P.call(this,V)||this;return W._forward=Q,W}return x.prototype.run=function(Q,V){return p(this,void 0,void 0,function(){var W;return d(this,function(B){switch(B.label){case 0:return W=u.get(V),W?[4,W.run(this._forward)]:[3,2];case 1:B.sent(),B.label=2;case 2:return[2]}})})},x}(J.b),E=function(P){v(x,P);function x(){return P.call(this,!0,{id:"editor.action.smartSelect.expand",label:j.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:D.a.editorTextFocus,primary:1024|512|17,mac:{primary:2048|256|1024|17,secondary:[256|1024|17]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:j.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})||this}return x}(f);C.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");var L=function(P){v(x,P);function x(){return P.call(this,!1,{id:"editor.action.smartSelect.shrink",label:j.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:D.a.editorTextFocus,primary:1024|512|15,mac:{primary:2048|256|1024|15,secondary:[256|1024|15]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:j.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})||this}return x}(f);Object(J.h)(u.ID,u),Object(J.f)(E),Object(J.f)(L),U.w.register("*",new O);function R(P,x,Q){var V=U.w.all(P);V.length===1&&V.unshift(new m.a);for(var W=[],B=[],ae=0,we=V;ae<we.length;ae++){var Me=we[ae];W.push(Promise.resolve(Me.provideSelectionRanges(P,x,Q)).then(function(Pe){if(T.q(Pe)&&Pe.length===x.length)for(var Be=0;Be<x.length;Be++){B[Be]||(B[Be]=[]);for(var Ke=0,Fe=Pe[Be];Ke<Fe.length;Ke++){var re=Fe[Ke];H.a.isIRange(re.range)&&H.a.containsPosition(re.range,x[Be])&&B[Be].push(H.a.lift(re.range))}}},w.f))}return Promise.all(W).then(function(){return B.map(function(Pe){if(Pe.length===0)return[];Pe.sort(function(Xe,de){return I.a.isBefore(Xe.getStartPosition(),de.getStartPosition())?1:I.a.isBefore(de.getStartPosition(),Xe.getStartPosition())||I.a.isBefore(Xe.getEndPosition(),de.getEndPosition())?-1:I.a.isBefore(de.getEndPosition(),Xe.getEndPosition())?1:0});for(var Be=[],Ke,Fe=0,re=Pe;Fe<re.length;Fe++){var ee=re[Fe];(!Ke||H.a.containsRange(ee,Ke)&&!H.a.equalsRange(ee,Ke))&&(Be.push(ee),Ke=ee)}for(var ne=[Be[0]],q=1;q<Be.length;q++){var le=Be[q-1],Z=Be[q];if(Z.startLineNumber!==le.startLineNumber||Z.endLineNumber!==le.endLineNumber){var ve=new H.a(le.startLineNumber,P.getLineFirstNonWhitespaceColumn(le.startLineNumber),le.endLineNumber,P.getLineLastNonWhitespaceColumn(le.endLineNumber));ve.containsRange(le)&&!ve.equalsRange(le)&&Z.containsRange(ve)&&!Z.equalsRange(ve)&&ne.push(ve);var Ne=new H.a(le.startLineNumber,1,le.endLineNumber,P.getLineMaxColumn(le.endLineNumber));Ne.containsRange(le)&&!Ne.equalsRange(ve)&&Z.containsRange(Ne)&&!Z.equalsRange(Ne)&&ne.push(Ne)}ne.push(Z)}return ne})})}Object(J.l)("_executeSelectionRangeProvider",function(P){for(var x=[],Q=1;Q<arguments.length;Q++)x[Q-1]=arguments[Q];var V=x[0];return R(P,V,pe.a.None)})},"1I1M":function(Mt,F,e){"use strict";e.d(F,"a",function(){return D}),e.d(F,"b",function(){return U});var T=e("N0LK"),pe=e("Ll0s"),J=e("5v8Y"),I=e("cGHE"),H=e("aokT"),K=function(){var h=function(b,O){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var w in C)C.hasOwnProperty(w)&&(m[w]=C[w])},h(b,O)};return function(b,O){h(b,O);function m(){this.constructor=b}b.prototype=O===null?Object.create(O):(m.prototype=O.prototype,new m)}}(),D=function(){function h(){}return h._createWord=function(b,O,m,C,w){return{start:C,end:w,wordType:O,nextCharClass:m}},h._findPreviousWordOnLine=function(b,O,m){var C=O.getLineContent(m.lineNumber);return this._doFindPreviousWordOnLine(C,b,m)},h._doFindPreviousWordOnLine=function(b,O,m){for(var C=0,w=m.column-2;w>=0;w--){var v=b.charCodeAt(w),p=O.get(v);if(p===0){if(C===2)return this._createWord(b,C,p,w+1,this._findEndOfWord(b,O,C,w+1));C=1}else if(p===2){if(C===1)return this._createWord(b,C,p,w+1,this._findEndOfWord(b,O,C,w+1));C=2}else if(p===1&&C!==0)return this._createWord(b,C,p,w+1,this._findEndOfWord(b,O,C,w+1))}return C!==0?this._createWord(b,C,1,0,this._findEndOfWord(b,O,C,0)):null},h._findEndOfWord=function(b,O,m,C){for(var w=b.length,v=C;v<w;v++){var p=b.charCodeAt(v),d=O.get(p);if(d===1)return v;if(m===1&&d===2)return v;if(m===2&&d===0)return v}return w},h._findNextWordOnLine=function(b,O,m){var C=O.getLineContent(m.lineNumber);return this._doFindNextWordOnLine(C,b,m)},h._doFindNextWordOnLine=function(b,O,m){for(var C=0,w=b.length,v=m.column-1;v<w;v++){var p=b.charCodeAt(v),d=O.get(p);if(d===0){if(C===2)return this._createWord(b,C,d,this._findStartOfWord(b,O,C,v-1),v);C=1}else if(d===2){if(C===1)return this._createWord(b,C,d,this._findStartOfWord(b,O,C,v-1),v);C=2}else if(d===1&&C!==0)return this._createWord(b,C,d,this._findStartOfWord(b,O,C,v-1),v)}return C!==0?this._createWord(b,C,1,this._findStartOfWord(b,O,C,w-1),w):null},h._findStartOfWord=function(b,O,m,C){for(var w=C;w>=0;w--){var v=b.charCodeAt(w),p=O.get(v);if(p===1)return w+1;if(m===1&&p===2)return w+1;if(m===2&&p===0)return w+1}return 0},h.moveWordLeft=function(b,O,m,C){var w=m.lineNumber,v=m.column,p=!1;v===1&&(w>1&&(p=!0,w=w-1,v=O.getLineMaxColumn(w)));var d=h._findPreviousWordOnLine(b,O,new I.a(w,v));if(C===0){if(d&&!p){var c=O.getLineLastNonWhitespaceColumn(w);if(c<v)return new I.a(w,d.end+1)}return new I.a(w,d?d.start+1:1)}if(C===1)return d&&d.wordType===2&&d.end-d.start===1&&d.nextCharClass===0&&(d=h._findPreviousWordOnLine(b,O,new I.a(w,d.start+1))),new I.a(w,d?d.start+1:1);if(C===3){for(;d&&d.wordType===2;)d=h._findPreviousWordOnLine(b,O,new I.a(w,d.start+1));return new I.a(w,d?d.start+1:1)}return d&&v<=d.end+1&&(d=h._findPreviousWordOnLine(b,O,new I.a(w,d.start+1))),new I.a(w,d?d.end+1:1)},h._moveWordPartLeft=function(b,O){var m=O.lineNumber,C=b.getLineMaxColumn(m);if(O.column===1)return m>1?new I.a(m-1,b.getLineMaxColumn(m-1)):O;for(var w=b.getLineContent(m),v=O.column-1;v>1;v--){var p=w.charCodeAt(v-2),d=w.charCodeAt(v-1);if(p!==95&&d===95)return new I.a(m,v);if(T.B(p)&&T.C(d))return new I.a(m,v);if(T.C(p)&&T.C(d)&&v+1<C){var c=w.charCodeAt(v);if(T.B(c))return new I.a(m,v)}}return new I.a(m,1)},h.moveWordRight=function(b,O,m,C){var w=m.lineNumber,v=m.column,p=!1;v===O.getLineMaxColumn(w)&&(w<O.getLineCount()&&(p=!0,w=w+1,v=1));var d=h._findNextWordOnLine(b,O,new I.a(w,v));if(C===2)d&&d.wordType===2&&(d.end-d.start===1&&d.nextCharClass===0&&(d=h._findNextWordOnLine(b,O,new I.a(w,d.end+1)))),d?v=d.end+1:v=O.getLineMaxColumn(w);else if(C===3){for(p&&(v=0);d&&(d.wordType===2||d.start+1<=v);)d=h._findNextWordOnLine(b,O,new I.a(w,d.end+1));d?v=d.start+1:v=O.getLineMaxColumn(w)}else d&&!p&&v>=d.start+1&&(d=h._findNextWordOnLine(b,O,new I.a(w,d.end+1))),d?v=d.start+1:v=O.getLineMaxColumn(w);return new I.a(w,v)},h._moveWordPartRight=function(b,O){var m=O.lineNumber,C=b.getLineMaxColumn(m);if(O.column===C)return m<b.getLineCount()?new I.a(m+1,1):O;for(var w=b.getLineContent(m),v=O.column+1;v<C;v++){var p=w.charCodeAt(v-2),d=w.charCodeAt(v-1);if(p===95&&d!==95)return new I.a(m,v);if(T.B(p)&&T.C(d))return new I.a(m,v);if(T.C(p)&&T.C(d)&&v+1<C){var c=w.charCodeAt(v);if(T.B(c))return new I.a(m,v)}}return new I.a(m,C)},h._deleteWordLeftWhitespace=function(b,O){var m=b.getLineContent(O.lineNumber),C=O.column-2,w=T.D(m,C);return w+1<C?new H.a(O.lineNumber,w+2,O.lineNumber,O.column):null},h.deleteWordLeft=function(b,O,m,C,w){if(!m.isEmpty())return m;var v=new I.a(m.positionLineNumber,m.positionColumn),p=v.lineNumber,d=v.column;if(p===1&&d===1)return null;if(C){var c=this._deleteWordLeftWhitespace(O,v);if(c)return c}var u=h._findPreviousWordOnLine(b,O,v);return w===0?u?d=u.start+1:d>1?d=1:(p--,d=O.getLineMaxColumn(p)):(u&&d<=u.end+1&&(u=h._findPreviousWordOnLine(b,O,new I.a(p,u.start+1))),u?d=u.end+1:d>1?d=1:(p--,d=O.getLineMaxColumn(p))),new H.a(p,d,v.lineNumber,v.column)},h._deleteWordPartLeft=function(b,O){if(!O.isEmpty())return O;var m=O.getPosition(),C=h._moveWordPartLeft(b,m);return new H.a(m.lineNumber,m.column,C.lineNumber,C.column)},h._findFirstNonWhitespaceChar=function(b,O){for(var m=b.length,C=O;C<m;C++){var w=b.charAt(C);if(w!==" "&&w!==" ")return C}return m},h._deleteWordRightWhitespace=function(b,O){var m=b.getLineContent(O.lineNumber),C=O.column-1,w=this._findFirstNonWhitespaceChar(m,C);return C+1<w?new H.a(O.lineNumber,O.column,O.lineNumber,w+1):null},h.deleteWordRight=function(b,O,m,C,w){if(!m.isEmpty())return m;var v=new I.a(m.positionLineNumber,m.positionColumn),p=v.lineNumber,d=v.column,c=O.getLineCount(),u=O.getLineMaxColumn(p);if(p===c&&d===u)return null;if(C){var f=this._deleteWordRightWhitespace(O,v);if(f)return f}var E=h._findNextWordOnLine(b,O,v);return w===2?E?d=E.end+1:d<u||p===c?d=u:(p++,E=h._findNextWordOnLine(b,O,new I.a(p,1)),E?d=E.start+1:d=O.getLineMaxColumn(p)):(E&&d>=E.start+1&&(E=h._findNextWordOnLine(b,O,new I.a(p,E.end+1))),E?d=E.start+1:d<u||p===c?d=u:(p++,E=h._findNextWordOnLine(b,O,new I.a(p,1)),E?d=E.start+1:d=O.getLineMaxColumn(p))),new H.a(p,d,v.lineNumber,v.column)},h._deleteWordPartRight=function(b,O){if(!O.isEmpty())return O;var m=O.getPosition(),C=h._moveWordPartRight(b,m);return new H.a(m.lineNumber,m.column,C.lineNumber,C.column)},h.word=function(b,O,m,C,w){var v=Object(J.a)(b.wordSeparators),p=h._findPreviousWordOnLine(v,O,w),d=h._findNextWordOnLine(v,O,w);if(!C){var c,u;return p&&p.wordType===1&&p.start<=w.column-1&&w.column-1<=p.end?(c=p.start+1,u=p.end+1):d&&d.wordType===1&&d.start<=w.column-1&&w.column-1<=d.end?(c=d.start+1,u=d.end+1):(p?c=p.end+1:c=1,d?u=d.start+1:u=O.getLineMaxColumn(w.lineNumber)),new pe.f(new H.a(w.lineNumber,c,w.lineNumber,u),0,new I.a(w.lineNumber,u),0)}var f,E;p&&p.wordType===1&&p.start<w.column-1&&w.column-1<p.end?(f=p.start+1,E=p.end+1):d&&d.wordType===1&&d.start<w.column-1&&w.column-1<d.end?(f=d.start+1,E=d.end+1):(f=w.column,E=w.column);var L=w.lineNumber,R;if(m.selectionStart.containsPosition(w))R=m.selectionStart.endColumn;else if(w.isBeforeOrEqual(m.selectionStart.getStartPosition())){R=f;var P=new I.a(L,R);m.selectionStart.containsPosition(P)&&(R=m.selectionStart.endColumn)}else{R=E;var P=new I.a(L,R);m.selectionStart.containsPosition(P)&&(R=m.selectionStart.startColumn)}return m.move(!0,L,R,0)},h}(),U=function(h){K(b,h);function b(){return h!==null&&h.apply(this,arguments)||this}return b.deleteWordPartLeft=function(O,m,C,w){var v=j([D.deleteWordLeft(O,m,C,w,0),D.deleteWordLeft(O,m,C,w,2),D._deleteWordPartLeft(m,C)]);return v.sort(H.a.compareRangesUsingEnds),v[2]},b.deleteWordPartRight=function(O,m,C,w){var v=j([D.deleteWordRight(O,m,C,w,0),D.deleteWordRight(O,m,C,w,2),D._deleteWordPartRight(m,C)]);return v.sort(H.a.compareRangesUsingStarts),v[0]},b.moveWordPartLeft=function(O,m,C){var w=j([D.moveWordLeft(O,m,C,0),D.moveWordLeft(O,m,C,2),D._moveWordPartLeft(m,C)]);return w.sort(I.a.compare),w[2]},b.moveWordPartRight=function(O,m,C){var w=j([D.moveWordRight(O,m,C,0),D.moveWordRight(O,m,C,2),D._moveWordPartRight(m,C)]);return w.sort(I.a.compare),w[0]},b}(D);function j(h){return h.filter(function(b){return Boolean(b)})}},"1YUG":function(Mt,F,e){"use strict";e.r(F),e.d(F,"CoreEditorCommand",function(){return p}),e.d(F,"EditorScroll_",function(){return d}),e.d(F,"RevealLine_",function(){return c}),e.d(F,"CoreNavigationCommands",function(){return u}),e.d(F,"CoreEditingCommands",function(){return f});var T=e("3/fG"),pe=e("746U"),J=e("sswD"),I=e("Vxe3"),H=e("Ll0s"),K=e("cGHE"),D=e("aokT"),U=function(){function x(){}return x.columnSelect=function(Q,V,W,B,ae,we){for(var Me=Math.abs(ae-W)+1,Pe=W>ae,Be=B>we,Ke=B<we,Fe=[],re=0;re<Me;re++){var ee=W+(Pe?-re:re),ne=H.a.columnFromVisibleColumn2(Q,V,ee,B),q=H.a.columnFromVisibleColumn2(Q,V,ee,we),le=H.a.visibleColumnFromColumn2(Q,V,new K.a(ee,ne)),Z=H.a.visibleColumnFromColumn2(Q,V,new K.a(ee,q));if(Ke){if(le>we)continue;if(Z<B)continue}if(Be){if(Z>B)continue;if(le<we)continue}Fe.push(new H.f(new D.a(ee,ne,ee,ne),0,new K.a(ee,q),0))}if(Fe.length===0)for(var re=0;re<Me;re++){var ee=W+(Pe?-re:re),ve=V.getLineMaxColumn(ee);Fe.push(new H.f(new D.a(ee,ve,ee,ve),0,new K.a(ee,ve),0))}return{viewStates:Fe,reversed:Pe,fromLineNumber:W,fromVisualColumn:B,toLineNumber:ae,toVisualColumn:we}},x.columnSelectLeft=function(Q,V,W){var B=W.toViewVisualColumn;return B>1&&B--,x.columnSelect(Q,V,W.fromViewLineNumber,W.fromViewVisualColumn,W.toViewLineNumber,B)},x.columnSelectRight=function(Q,V,W){for(var B=0,ae=Math.min(W.fromViewLineNumber,W.toViewLineNumber),we=Math.max(W.fromViewLineNumber,W.toViewLineNumber),Me=ae;Me<=we;Me++){var Pe=V.getLineMaxColumn(Me),Be=H.a.visibleColumnFromColumn2(Q,V,new K.a(Me,Pe));B=Math.max(B,Be)}var Ke=W.toViewVisualColumn;return Ke<B&&Ke++,this.columnSelect(Q,V,W.fromViewLineNumber,W.fromViewVisualColumn,W.toViewLineNumber,Ke)},x.columnSelectUp=function(Q,V,W,B){var ae=B?Q.pageSize:1,we=Math.max(1,W.toViewLineNumber-ae);return this.columnSelect(Q,V,W.fromViewLineNumber,W.fromViewVisualColumn,we,W.toViewVisualColumn)},x.columnSelectDown=function(Q,V,W,B){var ae=B?Q.pageSize:1,we=Math.min(V.getLineCount(),W.toViewLineNumber+ae);return this.columnSelect(Q,V,W.fromViewLineNumber,W.fromViewVisualColumn,we,W.toViewVisualColumn)},x}(),j=e("snIX"),h=e("oAeH"),b=e("GR/f"),O=e("iuje"),m=e("wQH0"),C=e("T8No"),w=function(){var x=function(Q,V){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,B){W.__proto__=B}||function(W,B){for(var ae in B)B.hasOwnProperty(ae)&&(W[ae]=B[ae])},x(Q,V)};return function(Q,V){x(Q,V);function W(){this.constructor=Q}Q.prototype=V===null?Object.create(V):(W.prototype=V.prototype,new W)}}(),v=0,p=function(x){w(Q,x);function Q(){return x!==null&&x.apply(this,arguments)||this}return Q.prototype.runEditorCommand=function(V,W,B){var ae=W._getCursors();if(!ae)return;this.runCoreEditorCommand(ae,B||{})},Q}(J.c),d;(function(x){var Q=function(W){if(!pe.i(W))return!1;var B=W;return pe.j(B.to)?!pe.k(B.by)&&!pe.j(B.by)||!pe.k(B.value)&&!pe.h(B.value)?!1:!(!pe.k(B.revealCursor)&&!pe.e(B.revealCursor)):!1};x.description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n * 'to': A mandatory direction value.\n ```\n 'up', 'down'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'page', 'halfPage'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n ",constraint:Q,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},x.RawDirection={Up:"up",Down:"down"},x.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"};function V(W){var B;switch(W.to){case x.RawDirection.Up:B=1;break;case x.RawDirection.Down:B=2;break;default:return null}var ae;switch(W.by){case x.RawUnit.Line:ae=1;break;case x.RawUnit.WrappedLine:ae=2;break;case x.RawUnit.Page:ae=3;break;case x.RawUnit.HalfPage:ae=4;break;default:ae=2}var we=Math.floor(W.value||1),Me=!!W.revealCursor;return{direction:B,unit:ae,value:we,revealCursor:Me,select:!!W.select}}x.parse=V})(d||(d={}));var c;(function(x){var Q=function(V){if(!pe.i(V))return!1;var W=V;return pe.h(W.lineNumber)?!(!pe.k(W.at)&&!pe.j(W.at)):!1};x.description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n * 'lineNumber': A mandatory line number value.\n * 'at': Logical position at which line has to be revealed .\n ```\n 'top', 'center', 'bottom'\n ```\n ",constraint:Q,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},x.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(c||(c={}));var u;(function(x){var Q=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._inSelectionMode=Z.inSelectionMode,ve}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,[h.b.moveTo(Z.context,Z.getPrimaryCursor(),this._inSelectionMode,ve.position,ve.viewPosition)]),Z.reveal(ve.source,!0,0,0)},le}(p);x.MoveTo=Object(J.g)(new Q({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),x.MoveToSelect=Object(J.g)(new Q({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var V=function(q){w(le,q);function le(){return q!==null&&q.apply(this,arguments)||this}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement();var Ne=this._getColumnSelectResult(Z.context,Z.getPrimaryCursor(),Z.getColumnSelectData(),ve);Z.setStates(ve.source,3,Ne.viewStates.map(function(Xe){return H.d.fromViewState(Xe)})),Z.setColumnSelectData({isReal:!0,fromViewLineNumber:Ne.fromLineNumber,fromViewVisualColumn:Ne.fromVisualColumn,toViewLineNumber:Ne.toLineNumber,toViewVisualColumn:Ne.toVisualColumn}),Z.reveal(ve.source,!0,Ne.reversed?1:2,0)},le}(p);x.ColumnSelect=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"columnSelect",precondition:void 0})||this}return le.prototype._getColumnSelectResult=function(Z,ve,Ne,Xe){var de=Z.model.validatePosition(Xe.position),ge=Z.validateViewPosition(new K.a(Xe.viewPosition.lineNumber,Xe.viewPosition.column),de),Ee=Xe.doColumnSelect?Ne.fromViewLineNumber:ge.lineNumber,Te=Xe.doColumnSelect?Ne.fromViewVisualColumn:Xe.mouseColumn-1;return U.columnSelect(Z.config,Z.viewModel,Ee,Te,ge.lineNumber,Xe.mouseColumn-1)},le}(V))),x.CursorColumnSelectLeft=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|1024|512|15,linux:{primary:0}}})||this}return le.prototype._getColumnSelectResult=function(Z,ve,Ne,Xe){return U.columnSelectLeft(Z.config,Z.viewModel,Ne)},le}(V))),x.CursorColumnSelectRight=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|1024|512|17,linux:{primary:0}}})||this}return le.prototype._getColumnSelectResult=function(Z,ve,Ne,Xe){return U.columnSelectRight(Z.config,Z.viewModel,Ne)},le}(V)));var W=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._isPaged=Z.isPaged,ve}return le.prototype._getColumnSelectResult=function(Z,ve,Ne,Xe){return U.columnSelectUp(Z.config,Z.viewModel,Ne,this._isPaged)},le}(V);x.CursorColumnSelectUp=Object(J.g)(new W({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|1024|512|16,linux:{primary:0}}})),x.CursorColumnSelectPageUp=Object(J.g)(new W({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|1024|512|11,linux:{primary:0}}}));var B=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._isPaged=Z.isPaged,ve}return le.prototype._getColumnSelectResult=function(Z,ve,Ne,Xe){return U.columnSelectDown(Z.config,Z.viewModel,Ne,this._isPaged)},le}(V);x.CursorColumnSelectDown=Object(J.g)(new B({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|1024|512|18,linux:{primary:0}}})),x.CursorColumnSelectPageDown=Object(J.g)(new B({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|1024|512|12,linux:{primary:0}}}));var ae=function(q){w(le,q);function le(){return q.call(this,{id:"cursorMove",precondition:void 0,description:h.a.description})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){var Ne=h.a.parse(ve);if(!Ne)return;this._runCursorMove(Z,ve.source,Ne)},le.prototype._runCursorMove=function(Z,ve,Ne){Z.context.model.pushStackElement(),Z.setStates(ve,3,h.b.move(Z.context,Z.getAll(),Ne)),Z.reveal(ve,!0,0,0)},le}(p);x.CursorMoveImpl=ae,x.CursorMove=Object(J.g)(new ae);var we=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._staticArgs=Z.args,ve}return le.prototype.runCoreEditorCommand=function(Z,ve){var Ne=this._staticArgs;this._staticArgs.value===-1&&(Ne={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:Z.context.config.pageSize}),x.CursorMove._runCursorMove(Z,ve.source,Ne)},le}(p);x.CursorLeft=Object(J.g)(new we({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:15,mac:{primary:15,secondary:[256|32]}}})),x.CursorLeftSelect=Object(J.g)(new we({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:1024|15}})),x.CursorRight=Object(J.g)(new we({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:17,mac:{primary:17,secondary:[256|36]}}})),x.CursorRightSelect=Object(J.g)(new we({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:1024|17}})),x.CursorUp=Object(J.g)(new we({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:16,mac:{primary:16,secondary:[256|46]}}})),x.CursorUpSelect=Object(J.g)(new we({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:1024|16,secondary:[2048|1024|16],mac:{primary:1024|16},linux:{primary:1024|16}}})),x.CursorPageUp=Object(J.g)(new we({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:11}})),x.CursorPageUpSelect=Object(J.g)(new we({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:1024|11}})),x.CursorDown=Object(J.g)(new we({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:18,mac:{primary:18,secondary:[256|44]}}})),x.CursorDownSelect=Object(J.g)(new we({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:1024|18,secondary:[2048|1024|18],mac:{primary:1024|18},linux:{primary:1024|18}}})),x.CursorPageDown=Object(J.g)(new we({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:12}})),x.CursorPageDownSelect=Object(J.g)(new we({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:1024|12}})),x.CreateCursor=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"createCursor",precondition:void 0})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){var Ne=Z.context,Xe;ve.wholeLine?Xe=h.b.line(Ne,Z.getPrimaryCursor(),!1,ve.position,ve.viewPosition):Xe=h.b.moveTo(Ne,Z.getPrimaryCursor(),!1,ve.position,ve.viewPosition);var de=Z.getAll();if(de.length>1)for(var ge=Xe.modelState?Xe.modelState.position:null,Ee=Xe.viewState?Xe.viewState.position:null,Te=0,Ce=de.length;Te<Ce;Te++){var fe=de[Te];if(ge&&!fe.modelState.selection.containsPosition(ge))continue;if(Ee&&!fe.viewState.selection.containsPosition(Ee))continue;de.splice(Te,1),Z.context.model.pushStackElement(),Z.setStates(ve.source,3,de);return}de.push(Xe),Z.context.model.pushStackElement(),Z.setStates(ve.source,3,de)},le}(p))),x.LastCursorMoveToSelect=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){var Ne=Z.context,Xe=Z.getLastAddedCursorIndex(),de=Z.getAll(),ge=de.slice(0);ge[Xe]=h.b.moveTo(Ne,de[Xe],!0,ve.position,ve.viewPosition),Z.context.model.pushStackElement(),Z.setStates(ve.source,3,ge)},le}(p)));var Me=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._inSelectionMode=Z.inSelectionMode,ve}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,h.b.moveToBeginningOfLine(Z.context,Z.getAll(),this._inSelectionMode)),Z.reveal(ve.source,!0,0,0)},le}(p);x.CursorHome=Object(J.g)(new Me({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2048|15]}}})),x.CursorHomeSelect=Object(J.g)(new Me({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:1024|14,mac:{primary:1024|14,secondary:[2048|1024|15]}}})),x.CursorLineStart=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|31}}})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,this._exec(Z.context,Z.getAll())),Z.reveal(ve.source,!0,0,0)},le.prototype._exec=function(Z,ve){for(var Ne=[],Xe=0,de=ve.length;Xe<de;Xe++){var ge=ve[Xe],Ee=ge.modelState.position.lineNumber;Ne[Xe]=H.d.fromModelState(ge.modelState.move(!1,Ee,1,0))}return Ne},le}(p)));var Pe=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._inSelectionMode=Z.inSelectionMode,ve}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,h.b.moveToEndOfLine(Z.context,Z.getAll(),this._inSelectionMode)),Z.reveal(ve.source,!0,0,0)},le}(p);x.CursorEnd=Object(J.g)(new Pe({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2048|17]}}})),x.CursorEndSelect=Object(J.g)(new Pe({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:1024|13,mac:{primary:1024|13,secondary:[2048|1024|17]}}})),x.CursorLineEnd=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|35}}})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,this._exec(Z.context,Z.getAll())),Z.reveal(ve.source,!0,0,0)},le.prototype._exec=function(Z,ve){for(var Ne=[],Xe=0,de=ve.length;Xe<de;Xe++){var ge=ve[Xe],Ee=ge.modelState.position.lineNumber,Te=Z.model.getLineMaxColumn(Ee);Ne[Xe]=H.d.fromModelState(ge.modelState.move(!1,Ee,Te,0))}return Ne},le}(p)));var Be=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._inSelectionMode=Z.inSelectionMode,ve}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,h.b.moveToBeginningOfBuffer(Z.context,Z.getAll(),this._inSelectionMode)),Z.reveal(ve.source,!0,0,0)},le}(p);x.CursorTop=Object(J.g)(new Be({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|14,mac:{primary:2048|16}}})),x.CursorTopSelect=Object(J.g)(new Be({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|1024|14,mac:{primary:2048|1024|16}}}));var Ke=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._inSelectionMode=Z.inSelectionMode,ve}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,h.b.moveToEndOfBuffer(Z.context,Z.getAll(),this._inSelectionMode)),Z.reveal(ve.source,!0,0,0)},le}(p);x.CursorBottom=Object(J.g)(new Ke({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|13,mac:{primary:2048|18}}})),x.CursorBottomSelect=Object(J.g)(new Ke({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|1024|13,mac:{primary:2048|1024|18}}}));var Fe=function(q){w(le,q);function le(){return q.call(this,{id:"editorScroll",precondition:void 0,description:d.description})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){var Ne=d.parse(ve);if(!Ne)return;this._runEditorScroll(Z,ve.source,Ne)},le.prototype._runEditorScroll=function(Z,ve,Ne){var Xe=this._computeDesiredScrollTop(Z.context,Ne);if(Ne.revealCursor){var de=Z.context.getCompletelyVisibleViewRangeAtScrollTop(Xe);Z.setStates(ve,3,[h.b.findPositionInViewportIfOutside(Z.context,Z.getPrimaryCursor(),de,Ne.select)])}Z.scrollTo(Xe)},le.prototype._computeDesiredScrollTop=function(Z,ve){if(ve.unit===1){var Ne=Z.getCompletelyVisibleModelRange(),Xe=void 0;ve.direction===1?Xe=Math.max(1,Ne.startLineNumber-ve.value):Xe=Math.min(Z.model.getLineCount(),Ne.startLineNumber+ve.value);var de=Z.convertModelPositionToViewPosition(new K.a(Xe,1));return Z.getVerticalOffsetForViewLine(de.lineNumber)}var ge;ve.unit===3?ge=Z.config.pageSize*ve.value:ve.unit===4?ge=Math.round(Z.config.pageSize/2)*ve.value:ge=ve.value;var Ee=(ve.direction===1?-1:1)*ge;return Z.getCurrentScrollTop()+Ee*Z.config.lineHeight},le}(p);x.EditorScrollImpl=Fe,x.EditorScroll=Object(J.g)(new Fe),x.ScrollLineUp=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|16,mac:{primary:256|11}}})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){x.EditorScroll._runEditorScroll(Z,ve.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},le}(p))),x.ScrollPageUp=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|11,win:{primary:512|11},linux:{primary:512|11}}})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){x.EditorScroll._runEditorScroll(Z,ve.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},le}(p))),x.ScrollLineDown=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|18,mac:{primary:256|12}}})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){x.EditorScroll._runEditorScroll(Z,ve.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},le}(p))),x.ScrollPageDown=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|12,win:{primary:512|12},linux:{primary:512|12}}})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){x.EditorScroll._runEditorScroll(Z,ve.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},le}(p)));var re=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._inSelectionMode=Z.inSelectionMode,ve}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,[h.b.word(Z.context,Z.getPrimaryCursor(),this._inSelectionMode,ve.position)]),Z.reveal(ve.source,!0,0,0)},le}(p);x.WordSelect=Object(J.g)(new re({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),x.WordSelectDrag=Object(J.g)(new re({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),x.LastCursorWordSelect=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){var Ne=Z.context,Xe=Z.getLastAddedCursorIndex(),de=Z.getAll(),ge=de.slice(0),Ee=de[Xe];ge[Xe]=h.b.word(Ne,Ee,Ee.modelState.hasSelection(),ve.position),Ne.model.pushStackElement(),Z.setStates(ve.source,3,ge)},le}(p)));var ee=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._inSelectionMode=Z.inSelectionMode,ve}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,[h.b.line(Z.context,Z.getPrimaryCursor(),this._inSelectionMode,ve.position,ve.viewPosition)]),Z.reveal(ve.source,!1,0,0)},le}(p);x.LineSelect=Object(J.g)(new ee({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),x.LineSelectDrag=Object(J.g)(new ee({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var ne=function(q){w(le,q);function le(Z){var ve=q.call(this,Z)||this;return ve._inSelectionMode=Z.inSelectionMode,ve}return le.prototype.runCoreEditorCommand=function(Z,ve){var Ne=Z.getLastAddedCursorIndex(),Xe=Z.getAll(),de=Xe.slice(0);de[Ne]=h.b.line(Z.context,Xe[Ne],this._inSelectionMode,ve.position,ve.viewPosition),Z.context.model.pushStackElement(),Z.setStates(ve.source,3,de)},le}(p);x.LastCursorLineSelect=Object(J.g)(new ne({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),x.LastCursorLineSelectDrag=Object(J.g)(new ne({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),x.ExpandLineSelection=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|42}})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,h.b.expandLineSelection(Z.context,Z.getAll())),Z.reveal(ve.source,!0,0,0)},le}(p))),x.CancelSelection=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"cancelSelection",precondition:m.a.hasNonEmptySelection,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,[h.b.cancelSelection(Z.context,Z.getPrimaryCursor())]),Z.reveal(ve.source,!0,0,0)},le}(p))),x.RemoveSecondaryCursors=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"removeSecondaryCursors",precondition:m.a.hasMultipleSelections,kbOpts:{weight:v+1,kbExpr:m.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,[Z.getPrimaryCursor()]),Z.reveal(ve.source,!0,0,0)},le}(p))),x.RevealLine=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"revealLine",precondition:void 0,description:c.description})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){var Ne=ve,Xe=(Ne.lineNumber||0)+1;Xe<1&&(Xe=1);var de=Z.context.model.getLineCount();Xe>de&&(Xe=de);var ge=new D.a(Xe,1,Xe,Z.context.model.getLineMaxColumn(Xe)),Ee=0;if(Ne.at)switch(Ne.at){case c.RawAtArgument.Top:Ee=3;break;case c.RawAtArgument.Center:Ee=1;break;case c.RawAtArgument.Bottom:Ee=4;break;default:break}var Te=Z.context.convertModelRangeToViewRange(ge);Z.revealRange(ve.source,!1,Te,Ee,0)},le}(p))),x.SelectAll=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"selectAll",precondition:void 0})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,[h.b.selectAll(Z.context,Z.getPrimaryCursor())])},le}(p))),x.SetSelection=Object(J.g)(new(function(q){w(le,q);function le(){return q.call(this,{id:"setSelection",precondition:void 0})||this}return le.prototype.runCoreEditorCommand=function(Z,ve){Z.context.model.pushStackElement(),Z.setStates(ve.source,3,[H.d.fromModelSelection(ve.selection)])},le}(p)))})(u||(u={}));var f;(function(x){var Q=function(V){w(W,V);function W(){return V!==null&&V.apply(this,arguments)||this}return W.prototype.runEditorCommand=function(B,ae,we){var Me=ae._getCursors();if(!Me)return;this.runCoreEditingCommand(ae,Me,we||{})},W}(J.c);x.CoreEditingCommand=Q,x.LineBreakInsert=Object(J.g)(new(function(V){w(W,V);function W(){return V.call(this,{id:"lineBreakInsert",precondition:m.a.writable,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|45}}})||this}return W.prototype.runCoreEditingCommand=function(B,ae,we){B.pushUndoStop(),B.executeCommands(this.id,b.a.lineBreakInsert(ae.context.config,ae.context.model,ae.getAll().map(function(Me){return Me.modelState.selection})))},W}(Q))),x.Outdent=Object(J.g)(new(function(V){w(W,V);function W(){return V.call(this,{id:"outdent",precondition:m.a.writable,kbOpts:{weight:v,kbExpr:C.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:1024|2}})||this}return W.prototype.runCoreEditingCommand=function(B,ae,we){B.pushUndoStop(),B.executeCommands(this.id,b.a.outdent(ae.context.config,ae.context.model,ae.getAll().map(function(Me){return Me.modelState.selection}))),B.pushUndoStop()},W}(Q))),x.Tab=Object(J.g)(new(function(V){w(W,V);function W(){return V.call(this,{id:"tab",precondition:m.a.writable,kbOpts:{weight:v,kbExpr:C.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:2}})||this}return W.prototype.runCoreEditingCommand=function(B,ae,we){B.pushUndoStop(),B.executeCommands(this.id,b.a.tab(ae.context.config,ae.context.model,ae.getAll().map(function(Me){return Me.modelState.selection}))),B.pushUndoStop()},W}(Q))),x.DeleteLeft=Object(J.g)(new(function(V){w(W,V);function W(){return V.call(this,{id:"deleteLeft",precondition:m.a.writable,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:1,secondary:[1024|1],mac:{primary:1,secondary:[1024|1,256|38,256|1]}}})||this}return W.prototype.runCoreEditingCommand=function(B,ae,we){var Me=j.a.deleteLeft(ae.getPrevEditOperationType(),ae.context.config,ae.context.model,ae.getAll().map(function(Ke){return Ke.modelState.selection})),Pe=Me[0],Be=Me[1];Pe&&B.pushUndoStop(),B.executeCommands(this.id,Be),ae.setPrevEditOperationType(2)},W}(Q))),x.DeleteRight=Object(J.g)(new(function(V){w(W,V);function W(){return V.call(this,{id:"deleteRight",precondition:m.a.writable,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:20,mac:{primary:20,secondary:[256|34,256|20]}}})||this}return W.prototype.runCoreEditingCommand=function(B,ae,we){var Me=j.a.deleteRight(ae.getPrevEditOperationType(),ae.context.config,ae.context.model,ae.getAll().map(function(Ke){return Ke.modelState.selection})),Pe=Me[0],Be=Me[1];Pe&&B.pushUndoStop(),B.executeCommands(this.id,Be),ae.setPrevEditOperationType(3)},W}(Q)))})(f||(f={}));function E(x){x.register()}var L=function(x){w(Q,x);function Q(V){var W=x.call(this,V)||this;return W._editorHandler=V.editorHandler,W._inputHandler=V.inputHandler,W}return Q.prototype.runCommand=function(V,W){var B=V.get(I.a).getFocusedCodeEditor();if(B&&B.hasTextFocus())return this._runEditorHandler(V,B,W);var ae=document.activeElement;if(ae&&["input","textarea"].indexOf(ae.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var we=V.get(I.a).getActiveCodeEditor();if(we)return we.focus(),this._runEditorHandler(V,we,W)},Q.prototype._runEditorHandler=function(V,W,B){var ae=this._editorHandler;typeof ae=="string"?W.trigger("keyboard",ae,B):(B=B||{},B.source="keyboard",ae.runEditorCommand(V,W,B))},Q}(J.a),R=function(x){w(Q,x);function Q(V,W,B){var ae=x.call(this,{id:V,precondition:void 0,description:B})||this;return ae._handlerId=W,ae}return Q.prototype.runCommand=function(V,W){var B=V.get(I.a).getFocusedCodeEditor();if(!B)return;B.trigger("keyboard",this._handlerId,W)},Q}(J.a);E(new L({editorHandler:u.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:m.a.textInputFocus,kbOpts:{weight:v,kbExpr:null,primary:2048|31},menuOpts:{menuId:25,group:"1_basic",title:T.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),E(new L({editorHandler:O.b.Undo,inputHandler:"undo",id:O.b.Undo,precondition:m.a.writable,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|56},menuOpts:{menuId:17,group:"1_do",title:T.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),E(new R("default:"+O.b.Undo,O.b.Undo)),E(new L({editorHandler:O.b.Redo,inputHandler:"redo",id:O.b.Redo,precondition:m.a.writable,kbOpts:{weight:v,kbExpr:m.a.textInputFocus,primary:2048|55,secondary:[2048|1024|56],mac:{primary:2048|1024|56}},menuOpts:{menuId:17,group:"1_do",title:T.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),E(new R("default:"+O.b.Redo,O.b.Redo));function P(x,Q){E(new R("default:"+x,x)),E(new R(x,x,Q))}P(O.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),P(O.b.ReplacePreviousChar),P(O.b.CompositionStart),P(O.b.CompositionEnd),P(O.b.Paste),P(O.b.Cut)},"1lwE":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return e.e(339).then(e.bind(null,"cOMg"))}})},"23p7":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return e.e(292).then(e.bind(null,"aA7r"))}})},"2ESN":function(Mt,F,e){"use strict";e.r(F);var T=e("YHy6"),pe=e("3/fG"),J=e("X+cX"),I=e("JQT/"),H=e("/cxE"),K=e("eLzo"),D=e("pmY6"),U=e("MNsG"),j=e("sswD"),h=e("tX9W"),b=e("twdY"),O=e("aBYw"),m=e("bY76"),C=e("aokT"),w=e("G2kB"),v=e("nnTU"),p=e("6OMU"),d=function(){var ee=function(ne,q){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,Z){le.__proto__=Z}||function(le,Z){for(var ve in Z)Z.hasOwnProperty(ve)&&(le[ve]=Z[ve])},ee(ne,q)};return function(ne,q){ee(ne,q);function le(){this.constructor=ne}ne.prototype=q===null?Object.create(q):(le.prototype=q.prototype,new le)}}(),c=function(ee,ne,q,le){function Z(ve){return ve instanceof q?ve:new q(function(Ne){Ne(ve)})}return new(q||(q=Promise))(function(ve,Ne){function Xe(Ee){try{ge(le.next(Ee))}catch(Te){Ne(Te)}}function de(Ee){try{ge(le.throw(Ee))}catch(Te){Ne(Te)}}function ge(Ee){Ee.done?ve(Ee.value):Z(Ee.value).then(Xe,de)}ge((le=le.apply(ee,ne||[])).next())})},u=function(ee,ne){var q={label:0,sent:function(){if(ve[0]&1)throw ve[1];return ve[1]},trys:[],ops:[]},le,Z,ve,Ne;return Ne={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(Ne[Symbol.iterator]=function(){return this}),Ne;function Xe(ge){return function(Ee){return de([ge,Ee])}}function de(ge){if(le)throw new TypeError("Generator is already executing.");for(;q;)try{if(le=1,Z&&(ve=ge[0]&2?Z.return:ge[0]?Z.throw||((ve=Z.return)&&ve.call(Z),0):Z.next)&&!(ve=ve.call(Z,ge[1])).done)return ve;(Z=0,ve)&&(ge=[ge[0]&2,ve.value]);switch(ge[0]){case 0:case 1:ve=ge;break;case 4:return q.label++,{value:ge[1],done:!1};case 5:q.label++,Z=ge[1],ge=[0];continue;case 7:ge=q.ops.pop(),q.trys.pop();continue;default:if(!(ve=q.trys,ve=ve.length>0&&ve[ve.length-1])&&(ge[0]===6||ge[0]===2)){q=0;continue}if(ge[0]===3&&(!ve||ge[1]>ve[0]&&ge[1]<ve[3])){q.label=ge[1];break}if(ge[0]===6&&q.label<ve[1]){q.label=ve[1],ve=ge;break}if(ve&&q.label<ve[2]){q.label=ve[2],q.ops.push(ge);break}ve[2]&&q.ops.pop(),q.trys.pop();continue}ge=ne.call(ee,q)}catch(Ee){ge=[6,Ee],Z=0}finally{le=ve=0}if(ge[0]&5)throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}},f=function(){function ee(ne,q){this._link=ne,this._provider=q}return ee.prototype.toJSON=function(){return{range:this.range,url:this.url,tooltip:this.tooltip}},Object.defineProperty(ee.prototype,"range",{get:function(){return this._link.range},enumerable:!0,configurable:!0}),Object.defineProperty(ee.prototype,"url",{get:function(){return this._link.url},enumerable:!0,configurable:!0}),Object.defineProperty(ee.prototype,"tooltip",{get:function(){return this._link.tooltip},enumerable:!0,configurable:!0}),ee.prototype.resolve=function(ne){return c(this,void 0,void 0,function(){var q=this;return u(this,function(le){return this._link.url?[2,this._link.url]:typeof this._provider.resolveLink=="function"?[2,Promise.resolve(this._provider.resolveLink(this._link,ne)).then(function(Z){return q._link=Z||q._link,q._link.url?q.resolve(ne):Promise.reject(new Error("missing"))})]:[2,Promise.reject(new Error("missing"))]})})},ee}(),E=function(ee){d(ne,ee);function ne(q){for(var le=ee.call(this)||this,Z=[],ve=function(Ce,fe){var $=Ce.links.map(function(S){return new f(S,fe)});Z=ne._union(Z,$),Object(D.g)(fe)&&Ne._register(fe)},Ne=this,Xe=0,de=q;Xe<de.length;Xe++){var ge=de[Xe],Ee=ge[0],Te=ge[1];ve(Ee,Te)}return le.links=Z,le}return ne._union=function(q,le){var Z=[],ve,Ne,Xe,de;for(ve=0,Xe=0,Ne=q.length,de=le.length;ve<Ne&&Xe<de;){var ge=q[ve],Ee=le[Xe];if(C.a.areIntersectingOrTouching(ge.range,Ee.range)){ve++;continue}var Te=C.a.compareRangesUsingStarts(ge.range,Ee.range);Te<0?(Z.push(ge),ve++):(Z.push(Ee),Xe++)}for(;ve<Ne;ve++)Z.push(q[ve]);for(;Xe<de;Xe++)Z.push(le[Xe]);return Z},ne}(D.a);function L(ee,ne){var q=[],le=b.s.ordered(ee).reverse().map(function(Z,ve){return Promise.resolve(Z.provideLinks(ee,ne)).then(function(Ne){Ne&&(q[ve]=[Ne,Z])},H.f)});return Promise.all(le).then(function(){var Z=new E(Object(p.d)(q));return ne.isCancellationRequested?(Z.dispose(),new E([])):Z})}v.a.registerCommand("_executeLinkProvider",function(ee){for(var ne=[],q=1;q<arguments.length;q++)ne[q-1]=arguments[q];return c(void 0,void 0,void 0,function(){var le,Z,ve,Ne;return u(this,function(Xe){switch(Xe.label){case 0:return le=ne[0],le instanceof m.a?(Z=ee.get(w.a).getModel(le),Z?[4,L(Z,I.a.None)]:[2,[]]):[2,[]];case 1:return ve=Xe.sent(),ve?(Ne=ve.links.slice(0),ve.dispose(),[2,Ne]):[2,[]]}})})});var R=e("sM1p"),P=e("W9cx"),x=e("MD5Z"),Q=e("t9D7"),V=function(){var ee=function(ne,q){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,Z){le.__proto__=Z}||function(le,Z){for(var ve in Z)Z.hasOwnProperty(ve)&&(le[ve]=Z[ve])},ee(ne,q)};return function(ne,q){ee(ne,q);function le(){this.constructor=ne}ne.prototype=q===null?Object.create(q):(le.prototype=q.prototype,new le)}}(),W=function(){return W=Object.assign||function(ee){for(var ne,q=1,le=arguments.length;q<le;q++){ne=arguments[q];for(var Z in ne)Object.prototype.hasOwnProperty.call(ne,Z)&&(ee[Z]=ne[Z])}return ee},W.apply(this,arguments)},B=function(ee,ne,q,le){var Z=arguments.length,ve=Z<3?ne:le===null?le=Object.getOwnPropertyDescriptor(ne,q):le,Ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(ee,ne,q,le);else for(var Xe=ee.length-1;Xe>=0;Xe--)(Ne=ee[Xe])&&(ve=(Z<3?Ne(ve):Z>3?Ne(ne,q,ve):Ne(ne,q))||ve);return Z>3&&ve&&Object.defineProperty(ne,q,ve),ve},ae=function(ee,ne){return function(q,le){ne(q,le,ee)}},we=function(ee,ne,q,le){function Z(ve){return ve instanceof q?ve:new q(function(Ne){Ne(ve)})}return new(q||(q=Promise))(function(ve,Ne){function Xe(Ee){try{ge(le.next(Ee))}catch(Te){Ne(Te)}}function de(Ee){try{ge(le.throw(Ee))}catch(Te){Ne(Te)}}function ge(Ee){Ee.done?ve(Ee.value):Z(Ee.value).then(Xe,de)}ge((le=le.apply(ee,ne||[])).next())})},Me=function(ee,ne){var q={label:0,sent:function(){if(ve[0]&1)throw ve[1];return ve[1]},trys:[],ops:[]},le,Z,ve,Ne;return Ne={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(Ne[Symbol.iterator]=function(){return this}),Ne;function Xe(ge){return function(Ee){return de([ge,Ee])}}function de(ge){if(le)throw new TypeError("Generator is already executing.");for(;q;)try{if(le=1,Z&&(ve=ge[0]&2?Z.return:ge[0]?Z.throw||((ve=Z.return)&&ve.call(Z),0):Z.next)&&!(ve=ve.call(Z,ge[1])).done)return ve;(Z=0,ve)&&(ge=[ge[0]&2,ve.value]);switch(ge[0]){case 0:case 1:ve=ge;break;case 4:return q.label++,{value:ge[1],done:!1};case 5:q.label++,Z=ge[1],ge=[0];continue;case 7:ge=q.ops.pop(),q.trys.pop();continue;default:if(!(ve=q.trys,ve=ve.length>0&&ve[ve.length-1])&&(ge[0]===6||ge[0]===2)){q=0;continue}if(ge[0]===3&&(!ve||ge[1]>ve[0]&&ge[1]<ve[3])){q.label=ge[1];break}if(ge[0]===6&&q.label<ve[1]){q.label=ve[1],ve=ge;break}if(ve&&q.label<ve[2]){q.label=ve[2],q.ops.push(ge);break}ve[2]&&q.ops.pop(),q.trys.pop();continue}ge=ne.call(ee,q)}catch(Ee){ge=[6,Ee],Z=0}finally{le=ve=0}if(ge[0]&5)throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}};function Pe(ee,ne){var q=ee.url&&/^command:/i.test(ee.url.toString()),le=ee.tooltip?ee.tooltip:q?pe.a("links.navigate.executeCmd","Execute command"):pe.a("links.navigate.follow","Follow link"),Z=ne?U.e?pe.a("links.navigate.kb.meta.mac","cmd + click"):pe.a("links.navigate.kb.meta","ctrl + click"):U.e?pe.a("links.navigate.kb.alt.mac","option + click"):pe.a("links.navigate.kb.alt","alt + click");if(ee.url){var ve=new K.a("",!0).appendMarkdown("["+le+"]("+ee.url.toString()+") ("+Z+")");return ve}else return new K.a().appendText(le+" ("+Z+")")}var Be={general:h.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:h.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},Ke=function(){function ee(ne,q){this.link=ne,this.decorationId=q}return ee.decoration=function(ne,q){return{range:ne.range,options:ee._getOptions(ne,q,!1)}},ee._getOptions=function(ne,q,le){var Z=W({},le?Be.active:Be.general);return Z.hoverMessage=Pe(ne,q),Z},ee.prototype.activate=function(ne,q){ne.changeDecorationOptions(this.decorationId,ee._getOptions(this.link,q,!0))},ee.prototype.deactivate=function(ne,q){ne.changeDecorationOptions(this.decorationId,ee._getOptions(this.link,q,!1))},ee}(),Fe=function(){function ee(ne,q,le){var Z=this;this.listenersToRemove=new D.b,this.editor=ne,this.openerService=q,this.notificationService=le;var ve=new O.a(ne);this.listenersToRemove.add(ve),this.listenersToRemove.add(ve.onMouseMoveOrRelevantKeyDown(function(Ne){var Xe=Ne[0],de=Ne[1];Z._onEditorMouseMove(Xe,de)})),this.listenersToRemove.add(ve.onExecute(function(Ne){Z.onEditorMouseUp(Ne)})),this.listenersToRemove.add(ve.onCancel(function(Ne){Z.cleanUpActiveLinkDecoration()})),this.enabled=ne.getOption(52),this.listenersToRemove.add(ne.onDidChangeConfiguration(function(Ne){var Xe=ne.getOption(52);if(Z.enabled===Xe)return;Z.enabled=Xe,Z.updateDecorations([]),Z.stop(),Z.beginCompute()})),this.listenersToRemove.add(ne.onDidChangeModelContent(function(Ne){return Z.onChange()})),this.listenersToRemove.add(ne.onDidChangeModel(function(Ne){return Z.onModelChanged()})),this.listenersToRemove.add(ne.onDidChangeModelLanguage(function(Ne){return Z.onModelModeChanged()})),this.listenersToRemove.add(b.s.onDidChange(function(Ne){return Z.onModelModeChanged()})),this.timeout=new J.e,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}return ee.get=function(ne){return ne.getContribution(ee.ID)},ee.prototype.onModelChanged=function(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()},ee.prototype.onModelModeChanged=function(){this.stop(),this.beginCompute()},ee.prototype.onChange=function(){var ne=this;this.timeout.setIfNotSet(function(){return ne.beginCompute()},ee.RECOMPUTE_TIME)},ee.prototype.beginCompute=function(){return we(this,void 0,void 0,function(){var ne,q,le;return Me(this,function(Z){switch(Z.label){case 0:if(!this.editor.hasModel()||!this.enabled)return[2];if(ne=this.editor.getModel(),!b.s.has(ne))return[2];this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=J.f(function(ve){return L(ne,ve)}),Z.label=1;case 1:return Z.trys.push([1,3,4,5]),q=this,[4,this.computePromise];case 2:return q.activeLinksList=Z.sent(),this.updateDecorations(this.activeLinksList.links),[3,5];case 3:return le=Z.sent(),Object(H.e)(le),[3,5];case 4:return this.computePromise=null,[7];case 5:return[2]}})})},ee.prototype.updateDecorations=function(ne){for(var q=this.editor.getOption(59)==="altKey",le=[],Z=Object.keys(this.currentOccurrences),ve=0,Ne=Z.length;ve<Ne;ve++){var Xe=Z[ve],de=this.currentOccurrences[Xe];le.push(de.decorationId)}var ge=[];if(ne)for(var Ee=0,Te=ne;Ee<Te.length;Ee++){var Ce=Te[Ee];ge.push(Ke.decoration(Ce,q))}var fe=this.editor.deltaDecorations(le,ge);this.currentOccurrences={},this.activeLinkDecorationId=null;for(var ve=0,Ne=fe.length;ve<Ne;ve++){var de=new Ke(ne[ve],fe[ve]);this.currentOccurrences[de.decorationId]=de}},ee.prototype._onEditorMouseMove=function(ne,q){var le=this,Z=this.editor.getOption(59)==="altKey";if(this.isEnabled(ne,q)){this.cleanUpActiveLinkDecoration();var ve=this.getLinkOccurrence(ne.target.position);ve&&this.editor.changeDecorations(function(Ne){ve.activate(Ne,Z),le.activeLinkDecorationId=ve.decorationId})}else this.cleanUpActiveLinkDecoration()},ee.prototype.cleanUpActiveLinkDecoration=function(){var ne=this.editor.getOption(59)==="altKey";if(this.activeLinkDecorationId){var q=this.currentOccurrences[this.activeLinkDecorationId];q&&this.editor.changeDecorations(function(le){q.deactivate(le,ne)}),this.activeLinkDecorationId=null}},ee.prototype.onEditorMouseUp=function(ne){if(!this.isEnabled(ne))return;var q=this.getLinkOccurrence(ne.target.position);if(!q)return;this.openLinkOccurrence(q,ne.hasSideBySideModifier,!0)},ee.prototype.openLinkOccurrence=function(ne,q,le){var Z=this;if(le===void 0&&(le=!1),!this.openerService)return;var ve=ne.link;ve.resolve(I.a.None).then(function(Ne){return Z.openerService.open(Ne,{openToSide:q,fromUserGesture:le})},function(Ne){var Xe=Ne instanceof Error?Ne.message:Ne;Xe==="invalid"?Z.notificationService.warn(pe.a("invalid.url","Failed to open this link because it is not well-formed: {0}",ve.url.toString())):Xe==="missing"?Z.notificationService.warn(pe.a("missing.url","Failed to open this link because its target is missing.")):Object(H.e)(Ne)})},ee.prototype.getLinkOccurrence=function(ne){if(!this.editor.hasModel()||!ne)return null;for(var q=this.editor.getModel().getDecorationsInRange({startLineNumber:ne.lineNumber,startColumn:ne.column,endLineNumber:ne.lineNumber,endColumn:ne.column},0,!0),le=0,Z=q;le<Z.length;le++){var ve=Z[le],Ne=this.currentOccurrences[ve.id];if(Ne)return Ne}return null},ee.prototype.isEnabled=function(ne,q){return Boolean(ne.target.type===6&&(ne.hasTriggerModifier||q&&q.keyCodeIsTriggerKey))},ee.prototype.stop=function(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)},ee.prototype.dispose=function(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()},ee.ID="editor.linkDetector",ee.RECOMPUTE_TIME=1e3,ee=B([ae(1,P.a),ae(2,R.a)],ee),ee}(),re=function(ee){V(ne,ee);function ne(){return ee.call(this,{id:"editor.action.openLink",label:pe.a("label","Open Link"),alias:"Open Link",precondition:void 0})||this}return ne.prototype.run=function(q,le){var Z=Fe.get(le);if(!Z)return;if(!le.hasModel())return;for(var ve=le.getSelections(),Ne=0,Xe=ve;Ne<Xe.length;Ne++){var de=Xe[Ne],ge=Z.getLinkOccurrence(de.getEndPosition());ge&&Z.openLinkOccurrence(ge,!1)}},ne}(j.b);Object(j.h)(Fe.ID,Fe),Object(j.f)(re),Object(Q.e)(function(ee,ne){var q=ee.getColor(x.n);q&&ne.addRule(".monaco-editor .detected-link-active { color: "+q+" !important; }")})},"2MPD":function(Mt,F,e){},"2Tsy":function(Mt,F,e){},"2V9f":function(Mt,F,e){},"2gzu":function(Mt,F,e){"use strict";e.d(F,"b",function(){return d}),e.d(F,"a",function(){return c});var T=e("CHaL"),pe=e.n(T),J=e("3/fG"),I=e("N0LK"),H=e("8HAY"),K=e("WqXY"),D=e("EffR"),U=e("uDWl"),j=e("X+cX"),h=e("pmY6"),b=e("GJhM"),O=e("MNsG"),m=function(){var R=function(P,x){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,V){Q.__proto__=V}||function(Q,V){for(var W in V)V.hasOwnProperty(W)&&(Q[W]=V[W])},R(P,x)};return function(P,x){R(P,x);function Q(){this.constructor=P}P.prototype=x===null?Object.create(x):(Q.prototype=x.prototype,new Q)}}(),C=function(){for(var R=0,P=0,x=arguments.length;P<x;P++)R+=arguments[P].length;for(var Q=Array(R),V=0,P=0;P<x;P++)for(var W=arguments[P],B=0,ae=W.length;B<ae;B++,V++)Q[V]=W[B];return Q},w=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,v=/(&amp;)?(&amp;)([^\s&])/g,p;(function(R){R[R.Right=0]="Right",R[R.Left=1]="Left"})(p||(p={}));var d=function(R){m(P,R);function P(x,Q,V){var W=R.call(this,V||"submenu",x,"",!0)||this;return W.entries=Q,W}return P}(H.a),c=function(R){m(P,R);function P(x,Q,V){V===void 0&&(V={});var W=this;Object(D.f)(x,"monaco-menu-container"),x.setAttribute("role","presentation");var B=document.createElement("div");Object(D.f)(B,"monaco-menu"),B.setAttribute("role","presentation"),W=R.call(this,B,{orientation:2,actionViewItemProvider:function(Me){return W.doGetActionViewItem(Me,V,ae)},context:V.context,actionRunner:V.actionRunner,ariaLabel:V.ariaLabel,triggerKeys:{keys:C([3],O.e?[10]:[]),keyDown:!0}})||this,W.menuElement=B,W.actionsList.setAttribute("role","menu"),W.actionsList.tabIndex=0,W.menuDisposables=W._register(new h.b),Object(D.j)(B,D.d.KEY_DOWN,function(Me){var Pe=new U.a(Me);Pe.equals(2)&&Me.preventDefault()}),V.enableMnemonics&&W.menuDisposables.add(Object(D.j)(B,D.d.KEY_DOWN,function(Me){var Pe=Me.key.toLocaleLowerCase();if(W.mnemonics.has(Pe)){D.c.stop(Me,!0);var Be=W.mnemonics.get(Pe);if(Be.length===1&&(Be[0]instanceof f&&Be[0].container&&W.focusItemByElement(Be[0].container),Be[0].onClick(Me)),Be.length>1){var Ke=Be.shift();Ke&&Ke.container&&(W.focusItemByElement(Ke.container),Be.push(Ke)),W.mnemonics.set(Pe,Be)}}})),O.d&&W._register(Object(D.j)(B,D.d.KEY_DOWN,function(Me){var Pe=new U.a(Me);Pe.equals(14)||Pe.equals(11)?(W.focusedItem=W.viewItems.length-1,W.focusNext(),D.c.stop(Me,!0)):(Pe.equals(13)||Pe.equals(12))&&(W.focusedItem=0,W.focusPrevious(),D.c.stop(Me,!0))})),W._register(Object(D.j)(W.domNode,D.d.MOUSE_OUT,function(Me){var Pe=Me.relatedTarget;Object(D.K)(Pe,W.domNode)||(W.focusedItem=void 0,W.updateFocus(),Me.stopPropagation())})),W._register(Object(D.j)(W.actionsList,D.d.MOUSE_OVER,function(Me){var Pe=Me.target;if(!Pe||!Object(D.K)(Pe,W.actionsList)||Pe===W.actionsList)return;for(;Pe.parentElement!==W.actionsList&&Pe.parentElement!==null;)Pe=Pe.parentElement;if(Object(D.I)(Pe,"action-item")){var Be=W.focusedItem;W.setFocusedItem(Pe),Be!==W.focusedItem&&W.updateFocus()}}));var ae={parent:W};W.mnemonics=new Map,W.scrollableElement=W._register(new b.a(B,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var we=W.scrollableElement.getDomNode();return we.style.position="",W._register(Object(D.j)(we,D.d.MOUSE_UP,function(Me){Me.preventDefault()})),B.style.maxHeight=Math.max(10,window.innerHeight-x.getBoundingClientRect().top-30)+"px",W.push(Q,{icon:!0,label:!0,isMenu:!0}),x.appendChild(W.scrollableElement.getDomNode()),W.scrollableElement.scanDomNode(),W.viewItems.filter(function(Me){return!(Me instanceof E)}).forEach(function(Me,Pe,Be){Me.updatePositionInSet(Pe+1,Be.length)}),W}return P.prototype.style=function(x){var Q=this.getContainer(),V=x.foregroundColor?""+x.foregroundColor:"",W=x.backgroundColor?""+x.backgroundColor:"",B=x.borderColor?"1px solid "+x.borderColor:"",ae=x.shadowColor?"0 2px 4px "+x.shadowColor:"";Q.style.border=B,this.domNode.style.color=V,this.domNode.style.backgroundColor=W,Q.style.boxShadow=ae,this.viewItems&&this.viewItems.forEach(function(we){(we instanceof u||we instanceof E)&&we.style(x)})},P.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(P.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),P.prototype.focusItemByElement=function(x){var Q=this.focusedItem;this.setFocusedItem(x),Q!==this.focusedItem&&this.updateFocus()},P.prototype.setFocusedItem=function(x){for(var Q=0;Q<this.actionsList.children.length;Q++){var V=this.actionsList.children[Q];if(x===V){this.focusedItem=Q;break}}},P.prototype.updateFocus=function(x){R.prototype.updateFocus.call(this,x,!0),typeof this.focusedItem!="undefined"&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},P.prototype.doGetActionViewItem=function(x,Q,V){if(x instanceof K.d)return new E(Q.context,x,{icon:!0});if(x instanceof d){var W=new f(x,x.entries,V,Q);if(Q.enableMnemonics){var B=W.getMnemonic();if(B&&W.isEnabled()){var ae=[];this.mnemonics.has(B)&&(ae=this.mnemonics.get(B)),ae.push(W),this.mnemonics.set(B,ae)}}return W}else{var we={enableMnemonics:Q.enableMnemonics};if(Q.getKeyBinding){var Me=Q.getKeyBinding(x);if(Me){var Pe=Me.getLabel();Pe&&(we.keybinding=Pe)}}var W=new u(Q.context,x,we);if(Q.enableMnemonics){var B=W.getMnemonic();if(B&&W.isEnabled()){var ae=[];this.mnemonics.has(B)&&(ae=this.mnemonics.get(B)),ae.push(W),this.mnemonics.set(B,ae)}}return W}},P}(K.a),u=function(R){m(P,R);function P(x,Q,V){V===void 0&&(V={});var W=this;if(V.isMenu=!0,W=R.call(this,Q,Q,V)||this,W.options=V,W.options.icon=V.icon!==void 0?V.icon:!1,W.options.label=V.label!==void 0?V.label:!0,W.cssClass="",W.options.label&&V.enableMnemonics){var B=W.getAction().label;if(B){var ae=w.exec(B);ae&&(W.mnemonic=(ae[1]?ae[1]:ae[3]).toLocaleLowerCase())}}return W.runOnceToEnableMouseUp=new j.d(function(){if(!W.element)return;W._register(Object(D.j)(W.element,D.d.MOUSE_UP,function(we){if(we.defaultPrevented)return;D.c.stop(we,!0),W.onClick(we)}))},100),W._register(W.runOnceToEnableMouseUp),W}return P.prototype.render=function(x){if(R.prototype.render.call(this,x),!this.element)return;this.container=x,this.item=Object(D.q)(this.element,Object(D.a)("a.action-menu-item")),this._action.id===K.d.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(D.q)(this.item,Object(D.a)("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(D.q)(this.item,Object(D.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(D.q)(this.item,Object(D.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},P.prototype.blur=function(){R.prototype.blur.call(this),this.applyStyle()},P.prototype.focus=function(){R.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},P.prototype.updatePositionInSet=function(x,Q){this.item&&(this.item.setAttribute("aria-posinset",""+x),this.item.setAttribute("aria-setsize",""+Q))},P.prototype.updateLabel=function(){if(this.options.label){var x=this.getAction().label;if(x){var Q=L(x);this.options.enableMnemonics||(x=Q),this.label&&this.label.setAttribute("aria-label",Q.replace(/&&/g,"&"));var V=w.exec(x);if(V){x=I.o(x),v.lastIndex=0;for(var W=v.exec(x);W&&W[1];)W=v.exec(x);W&&(x=x.substr(0,W.index)+'<u aria-hidden="true">'+W[3]+"</u>"+x.substr(W.index+W[0].length)),x=x.replace(/&amp;&amp;/g,"&amp;"),this.item&&this.item.setAttribute("aria-keyshortcuts",(V[1]?V[1]:V[3]).toLocaleLowerCase())}else x=x.replace(/&&/g,"&")}this.label&&(this.label.innerHTML=x.trim())}},P.prototype.updateTooltip=function(){var x=null;this.getAction().tooltip?x=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(x=this.getAction().label,this.options.keybinding&&(x=J.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",x,this.options.keybinding))),x&&this.item&&(this.item.title=x)},P.prototype.updateClass=function(){this.cssClass&&this.item&&Object(D.Q)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(D.f)(this.label,"icon"),this.cssClass&&Object(D.g)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(D.P)(this.label,"icon")},P.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(D.P)(this.element,"disabled"),this.item&&(Object(D.P)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(D.f)(this.element,"disabled"),this.item&&(Object(D.f)(this.item,"disabled"),Object(D.S)(this.item)))},P.prototype.updateChecked=function(){if(!this.item)return;this.getAction().checked?(Object(D.f)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(D.P)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false"))},P.prototype.getMnemonic=function(){return this.mnemonic},P.prototype.applyStyle=function(){if(!this.menuStyle)return;var x=this.element&&Object(D.I)(this.element,"focused"),Q=x&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,V=x&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,W=x&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=Q?Q.toString():"",this.item.style.backgroundColor=V?V.toString():""),this.check&&(this.check.style.color=Q?Q.toString():""),this.container&&(this.container.style.border=W)},P.prototype.style=function(x){this.menuStyle=x,this.applyStyle()},P}(K.c),f=function(R){m(P,R);function P(x,Q,V,W){var B=R.call(this,x,x,W)||this;return B.submenuActions=Q,B.parentData=V,B.submenuOptions=W,B.mysubmenu=null,B.submenuDisposables=B._register(new h.b),B.mouseOver=!1,B.expandDirection=W&&W.expandDirection!==void 0?W.expandDirection:p.Right,B.showScheduler=new j.d(function(){B.mouseOver&&(B.cleanupExistingSubmenu(!1),B.createSubmenu(!1))},250),B.hideScheduler=new j.d(function(){B.element&&!Object(D.K)(document.activeElement,B.element)&&B.parentData.submenu===B.mysubmenu&&(B.parentData.parent.focus(!1),B.cleanupExistingSubmenu(!0))},750),B}return P.prototype.render=function(x){var Q=this;if(R.prototype.render.call(this,x),!this.element)return;this.item&&(Object(D.f)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(D.q)(this.item,Object(D.a)("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(D.j)(this.element,D.d.KEY_UP,function(V){var W=new U.a(V);(W.equals(17)||W.equals(3))&&(D.c.stop(V,!0),Q.createSubmenu(!0))})),this._register(Object(D.j)(this.element,D.d.KEY_DOWN,function(V){var W=new U.a(V);document.activeElement===Q.item&&((W.equals(17)||W.equals(3))&&D.c.stop(V,!0))})),this._register(Object(D.j)(this.element,D.d.MOUSE_OVER,function(V){Q.mouseOver||(Q.mouseOver=!0,Q.showScheduler.schedule())})),this._register(Object(D.j)(this.element,D.d.MOUSE_LEAVE,function(V){Q.mouseOver=!1})),this._register(Object(D.j)(this.element,D.d.FOCUS_OUT,function(V){Q.element&&!Object(D.K)(document.activeElement,Q.element)&&Q.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(function(){Q.parentData.parent.focus(!1),Q.cleanupExistingSubmenu(!1)}))},P.prototype.onClick=function(x){D.c.stop(x,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},P.prototype.cleanupExistingSubmenu=function(x){this.parentData.submenu&&(x||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0))},P.prototype.createSubmenu=function(x){var Q=this;if(x===void 0&&(x=!0),!this.element)return;if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(D.q)(this.element,Object(D.a)("div.monaco-submenu")),Object(D.g)(this.submenuContainer,"menubar-menu-items-holder","context-view");var V=getComputedStyle(this.parentData.parent.domNode),W=parseFloat(V.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-W+"px",this.parentData.submenu=new c(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var B=this.element.getBoundingClientRect(),ae=this.submenuContainer.getBoundingClientRect();this.expandDirection===p.Right?window.innerWidth<=B.right+ae.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+B.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-W+"px"):this.expandDirection===p.Left&&(this.submenuContainer.style.right=this.element.offsetWidth+"px",this.submenuContainer.style.left="auto",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-W+"px"),this.submenuDisposables.add(Object(D.j)(this.submenuContainer,D.d.KEY_UP,function(we){var Me=new U.a(we);Me.equals(15)&&(D.c.stop(we,!0),Q.parentData.parent.focus(),Q.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(D.j)(this.submenuContainer,D.d.KEY_DOWN,function(we){var Me=new U.a(we);Me.equals(15)&&D.c.stop(we,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(function(){Q.parentData.parent.focus(),Q.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(x),this.mysubmenu=this.parentData.submenu}},P.prototype.updateAriaExpanded=function(x){var Q;this.item&&((Q=this.item)===null||Q===void 0||Q.setAttribute("aria-expanded",x))},P.prototype.applyStyle=function(){if(R.prototype.applyStyle.call(this),!this.menuStyle)return;var x=this.element&&Object(D.I)(this.element,"focused"),Q=x&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=Q?""+Q:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)},P.prototype.dispose=function(){R.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},P}(u),E=function(R){m(P,R);function P(){return R!==null&&R.apply(this,arguments)||this}return P.prototype.style=function(x){this.label&&(this.label.style.borderBottomColor=x.separatorColor?""+x.separatorColor:"")},P}(K.b);function L(R){var P=w,x=P.exec(R);if(!x)return R;var Q=!x[1];return R.replace(P,Q?"$2$3":"").trim()}},"3/fG":function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});function T(J,I){var H;return I.length===0?H=J:H=J.replace(/\{(\d+)\}/g,function(K,D){var U=D[0];return typeof I[U]!="undefined"?I[U]:K}),H}function pe(J,I){for(var H=[],K=2;K<arguments.length;K++)H[K-2]=arguments[K];return T(I,H)}},"3Rsk":function(Mt,F,e){"use strict";e.d(F,"a",function(){return J});var T=e("ic2d"),pe=e("MI8n"),J={JSONContribution:"base.contributions.json"};function I(D){return D.length>0&&D.charAt(D.length-1)==="#"?D.substring(0,D.length-1):D}var H=function(){function D(){this._onDidChangeSchema=new pe.a,this.schemasById={}}return D.prototype.registerSchema=function(U,j){this.schemasById[I(U)]=j,this._onDidChangeSchema.fire(U)},D.prototype.notifySchemaChanged=function(U){this._onDidChangeSchema.fire(U)},D}(),K=new H;T.a.add(J.JSONContribution,K)},"3qCu":function(Mt,F,e){"use strict";e.d(F,"a",function(){return Fe});var T=e("EffR"),pe=e("Md8J"),J=e("/cxE"),I=e("eLzo"),H=e("nD70"),K;(function(re){"use strict";var ee={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:S,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:S,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:S,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};ee._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ee._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ee.def=Ee(ee.def).replace("label",ee._label).replace("title",ee._title).getRegex(),ee.bullet=/(?:[*+-]|\d{1,9}\.)/,ee.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ee.item=Ee(ee.item,"gm").replace(/bull/g,ee.bullet).getRegex(),ee.list=Ee(ee.list).replace(/bull/g,ee.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ee.def.source+")").getRegex(),ee._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ee._comment=/<!--(?!-?>)[\s\S]*?-->/,ee.html=Ee(ee.html,"i").replace("comment",ee._comment).replace("tag",ee._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ee.paragraph=Ee(ee.paragraph).replace("hr",ee.hr).replace("heading",ee.heading).replace("lheading",ee.lheading).replace("tag",ee._tag).getRegex(),ee.blockquote=Ee(ee.blockquote).replace("paragraph",ee.paragraph).getRegex(),ee.normal=z({},ee),ee.gfm=z({},ee.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),ee.gfm.paragraph=Ee(ee.paragraph).replace("(?!","(?!"+ee.gfm.fences.source.replace("\\1","\\2")+"|"+ee.list.source.replace("\\1","\\3")+"|").getRegex(),ee.tables=z({},ee.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),ee.pedantic=z({},ee.normal,{html:Ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ee._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/});function ne(Le){this.tokens=[],this.tokens.links=Object.create(null),this.options=Le||Re.defaults,this.rules=ee.normal,this.options.pedantic?this.rules=ee.pedantic:this.options.gfm&&(this.options.tables?this.rules=ee.tables:this.rules=ee.gfm)}ne.rules=ee,ne.lex=function(Le,Ue){var Je=new ne(Ue);return Je.lex(Le)},ne.prototype.lex=function(Le){return Le=Le.replace(/\r\n|\r/g,`
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
`),this.token(Le,!0)},ne.prototype.token=function(Le,Ue){Le=Le.replace(/^ +$/gm,"");for(var Je,nt,vt,Rt,Ot,Kt,ao,lo,so,jt,pt,gt,Tt,it,et,ut;Le;){if((vt=this.rules.newline.exec(Le))&&(Le=Le.substring(vt[0].length),vt[0].length>1&&this.tokens.push({type:"space"})),vt=this.rules.code.exec(Le)){Le=Le.substring(vt[0].length),vt=vt[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?vt:se(vt,`
`)});continue}if(vt=this.rules.fences.exec(Le)){Le=Le.substring(vt[0].length),this.tokens.push({type:"code",lang:vt[2]?vt[2].trim():vt[2],text:vt[3]||""});continue}if(vt=this.rules.heading.exec(Le)){Le=Le.substring(vt[0].length),this.tokens.push({type:"heading",depth:vt[1].length,text:vt[2]});continue}if((vt=this.rules.nptable.exec(Le))&&(Kt={type:"table",header:ce(vt[1].replace(/^ *| *\| *$/g,"")),align:vt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:vt[3]?vt[3].replace(/\n$/,"").split(`
`):[]},Kt.header.length===Kt.align.length)){for(Le=Le.substring(vt[0].length),pt=0;pt<Kt.align.length;pt++)/^ *-+: *$/.test(Kt.align[pt])?Kt.align[pt]="right":/^ *:-+: *$/.test(Kt.align[pt])?Kt.align[pt]="center":/^ *:-+ *$/.test(Kt.align[pt])?Kt.align[pt]="left":Kt.align[pt]=null;for(pt=0;pt<Kt.cells.length;pt++)Kt.cells[pt]=ce(Kt.cells[pt],Kt.header.length);this.tokens.push(Kt);continue}if(vt=this.rules.hr.exec(Le)){Le=Le.substring(vt[0].length),this.tokens.push({type:"hr"});continue}if(vt=this.rules.blockquote.exec(Le)){Le=Le.substring(vt[0].length),this.tokens.push({type:"blockquote_start"}),vt=vt[0].replace(/^ *> ?/gm,""),this.token(vt,Ue),this.tokens.push({type:"blockquote_end"});continue}if(vt=this.rules.list.exec(Le)){for(Le=Le.substring(vt[0].length),Rt=vt[2],it=Rt.length>1,ao={type:"list_start",ordered:it,start:it?+Rt:"",loose:!1},this.tokens.push(ao),vt=vt[0].match(this.rules.item),lo=[],Je=!1,Tt=vt.length,pt=0;pt<Tt;pt++)Kt=vt[pt],jt=Kt.length,Kt=Kt.replace(/^ *([*+-]|\d+\.) */,""),~Kt.indexOf(`
`)&&(jt-=Kt.length,Kt=this.options.pedantic?Kt.replace(/^ {1,4}/gm,""):Kt.replace(new RegExp("^ {1,"+jt+"}","gm"),"")),pt!==Tt-1&&(Ot=ee.bullet.exec(vt[pt+1])[0],(Rt.length>1?Ot.length===1:Ot.length>1||this.options.smartLists&&Ot!==Rt)&&(Le=vt.slice(pt+1).join(`
`)+Le,pt=Tt-1)),nt=Je||/\n\n(?!\s*$)/.test(Kt),pt!==Tt-1&&(Je=Kt.charAt(Kt.length-1)===`
`,nt||(nt=Je)),nt&&(ao.loose=!0),et=/^\[[ xX]\] /.test(Kt),ut=void 0,et&&(ut=Kt[1]!==" ",Kt=Kt.replace(/^\[[ xX]\] +/,"")),so={type:"list_item_start",task:et,checked:ut,loose:nt},lo.push(so),this.tokens.push(so),this.token(Kt,!1),this.tokens.push({type:"list_item_end"});if(ao.loose)for(Tt=lo.length,pt=0;pt<Tt;pt++)lo[pt].loose=!0;this.tokens.push({type:"list_end"});continue}if(vt=this.rules.html.exec(Le)){Le=Le.substring(vt[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(vt[1]==="pre"||vt[1]==="script"||vt[1]==="style"),text:vt[0]});continue}if(Ue&&(vt=this.rules.def.exec(Le))){Le=Le.substring(vt[0].length),vt[3]&&(vt[3]=vt[3].substring(1,vt[3].length-1)),gt=vt[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[gt]||(this.tokens.links[gt]={href:vt[2],title:vt[3]});continue}if((vt=this.rules.table.exec(Le))&&(Kt={type:"table",header:ce(vt[1].replace(/^ *| *\| *$/g,"")),align:vt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:vt[3]?vt[3].replace(/\n$/,"").split(`
`):[]},Kt.header.length===Kt.align.length)){for(Le=Le.substring(vt[0].length),pt=0;pt<Kt.align.length;pt++)/^ *-+: *$/.test(Kt.align[pt])?Kt.align[pt]="right":/^ *:-+: *$/.test(Kt.align[pt])?Kt.align[pt]="center":/^ *:-+ *$/.test(Kt.align[pt])?Kt.align[pt]="left":Kt.align[pt]=null;for(pt=0;pt<Kt.cells.length;pt++)Kt.cells[pt]=ce(Kt.cells[pt].replace(/^ *\| *| *\| *$/g,""),Kt.header.length);this.tokens.push(Kt);continue}if(vt=this.rules.lheading.exec(Le)){Le=Le.substring(vt[0].length),this.tokens.push({type:"heading",depth:vt[2]==="="?1:2,text:vt[1]});continue}if(Ue&&(vt=this.rules.paragraph.exec(Le))){Le=Le.substring(vt[0].length),this.tokens.push({type:"paragraph",text:vt[1].charAt(vt[1].length-1)===`
`?vt[1].slice(0,-1):vt[1]});continue}if(vt=this.rules.text.exec(Le)){Le=Le.substring(vt[0].length),this.tokens.push({type:"text",text:vt[0]});continue}if(Le)throw new Error("Infinite loop on byte: "+Le.charCodeAt(0))}return this.tokens};var q={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:S,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:S,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};q._punctuation=`!"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~`,q.em=Ee(q.em).replace(/punctuation/g,q._punctuation).getRegex(),q._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,q._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,q._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,q.autolink=Ee(q.autolink).replace("scheme",q._scheme).replace("email",q._email).getRegex(),q._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,q.tag=Ee(q.tag).replace("comment",ee._comment).replace("attribute",q._attribute).getRegex(),q._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,q._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,q._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,q.link=Ee(q.link).replace("label",q._label).replace("href",q._href).replace("title",q._title).getRegex(),q.reflink=Ee(q.reflink).replace("label",q._label).getRegex(),q.normal=z({},q),q.pedantic=z({},q.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:Ee(/^!?\[(label)\]\((.*?)\)/).replace("label",q._label).getRegex(),reflink:Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q._label).getRegex()}),q.gfm=z({},q.normal,{escape:Ee(q.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),q.gfm.url=Ee(q.gfm.url,"i").replace("email",q.gfm._extended_email).getRegex(),q.breaks=z({},q.gfm,{br:Ee(q.br).replace("{2,}","*").getRegex(),text:Ee(q.gfm.text).replace(/\{2,\}/g,"*").getRegex()});function le(Le,Ue){if(this.options=Ue||Re.defaults,this.links=Le,this.rules=q.normal,this.renderer=this.options.renderer||new Z,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=q.pedantic:this.options.gfm&&(this.options.breaks?this.rules=q.breaks:this.rules=q.gfm)}le.rules=q,le.output=function(Le,Ue,Je){var nt=new le(Ue,Je);return nt.output(Le)},le.prototype.output=function(Le){for(var Ue="",Je,nt,vt,Rt,Ot,Kt;Le;){if(Ot=this.rules.escape.exec(Le)){Le=Le.substring(Ot[0].length),Ue+=de(Ot[1]);continue}if(Ot=this.rules.tag.exec(Le)){!this.inLink&&/^<a /i.test(Ot[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(Ot[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ot[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ot[0])&&(this.inRawBlock=!1),Le=Le.substring(Ot[0].length),Ue+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ot[0]):de(Ot[0]):Ot[0];continue}if(Ot=this.rules.link.exec(Le)){var ao=ye(Ot[2],"()");if(ao>-1){var lo=Ot[0].length-(Ot[2].length-ao)-(Ot[3]||"").length;Ot[2]=Ot[2].substring(0,ao),Ot[0]=Ot[0].substring(0,lo).trim(),Ot[3]=""}Le=Le.substring(Ot[0].length),this.inLink=!0,vt=Ot[2],this.options.pedantic?(Je=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(vt),Je?(vt=Je[1],Rt=Je[3]):Rt=""):Rt=Ot[3]?Ot[3].slice(1,-1):"",vt=vt.trim().replace(/^<([\s\S]*)>$/,"$1"),Ue+=this.outputLink(Ot,{href:le.escapes(vt),title:le.escapes(Rt)}),this.inLink=!1;continue}if((Ot=this.rules.reflink.exec(Le))||(Ot=this.rules.nolink.exec(Le))){if(Le=Le.substring(Ot[0].length),Je=(Ot[2]||Ot[1]).replace(/\s+/g," "),Je=this.links[Je.toLowerCase()],!Je||!Je.href){Ue+=Ot[0].charAt(0),Le=Ot[0].substring(1)+Le;continue}this.inLink=!0,Ue+=this.outputLink(Ot,Je),this.inLink=!1;continue}if(Ot=this.rules.strong.exec(Le)){Le=Le.substring(Ot[0].length),Ue+=this.renderer.strong(this.output(Ot[4]||Ot[3]||Ot[2]||Ot[1]));continue}if(Ot=this.rules.em.exec(Le)){Le=Le.substring(Ot[0].length),Ue+=this.renderer.em(this.output(Ot[6]||Ot[5]||Ot[4]||Ot[3]||Ot[2]||Ot[1]));continue}if(Ot=this.rules.code.exec(Le)){Le=Le.substring(Ot[0].length),Ue+=this.renderer.codespan(de(Ot[2].trim(),!0));continue}if(Ot=this.rules.br.exec(Le)){Le=Le.substring(Ot[0].length),Ue+=this.renderer.br();continue}if(Ot=this.rules.del.exec(Le)){Le=Le.substring(Ot[0].length),Ue+=this.renderer.del(this.output(Ot[1]));continue}if(Ot=this.rules.autolink.exec(Le)){Le=Le.substring(Ot[0].length),Ot[2]==="@"?(nt=de(this.mangle(Ot[1])),vt="mailto:"+nt):(nt=de(Ot[1]),vt=nt),Ue+=this.renderer.link(vt,null,nt);continue}if(!this.inLink&&(Ot=this.rules.url.exec(Le))){if(Ot[2]==="@")nt=de(Ot[0]),vt="mailto:"+nt;else{do Kt=Ot[0],Ot[0]=this.rules._backpedal.exec(Ot[0])[0];while(Kt!==Ot[0]);nt=de(Ot[0]),Ot[1]==="www."?vt="http://"+nt:vt=nt}Le=Le.substring(Ot[0].length),Ue+=this.renderer.link(vt,null,nt);continue}if(Ot=this.rules.text.exec(Le)){Le=Le.substring(Ot[0].length),this.inRawBlock?Ue+=this.renderer.text(Ot[0]):Ue+=this.renderer.text(de(this.smartypants(Ot[0])));continue}if(Le)throw new Error("Infinite loop on byte: "+Le.charCodeAt(0))}return Ue},le.escapes=function(Le){return Le&&Le.replace(le.rules._escapes,"$1")},le.prototype.outputLink=function(Le,Ue){var Je=Ue.href,nt=Ue.title?de(Ue.title):null;return Le[0].charAt(0)!=="!"?this.renderer.link(Je,nt,this.output(Le[1])):this.renderer.image(Je,nt,de(Le[1]))},le.prototype.smartypants=function(Le){return this.options.smartypants?Le.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026"):Le},le.prototype.mangle=function(Le){if(!this.options.mangle)return Le;for(var Ue="",Je=Le.length,nt=0,vt;nt<Je;nt++)vt=Le.charCodeAt(nt),Math.random()>.5&&(vt="x"+vt.toString(16)),Ue+="&#"+vt+";";return Ue};function Z(Le){this.options=Le||Re.defaults}Z.prototype.code=function(Le,Ue,Je){var nt=(Ue||"").match(/\S*/)[0];if(this.options.highlight){var vt=this.options.highlight(Le,nt);vt!=null&&vt!==Le&&(Je=!0,Le=vt)}return nt?'<pre><code class="'+this.options.langPrefix+de(nt,!0)+'">'+(Je?Le:de(Le,!0))+`</code></pre>
`:"<pre><code>"+(Je?Le:de(Le,!0))+"</code></pre>"},Z.prototype.blockquote=function(Le){return`<blockquote>
`+Le+`</blockquote>
`},Z.prototype.html=function(Le){return Le},Z.prototype.heading=function(Le,Ue,Je,nt){return this.options.headerIds?"<h"+Ue+' id="'+this.options.headerPrefix+nt.slug(Je)+'">'+Le+"</h"+Ue+`>
`:"<h"+Ue+">"+Le+"</h"+Ue+`>
`},Z.prototype.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Z.prototype.list=function(Le,Ue,Je){var nt=Ue?"ol":"ul",vt=Ue&&Je!==1?' start="'+Je+'"':"";return"<"+nt+vt+`>
`+Le+"</"+nt+`>
`},Z.prototype.listitem=function(Le){return"<li>"+Le+`</li>
`},Z.prototype.checkbox=function(Le){return"<input "+(Le?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Z.prototype.paragraph=function(Le){return"<p>"+Le+`</p>
`},Z.prototype.table=function(Le,Ue){return Ue&&(Ue="<tbody>"+Ue+"</tbody>"),`<table>
<thead>
`+Le+`</thead>
`+Ue+`</table>
`},Z.prototype.tablerow=function(Le){return`<tr>
`+Le+`</tr>
`},Z.prototype.tablecell=function(Le,Ue){var Je=Ue.header?"th":"td",nt=Ue.align?"<"+Je+' align="'+Ue.align+'">':"<"+Je+">";return nt+Le+"</"+Je+`>
`},Z.prototype.strong=function(Le){return"<strong>"+Le+"</strong>"},Z.prototype.em=function(Le){return"<em>"+Le+"</em>"},Z.prototype.codespan=function(Le){return"<code>"+Le+"</code>"},Z.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},Z.prototype.del=function(Le){return"<del>"+Le+"</del>"},Z.prototype.link=function(Le,Ue,Je){if(Le=Te(this.options.sanitize,this.options.baseUrl,Le),Le===null)return Je;var nt='<a href="'+de(Le)+'"';return Ue&&(nt+=' title="'+Ue+'"'),nt+=">"+Je+"</a>",nt},Z.prototype.image=function(Le,Ue,Je){if(Le=Te(this.options.sanitize,this.options.baseUrl,Le),Le===null)return Je;var nt='<img src="'+Le+'" alt="'+Je+'"';return Ue&&(nt+=' title="'+Ue+'"'),nt+=this.options.xhtml?"/>":">",nt},Z.prototype.text=function(Le){return Le};function ve(){}ve.prototype.strong=ve.prototype.em=ve.prototype.codespan=ve.prototype.del=ve.prototype.text=function(Le){return Le},ve.prototype.link=ve.prototype.image=function(Le,Ue,Je){return""+Je},ve.prototype.br=function(){return""};function Ne(Le){this.tokens=[],this.token=null,this.options=Le||Re.defaults,this.options.renderer=this.options.renderer||new Z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Xe}Ne.parse=function(Le,Ue){var Je=new Ne(Ue);return Je.parse(Le)},Ne.prototype.parse=function(Le){this.inline=new le(Le.links,this.options),this.inlineText=new le(Le.links,z({},this.options,{renderer:new ve})),this.tokens=Le.reverse();for(var Ue="";this.next();)Ue+=this.tok();return Ue},Ne.prototype.next=function(){return this.token=this.tokens.pop()},Ne.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Ne.prototype.parseText=function(){for(var Le=this.token.text;this.peek().type==="text";)Le+=`
`+this.next().text;return this.inline.output(Le)},Ne.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,ge(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var Le="",Ue="",Je,nt,vt,Rt;for(vt="",Je=0;Je<this.token.header.length;Je++)vt+=this.renderer.tablecell(this.inline.output(this.token.header[Je]),{header:!0,align:this.token.align[Je]});for(Le+=this.renderer.tablerow(vt),Je=0;Je<this.token.cells.length;Je++){for(nt=this.token.cells[Je],vt="",Rt=0;Rt<nt.length;Rt++)vt+=this.renderer.tablecell(this.inline.output(nt[Rt]),{header:!1,align:this.token.align[Rt]});Ue+=this.renderer.tablerow(vt)}return this.renderer.table(Le,Ue)}case"blockquote_start":{for(Ue="";this.next().type!=="blockquote_end";)Ue+=this.tok();return this.renderer.blockquote(Ue)}case"list_start":{Ue="";for(var Ot=this.token.ordered,Kt=this.token.start;this.next().type!=="list_end";)Ue+=this.tok();return this.renderer.list(Ue,Ot,Kt)}case"list_item_start":{Ue="";var ao=this.token.loose,lo=this.token.checked,so=this.token.task;for(this.token.task&&(Ue+=this.renderer.checkbox(lo));this.next().type!=="list_item_end";)Ue+=!ao&&this.token.type==="text"?this.parseText():this.tok();return this.renderer.listitem(Ue,so,lo)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{var jt='Token with "'+this.token.type+'" type was not found.';if(this.options.silent)console.log(jt);else throw new Error(jt)}}};function Xe(){this.seen={}}Xe.prototype.slug=function(Le){var Ue=Le.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ue)){var Je=Ue;do this.seen[Je]++,Ue=Je+"-"+this.seen[Je];while(this.seen.hasOwnProperty(Ue))}return this.seen[Ue]=0,Ue};function de(Le,Ue){if(Ue){if(de.escapeTest.test(Le))return Le.replace(de.escapeReplace,function(Je){return de.replacements[Je]})}else if(de.escapeTestNoEncode.test(Le))return Le.replace(de.escapeReplaceNoEncode,function(Je){return de.replacements[Je]});return Le}de.escapeTest=/[&<>"']/,de.escapeReplace=/[&<>"']/g,de.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},de.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,de.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function ge(Le){return Le.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(Ue,Je){return Je=Je.toLowerCase(),Je==="colon"?":":Je.charAt(0)==="#"?Je.charAt(1)==="x"?String.fromCharCode(parseInt(Je.substring(2),16)):String.fromCharCode(+Je.substring(1)):""})}function Ee(Le,Ue){return Le=Le.source||Le,Ue=Ue||"",{replace:function(Je,nt){return nt=nt.source||nt,nt=nt.replace(/(^|[^\[])\^/g,"$1"),Le=Le.replace(Je,nt),this},getRegex:function(){return new RegExp(Le,Ue)}}}function Te(Le,Ue,Je){if(Le){try{var nt=decodeURIComponent(ge(Je)).replace(/[^\w:]/g,"").toLowerCase()}catch(vt){return null}if(nt.indexOf("javascript:")===0||nt.indexOf("vbscript:")===0||nt.indexOf("data:")===0)return null}Ue&&!$.test(Je)&&(Je=Ce(Ue,Je));try{Je=encodeURI(Je).replace(/%25/g,"%")}catch(vt){return null}return Je}function Ce(Le,Ue){return fe[" "+Le]||(/^[^:]+:\/*[^/]*$/.test(Le)?fe[" "+Le]=Le+"/":fe[" "+Le]=se(Le,"/",!0)),Le=fe[" "+Le],Ue.slice(0,2)==="//"?Le.replace(/:[\s\S]*/,":")+Ue:Ue.charAt(0)==="/"?Le.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+Ue:Le+Ue}var fe={},$=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function S(){}S.exec=S;function z(Le){for(var Ue=1,Je,nt;Ue<arguments.length;Ue++){Je=arguments[Ue];for(nt in Je)Object.prototype.hasOwnProperty.call(Je,nt)&&(Le[nt]=Je[nt])}return Le}function ce(Le,Ue){var Je=Le.replace(/\|/g,function(Rt,Ot,Kt){for(var ao=!1,lo=Ot;--lo>=0&&Kt[lo]==="\\";)ao=!ao;return ao?"|":" |"}),nt=Je.split(/ \|/),vt=0;if(nt.length>Ue)nt.splice(Ue);else for(;nt.length<Ue;)nt.push("");for(;vt<nt.length;vt++)nt[vt]=nt[vt].trim().replace(/\\\|/g,"|");return nt}function se(Le,Ue,Je){if(Le.length===0)return"";for(var nt=0;nt<Le.length;){var vt=Le.charAt(Le.length-nt-1);if(vt===Ue&&!Je)nt++;else if(vt!==Ue&&Je)nt++;else break}return Le.substr(0,Le.length-nt)}function ye(Le,Ue){if(Le.indexOf(Ue[1])===-1)return-1;for(var Je=0,nt=0;nt<Le.length;nt++)if(Le[nt]==="\\")nt++;else if(Le[nt]===Ue[0])Je++;else if(Le[nt]===Ue[1]&&(Je--,Je<0))return nt;return-1}function Re(Le,Ue,Je){if(typeof Le=="undefined"||Le===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Le!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Le)+", string expected");if(Je||typeof Ue=="function"){Je||(Je=Ue,Ue=null),Ue=z({},Re.defaults,Ue||{});var nt=Ue.highlight,vt,Rt,Ot=0;try{vt=ne.lex(Le,Ue)}catch(ao){return Je(ao)}Rt=vt.length;var Kt=function(ao){if(ao)return Ue.highlight=nt,Je(ao);var lo;try{lo=Ne.parse(vt,Ue)}catch(so){ao=so}return Ue.highlight=nt,ao?Je(ao):Je(null,lo)};if(!nt||nt.length<3)return Kt();if(delete Ue.highlight,!Rt)return Kt();for(;Ot<vt.length;Ot++)(function(ao){return ao.type!=="code"?--Rt||Kt():nt(ao.text,ao.lang,function(lo,so){if(lo)return Kt(lo);if(so==null||so===ao.text)return--Rt||Kt();ao.text=so,ao.escaped=!0,--Rt||Kt()})})(vt[Ot]);return}try{return Ue&&(Ue=z({},Re.defaults,Ue)),Ne.parse(ne.lex(Le,Ue),Ue)}catch(ao){if(ao.message+=`
Please report this to https://github.com/markedjs/marked.`,(Ue||Re.defaults).silent)return"<p>An error occurred:</p><pre>"+de(ao.message+"",!0)+"</pre>";throw ao}}Re.options=Re.setOptions=function(Le){return z(Re.defaults,Le),Re},Re.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new Z,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},Re.defaults=Re.getDefaults(),Re.Parser=Ne,Re.parser=Ne.parse,Re.Renderer=Z,Re.TextRenderer=ve,Re.Lexer=ne,Re.lexer=ne.lex,Re.InlineLexer=le,Re.inlineLexer=le.output,Re.Slugger=Xe,Re.parse=Re,K=Re}).call(void 0);var D=K,U=K.Parser,j=K.parser,h=K.Renderer,b=K.TextRenderer,O=K.Lexer,m=K.lexer,C=K.InlineLexer,w=K.inlineLexer,v=K.parse,p,p;let d;(function(){function re(ee,ne,q){function le(Ne,Xe){if(!ne[Ne]){if(!ee[Ne]){var de=typeof p=="function"&&p;if(!Xe&&de)return p(Ne,!0);if(Z)return Z(Ne,!0);var ge=new Error("Cannot find module '"+Ne+"'");throw ge.code="MODULE_NOT_FOUND",ge}var Ee=ne[Ne]={exports:{}};ee[Ne][0].call(Ee.exports,function(Te){var Ce=ee[Ne][1][Te];return le(Ce||Te)},Ee,Ee.exports,re,ee,ne,q)}return ne[Ne].exports}for(var Z=typeof p=="function"&&p,ve=0;ve<q.length;ve++)le(q[ve]);return le}return re})()({1:[function(re,ee,ne){"use strict";var q=re("./toMap"),le=["background","base","cite","href","longdesc","src","usemap"];ee.exports={uris:q(le)}},{"./toMap":10}],2:[function(re,ee,ne){"use strict";var q={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null};ee.exports=q},{}],3:[function(re,ee,ne){"use strict";var q=re("./toMap"),le=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];ee.exports={voids:q(le)}},{"./toMap":10}],4:[function(re,ee,ne){"use strict";var q=re("he"),le=re("assignment"),Z=re("./parser"),ve=re("./sanitizer"),Ne=re("./defaults");function Xe(de,ge,Ee){var Te=[],Ce=Ee===!0?ge:le({},Ne,ge),fe=ve(Te,Ce);return Z(de,fe),Te.join("")}Xe.defaults=Ne,ee.exports=Xe,d=Xe},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(re,ee,ne){"use strict";ee.exports=function(le){return typeof le=="string"?le.toLowerCase():le}},{}],6:[function(re,ee,ne){"use strict";function q(le){for(var Z=Array.prototype.slice.call(arguments,1),ve,Ne;Z.length;){ve=Z.shift();for(Ne in ve)ve.hasOwnProperty(Ne)&&(Object.prototype.toString.call(le[Ne])==="[object Object]"?le[Ne]=q(le[Ne],ve[Ne]):le[Ne]=ve[Ne])}return le}ee.exports=q},{}],7:[function(re,ee,ne){"use strict";var q=re("he"),le=re("./lowercase"),Z=re("./attributes"),ve=re("./elements"),Ne=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,Xe=/^<\s*\/\s*([\w:-]+)[^>]*>/,de=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,ge=/^</,Ee=/^<\s*\//;function Te(){var fe=[];return fe.lastItem=function(){return fe[fe.length-1]},fe}function Ce(fe,$){for(var S=Te(),z=fe,ce;fe;)se();nt();function se(){ce=!0,ye();var vt=fe===z;z=fe,vt&&(fe="")}function ye(){fe.substr(0,4)==="<!--"?Le():Ee.test(fe)?Re(Xe,nt):ge.test(fe)&&Re(Ne,Je),Ue()}function Re(vt,Rt){var Ot=fe.match(vt);Ot&&(fe=fe.substring(Ot[0].length),Ot[0].replace(vt,Rt),ce=!1)}function Le(){var vt=fe.indexOf("-->");vt>=0&&($.comment&&$.comment(fe.substring(4,vt)),fe=fe.substring(vt+3),ce=!1)}function Ue(){if(!ce)return;var vt,Rt=fe.indexOf("<");Rt>=0?(vt=fe.substring(0,Rt),fe=fe.substring(Rt)):(vt=fe,fe=""),$.chars&&$.chars(vt)}function Je(vt,Rt,Ot,Kt){var ao={},lo=le(Rt),so=ve.voids[lo]||!!Kt;Ot.replace(de,jt),so||S.push(lo),$.start&&$.start(lo,ao,so);function jt(pt,gt,Tt,it,et){Tt===void 0&&it===void 0&&et===void 0?ao[gt]=void 0:ao[gt]=q.decode(Tt||it||et||"")}}function nt(vt,Rt){var Ot,Kt=0,ao=le(Rt);if(ao)for(Kt=S.length-1;Kt>=0&&!(S[Kt]===ao);Kt--);if(Kt>=0){for(Ot=S.length-1;Ot>=Kt;Ot--)$.end&&$.end(S[Ot]);S.length=Kt}}}ee.exports=Ce},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(re,ee,ne){"use strict";var q=re("he"),le=re("./lowercase"),Z=re("./attributes"),ve=re("./elements");function Ne(Xe,de){var ge,Ee,Te=de||{};return ye(),{start:fe,end:$,chars:z};function Ce(Re){Xe.push(Re)}function fe(Re,Le,Ue){var Je=le(Re);if(Ee.ignoring){ce(Je);return}if((Te.allowedTags||[]).indexOf(Je)===-1){ce(Je);return}if(Te.filter&&!Te.filter({tag:Je,attrs:Le})){ce(Je);return}Ce("<"),Ce(Je),Object.keys(Le).forEach(nt),Ce(Ue?"/>":">");function nt(vt){var Rt=Le[vt],Ot=(Te.allowedClasses||{})[Je]||[],Kt=(Te.allowedAttributes||{})[Je]||[];Kt=Kt.concat((Te.allowedAttributes||{})["*"]||[]);var ao,lo=le(vt);lo==="class"&&Kt.indexOf(lo)===-1?(Rt=Rt.split(" ").filter(so).join(" ").trim(),ao=Rt.length):ao=Kt.indexOf(lo)!==-1&&(Z.uris[lo]!==!0||S(Rt)),ao&&(Ce(" "),Ce(vt),typeof Rt=="string"&&(Ce('="'),Ce(q.encode(Rt)),Ce('"')));function so(jt){return Ot&&Ot.indexOf(jt)!==-1}}}function $(Re){var Le=le(Re),Ue=(Te.allowedTags||[]).indexOf(Le)!==-1;Ue&&Ee.ignoring===!1?(Ce("</"),Ce(Le),Ce(">")):se(Le)}function S(Re){var Le=Re[0];if(Le==="#"||Le==="/")return!0;var Ue=Re.indexOf(":");if(Ue===-1)return!0;var Je=Re.indexOf("?");if(Je!==-1&&Ue>Je)return!0;var nt=Re.indexOf("#");if(nt!==-1&&Ue>nt)return!0;return Te.allowedSchemes.some(vt);function vt(Rt){return Re.indexOf(Rt+":")===0}}function z(Re){Ee.ignoring===!1&&Ce(Te.transformText?Te.transformText(Re):Re)}function ce(Re){if(ve.voids[Re])return;Ee.ignoring===!1?Ee={ignoring:Re,depth:1}:Ee.ignoring===Re&&Ee.depth++}function se(Re){Ee.ignoring===Re&&(--Ee.depth<=0&&ye())}function ye(){Ee={ignoring:!1,depth:0}}}ee.exports=Ne},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(re,ee,ne){"use strict";var q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},le={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Z=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,ve=/[&<>"']/g;function Ne(Ee){return q[Ee]}function Xe(Ee){return le[Ee]}function de(Ee){return Ee==null?"":String(Ee).replace(ve,Ne)}function ge(Ee){return Ee==null?"":String(Ee).replace(Z,Xe)}de.options=ge.options={},ee.exports={encode:de,escape:de,decode:ge,unescape:ge,version:"1.0.0-browser"}},{}],10:[function(re,ee,ne){"use strict";function q(Z){return Z.reduce(le,{})}function le(Z,ve){return Z[ve]=!0,Z}ee.exports=q},{}]},{},[4]);var c=d,u=e("Q4rV"),f=e("qj0h"),E=e("N0LK"),L=e("bY76"),R=e("tYmi"),P=e("Vhoy");function x(re,ee){ee===void 0&&(ee={});var ne=Object(pe.a)(ee),q=function(Te){var Ce;try{Ce=Object(u.a)(decodeURIComponent(Te))}catch(fe){}return Ce?(Ce=Object(f.b)(Ce,function(fe){return re.uris&&re.uris[fe]?L.a.revive(re.uris[fe]):void 0}),encodeURIComponent(JSON.stringify(Ce))):Te},le=function(Te,Ce){var fe=re.uris&&re.uris[Te];if(!fe)return Te;var $=L.a.revive(fe);return L.a.parse(Te).toString()===$.toString()?Te:(Ce&&($=T.s($)),$.query&&($=$.with({query:q($.query)})),$.toString(!0))},Z,ve=new Promise(function(Te){return Z=Te}),Ne=new h;Ne.image=function(Te,Ce,fe){var $,S=[],z=[];return Te&&($=Object(I.d)(Te),Te=$.href,S=$.dimensions,Te=le(Te,!0),z.push('src="'+Te+'"')),fe&&z.push('alt="'+fe+'"'),Ce&&z.push('title="'+Ce+'"'),S.length&&(z=z.concat(S)),"<img "+z.join(" ")+">"},Ne.link=function(Te,Ce,fe){return Te===fe&&(fe=Object(I.e)(fe)),Te=le(Te,!1),Ce=Object(I.e)(Ce),Te=Object(I.e)(Te),!Te||Te.match(/^data:|javascript:/i)||Te.match(/^command:/i)&&!re.isTrusted||Te.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?fe:(Te=Te.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),'<a href="#" data-href="'+Te+'" title="'+(Ce||Te)+'">'+fe+"</a>")},Ne.paragraph=function(Te){return"<p>"+(re.supportThemeIcons?Object(P.c)(Te):Te)+"</p>"},ee.codeBlockRenderer&&(Ne.code=function(Te,Ce){var fe=ee.codeBlockRenderer(Ce,Te),$=H.b.nextId(),S=Promise.all([fe,ve]).then(function(z){var ce=z[0],se=ne.querySelector('div[data-code="'+$+'"]');se&&(se.innerHTML=ce)}).catch(function(z){});return ee.codeBlockRenderCallback&&S.then(ee.codeBlockRenderCallback),'<div class="code" data-code="'+$+'">'+Object(E.o)(Te)+"</div>"});var Xe=ee.actionHandler;Xe&&Xe.disposeables.add(T.o(ne,"click",function(Te){var Ce=Te.target;if(Ce.tagName!=="A"&&(Ce=Ce.parentElement,!Ce||Ce.tagName!=="A"))return;try{var fe=Ce.dataset.href;fe&&Xe.callback(fe,Te)}catch($){Object(J.e)($)}finally{Te.preventDefault()}}));var de={sanitize:!0,renderer:Ne},ge=[R.b.http,R.b.https,R.b.mailto,R.b.data,R.b.file,R.b.vscodeRemote,R.b.vscodeRemoteResource];re.isTrusted&&ge.push(R.b.command);var Ee=v(re.supportThemeIcons?Object(P.b)(re.value):re.value,de);return ne.innerHTML=c(Ee,{allowedSchemes:ge,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),Z(),ne}var Q=e("W9cx"),V=e("WBhO"),W=e("TQUy"),B=e("Cg/j"),ae=e("MI8n"),we=e("pmY6"),Me=e("twdY"),Pe=function(){var re=function(ee,ne){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,le){q.__proto__=le}||function(q,le){for(var Z in le)le.hasOwnProperty(Z)&&(q[Z]=le[Z])},re(ee,ne)};return function(ee,ne){re(ee,ne);function q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(q.prototype=ne.prototype,new q)}}(),Be=function(re,ee,ne,q){var le=arguments.length,Z=le<3?ee:q===null?q=Object.getOwnPropertyDescriptor(ee,ne):q,ve;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Z=Reflect.decorate(re,ee,ne,q);else for(var Ne=re.length-1;Ne>=0;Ne--)(ve=re[Ne])&&(Z=(le<3?ve(Z):le>3?ve(ee,ne,Z):ve(ee,ne))||Z);return le>3&&Z&&Object.defineProperty(ee,ne,Z),Z},Ke=function(re,ee){return function(ne,q){ee(ne,q,re)}},Fe=function(re){Pe(ee,re);function ee(ne,q,le){le===void 0&&(le=Q.b);var Z=re.call(this)||this;return Z._editor=ne,Z._modeService=q,Z._openerService=le,Z._onDidRenderCodeBlock=Z._register(new ae.a),Z.onDidRenderCodeBlock=Z._onDidRenderCodeBlock.event,Z}return ee.prototype.getOptions=function(ne){var q=this;return{codeBlockRenderer:function(le,Z){var ve=null;if(le)ve=q._modeService.getModeIdForLanguageName(le);else{var Ne=q._editor.getModel();Ne&&(ve=Ne.getLanguageIdentifier().language)}return q._modeService.triggerMode(ve||""),Promise.resolve(!0).then(function(Xe){var de=Me.B.getPromise(ve||"");return de?de.then(function(ge){return Object(W.b)(Z,ge)}):Object(W.b)(Z,void 0)}).then(function(Xe){return'<span style="font-family: '+q._editor.getOption(34).fontFamily+'">'+Xe+"</span>"})},codeBlockRenderCallback:function(){return q._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(le){q._openerService.open(le,{fromUserGesture:!0}).catch(J.e)},disposeables:ne}}},ee.prototype.render=function(ne){var q=new we.b,le;return ne?le=x(ne,this.getOptions(q)):le=document.createElement("span"),{element:le,dispose:function(){return q.dispose()}}},ee=Be([Ke(1,V.a),Ke(2,Object(B.d)(Q.a))],ee),ee}(we.a)},"3rx1":function(Mt,F,e){"use strict";e.d(F,"b",function(){return D}),e.d(F,"a",function(){return U}),e.d(F,"c",function(){return h});var T=e("bY76"),pe=e("MrjW"),J=e("N0LK"),I=e("tYmi"),H=e("MNsG"),K=e("gslv");function D(m,C,w){if(typeof m=="string"&&(m=T.a.file(m)),w){var v=w.getWorkspaceFolder(m);if(v){var p=w.getWorkspace().folders.length>1,d=void 0;if(Object(K.e)(v.uri,m)?d="":d=Object(K.h)(v.uri,m),p){var c=v.name?v.name:Object(K.b)(v.uri);d=d?c+" \u2022 "+d:c}return d}}if(m.scheme!==I.b.file&&m.scheme!==I.b.untitled)return m.with({query:null,fragment:null}).toString(!0);if(j(m.fsPath))return Object(pe.normalize)(h(m.fsPath));var u=Object(pe.normalize)(m.fsPath);return!H.h&&C&&(u=O(u,C.userHome)),u}function U(m){if(!m)return;typeof m=="string"&&(m=T.a.file(m));var C=Object(K.b)(m)||(m.scheme===I.b.file?m.fsPath:m.path);return j(C)?h(C):C}function j(m){return!!(H.h&&m&&m[1]===":")}function h(m){return j(m)?m.charAt(0).toUpperCase()+m.slice(1):m}var b=Object.create(null);function O(m,C){if(H.h||!m||!C)return m;var w=b.original===C?b.normalized:void 0;return w||(w=""+Object(J.K)(C,pe.posix.sep)+pe.posix.sep,b={original:C,normalized:w}),(H.d?Object(J.N)(m,w):Object(J.O)(m,w))&&(m="~/"+m.substr(w.length)),m}},"4bUh":function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("twdY"),pe=function(){function I(H,K){this._tokens=H,this._tokensCount=this._tokens.length>>>1,this._text=K}return I.prototype.equals=function(H){return H instanceof I?this.slicedEquals(H,0,this._tokensCount):!1},I.prototype.slicedEquals=function(H,K,D){if(this._text!==H._text)return!1;if(this._tokensCount!==H._tokensCount)return!1;for(var U=K<<1,j=U+(D<<1),h=U;h<j;h++)if(this._tokens[h]!==H._tokens[h])return!1;return!0},I.prototype.getLineContent=function(){return this._text},I.prototype.getCount=function(){return this._tokensCount},I.prototype.getStartOffset=function(H){return H>0?this._tokens[H-1<<1]:0},I.prototype.getMetadata=function(H){var K=this._tokens[(H<<1)+1];return K},I.prototype.getLanguageId=function(H){var K=this._tokens[(H<<1)+1];return T.A.getLanguageId(K)},I.prototype.getStandardTokenType=function(H){var K=this._tokens[(H<<1)+1];return T.A.getTokenType(K)},I.prototype.getForeground=function(H){var K=this._tokens[(H<<1)+1];return T.A.getForeground(K)},I.prototype.getClassName=function(H){var K=this._tokens[(H<<1)+1];return T.A.getClassNameFromMetadata(K)},I.prototype.getInlineStyle=function(H,K){var D=this._tokens[(H<<1)+1];return T.A.getInlineStyleFromMetadata(D,K)},I.prototype.getEndOffset=function(H){return this._tokens[H<<1]},I.prototype.findTokenIndexAtOffset=function(H){return I.findIndexInTokensArray(this._tokens,H)},I.prototype.inflate=function(){return this},I.prototype.sliceAndInflate=function(H,K,D){return new J(this,H,K,D)},I.convertToEndOffset=function(H,K){for(var D=H.length>>>1,U=D-1,j=0;j<U;j++)H[j<<1]=H[j+1<<1];H[U<<1]=K},I.findIndexInTokensArray=function(H,K){if(H.length<=2)return 0;for(var D=0,U=(H.length>>>1)-1;D<U;){var j=D+Math.floor((U-D)/2),h=H[j<<1];if(h===K)return j+1;h<K?D=j+1:h>K&&(U=j)}return D},I}(),J=function(){function I(H,K,D,U){this._source=H,this._startOffset=K,this._endOffset=D,this._deltaOffset=U,this._firstTokenIndex=H.findTokenIndexAtOffset(K),this._tokensCount=0;for(var j=this._firstTokenIndex,h=H.getCount();j<h;j++){var b=H.getStartOffset(j);if(b>=D)break;this._tokensCount++}}return I.prototype.equals=function(H){return H instanceof I?this._startOffset===H._startOffset&&this._endOffset===H._endOffset&&this._deltaOffset===H._deltaOffset&&this._source.slicedEquals(H._source,this._firstTokenIndex,this._tokensCount):!1},I.prototype.getCount=function(){return this._tokensCount},I.prototype.getForeground=function(H){return this._source.getForeground(this._firstTokenIndex+H)},I.prototype.getEndOffset=function(H){var K=this._source.getEndOffset(this._firstTokenIndex+H);return Math.min(this._endOffset,K)-this._startOffset+this._deltaOffset},I.prototype.getClassName=function(H){return this._source.getClassName(this._firstTokenIndex+H)},I.prototype.getInlineStyle=function(H,K){return this._source.getInlineStyle(this._firstTokenIndex+H,K)},I.prototype.findTokenIndexAtOffset=function(H){return this._source.findTokenIndexAtOffset(H+this._startOffset-this._deltaOffset)-this._firstTokenIndex},I}()},"4rho":function(Mt,F,e){},"4sI4":function(Mt,F,e){"use strict";e.r(F),e.d(F,"StandaloneReferencesController",function(){return O});var T=e("sswD"),pe=e("Vxe3"),J=e("QY8A"),I=e("+7oY"),H=e("T8No"),K=e("Cg/j"),D=e("sM1p"),U=e("A+jI"),j=function(){var m=function(C,w){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,p){v.__proto__=p}||function(v,p){for(var d in p)p.hasOwnProperty(d)&&(v[d]=p[d])},m(C,w)};return function(C,w){m(C,w);function v(){this.constructor=C}C.prototype=w===null?Object.create(w):(v.prototype=w.prototype,new v)}}(),h=function(m,C,w,v){var p=arguments.length,d=p<3?C:v===null?v=Object.getOwnPropertyDescriptor(C,w):v,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(m,C,w,v);else for(var u=m.length-1;u>=0;u--)(c=m[u])&&(d=(p<3?c(d):p>3?c(C,w,d):c(C,w))||d);return p>3&&d&&Object.defineProperty(C,w,d),d},b=function(m,C){return function(w,v){C(w,v,m)}},O=function(m){j(C,m);function C(w,v,p,d,c,u,f){return m.call(this,!0,w,v,p,d,c,u,f)||this}return C=h([b(1,H.c),b(2,pe.a),b(3,D.a),b(4,K.a),b(5,U.a),b(6,I.a)],C),C}(J.a);Object(T.h)(J.a.ID,O)},"4y0V":function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"b",function(){return J});var T=e("MI8n"),pe=function(I,H,K){var D=function(j){return U.fire(j)},U=new T.a({onFirstListenerAdd:function(){I.addEventListener(H,D,K)},onLastListenerRemove:function(){I.removeEventListener(H,D,K)}});return U.event};function J(I){return T.b.map(I,function(H){return H.preventDefault(),H.stopPropagation(),H})}},"51B1":function(Mt,F,e){},"51f4":function(Mt,F,e){"use strict";e.d(F,"a",function(){return H});var T=!1,pe=null;function J(K){if(!K.parent||K.parent===K)return null;try{var D=K.location,U=K.parent.location;if(D.protocol!==U.protocol||D.hostname!==U.hostname||D.port!==U.port)return T=!0,null}catch(j){return T=!0,null}return K.parent}function I(K,D){for(var U=K.document.getElementsByTagName("iframe"),j,h=0,b=U.length;h<b;h++)if(j=U[h],j.contentWindow===D)return j;return null}var H=function(){function K(){}return K.getSameOriginWindowChain=function(){if(!pe){pe=[];var D=window,U;do U=J(D),U?pe.push({window:D,iframeElement:I(U,D)}):pe.push({window:D,iframeElement:null}),D=U;while(D)}return pe.slice(0)},K.hasDifferentOriginAncestor=function(){return pe||this.getSameOriginWindowChain(),T},K.getPositionOfChildWindowRelativeToAncestorWindow=function(D,U){if(!U||D===U)return{top:0,left:0};for(var j=0,h=0,b=this.getSameOriginWindowChain(),O=0,m=b;O<m.length;O++){var C=m[O];if(C.window===U)break;if(!C.iframeElement)break;var w=C.iframeElement.getBoundingClientRect();j+=w.top,h+=w.left}return{top:j,left:h}},K}()},"5DEy":function(Mt,F,e){},"5RaG":function(Mt,F,e){"use strict";e.r(F),e.d(F,"CursorUndoRedoController",function(){return U}),e.d(F,"CursorUndo",function(){return j}),e.d(F,"CursorRedo",function(){return h});var T=e("3/fG"),pe=e("pmY6"),J=e("sswD"),I=e("wQH0"),H=function(){var b=function(O,m){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var v in w)w.hasOwnProperty(v)&&(C[v]=w[v])},b(O,m)};return function(O,m){b(O,m);function C(){this.constructor=O}O.prototype=m===null?Object.create(m):(C.prototype=m.prototype,new C)}}(),K=function(){function b(O){this.selections=O}return b.prototype.equals=function(O){var m=this.selections.length,C=O.selections.length;if(m!==C)return!1;for(var w=0;w<m;w++)if(!this.selections[w].equalsSelection(O.selections[w]))return!1;return!0},b}(),D=function(){function b(O,m,C){this.cursorState=O,this.scrollTop=m,this.scrollLeft=C}return b}(),U=function(b){H(O,b);function O(m){var C=b.call(this)||this;return C._editor=m,C._isCursorUndoRedo=!1,C._undoStack=[],C._redoStack=[],C._register(m.onDidChangeModel(function(w){C._undoStack=[],C._redoStack=[]})),C._register(m.onDidChangeModelContent(function(w){C._undoStack=[],C._redoStack=[]})),C._register(m.onDidChangeCursorSelection(function(w){if(C._isCursorUndoRedo)return;if(!w.oldSelections)return;if(w.oldModelVersionId!==w.modelVersionId)return;var v=new K(w.oldSelections),p=C._undoStack.length>0&&C._undoStack[C._undoStack.length-1].cursorState.equals(v);p||(C._undoStack.push(new D(v,m.getScrollTop(),m.getScrollLeft())),C._redoStack=[],C._undoStack.length>50&&C._undoStack.shift())})),C}return O.get=function(m){return m.getContribution(O.ID)},O.prototype.cursorUndo=function(){if(!this._editor.hasModel()||this._undoStack.length===0)return;this._redoStack.push(new D(new K(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop())},O.prototype.cursorRedo=function(){if(!this._editor.hasModel()||this._redoStack.length===0)return;this._undoStack.push(new D(new K(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop())},O.prototype._applyState=function(m){this._isCursorUndoRedo=!0,this._editor.setSelections(m.cursorState.selections),this._editor.setScrollPosition({scrollTop:m.scrollTop,scrollLeft:m.scrollLeft}),this._isCursorUndoRedo=!1},O.ID="editor.contrib.cursorUndoRedoController",O}(pe.a),j=function(b){H(O,b);function O(){return b.call(this,{id:"cursorUndo",label:T.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:2048|51,weight:100}})||this}return O.prototype.run=function(m,C,w){U.get(C).cursorUndo()},O}(J.b),h=function(b){H(O,b);function O(){return b.call(this,{id:"cursorRedo",label:T.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})||this}return O.prototype.run=function(m,C,w){U.get(C).cursorRedo()},O}(J.b);Object(J.h)(U.ID,U),Object(J.f)(j),Object(J.f)(h)},"5TxY":function(Mt,F,e){"use strict";e.d(F,"a",function(){return O}),e.d(F,"b",function(){return C});var T=e("D3Dy"),pe=e("EffR"),J=e("X+cX"),I=e("MI8n"),H=e("pmY6"),K=e("MNsG"),D=e("N0LK"),U=e("Comh"),j=e("gCVg"),h=e("CjF5"),b=function(){var p=function(d,c){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var E in f)f.hasOwnProperty(E)&&(u[E]=f[E])},p(d,c)};return function(d,c){p(d,c);function u(){this.constructor=d}d.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),O={forceCopyWithSyntaxHighlighting:!1},m=function(){function p(){this._lastState=null}return p.prototype.set=function(d,c){this._lastState={lastCopiedValue:d,data:c}},p.prototype.get=function(d){return this._lastState&&this._lastState.lastCopiedValue===d?this._lastState.data:(this._lastState=null,null)},p.INSTANCE=new p,p}(),C=function(p){b(d,p);function d(c,u){var f=p.call(this)||this;f.textArea=u,f._onFocus=f._register(new I.a),f.onFocus=f._onFocus.event,f._onBlur=f._register(new I.a),f.onBlur=f._onBlur.event,f._onKeyDown=f._register(new I.a),f.onKeyDown=f._onKeyDown.event,f._onKeyUp=f._register(new I.a),f.onKeyUp=f._onKeyUp.event,f._onCut=f._register(new I.a),f.onCut=f._onCut.event,f._onPaste=f._register(new I.a),f.onPaste=f._onPaste.event,f._onType=f._register(new I.a),f.onType=f._onType.event,f._onCompositionStart=f._register(new I.a),f.onCompositionStart=f._onCompositionStart.event,f._onCompositionUpdate=f._register(new I.a),f.onCompositionUpdate=f._onCompositionUpdate.event,f._onCompositionEnd=f._register(new I.a),f.onCompositionEnd=f._onCompositionEnd.event,f._onSelectionChangeRequest=f._register(new I.a),f.onSelectionChangeRequest=f._onSelectionChangeRequest.event,f._host=c,f._textArea=f._register(new v(u)),f._asyncTriggerCut=f._register(new J.d(function(){return f._onCut.fire()},0)),f._textAreaState=U.b.EMPTY,f._selectionChangeListener=null,f.writeScreenReaderContent("ctor"),f._hasFocus=!1,f._isDoingComposition=!1,f._nextCommand=0,f._register(pe.o(u.domNode,"keydown",function(P){f._isDoingComposition&&(P.keyCode===109||P.keyCode===1)&&P.stopPropagation(),P.equals(9)&&P.preventDefault(),f._onKeyDown.fire(P)})),f._register(pe.o(u.domNode,"keyup",function(P){f._onKeyUp.fire(P)})),f._register(pe.j(u.domNode,"compositionstart",function(P){if(f._isDoingComposition)return;f._isDoingComposition=!0,T.f||f._setAndWriteTextAreaState("compositionstart",U.b.EMPTY),f._onCompositionStart.fire()}));var E=function(P){var x=f._textAreaState,Q=U.b.readFromTextArea(f._textArea);return[Q,U.b.deduceInput(x,Q,P)]},L=function(P){var x=f._textAreaState,Q=U.b.selectedText(P),V={text:Q.value,replaceCharCnt:x.selectionEnd-x.selectionStart};return[Q,V]},R=function(P){return T.f&&P==="ja"?!0:!!(T.i&&P.indexOf("zh-Han")===0)};return f._register(pe.j(u.domNode,"compositionupdate",function(P){if(R(P.locale)){var x=E(!1),Q=x[0],V=x[1];f._textAreaState=Q,f._onType.fire(V),f._onCompositionUpdate.fire(P);return}var W=L(P.data),B=W[0],ae=W[1];f._textAreaState=B,f._onType.fire(ae),f._onCompositionUpdate.fire(P)})),f._register(pe.j(u.domNode,"compositionend",function(P){if(!f._isDoingComposition)return;if(R(P.locale)){var x=E(!1),Q=x[0],V=x[1];f._textAreaState=Q,f._onType.fire(V)}else{var W=L(P.data),Q=W[0],V=W[1];f._textAreaState=Q,f._onType.fire(V)}if((T.f||T.d)&&(f._textAreaState=U.b.readFromTextArea(f._textArea)),!f._isDoingComposition)return;f._isDoingComposition=!1,f._onCompositionEnd.fire()})),f._register(pe.j(u.domNode,"input",function(){if(f._textArea.setIgnoreSelectionChangeTime("received input event"),f._isDoingComposition)return;var P=E(K.e),x=P[0],Q=P[1];if(Q.replaceCharCnt===0&&Q.text.length===1&&D.z(Q.text.charCodeAt(0)))return;f._textAreaState=x,f._nextCommand===0?Q.text!==""&&f._onType.fire(Q):((Q.text!==""||Q.replaceCharCnt!==0)&&f._firePaste(Q.text,null),f._nextCommand=0)})),f._register(pe.j(u.domNode,"cut",function(P){f._textArea.setIgnoreSelectionChangeTime("received cut event"),f._ensureClipboardGetsEditorSelection(P),f._asyncTriggerCut.schedule()})),f._register(pe.j(u.domNode,"copy",function(P){f._ensureClipboardGetsEditorSelection(P)})),f._register(pe.j(u.domNode,"paste",function(P){if(f._textArea.setIgnoreSelectionChangeTime("received paste event"),w.canUseTextData(P)){var x=w.getTextData(P),Q=x[0],V=x[1];Q!==""&&f._firePaste(Q,V)}else f._textArea.getSelectionStart()!==f._textArea.getSelectionEnd()&&f._setAndWriteTextAreaState("paste",U.b.EMPTY),f._nextCommand=1})),f._register(pe.j(u.domNode,"focus",function(){f._setHasFocus(!0)})),f._register(pe.j(u.domNode,"blur",function(){f._setHasFocus(!1)})),f}return d.prototype._installSelectionChangeListener=function(){var c=this,u=0;return pe.j(document,"selectionchange",function(f){if(!c._hasFocus)return;if(c._isDoingComposition)return;if(!T.d||!K.h)return;var E=Date.now(),L=E-u;if(u=E,L<5)return;var R=E-c._textArea.getIgnoreSelectionChangeTime();if(c._textArea.resetSelectionChangeTime(),R<100)return;if(!c._textAreaState.selectionStartPosition||!c._textAreaState.selectionEndPosition)return;var P=c._textArea.getValue();if(c._textAreaState.value!==P)return;var x=c._textArea.getSelectionStart(),Q=c._textArea.getSelectionEnd();if(c._textAreaState.selectionStart===x&&c._textAreaState.selectionEnd===Q)return;var V=c._textAreaState.deduceEditorPosition(x),W=c._host.deduceModelPosition(V[0],V[1],V[2]),B=c._textAreaState.deduceEditorPosition(Q),ae=c._host.deduceModelPosition(B[0],B[1],B[2]),we=new j.a(W.lineNumber,W.column,ae.lineNumber,ae.column);c._onSelectionChangeRequest.fire(we)})},d.prototype.dispose=function(){p.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},d.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},d.prototype.isFocused=function(){return this._hasFocus},d.prototype.refreshFocusState=function(){var c=pe.E(this.textArea.domNode);c?this._setHasFocus(c.activeElement===this.textArea.domNode):pe.M(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},d.prototype._setHasFocus=function(c){if(this._hasFocus===c)return;this._hasFocus=c,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(T.e?this._setAndWriteTextAreaState("focusgain",U.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire()},d.prototype._setAndWriteTextAreaState=function(c,u){this._hasFocus||(u=u.collapseSelection()),u.writeToTextArea(c,this._textArea,this._hasFocus),this._textAreaState=u},d.prototype.writeScreenReaderContent=function(c){if(this._isDoingComposition)return;this._setAndWriteTextAreaState(c,this._host.getScreenReaderContent(this._textAreaState))},d.prototype._ensureClipboardGetsEditorSelection=function(c){var u=this._host.getDataToCopy(w.canUseTextData(c)&&h.a.clipboard.richText),f={version:1,isFromEmptySelection:u.isFromEmptySelection,multicursorText:u.multicursorText,mode:u.mode};if(m.INSTANCE.set(T.h?u.text.replace(/\r\n/g,`
`):u.text,f),!w.canUseTextData(c)){this._setAndWriteTextAreaState("copy or cut",U.b.selectedText(u.text));return}w.setTextData(c,u.text,u.html,f)},d.prototype._firePaste=function(c,u){u||(u=m.INSTANCE.get(c)),this._onPaste.fire({text:c,metadata:u})},d}(H.a),w=function(){function p(){}return p.canUseTextData=function(d){return d.clipboardData?!0:!!window.clipboardData},p.getTextData=function(d){if(d.clipboardData){d.preventDefault();var c=d.clipboardData.getData("text/plain"),u=null,f=d.clipboardData.getData("vscode-editor-data");if(typeof f=="string")try{u=JSON.parse(f),u.version!==1&&(u=null)}catch(E){}return[c,u]}if(window.clipboardData){d.preventDefault();var c=window.clipboardData.getData("Text");return[c,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},p.setTextData=function(d,c,u,f){if(d.clipboardData){d.clipboardData.setData("text/plain",c),typeof u=="string"&&d.clipboardData.setData("text/html",u),d.clipboardData.setData("vscode-editor-data",JSON.stringify(f)),d.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",c),d.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},p}(),v=function(p){b(d,p);function d(c){var u=p.call(this)||this;return u._actual=c,u._ignoreSelectionChangeTime=0,u}return d.prototype.setIgnoreSelectionChangeTime=function(c){this._ignoreSelectionChangeTime=Date.now()},d.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},d.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},d.prototype.getValue=function(){return this._actual.domNode.value},d.prototype.setValue=function(c,u){var f=this._actual.domNode;if(f.value===u)return;this.setIgnoreSelectionChangeTime("setValue"),f.value=u},d.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},d.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},d.prototype.setSelectionRange=function(c,u,f){var E=this._actual.domNode,L=null,R=pe.E(E);R?L=R.activeElement:L=document.activeElement;var P=L===E,x=E.selectionStart,Q=E.selectionEnd;if(P&&x===u&&Q===f){T.h&&window.parent!==window&&E.focus();return}if(P){this.setIgnoreSelectionChangeTime("setSelectionRange"),E.setSelectionRange(u,f),T.h&&window.parent!==window&&E.focus();return}try{var V=pe.V(E);this.setIgnoreSelectionChangeTime("setSelectionRange"),E.focus(),E.setSelectionRange(u,f),pe.T(E,V)}catch(W){}},d}(H.a)},"5Y4S":function(Mt,F,e){"use strict";e.d(F,"a",function(){return J});var T=e("MNsG"),pe=T.b.performance&&typeof T.b.performance.now=="function",J=function(){function I(H){this._highResolution=pe&&H,this._startTime=this._now(),this._stopTime=-1}return I.create=function(H){return H===void 0&&(H=!0),new I(H)},I.prototype.stop=function(){this._stopTime=this._now()},I.prototype.elapsed=function(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},I.prototype._now=function(){return this._highResolution?T.b.performance.now():new Date().getTime()},I}()},"5v8Y":function(Mt,F,e){"use strict";e.d(F,"a",function(){return H});var T=e("MXAL"),pe=function(){var K=function(D,U){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,h){j.__proto__=h}||function(j,h){for(var b in h)h.hasOwnProperty(b)&&(j[b]=h[b])},K(D,U)};return function(D,U){K(D,U);function j(){this.constructor=D}D.prototype=U===null?Object.create(U):(j.prototype=U.prototype,new j)}}(),J=function(K){pe(D,K);function D(U){for(var j=K.call(this,0)||this,h=0,b=U.length;h<b;h++)j.set(U.charCodeAt(h),2);return j.set(32,1),j.set(9,1),j}return D}(T.a);function I(K){var D={};return function(U){return D.hasOwnProperty(U)||(D[U]=K(U)),D[U]}}var H=I(function(K){return new J(K)})},"62hx":function(Mt,F,e){},"6OMU":function(Mt,F,e){"use strict";e.d(F,"v",function(){return T}),e.d(F,"w",function(){return pe}),e.d(F,"g",function(){return J}),e.d(F,"c",function(){return I}),e.d(F,"i",function(){return H}),e.d(F,"r",function(){return K}),e.d(F,"o",function(){return j}),e.d(F,"d",function(){return h}),e.d(F,"p",function(){return b}),e.d(F,"q",function(){return O}),e.d(F,"e",function(){return m}),e.d(F,"f",function(){return C}),e.d(F,"n",function(){return w}),e.d(F,"k",function(){return v}),e.d(F,"j",function(){return p}),e.d(F,"l",function(){return d}),e.d(F,"m",function(){return c}),e.d(F,"u",function(){return u}),e.d(F,"a",function(){return f}),e.d(F,"t",function(){return E}),e.d(F,"s",function(){return L}),e.d(F,"h",function(){return R}),e.d(F,"b",function(){return P});function T(x,Q){return Q===void 0&&(Q=0),x[x.length-(1+Q)]}function pe(x){if(x.length===0)throw new Error("Invalid tail call");return[x.slice(0,x.length-1),x[x.length-1]]}function J(x,Q,V){if(V===void 0&&(V=function(ae,we){return ae===we}),x===Q)return!0;if(!x||!Q)return!1;if(x.length!==Q.length)return!1;for(var W=0,B=x.length;W<B;W++)if(!V(x[W],Q[W]))return!1;return!0}function I(x,Q,V){for(var W=0,B=x.length-1;W<=B;){var ae=(W+B)/2|0,we=V(x[ae],Q);if(we<0)W=ae+1;else if(we>0)B=ae-1;else return ae}return-(W+1)}function H(x,Q){var V=0,W=x.length;if(W===0)return 0;for(;V<W;){var B=Math.floor((V+W)/2);Q(x[B])?W=B:V=B+1}return V}function K(x,Q){return U(x,Q,0,x.length-1,[]),x}function D(x,Q,V,W,B,ae){for(var we=V,Me=W+1,Pe=V;Pe<=B;Pe++)ae[Pe]=x[Pe];for(var Pe=V;Pe<=B;Pe++)we>W?x[Pe]=ae[Me++]:Me>B?x[Pe]=ae[we++]:Q(ae[Me],ae[we])<0?x[Pe]=ae[Me++]:x[Pe]=ae[we++]}function U(x,Q,V,W,B){if(W<=V)return;var ae=V+(W-V)/2|0;if(U(x,Q,V,ae,B),U(x,Q,ae+1,W,B),Q(x[ae],x[ae+1])<=0)return;D(x,Q,V,ae,W,B)}function j(x,Q){for(var V=[],W=void 0,B=0,ae=K(x.slice(0),Q);B<ae.length;B++){var we=ae[B];!W||Q(W[0],we)!==0?(W=[we],V.push(W)):W.push(we)}return V}function h(x){return x.filter(function(Q){return!!Q})}function b(x){return!Array.isArray(x)||x.length===0}function O(x){return Array.isArray(x)&&x.length>0}function m(x,Q){if(!Q)return x.filter(function(W,B){return x.indexOf(W)===B});var V=Object.create(null);return x.filter(function(W){var B=Q(W);return V[B]?!1:(V[B]=!0,!0)})}function C(x){var Q=new Set;return x.filter(function(V){return Q.has(V)?!1:(Q.add(V),!0)})}function w(x){var Q=[];return x.forEach(function(V){return Q.push(V)}),Q}function v(x,Q){for(var V=0;V<x.length;V++){var W=x[V];if(Q(W))return V}return-1}function p(x,Q,V){V===void 0&&(V=void 0);var W=v(x,Q);return W<0?V:x[W]}function d(x,Q){return x.length>0?x[0]:Q}function c(x){var Q;return(Q=[]).concat.apply(Q,x)}function u(x,Q){var V=typeof Q=="number"?x:0;typeof Q=="number"?V=x:(V=0,Q=x);var W=[];if(V<=Q)for(var B=V;B<Q;B++)W.push(B);else for(var B=V;B>Q;B--)W.push(B);return W}function f(x,Q,V){var W=x.slice(0,Q),B=x.slice(Q);return W.concat(V,B)}function E(x,Q){var V=x.indexOf(Q);V>-1&&(x.splice(V,1),x.unshift(Q))}function L(x,Q){var V=x.indexOf(Q);V>-1&&(x.splice(V,1),x.push(Q))}function R(x,Q){for(var V=0;V<x.length;V++){var W=x[V];if(Q(W,V,x))return W}return}function P(x){return Array.isArray(x)?x:[x]}},"6lNC":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return e.e(317).then(e.bind(null,"meXB"))}})},"79sc":function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("Cg/j"),pe=Object(T.c)("markerDecorationsService")},"7afs":function(Mt,F,e){"use strict";e.d(F,"a",function(){return T}),e.d(F,"b",function(){return I});function T(D,U){U===void 0&&(U=0);switch(typeof D){case"object":return D===null?pe(349,U):Array.isArray(D)?H(D,U):K(D,U);case"string":return I(D,U);case"boolean":return J(D,U);case"number":return pe(D,U);case"undefined":return pe(0,937);default:return pe(0,617)}}function pe(D,U){return(U<<5)-U+D|0}function J(D,U){return pe(D?433:863,U)}function I(D,U){U=pe(149417,U);for(var j=0,h=D.length;j<h;j++)U=pe(D.charCodeAt(j),U);return U}function H(D,U){return U=pe(104579,U),D.reduce(function(j,h){return T(h,j)},U)}function K(D,U){return U=pe(181387,U),Object.keys(D).sort().reduce(function(j,h){return j=I(h,j),T(D[h],j)},U)}},"7lZ/":function(Mt,F,e){"use strict";e.d(F,"a",function(){return I});var T=e("qj0h"),pe=e("Vhoy"),J=e("N0LK"),I=function(){function H(K,D){this.supportCodicons=D,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",K.appendChild(this.domNode)}return Object.defineProperty(H.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),H.prototype.set=function(K,D,U,j){if(D===void 0&&(D=[]),U===void 0&&(U=""),K||(K=""),j&&(K=H.escapeNewLines(K,D)),this.didEverRender&&this.text===K&&this.title===U&&T.e(this.highlights,D))return;Array.isArray(D)||(D=[]),this.text=K,this.title=U,this.highlights=D,this.render()},H.prototype.render=function(){for(var K="",D=0,U=0,j=this.highlights;U<j.length;U++){var h=j[U];if(h.end===h.start)continue;if(D<h.start){K+="<span>";var b=this.text.substring(D,h.start);K+=this.supportCodicons?Object(pe.c)(Object(J.o)(b)):Object(J.o)(b),K+="</span>",D=h.end}h.extraClasses?K+='<span class="highlight '+h.extraClasses+'">':K+='<span class="highlight">';var O=this.text.substring(h.start,h.end);K+=this.supportCodicons?Object(pe.c)(Object(J.o)(O)):Object(J.o)(O),K+="</span>",D=h.end}if(D<this.text.length){K+="<span>";var O=this.text.substring(D);K+=this.supportCodicons?Object(pe.c)(Object(J.o)(O)):Object(J.o)(O),K+="</span>"}this.domNode.innerHTML=K,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},H.escapeNewLines=function(K,D){var U=0,j=0;return K.replace(/\r\n|\r|\n/g,function(h,b){j=h===`\r
`?-1:0,b+=U;for(var O=0,m=D;O<m.length;O++){var C=m[O];if(C.end<=b)continue;C.start>=b&&(C.start+=j),C.end>=b&&(C.end+=j)}return U+=j,"\u23CE"})},H}()},"7zd4":function(Mt,F,e){},"8ATB":function(Mt,F,e){},"8HsV":function(Mt,F,e){"use strict";e.d(F,"a",function(){return T});var T=function(){function pe(){for(var J=[],I=0;I<arguments.length;I++)J[I]=arguments[I];this._entries=new Map;for(var H=0,K=J;H<K.length;H++){var D=K[H],U=D[0],j=D[1];this.set(U,j)}}return pe.prototype.set=function(J,I){var H=this._entries.get(J);return this._entries.set(J,I),H},pe.prototype.has=function(J){return this._entries.has(J)},pe.prototype.get=function(J){return this._entries.get(J)},pe}()},"8XyJ":function(Mt,F,e){"use strict";e.r(F),e.d(F,"InsertCursorAbove",function(){return d}),e.d(F,"InsertCursorBelow",function(){return c}),e.d(F,"MultiCursorSessionResult",function(){return L}),e.d(F,"MultiCursorSession",function(){return R}),e.d(F,"MultiCursorSelectionController",function(){return P}),e.d(F,"MultiCursorSelectionControllerAction",function(){return x}),e.d(F,"AddSelectionToNextFindMatchAction",function(){return Q}),e.d(F,"AddSelectionToPreviousFindMatchAction",function(){return V}),e.d(F,"MoveSelectionToNextFindMatchAction",function(){return W}),e.d(F,"MoveSelectionToPreviousFindMatchAction",function(){return B}),e.d(F,"SelectHighlightsAction",function(){return ae}),e.d(F,"CompatChangeAll",function(){return we}),e.d(F,"SelectionHighlighter",function(){return Pe});var T=e("3/fG"),pe=e("X+cX"),J=e("/kV6"),I=e("pmY6"),H=e("sswD"),K=e("oAeH"),D=e("aokT"),U=e("gCVg"),j=e("wQH0"),h=e("M1Kb"),b=e("tX9W"),O=e("twdY"),m=e("oQaD"),C=e("MD5Z"),w=e("t9D7"),v=e("T8No"),p=function(){var Fe=function(re,ee){return Fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,q){ne.__proto__=q}||function(ne,q){for(var le in q)q.hasOwnProperty(le)&&(ne[le]=q[le])},Fe(re,ee)};return function(re,ee){Fe(re,ee);function ne(){this.constructor=re}re.prototype=ee===null?Object.create(ee):(ne.prototype=ee.prototype,new ne)}}(),d=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.insertCursorAbove",label:T.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|512|16,linux:{primary:1024|512|16,secondary:[2048|1024|16]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})||this}return re.prototype.run=function(ee,ne,q){if(!ne.hasModel())return;var le=q&&q.logicalLine===!0,Z=ne._getCursors(),ve=Z.context;if(ve.config.readOnly)return;ve.model.pushStackElement(),Z.setStates(q.source,3,K.b.addCursorUp(ve,Z.getAll(),le)),Z.reveal(q.source,!0,1,0)},re}(H.b),c=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.insertCursorBelow",label:T.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|512|18,linux:{primary:1024|512|18,secondary:[2048|1024|18]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})||this}return re.prototype.run=function(ee,ne,q){if(!ne.hasModel())return;var le=q&&q.logicalLine===!0,Z=ne._getCursors(),ve=Z.context;if(ve.config.readOnly)return;ve.model.pushStackElement(),Z.setStates(q.source,3,K.b.addCursorDown(ve,Z.getAll(),le)),Z.reveal(q.source,!0,2,0)},re}(H.b),u=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.insertCursorAtEndOfEachLineSelected",label:T.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:j.a.editorTextFocus,primary:1024|512|39,weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})||this}return re.prototype.getCursorsForSelection=function(ee,ne,q){if(ee.isEmpty())return;for(var le=ee.startLineNumber;le<ee.endLineNumber;le++){var Z=ne.getLineMaxColumn(le);q.push(new U.a(le,Z,le,Z))}ee.endColumn>1&&q.push(new U.a(ee.endLineNumber,ee.endColumn,ee.endLineNumber,ee.endColumn))},re.prototype.run=function(ee,ne){var q=this;if(!ne.hasModel())return;var le=ne.getModel(),Z=ne.getSelections(),ve=[];Z.forEach(function(Ne){return q.getCursorsForSelection(Ne,le,ve)}),ve.length>0&&ne.setSelections(ve)},re}(H.b),f=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.addCursorsToBottom",label:T.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}return re.prototype.run=function(ee,ne){if(!ne.hasModel())return;for(var q=ne.getSelections(),le=ne.getModel().getLineCount(),Z=[],ve=q[0].startLineNumber;ve<=le;ve++)Z.push(new U.a(ve,q[0].startColumn,ve,q[0].endColumn));Z.length>0&&ne.setSelections(Z)},re}(H.b),E=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.addCursorsToTop",label:T.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}return re.prototype.run=function(ee,ne){if(!ne.hasModel())return;for(var q=ne.getSelections(),le=[],Z=q[0].startLineNumber;Z>=1;Z--)le.push(new U.a(Z,q[0].startColumn,Z,q[0].endColumn));le.length>0&&ne.setSelections(le)},re}(H.b),L=function(){function Fe(re,ee,ne){this.selections=re,this.revealRange=ee,this.revealScrollType=ne}return Fe}(),R=function(){function Fe(re,ee,ne,q,le,Z,ve){this._editor=re,this.findController=ee,this.isDisconnectedFromFindController=ne,this.searchText=q,this.wholeWord=le,this.matchCase=Z,this.currentMatch=ve}return Fe.create=function(re,ee){if(!re.hasModel())return null;var ne=ee.getState();if(!re.hasTextFocus()&&ne.isRevealed&&ne.searchString.length>0)return new Fe(re,ee,!1,ne.searchString,ne.wholeWord,ne.matchCase,null);var q=!1,le,Z,ve=re.getSelections();ve.length===1&&ve[0].isEmpty()?(q=!0,le=!0,Z=!0):(le=ne.wholeWord,Z=ne.matchCase);var Ne=re.getSelection(),Xe,de=null;if(Ne.isEmpty()){var ge=re.getModel().getWordAtPosition(Ne.getStartPosition());if(!ge)return null;Xe=ge.word,de=new U.a(Ne.startLineNumber,ge.startColumn,Ne.startLineNumber,ge.endColumn)}else Xe=re.getModel().getValueInRange(Ne).replace(/\r\n/g,`
`);return new Fe(re,ee,q,Xe,le,Z,de)},Fe.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var re=this._getNextMatch();if(!re)return null;var ee=this._editor.getSelections();return new L(ee.concat(re),re,0)},Fe.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var re=this._getNextMatch();if(!re)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(re),re,0)},Fe.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var re=this.currentMatch;return this.currentMatch=null,re}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ne=ee[ee.length-1],q=this._editor.getModel().findNextMatch(this.searchText,ne.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new U.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},Fe.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var re=this._getPreviousMatch();if(!re)return null;var ee=this._editor.getSelections();return new L(ee.concat(re),re,0)},Fe.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var re=this._getPreviousMatch();if(!re)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(re),re,0)},Fe.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var re=this.currentMatch;return this.currentMatch=null,re}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ne=ee[ee.length-1],q=this._editor.getModel().findPreviousMatch(this.searchText,ne.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new U.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},Fe.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1,1073741824)):[]},Fe}(),P=function(Fe){p(re,Fe);function re(ee){var ne=Fe.call(this)||this;return ne._sessionDispose=ne._register(new I.b),ne._editor=ee,ne._ignoreSelectionChange=!1,ne._session=null,ne}return re.get=function(ee){return ee.getContribution(re.ID)},re.prototype.dispose=function(){this._endSession(),Fe.prototype.dispose.call(this)},re.prototype._beginSessionIfNeeded=function(ee){var ne=this;if(!this._session){var q=R.create(this._editor,ee);if(!q)return;this._session=q;var le={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(le.wholeWordOverride=1,le.matchCaseOverride=1,le.isRegexOverride=2),ee.getState().change(le,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(function(Z){if(ne._ignoreSelectionChange)return;ne._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(function(){ne._endSession()})),this._sessionDispose.add(ee.getState().onFindReplaceStateChange(function(Z){(Z.matchCase||Z.wholeWord)&&ne._endSession()}))}},re.prototype._endSession=function(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){var ee={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(ee,!1)}this._session=null},re.prototype._setSelections=function(ee){this._ignoreSelectionChange=!0,this._editor.setSelections(ee),this._ignoreSelectionChange=!1},re.prototype._expandEmptyToWord=function(ee,ne){if(!ne.isEmpty())return ne;var q=ee.getWordAtPosition(ne.getStartPosition());return q?new U.a(ne.startLineNumber,q.startColumn,ne.startLineNumber,q.endColumn):ne},re.prototype._applySessionResult=function(ee){if(!ee)return;this._setSelections(ee.selections),ee.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(ee.revealRange,ee.revealScrollType)},re.prototype.getSession=function(ee){return this._session},re.prototype.addSelectionToNextFindMatch=function(ee){if(!this._editor.hasModel())return;if(!this._session){var ne=this._editor.getSelections();if(ne.length>1){var q=ee.getState(),le=q.matchCase,Z=Be(this._editor.getModel(),ne,le);if(!Z){for(var ve=this._editor.getModel(),Ne=[],Xe=0,de=ne.length;Xe<de;Xe++)Ne[Xe]=this._expandEmptyToWord(ve,ne[Xe]);this._editor.setSelections(Ne);return}}}this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())},re.prototype.addSelectionToPreviousFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())},re.prototype.moveSelectionToNextFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())},re.prototype.moveSelectionToPreviousFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())},re.prototype.selectAll=function(ee){if(!this._editor.hasModel())return;var ne=null,q=ee.getState();if(q.isRevealed&&q.searchString.length>0&&q.isRegex)ne=this._editor.getModel().findMatches(q.searchString,!0,q.isRegex,q.matchCase,q.wholeWord?this._editor.getOption(96):null,!1,1073741824);else{if(this._beginSessionIfNeeded(ee),!this._session)return;ne=this._session.selectAll()}if(q.searchScope){for(var le=q.searchScope,Z=[],ve=0;ve<ne.length;ve++)ne[ve].range.endLineNumber<=le.endLineNumber&&ne[ve].range.startLineNumber>=le.startLineNumber&&Z.push(ne[ve]);ne=Z}if(ne.length>0){for(var Ne=this._editor.getSelection(),ve=0,Xe=ne.length;ve<Xe;ve++){var de=ne[ve],ge=de.range.intersectRanges(Ne);if(ge){ne[ve]=ne[0],ne[0]=de;break}}this._setSelections(ne.map(function(Ee){return new U.a(Ee.range.startLineNumber,Ee.range.startColumn,Ee.range.endLineNumber,Ee.range.endColumn)}))}},re.ID="editor.contrib.multiCursorController",re}(I.a),x=function(Fe){p(re,Fe);function re(){return Fe!==null&&Fe.apply(this,arguments)||this}return re.prototype.run=function(ee,ne){var q=P.get(ne);if(!q)return;var le=m.CommonFindController.get(ne);if(!le)return;this._run(q,le)},re}(H.b),Q=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.addSelectionToNextFindMatch",label:T.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:j.a.focus,primary:2048|34,weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})||this}return re.prototype._run=function(ee,ne){ee.addSelectionToNextFindMatch(ne)},re}(x),V=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.addSelectionToPreviousFindMatch",label:T.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})||this}return re.prototype._run=function(ee,ne){ee.addSelectionToPreviousFindMatch(ne)},re}(x),W=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.moveSelectionToNextFindMatch",label:T.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:j.a.focus,primary:Object(J.a)(2048|41,2048|34),weight:100}})||this}return re.prototype._run=function(ee,ne){ee.moveSelectionToNextFindMatch(ne)},re}(x),B=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.moveSelectionToPreviousFindMatch",label:T.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})||this}return re.prototype._run=function(ee,ne){ee.moveSelectionToPreviousFindMatch(ne)},re}(x),ae=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.selectHighlights",label:T.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:j.a.focus,primary:2048|1024|42,weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})||this}return re.prototype._run=function(ee,ne){ee.selectAll(ne)},re}(x),we=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.changeAll",label:T.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:v.a.and(j.a.writable,j.a.editorTextFocus),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|60,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})||this}return re.prototype._run=function(ee,ne){ee.selectAll(ne)},re}(x),Me=function(){function Fe(re,ee,ne){this.searchText=re,this.matchCase=ee,this.wordSeparators=ne}return Fe.softEquals=function(re,ee){return!re&&!ee?!0:!re||!ee?!1:re.searchText===ee.searchText&&re.matchCase===ee.matchCase&&re.wordSeparators===ee.wordSeparators},Fe}(),Pe=function(Fe){p(re,Fe);function re(ee){var ne=Fe.call(this)||this;return ne.editor=ee,ne._isEnabled=ee.getOption(82),ne.decorations=[],ne.updateSoon=ne._register(new pe.d(function(){return ne._update()},300)),ne.state=null,ne._register(ee.onDidChangeConfiguration(function(q){ne._isEnabled=ee.getOption(82)})),ne._register(ee.onDidChangeCursorSelection(function(q){if(!ne._isEnabled)return;q.selection.isEmpty()?q.reason===3?(ne.state&&ne._setState(null),ne.updateSoon.schedule()):ne._setState(null):ne._update()})),ne._register(ee.onDidChangeModel(function(q){ne._setState(null)})),ne._register(m.CommonFindController.get(ee).getState().onFindReplaceStateChange(function(q){ne._update()})),ne}return re.prototype._update=function(){this._setState(re._createState(this._isEnabled,this.editor))},re._createState=function(ee,ne){if(!ee)return null;if(!ne.hasModel())return null;var q=ne.getSelection();if(q.startLineNumber!==q.endLineNumber)return null;var le=P.get(ne);if(!le)return null;var Z=m.CommonFindController.get(ne);if(!Z)return null;var ve=le.getSession(Z);if(!ve){var Ne=ne.getSelections();if(Ne.length>1){var Xe=Z.getState(),de=Xe.matchCase,ge=Be(ne.getModel(),Ne,de);if(!ge)return null}ve=R.create(ne,Z)}if(!ve)return null;if(ve.currentMatch)return null;if(/^[ \t]+$/.test(ve.searchText))return null;if(ve.searchText.length>200)return null;var Ee=Z.getState(),Te=Ee.matchCase;if(Ee.isRevealed){var Ce=Ee.searchString;Te||(Ce=Ce.toLowerCase());var fe=ve.searchText;if(Te||(fe=fe.toLowerCase()),Ce===fe&&ve.matchCase===Ee.matchCase&&ve.wholeWord===Ee.wholeWord&&!Ee.isRegex)return null}return new Me(ve.searchText,ve.matchCase,ve.wholeWord?ne.getOption(96):null)},re.prototype._setState=function(ee){if(Me.softEquals(this.state,ee)){this.state=ee;return}if(this.state=ee,!this.state){this.decorations=this.editor.deltaDecorations(this.decorations,[]);return}if(!this.editor.hasModel())return;var ne=this.editor.getModel();if(ne.isTooLargeForTokenization())return;var q=O.i.has(ne),le=ne.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(fe){return fe.range});le.sort(D.a.compareRangesUsingStarts);var Z=this.editor.getSelections();Z.sort(D.a.compareRangesUsingStarts);for(var ve=[],Ne=0,Xe=0,de=le.length,ge=Z.length;Ne<de;){var Ee=le[Ne];if(Xe>=ge)ve.push(Ee),Ne++;else{var Te=D.a.compareRangesUsingStarts(Ee,Z[Xe]);Te<0?((Z[Xe].isEmpty()||!D.a.areIntersecting(Ee,Z[Xe]))&&ve.push(Ee),Ne++):(Te>0||Ne++,Xe++)}}var Ce=ve.map(function(fe){return{range:fe,options:q?re._SELECTION_HIGHLIGHT:re._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,Ce)},re.prototype.dispose=function(){this._setState(null),Fe.prototype.dispose.call(this)},re.ID="editor.contrib.selectionHighlighter",re._SELECTION_HIGHLIGHT_OVERVIEW=b.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(w.f)(C.Mb),position:h.d.Center}}),re._SELECTION_HIGHLIGHT=b.a.register({stickiness:1,className:"selectionHighlight"}),re}(I.a);function Be(Fe,re,ee){for(var ne=Ke(Fe,re[0],!ee),q=1,le=re.length;q<le;q++){var Z=re[q];if(Z.isEmpty())return!1;var ve=Ke(Fe,Z,!ee);if(ne!==ve)return!1}return!0}function Ke(Fe,re,ee){var ne=Fe.getValueInRange(re);return ee?ne.toLowerCase():ne}Object(H.h)(P.ID,P),Object(H.h)(Pe.ID,Pe),Object(H.f)(d),Object(H.f)(c),Object(H.f)(u),Object(H.f)(Q),Object(H.f)(V),Object(H.f)(W),Object(H.f)(B),Object(H.f)(ae),Object(H.f)(we),Object(H.f)(f),Object(H.f)(E)},"8Ydt":function(Mt,F,e){"use strict";e.r(F),e.d(F,"DefinitionAction",function(){return S});var T=e("OBOq"),pe=e("X+cX"),J=e("/kV6"),I=e("MNsG"),H=e("sFUC"),K=e("sswD"),D=e("Vxe3"),U=e("cGHE"),j=e("aokT"),h=e("wQH0"),b=e("twdY"),O=e("NR8r"),m=e("iNS8"),C=e("QY8A"),w=e("9o5J"),v=e("3/fG"),p=e("fjLI"),d=e("T8No"),c=e("sM1p"),u=e("tTk5"),f=e("vRMv"),E=e("nnTU"),L=e("vATl"),R=e("Cg/j"),P=e("9fML"),x=e("nrhi"),Q=e("pmY6"),V=e("MI8n"),W=e("bexQ"),B=e("gslv"),ae=function(){var Ue=function(Je,nt){return Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,Rt){vt.__proto__=Rt}||function(vt,Rt){for(var Ot in Rt)Rt.hasOwnProperty(Ot)&&(vt[Ot]=Rt[Ot])},Ue(Je,nt)};return function(Je,nt){Ue(Je,nt);function vt(){this.constructor=Je}Je.prototype=nt===null?Object.create(nt):(vt.prototype=nt.prototype,new vt)}}(),we=function(Ue,Je,nt,vt){var Rt=arguments.length,Ot=Rt<3?Je:vt===null?vt=Object.getOwnPropertyDescriptor(Je,nt):vt,Kt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ot=Reflect.decorate(Ue,Je,nt,vt);else for(var ao=Ue.length-1;ao>=0;ao--)(Kt=Ue[ao])&&(Ot=(Rt<3?Kt(Ot):Rt>3?Kt(Je,nt,Ot):Kt(Je,nt))||Ot);return Rt>3&&Ot&&Object.defineProperty(Je,nt,Ot),Ot},Me=function(Ue,Je){return function(nt,vt){Je(nt,vt,Ue)}},Pe=new d.d("hasSymbols",!1),Be=Object(R.c)("ISymbolNavigationService"),Ke=function(){function Ue(Je,nt,vt,Rt){this._editorService=nt,this._notificationService=vt,this._keybindingService=Rt,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Pe.bindTo(Je)}return Ue.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(Q.f)(this._currentState),Object(Q.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},Ue.prototype.put=function(Je){var nt=this,vt=Je.parent.parent;if(vt.references.length<=1){this.reset();return}this._currentModel=vt,this._currentIdx=vt.references.indexOf(Je),this._ctxHasSymbols.set(!0),this._showMessage();var Rt=new Fe(this._editorService),Ot=Rt.onDidChange(function(Kt){if(nt._ignoreEditorChange)return;var ao=nt._editorService.getActiveCodeEditor();if(!ao)return;var lo=ao.getModel(),so=ao.getPosition();if(!lo||!so)return;for(var jt=!1,pt=!1,gt=0,Tt=vt.references;gt<Tt.length;gt++){var it=Tt[gt];if(Object(B.e)(it.uri,lo.uri))jt=!0,pt=pt||j.a.containsPosition(it.range,so);else if(jt)break}(!jt||!pt)&&nt.reset()});this._currentState=Object(Q.e)(Rt,Ot)},Ue.prototype.revealNext=function(Je){var nt=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var vt=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:vt.uri,options:{selection:j.a.collapseToStart(vt.range),revealInCenterIfOutsideViewport:!0}},Je).finally(function(){nt._ignoreEditorChange=!1})},Ue.prototype._showMessage=function(){Object(Q.f)(this._currentMessage);var Je=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),nt=Je?Object(v.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,Je.getLabel()):Object(v.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(nt)},Ue=we([Me(0,d.c),Me(1,D.a),Me(2,c.a),Me(3,W.a)],Ue),Ue}();Object(P.b)(Be,Ke,!0),Object(K.g)(new(function(Ue){ae(Je,Ue);function Je(){return Ue.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:Pe,kbOpts:{weight:100,primary:70}})||this}return Je.prototype.runEditorCommand=function(nt,vt){return nt.get(Be).revealNext(vt)},Je}(K.c))),x.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:Pe,primary:9,handler:function(Ue){Ue.get(Be).reset()}});var Fe=function(){function Ue(Je){this._listener=new Map,this._disposables=new Q.b,this._onDidChange=new V.a,this.onDidChange=this._onDidChange.event,this._disposables.add(Je.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(Je.onCodeEditorAdd(this._onDidAddEditor,this)),Je.listCodeEditors().forEach(this._onDidAddEditor,this)}return Ue.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach(Q.f)},Ue.prototype._onDidAddEditor=function(Je){var nt=this;this._listener.set(Je,Object(Q.e)(Je.onDidChangeCursorPosition(function(vt){return nt._onDidChange.fire({editor:Je})}),Je.onDidChangeModelContent(function(vt){return nt._onDidChange.fire({editor:Je})})))},Ue.prototype._onDidRemoveEditor=function(Je){Object(Q.f)(this._listener.get(Je)),this._listener.delete(Je)},Ue=we([Me(0,D.a)],Ue),Ue}(),re=e("D3Dy"),ee=e("bY76"),ne=e("746U"),q=e("03kh"),le=function(){var Ue=function(Je,nt){return Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,Rt){vt.__proto__=Rt}||function(vt,Rt){for(var Ot in Rt)Rt.hasOwnProperty(Ot)&&(vt[Ot]=Rt[Ot])},Ue(Je,nt)};return function(Je,nt){Ue(Je,nt);function vt(){this.constructor=Je}Je.prototype=nt===null?Object.create(nt):(vt.prototype=nt.prototype,new vt)}}(),Z=function(Ue,Je,nt,vt){function Rt(Ot){return Ot instanceof nt?Ot:new nt(function(Kt){Kt(Ot)})}return new(nt||(nt=Promise))(function(Ot,Kt){function ao(jt){try{so(vt.next(jt))}catch(pt){Kt(pt)}}function lo(jt){try{so(vt.throw(jt))}catch(pt){Kt(pt)}}function so(jt){jt.done?Ot(jt.value):Rt(jt.value).then(ao,lo)}so((vt=vt.apply(Ue,Je||[])).next())})},ve=function(Ue,Je){var nt={label:0,sent:function(){if(Ot[0]&1)throw Ot[1];return Ot[1]},trys:[],ops:[]},vt,Rt,Ot,Kt;return Kt={next:ao(0),throw:ao(1),return:ao(2)},typeof Symbol=="function"&&(Kt[Symbol.iterator]=function(){return this}),Kt;function ao(so){return function(jt){return lo([so,jt])}}function lo(so){if(vt)throw new TypeError("Generator is already executing.");for(;nt;)try{if(vt=1,Rt&&(Ot=so[0]&2?Rt.return:so[0]?Rt.throw||((Ot=Rt.return)&&Ot.call(Rt),0):Rt.next)&&!(Ot=Ot.call(Rt,so[1])).done)return Ot;(Rt=0,Ot)&&(so=[so[0]&2,Ot.value]);switch(so[0]){case 0:case 1:Ot=so;break;case 4:return nt.label++,{value:so[1],done:!1};case 5:nt.label++,Rt=so[1],so=[0];continue;case 7:so=nt.ops.pop(),nt.trys.pop();continue;default:if(!(Ot=nt.trys,Ot=Ot.length>0&&Ot[Ot.length-1])&&(so[0]===6||so[0]===2)){nt=0;continue}if(so[0]===3&&(!Ot||so[1]>Ot[0]&&so[1]<Ot[3])){nt.label=so[1];break}if(so[0]===6&&nt.label<Ot[1]){nt.label=Ot[1],Ot=so;break}if(Ot&&nt.label<Ot[2]){nt.label=Ot[2],nt.ops.push(so);break}Ot[2]&&nt.ops.pop(),nt.trys.pop();continue}so=Je.call(Ue,nt)}catch(jt){so=[6,jt],Rt=0}finally{vt=Ot=0}if(so[0]&5)throw so[1];return{value:so[0]?so[1]:void 0,done:!0}}},Ne,Xe,de,ge,Ee,Te,Ce,fe;p.c.appendMenuItem(7,{submenu:8,title:v.a("peek.submenu","Peek"),group:"navigation",order:100});var $=function(Ue){le(Je,Ue);function Je(nt,vt){var Rt=Ue.call(this,vt)||this;return Rt._configuration=nt,Rt}return Je.prototype.run=function(nt,vt){var Rt=this;if(!vt.hasModel())return Promise.resolve(void 0);var Ot=nt.get(c.a),Kt=nt.get(D.a),ao=nt.get(u.a),lo=nt.get(Be),so=vt.getModel(),jt=vt.getPosition(),pt=new L.b(vt,1|4),gt=Object(pe.j)(this._getLocationModel(so,jt,pt.token),pt.token).then(function(Tt){return Z(Rt,void 0,void 0,function(){var it,et,ut,Ct;return ve(this,function(ht){if(!Tt||pt.token.isCancellationRequested)return[2];if(Object(T.a)(Tt.ariaMessage),Tt.referenceAt(so.uri,jt)&&(et=this._getAlternativeCommand(vt),et!==this.id&&(it=vt.getAction(et))),ut=Tt.references.length,ut===0)this._configuration.muteMessage||(Ct=so.getWordAtPosition(jt),O.a.get(vt).showMessage(this._getNoResultFoundMessage(Ct),jt));else if(ut===1&&it)it.run();else return[2,this._onResult(Kt,lo,vt,Tt)];return[2]})})},function(Tt){Ot.error(Tt)}).finally(function(){pt.dispose()});return ao.showWhile(gt,250),gt},Je.prototype._onResult=function(nt,vt,Rt,Ot){return Z(this,void 0,void 0,function(){var Kt,ao,lo,so;return ve(this,function(jt){switch(jt.label){case 0:return Kt=this._getGoToPreference(Rt),!(Rt instanceof q.a)&&(this._configuration.openInPeek||Kt==="peek"&&Ot.references.length>1)?(this._openInPeek(Rt,Ot),[3,3]):[3,1];case 1:return ao=Ot.firstReference(),lo=Ot.references.length>1&&Kt==="gotoAndPeek",[4,this._openReference(Rt,nt,ao,this._configuration.openToSide,!lo)];case 2:so=jt.sent(),lo&&so?this._openInPeek(so,Ot):Ot.dispose(),Kt==="goto"&&vt.put(ao),jt.label=3;case 3:return[2]}})})},Je.prototype._openReference=function(nt,vt,Rt,Ot,Kt){return Z(this,void 0,void 0,function(){var ao,lo,so,jt;return ve(this,function(pt){switch(pt.label){case 0:return ao=void 0,Object(b.G)(Rt)&&(ao=Rt.targetSelectionRange),ao||(ao=Rt.range),[4,vt.openCodeEditor({resource:Rt.uri,options:{selection:j.a.collapseToStart(ao),revealInCenterIfOutsideViewport:!0}},nt,Ot)];case 1:return lo=pt.sent(),lo?(Kt&&(so=lo.getModel(),jt=lo.deltaDecorations([],[{range:ao,options:{className:"symbolHighlight"}}]),setTimeout(function(){lo.getModel()===so&&lo.deltaDecorations(jt,[])},350)),[2,lo]):[2,void 0]}})})},Je.prototype._openInPeek=function(nt,vt){var Rt=C.a.get(nt);Rt&&nt.hasModel()?Rt.toggleWidget(nt.getSelection(),Object(pe.f)(function(Ot){return Promise.resolve(vt)}),this._configuration.openInPeek):vt.dispose()},Je}(K.b),S=function(Ue){le(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.b)(nt,vt,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("def.title","Definitions")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?v.a("noResultWord","No definition found for '{0}'",nt.word):v.a("generic.noResults","No definition found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeDefinitionCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleDefinitions},Je}($),z=I.g&&!re.l?2048|70:70;Object(K.f)((Ne=function(Ue){le(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.id,label:v.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:d.a.and(h.a.hasDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:z,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:v.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return E.a.registerCommandAlias("editor.action.goToDeclaration",Je.id),nt}return Je}(S),Ne.id="editor.action.revealDefinition",Ne)),Object(K.f)((Xe=function(Ue){le(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Je.id,label:v.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:d.a.and(h.a.hasDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:Object(J.a)(2048|41,z),weight:100}})||this;return E.a.registerCommandAlias("editor.action.openDeclarationToTheSide",Je.id),nt}return Je}(S),Xe.id="editor.action.revealDefinitionAside",Xe)),Object(K.f)((de=function(Ue){le(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.id,label:v.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:d.a.and(h.a.hasDefinitionProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return E.a.registerCommandAlias("editor.action.previewDeclaration",Je.id),nt}return Je}(S),de.id="editor.action.peekDefinition",de));var ce=function(Ue){le(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.a)(nt,vt,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("decl.title","Declarations")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?v.a("decl.noResultWord","No declaration found for '{0}'",nt.word):v.a("decl.generic.noResults","No declaration found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeDeclarationCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleDeclarations},Je}($);Object(K.f)((ge=function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.id,label:v.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:d.a.and(h.a.hasDeclarationProvider,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:v.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?v.a("decl.noResultWord","No declaration found for '{0}'",nt.word):v.a("decl.generic.noResults","No declaration found")},Je}(ce),ge.id="editor.action.revealDeclaration",ge)),Object(K.f)(function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:v.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:d.a.and(h.a.hasDeclarationProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return Je}(ce));var se=function(Ue){le(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.e)(nt,vt,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("typedef.title","Type Definitions")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?v.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",nt.word):v.a("goToTypeDefinition.generic.noResults","No type definition found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeTypeDefinitionCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleTypeDefinitions},Je}($);Object(K.f)((Ee=function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.ID,label:v.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:d.a.and(h.a.hasTypeDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:v.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return Je}(se),Ee.ID="editor.action.goToTypeDefinition",Ee)),Object(K.f)((Te=function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.ID,label:v.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:d.a.and(h.a.hasTypeDefinitionProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return Je}(se),Te.ID="editor.action.peekTypeDefinition",Te));var ye=function(Ue){le(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.c)(nt,vt,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("impl.title","Implementations")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?v.a("goToImplementation.noResultWord","No implementation found for '{0}'",nt.word):v.a("goToImplementation.generic.noResults","No implementation found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeImplementationCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleImplementations},Je}($);Object(K.f)((Ce=function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.ID,label:v.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:d.a.and(h.a.hasImplementationProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:v.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return Je}(ye),Ce.ID="editor.action.goToImplementation",Ce)),Object(K.f)((fe=function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.ID,label:v.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:d.a.and(h.a.hasImplementationProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return Je}(ye),fe.ID="editor.action.peekImplementation",fe));var Re=function(Ue){le(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getNoResultFoundMessage=function(nt){return nt?v.a("references.no","No references found for '{0}'",nt.word):v.a("references.noGeneric","No references found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeReferenceCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleReferences},Je}($);Object(K.f)(function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:v.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:d.a.and(h.a.hasReferenceProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:v.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.d)(nt,vt,!0,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("ref.title","References")]))]}})})},Je}(Re)),Object(K.f)(function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:v.a("references.action.label","Peek References"),alias:"Peek References",precondition:d.a.and(h.a.hasReferenceProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.d)(nt,vt,!1,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("ref.title","References")]))]}})})},Je}(Re));var Le=function(Ue){le(Je,Ue);function Je(nt,vt,Rt){var Ot=Ue.call(this,nt,{id:"editor.action.goToLocation",label:v.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:d.a.and(m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated())})||this;return Ot._references=vt,Ot._gotoMultipleBehaviour=Rt,Ot}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){return ve(this,function(Ot){return[2,new w.c(this._references,v.a("generic.title","Locations"))]})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&v.a("generic.noResult","No results for '{0}'",nt.word)||""},Je.prototype._getGoToPreference=function(nt){var vt;return(vt=this._gotoMultipleBehaviour)!==null&&vt!==void 0?vt:nt.getOption(41).multipleReferences},Je.prototype._getAlternativeCommand=function(){return""},Je}($);E.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ee.a},{name:"position",description:"The position at which to start",constraint:U.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(Ue,Je,nt,vt,Rt,Ot){return Z(void 0,void 0,void 0,function(){var Kt,ao;return ve(this,function(lo){switch(lo.label){case 0:return Object(ne.a)(ee.a.isUri(Je)),Object(ne.a)(U.a.isIPosition(nt)),Object(ne.a)(Array.isArray(vt)),Object(ne.a)(typeof Rt=="undefined"||typeof Rt=="string"),Object(ne.a)(typeof Ot=="undefined"||typeof Ot=="boolean"),Kt=Ue.get(D.a),[4,Kt.openCodeEditor({resource:Je},Kt.getFocusedCodeEditor())];case 1:return ao=lo.sent(),Object(H.a)(ao)?(ao.setPosition(nt),ao.revealPositionInCenterIfOutsideViewport(nt,0),[2,ao.invokeWithinContext(function(so){var jt=new Le({muteMessage:!0,openInPeek:Boolean(Ot),openToSide:!1},vt,Rt);so.get(R.a).invokeFunction(jt.run.bind(jt),ao)})]):[2]}})})}}),E.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ee.a},{name:"position",description:"The position at which to start",constraint:U.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(Ue,Je,nt,vt,Rt){return Z(void 0,void 0,void 0,function(){return ve(this,function(Ot){return Ue.get(E.b).executeCommand("editor.action.goToLocations",Je,nt,vt,Rt,!0),[2]})})}}),E.a.registerCommand({id:"editor.action.findReferences",handler:function(Ue,Je,nt){Object(ne.a)(ee.a.isUri(Je)),Object(ne.a)(U.a.isIPosition(nt));var vt=Ue.get(D.a);return vt.openCodeEditor({resource:Je},vt.getFocusedCodeEditor()).then(function(Rt){if(!Object(H.a)(Rt)||!Rt.hasModel())return;var Ot=C.a.get(Rt);if(!Ot)return;var Kt=Object(pe.f)(function(lo){return Object(f.d)(Rt.getModel(),U.a.lift(nt),!1,lo).then(function(so){return new w.c(so,v.a("ref.title","References"))})}),ao=new j.a(nt.lineNumber,nt.column,nt.lineNumber,nt.column);return Promise.resolve(Ot.toggleWidget(ao,Kt,!1))})}}),E.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},"8gvo":function(Mt,F,e){},"8z58":function(Mt,F,e){"use strict";e.r(F),e.d(F,"CancellationTokenSource",function(){return Wd}),e.d(F,"Emitter",function(){return Bd}),e.d(F,"KeyCode",function(){return Ud}),e.d(F,"KeyMod",function(){return Hd}),e.d(F,"Position",function(){return Vd}),e.d(F,"Range",function(){return zd}),e.d(F,"Selection",function(){return Kd}),e.d(F,"SelectionDirection",function(){return Gd}),e.d(F,"MarkerSeverity",function(){return Xd}),e.d(F,"MarkerTag",function(){return Yd}),e.d(F,"Uri",function(){return Zd}),e.d(F,"Token",function(){return Qd}),e.d(F,"editor",function(){return $d}),e.d(F,"languages",function(){return Jd});var T=e("/UlZ"),pe=e("URDS"),J=e("JQT/"),I=e("MI8n"),H=e("/kV6"),K=e("bY76"),D=e("cGHE"),U=e("aokT"),j=e("gCVg"),h=e("Tcc1"),b;(function(s){s[s.Unknown=0]="Unknown",s[s.Disabled=1]="Disabled",s[s.Enabled=2]="Enabled"})(b||(b={}));var O;(function(s){s[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet"})(O||(O={}));var m;(function(s){s[s.Method=0]="Method",s[s.Function=1]="Function",s[s.Constructor=2]="Constructor",s[s.Field=3]="Field",s[s.Variable=4]="Variable",s[s.Class=5]="Class",s[s.Struct=6]="Struct",s[s.Interface=7]="Interface",s[s.Module=8]="Module",s[s.Property=9]="Property",s[s.Event=10]="Event",s[s.Operator=11]="Operator",s[s.Unit=12]="Unit",s[s.Value=13]="Value",s[s.Constant=14]="Constant",s[s.Enum=15]="Enum",s[s.EnumMember=16]="EnumMember",s[s.Keyword=17]="Keyword",s[s.Text=18]="Text",s[s.Color=19]="Color",s[s.File=20]="File",s[s.Reference=21]="Reference",s[s.Customcolor=22]="Customcolor",s[s.Folder=23]="Folder",s[s.TypeParameter=24]="TypeParameter",s[s.Snippet=25]="Snippet"})(m||(m={}));var C;(function(s){s[s.Deprecated=1]="Deprecated"})(C||(C={}));var w;(function(s){s[s.Invoke=0]="Invoke",s[s.TriggerCharacter=1]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(w||(w={}));var v;(function(s){s[s.EXACT=0]="EXACT",s[s.ABOVE=1]="ABOVE",s[s.BELOW=2]="BELOW"})(v||(v={}));var p;(function(s){s[s.NotSet=0]="NotSet",s[s.ContentFlush=1]="ContentFlush",s[s.RecoverFromMarkers=2]="RecoverFromMarkers",s[s.Explicit=3]="Explicit",s[s.Paste=4]="Paste",s[s.Undo=5]="Undo",s[s.Redo=6]="Redo"})(p||(p={}));var d;(function(s){s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(d||(d={}));var c;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(c||(c={}));var u;(function(s){s[s.None=0]="None",s[s.Keep=1]="Keep",s[s.Brackets=2]="Brackets",s[s.Advanced=3]="Advanced",s[s.Full=4]="Full"})(u||(u={}));var f;(function(s){s[s.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",s[s.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",s[s.accessibilitySupport=2]="accessibilitySupport",s[s.accessibilityPageSize=3]="accessibilityPageSize",s[s.ariaLabel=4]="ariaLabel",s[s.autoClosingBrackets=5]="autoClosingBrackets",s[s.autoClosingOvertype=6]="autoClosingOvertype",s[s.autoClosingQuotes=7]="autoClosingQuotes",s[s.autoIndent=8]="autoIndent",s[s.automaticLayout=9]="automaticLayout",s[s.autoSurround=10]="autoSurround",s[s.codeLens=11]="codeLens",s[s.colorDecorators=12]="colorDecorators",s[s.comments=13]="comments",s[s.contextmenu=14]="contextmenu",s[s.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",s[s.cursorBlinking=16]="cursorBlinking",s[s.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",s[s.cursorStyle=18]="cursorStyle",s[s.cursorSurroundingLines=19]="cursorSurroundingLines",s[s.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",s[s.cursorWidth=21]="cursorWidth",s[s.disableLayerHinting=22]="disableLayerHinting",s[s.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",s[s.dragAndDrop=24]="dragAndDrop",s[s.emptySelectionClipboard=25]="emptySelectionClipboard",s[s.extraEditorClassName=26]="extraEditorClassName",s[s.fastScrollSensitivity=27]="fastScrollSensitivity",s[s.find=28]="find",s[s.fixedOverflowWidgets=29]="fixedOverflowWidgets",s[s.folding=30]="folding",s[s.foldingStrategy=31]="foldingStrategy",s[s.foldingHighlight=32]="foldingHighlight",s[s.fontFamily=33]="fontFamily",s[s.fontInfo=34]="fontInfo",s[s.fontLigatures=35]="fontLigatures",s[s.fontSize=36]="fontSize",s[s.fontWeight=37]="fontWeight",s[s.formatOnPaste=38]="formatOnPaste",s[s.formatOnType=39]="formatOnType",s[s.glyphMargin=40]="glyphMargin",s[s.gotoLocation=41]="gotoLocation",s[s.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",s[s.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",s[s.hover=44]="hover",s[s.inDiffEditor=45]="inDiffEditor",s[s.letterSpacing=46]="letterSpacing",s[s.lightbulb=47]="lightbulb",s[s.lineDecorationsWidth=48]="lineDecorationsWidth",s[s.lineHeight=49]="lineHeight",s[s.lineNumbers=50]="lineNumbers",s[s.lineNumbersMinChars=51]="lineNumbersMinChars",s[s.links=52]="links",s[s.matchBrackets=53]="matchBrackets",s[s.minimap=54]="minimap",s[s.mouseStyle=55]="mouseStyle",s[s.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",s[s.mouseWheelZoom=57]="mouseWheelZoom",s[s.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",s[s.multiCursorModifier=59]="multiCursorModifier",s[s.multiCursorPaste=60]="multiCursorPaste",s[s.occurrencesHighlight=61]="occurrencesHighlight",s[s.overviewRulerBorder=62]="overviewRulerBorder",s[s.overviewRulerLanes=63]="overviewRulerLanes",s[s.parameterHints=64]="parameterHints",s[s.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",s[s.quickSuggestions=66]="quickSuggestions",s[s.quickSuggestionsDelay=67]="quickSuggestionsDelay",s[s.readOnly=68]="readOnly",s[s.renderControlCharacters=69]="renderControlCharacters",s[s.renderIndentGuides=70]="renderIndentGuides",s[s.renderFinalNewline=71]="renderFinalNewline",s[s.renderLineHighlight=72]="renderLineHighlight",s[s.renderValidationDecorations=73]="renderValidationDecorations",s[s.renderWhitespace=74]="renderWhitespace",s[s.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",s[s.roundedSelection=76]="roundedSelection",s[s.rulers=77]="rulers",s[s.scrollbar=78]="scrollbar",s[s.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",s[s.scrollBeyondLastLine=80]="scrollBeyondLastLine",s[s.selectionClipboard=81]="selectionClipboard",s[s.selectionHighlight=82]="selectionHighlight",s[s.selectOnLineNumbers=83]="selectOnLineNumbers",s[s.showFoldingControls=84]="showFoldingControls",s[s.showUnused=85]="showUnused",s[s.snippetSuggestions=86]="snippetSuggestions",s[s.smoothScrolling=87]="smoothScrolling",s[s.stopRenderingLineAfter=88]="stopRenderingLineAfter",s[s.suggest=89]="suggest",s[s.suggestFontSize=90]="suggestFontSize",s[s.suggestLineHeight=91]="suggestLineHeight",s[s.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",s[s.suggestSelection=93]="suggestSelection",s[s.tabCompletion=94]="tabCompletion",s[s.useTabStops=95]="useTabStops",s[s.wordSeparators=96]="wordSeparators",s[s.wordWrap=97]="wordWrap",s[s.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",s[s.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",s[s.wordWrapColumn=100]="wordWrapColumn",s[s.wordWrapMinified=101]="wordWrapMinified",s[s.wrappingIndent=102]="wrappingIndent",s[s.wrappingStrategy=103]="wrappingStrategy",s[s.editorClassName=104]="editorClassName",s[s.pixelRatio=105]="pixelRatio",s[s.tabFocusMode=106]="tabFocusMode",s[s.layoutInfo=107]="layoutInfo",s[s.wrappingInfo=108]="wrappingInfo"})(f||(f={}));var E;(function(s){s[s.TextDefined=0]="TextDefined",s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(E||(E={}));var L;(function(s){s[s.LF=0]="LF",s[s.CRLF=1]="CRLF"})(L||(L={}));var R;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(R||(R={}));var P;(function(s){s[s.Unknown=0]="Unknown",s[s.Backspace=1]="Backspace",s[s.Tab=2]="Tab",s[s.Enter=3]="Enter",s[s.Shift=4]="Shift",s[s.Ctrl=5]="Ctrl",s[s.Alt=6]="Alt",s[s.PauseBreak=7]="PauseBreak",s[s.CapsLock=8]="CapsLock",s[s.Escape=9]="Escape",s[s.Space=10]="Space",s[s.PageUp=11]="PageUp",s[s.PageDown=12]="PageDown",s[s.End=13]="End",s[s.Home=14]="Home",s[s.LeftArrow=15]="LeftArrow",s[s.UpArrow=16]="UpArrow",s[s.RightArrow=17]="RightArrow",s[s.DownArrow=18]="DownArrow",s[s.Insert=19]="Insert",s[s.Delete=20]="Delete",s[s.KEY_0=21]="KEY_0",s[s.KEY_1=22]="KEY_1",s[s.KEY_2=23]="KEY_2",s[s.KEY_3=24]="KEY_3",s[s.KEY_4=25]="KEY_4",s[s.KEY_5=26]="KEY_5",s[s.KEY_6=27]="KEY_6",s[s.KEY_7=28]="KEY_7",s[s.KEY_8=29]="KEY_8",s[s.KEY_9=30]="KEY_9",s[s.KEY_A=31]="KEY_A",s[s.KEY_B=32]="KEY_B",s[s.KEY_C=33]="KEY_C",s[s.KEY_D=34]="KEY_D",s[s.KEY_E=35]="KEY_E",s[s.KEY_F=36]="KEY_F",s[s.KEY_G=37]="KEY_G",s[s.KEY_H=38]="KEY_H",s[s.KEY_I=39]="KEY_I",s[s.KEY_J=40]="KEY_J",s[s.KEY_K=41]="KEY_K",s[s.KEY_L=42]="KEY_L",s[s.KEY_M=43]="KEY_M",s[s.KEY_N=44]="KEY_N",s[s.KEY_O=45]="KEY_O",s[s.KEY_P=46]="KEY_P",s[s.KEY_Q=47]="KEY_Q",s[s.KEY_R=48]="KEY_R",s[s.KEY_S=49]="KEY_S",s[s.KEY_T=50]="KEY_T",s[s.KEY_U=51]="KEY_U",s[s.KEY_V=52]="KEY_V",s[s.KEY_W=53]="KEY_W",s[s.KEY_X=54]="KEY_X",s[s.KEY_Y=55]="KEY_Y",s[s.KEY_Z=56]="KEY_Z",s[s.Meta=57]="Meta",s[s.ContextMenu=58]="ContextMenu",s[s.F1=59]="F1",s[s.F2=60]="F2",s[s.F3=61]="F3",s[s.F4=62]="F4",s[s.F5=63]="F5",s[s.F6=64]="F6",s[s.F7=65]="F7",s[s.F8=66]="F8",s[s.F9=67]="F9",s[s.F10=68]="F10",s[s.F11=69]="F11",s[s.F12=70]="F12",s[s.F13=71]="F13",s[s.F14=72]="F14",s[s.F15=73]="F15",s[s.F16=74]="F16",s[s.F17=75]="F17",s[s.F18=76]="F18",s[s.F19=77]="F19",s[s.NumLock=78]="NumLock",s[s.ScrollLock=79]="ScrollLock",s[s.US_SEMICOLON=80]="US_SEMICOLON",s[s.US_EQUAL=81]="US_EQUAL",s[s.US_COMMA=82]="US_COMMA",s[s.US_MINUS=83]="US_MINUS",s[s.US_DOT=84]="US_DOT",s[s.US_SLASH=85]="US_SLASH",s[s.US_BACKTICK=86]="US_BACKTICK",s[s.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",s[s.US_BACKSLASH=88]="US_BACKSLASH",s[s.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",s[s.US_QUOTE=90]="US_QUOTE",s[s.OEM_8=91]="OEM_8",s[s.OEM_102=92]="OEM_102",s[s.NUMPAD_0=93]="NUMPAD_0",s[s.NUMPAD_1=94]="NUMPAD_1",s[s.NUMPAD_2=95]="NUMPAD_2",s[s.NUMPAD_3=96]="NUMPAD_3",s[s.NUMPAD_4=97]="NUMPAD_4",s[s.NUMPAD_5=98]="NUMPAD_5",s[s.NUMPAD_6=99]="NUMPAD_6",s[s.NUMPAD_7=100]="NUMPAD_7",s[s.NUMPAD_8=101]="NUMPAD_8",s[s.NUMPAD_9=102]="NUMPAD_9",s[s.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",s[s.NUMPAD_ADD=104]="NUMPAD_ADD",s[s.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",s[s.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",s[s.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",s[s.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",s[s.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",s[s.ABNT_C1=110]="ABNT_C1",s[s.ABNT_C2=111]="ABNT_C2",s[s.MAX_VALUE=112]="MAX_VALUE"})(P||(P={}));var x;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(x||(x={}));var Q;(function(s){s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated"})(Q||(Q={}));var V;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(V||(V={}));var W;(function(s){s[s.UNKNOWN=0]="UNKNOWN",s[s.TEXTAREA=1]="TEXTAREA",s[s.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",s[s.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",s[s.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",s[s.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",s[s.CONTENT_TEXT=6]="CONTENT_TEXT",s[s.CONTENT_EMPTY=7]="CONTENT_EMPTY",s[s.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",s[s.CONTENT_WIDGET=9]="CONTENT_WIDGET",s[s.OVERVIEW_RULER=10]="OVERVIEW_RULER",s[s.SCROLLBAR=11]="SCROLLBAR",s[s.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",s[s.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(W||(W={}));var B;(function(s){s[s.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",s[s.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",s[s.TOP_CENTER=2]="TOP_CENTER"})(B||(B={}));var ae;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(ae||(ae={}));var we;(function(s){s[s.Off=0]="Off",s[s.On=1]="On",s[s.Relative=2]="Relative",s[s.Interval=3]="Interval",s[s.Custom=4]="Custom"})(we||(we={}));var Me;(function(s){s[s.None=0]="None",s[s.Text=1]="Text",s[s.Blocks=2]="Blocks"})(Me||(Me={}));var Pe;(function(s){s[s.Smooth=0]="Smooth",s[s.Immediate=1]="Immediate"})(Pe||(Pe={}));var Be;(function(s){s[s.Auto=1]="Auto",s[s.Hidden=2]="Hidden",s[s.Visible=3]="Visible"})(Be||(Be={}));var Ke;(function(s){s[s.LTR=0]="LTR",s[s.RTL=1]="RTL"})(Ke||(Ke={}));var Fe;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(Fe||(Fe={}));var re;(function(s){s[s.File=0]="File",s[s.Module=1]="Module",s[s.Namespace=2]="Namespace",s[s.Package=3]="Package",s[s.Class=4]="Class",s[s.Method=5]="Method",s[s.Property=6]="Property",s[s.Field=7]="Field",s[s.Constructor=8]="Constructor",s[s.Enum=9]="Enum",s[s.Interface=10]="Interface",s[s.Function=11]="Function",s[s.Variable=12]="Variable",s[s.Constant=13]="Constant",s[s.String=14]="String",s[s.Number=15]="Number",s[s.Boolean=16]="Boolean",s[s.Array=17]="Array",s[s.Object=18]="Object",s[s.Key=19]="Key",s[s.Null=20]="Null",s[s.EnumMember=21]="EnumMember",s[s.Struct=22]="Struct",s[s.Event=23]="Event",s[s.Operator=24]="Operator",s[s.TypeParameter=25]="TypeParameter"})(re||(re={}));var ee;(function(s){s[s.Deprecated=1]="Deprecated"})(ee||(ee={}));var ne;(function(s){s[s.Hidden=0]="Hidden",s[s.Blink=1]="Blink",s[s.Smooth=2]="Smooth",s[s.Phase=3]="Phase",s[s.Expand=4]="Expand",s[s.Solid=5]="Solid"})(ne||(ne={}));var q;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(q||(q={}));var le;(function(s){s[s.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",s[s.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",s[s.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",s[s.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(le||(le={}));var Z;(function(s){s[s.None=0]="None",s[s.Same=1]="Same",s[s.Indent=2]="Indent",s[s.DeepIndent=3]="DeepIndent"})(Z||(Z={}));var ve=function(){function s(){}return s.chord=function(r,n){return Object(H.a)(r,n)},s.CtrlCmd=2048,s.Shift=1024,s.Alt=512,s.WinCtrl=256,s}();function Ne(){return{editor:void 0,languages:void 0,CancellationTokenSource:J.b,Emitter:I.a,KeyCode:P,KeyMod:ve,Position:D.a,Range:U.a,Selection:j.a,SelectionDirection:Ke,MarkerSeverity:x,MarkerTag:Q,Uri:K.a,Token:h.a}}var Xe=e("siPX"),de=e("Vxe3"),ge=e("EffR"),Ee=e("24hK"),Te=e("Q4rV"),Ce=e("tYmi"),fe=e("gslv"),$=e("nnTU"),S=e("W9cx"),z;(function(s){s[s.API=0]="API",s[s.USER=1]="USER"})(z||(z={}));var ce=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},se=function(s,r){return function(n,a){r(n,a,s)}},ye=function(s,r,n,a){function y(N){return N instanceof n?N:new n(function(_e){_e(N)})}return new(n||(n=Promise))(function(N,_e){function ke(yt){try{Qe(a.next(yt))}catch(It){_e(It)}}function Ge(yt){try{Qe(a.throw(yt))}catch(It){_e(It)}}function Qe(yt){yt.done?N(yt.value):y(yt.value).then(ke,Ge)}Qe((a=a.apply(s,r||[])).next())})},Re=function(s,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},a,y,N,_e;return _e={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function ke(Qe){return function(yt){return Ge([Qe,yt])}}function Ge(Qe){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,y&&(N=Qe[0]&2?y.return:Qe[0]?y.throw||((N=y.return)&&N.call(y),0):y.next)&&!(N=N.call(y,Qe[1])).done)return N;(y=0,N)&&(Qe=[Qe[0]&2,N.value]);switch(Qe[0]){case 0:case 1:N=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,y=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!N||Qe[1]>N[0]&&Qe[1]<N[3])){n.label=Qe[1];break}if(Qe[0]===6&&n.label<N[1]){n.label=N[1],N=Qe;break}if(N&&n.label<N[2]){n.label=N[2],n.ops.push(Qe);break}N[2]&&n.ops.pop(),n.trys.pop();continue}Qe=r.call(s,n)}catch(yt){Qe=[6,yt],y=0}finally{a=N=0}if(Qe[0]&5)throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}},Le=function(){for(var s=0,r=0,n=arguments.length;r<n;r++)s+=arguments[r].length;for(var a=Array(s),y=0,r=0;r<n;r++)for(var N=arguments[r],_e=0,ke=N.length;_e<ke;_e++,y++)a[y]=N[_e];return a},Ue=function(){function s(r){this._commandService=r}return s.prototype.open=function(r){return ye(this,void 0,void 0,function(){var n,a;return Re(this,function(y){switch(y.label){case 0:if(!Object(S.c)(r,Ce.b.command))return[2,!1];if(typeof r=="string"&&(r=K.a.parse(r)),!$.a.getCommand(r.path))throw new Error("command '"+r.path+"' NOT known");n=[];try{n=Object(Te.a)(decodeURIComponent(r.query))}catch(N){try{n=Object(Te.a)(r.query)}catch(_e){}}return Array.isArray(n)||(n=[n]),[4,(a=this._commandService).executeCommand.apply(a,Le([r.path],n))];case 1:return y.sent(),[2,!0]}})})},s=ce([se(0,$.b)],s),s}(),Je=function(){function s(r){this._editorService=r}return s.prototype.open=function(r,n){return ye(this,void 0,void 0,function(){var a,y;return Re(this,function(N){switch(N.label){case 0:return typeof r=="string"&&(r=K.a.parse(r)),a=void 0,y=/^L?(\d+)(?:,(\d+))?/.exec(r.fragment),y&&(a={startLineNumber:parseInt(y[1]),startColumn:y[2]?parseInt(y[2]):1},r=r.with({fragment:""})),r.scheme===Ce.b.file&&(r=Object(fe.g)(r)),[4,this._editorService.openCodeEditor({resource:r,options:{selection:a,context:(n==null?void 0:n.fromUserGesture)?z.USER:z.API}},this._editorService.getFocusedCodeEditor(),n==null?void 0:n.openToSide)];case 1:return N.sent(),[2,!0]}})})},s=ce([se(0,de.a)],s),s}(),nt=function(){function s(r,n){var a=this;this._openers=new Ee.a,this._validators=new Ee.a,this._resolvers=new Ee.a,this._externalOpener={openExternal:function(y){return ge.ab(y),Promise.resolve(!0)}},this._openers.push({open:function(y,N){return ye(a,void 0,void 0,function(){return Re(this,function(_e){switch(_e.label){case 0:return(N==null?void 0:N.openExternal)||Object(S.c)(y,Ce.b.mailto)||Object(S.c)(y,Ce.b.http)||Object(S.c)(y,Ce.b.https)?[4,this._doOpenExternal(y,N)]:[3,2];case 1:return _e.sent(),[2,!0];case 2:return[2,!1]}})})}}),this._openers.push(new Ue(n)),this._openers.push(new Je(r))}return s.prototype.open=function(r,n){return ye(this,void 0,void 0,function(){var a,y,N,_e,ke,Ge,Qe;return Re(this,function(yt){switch(yt.label){case 0:a=0,y=this._validators.toArray(),yt.label=1;case 1:return a<y.length?(N=y[a],[4,N.shouldOpen(r)]):[3,4];case 2:if(!yt.sent())return[2,!1];yt.label=3;case 3:return a++,[3,1];case 4:_e=0,ke=this._openers.toArray(),yt.label=5;case 5:return _e<ke.length?(Ge=ke[_e],[4,Ge.open(r,n)]):[3,8];case 6:if(Qe=yt.sent(),Qe)return[2,!0];yt.label=7;case 7:return _e++,[3,5];case 8:return[2,!1]}})})},s.prototype.resolveExternalUri=function(r,n){return ye(this,void 0,void 0,function(){var a,y,N,_e;return Re(this,function(ke){switch(ke.label){case 0:a=0,y=this._resolvers.toArray(),ke.label=1;case 1:return a<y.length?(N=y[a],[4,N.resolveExternalUri(r,n)]):[3,4];case 2:if(_e=ke.sent(),_e)return[2,_e];ke.label=3;case 3:return a++,[3,1];case 4:return[2,{resolved:r,dispose:function(){}}]}})})},s.prototype._doOpenExternal=function(r,n){return ye(this,void 0,void 0,function(){var a,y;return Re(this,function(N){switch(N.label){case 0:return a=typeof r=="string"?K.a.parse(r):r,[4,this.resolveExternalUri(a,n)];case 1:if(y=N.sent().resolved,typeof r=="string"&&a.toString()===y.toString())return[2,this._externalOpener.openExternal(r)];return[2,this._externalOpener.openExternal(encodeURI(y.toString(!0)))];return[2]}})})},s.prototype.dispose=function(){this._validators.clear()},s=ce([se(0,de.a),se(1,$.b)],s),s}(),vt=e("FWmy"),Rt=e("pmY6"),Ot=e("qj0h"),Kt=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),ao={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},lo=function(s){Kt(r,s);function r(n,a){a===void 0&&(a={});var y=s.call(this)||this;return y._onDidUpdate=y._register(new I.a),y._editor=n,y._options=Ot.g(a,ao,!1),y.disposed=!1,y.nextIdx=-1,y.ranges=[],y.ignoreSelectionChange=!1,y.revealFirst=Boolean(y._options.alwaysRevealFirst),y._register(y._editor.onDidDispose(function(){return y.dispose()})),y._register(y._editor.onDidUpdateDiff(function(){return y._onDiffUpdated()})),y._options.followsCaret&&y._register(y._editor.getModifiedEditor().onDidChangeCursorPosition(function(N){if(y.ignoreSelectionChange)return;y.nextIdx=-1})),y._options.alwaysRevealFirst&&y._register(y._editor.getModifiedEditor().onDidChangeModel(function(N){y.revealFirst=!0})),y._init(),y}return r.prototype._init=function(){var n=this._editor.getLineChanges();if(!n)return},r.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&(this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1)))},r.prototype._compute=function(n){var a=this;this.ranges=[],n&&n.forEach(function(y){!a._options.ignoreCharChanges&&y.charChanges?y.charChanges.forEach(function(N){a.ranges.push({rhs:!0,range:new U.a(N.modifiedStartLineNumber,N.modifiedStartColumn,N.modifiedEndLineNumber,N.modifiedEndColumn)})}):a.ranges.push({rhs:!0,range:new U.a(y.modifiedStartLineNumber,1,y.modifiedStartLineNumber,1)})}),this.ranges.sort(function(y,N){return y.range.getStartPosition().isBeforeOrEqual(N.range.getStartPosition())?-1:N.range.getStartPosition().isBeforeOrEqual(y.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},r.prototype._initIdx=function(n){var a=!1,y=this._editor.getPosition();if(!y){this.nextIdx=0;return}for(var N=0,_e=this.ranges.length;N<_e&&!a;N++){var ke=this.ranges[N].range;y.isBeforeOrEqual(ke.getStartPosition())&&(this.nextIdx=N+(n?0:-1),a=!0)}a||(this.nextIdx=n?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)},r.prototype._move=function(n,a){if(vt.a(!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;this.nextIdx===-1?this._initIdx(n):n?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var y=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var N=y.range.getStartPosition();this._editor.setPosition(N),this._editor.revealPositionInCenter(N,a)}finally{this.ignoreSelectionChange=!1}},r.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},r.prototype.next=function(n){n===void 0&&(n=0),this._move(!0,n)},r.prototype.previous=function(n){n===void 0&&(n=0),this._move(!1,n)},r.prototype.dispose=function(){s.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},r}(Rt.a),so=e("+3Gp"),jt=e("iuje"),pt=e("M1Kb"),gt=e("twdY"),Tt=e("i/Ef"),it=e("pAvP"),et=e("t49l"),ut=e("X+cX"),Ct=e("/cxE"),ht=e("MNsG"),Et=e("746U"),Yt=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Nt="$initialize",bt=!1;function $e(s){if(!ht.g)return;bt||(bt=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(s.message)}var Ye=function(){function s(r){this._workerId=-1,this._handler=r,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return s.prototype.setWorkerId=function(r){this._workerId=r},s.prototype.sendMessage=function(r,n){var a=this,y=String(++this._lastSentReq);return new Promise(function(N,_e){a._pendingReplies[y]={resolve:N,reject:_e},a._send({vsWorker:a._workerId,req:y,method:r,args:n})})},s.prototype.handleMessage=function(r){if(!r||!r.vsWorker)return;if(this._workerId!==-1&&r.vsWorker!==this._workerId)return;this._handleMessage(r)},s.prototype._handleMessage=function(r){var n=this;if(r.seq){var a=r;if(!this._pendingReplies[a.seq]){console.warn("Got reply to unknown seq");return}var y=this._pendingReplies[a.seq];if(delete this._pendingReplies[a.seq],a.err){var N=a.err;a.err.$isError&&(N=new Error,N.name=a.err.name,N.message=a.err.message,N.stack=a.err.stack),y.reject(N);return}y.resolve(a.res);return}var _e=r,ke=_e.req,Ge=this._handler.handleMessage(_e.method,_e.args);Ge.then(function(Qe){n._send({vsWorker:n._workerId,seq:ke,res:Qe,err:void 0})},function(Qe){Qe.detail instanceof Error&&(Qe.detail=Object(Ct.g)(Qe.detail)),n._send({vsWorker:n._workerId,seq:ke,res:void 0,err:Object(Ct.g)(Qe)})})},s.prototype._send=function(r){var n=[];if(r.req)for(var a=r,y=0;y<a.args.length;y++)a.args[y]instanceof ArrayBuffer&&n.push(a.args[y]);else{var a=r;a.res instanceof ArrayBuffer&&n.push(a.res)}this._handler.sendMessage(r,n)},s}(),Ve=function(s){Yt(r,s);function r(n,a,y){var N=s.call(this)||this,_e=null;N._worker=N._register(n.create("vs/base/common/worker/simpleWorker",function(yt){N._protocol.handleMessage(yt)},function(yt){_e&&_e(yt)})),N._protocol=new Ye({sendMessage:function(yt,It){N._worker.postMessage(yt,It)},handleMessage:function(yt,It){if(typeof y[yt]!="function")return Promise.reject(new Error("Missing method "+yt+" on main thread host."));try{return Promise.resolve(y[yt].apply(y,It))}catch(Wt){return Promise.reject(Wt)}}}),N._protocol.setWorkerId(N._worker.getId());var ke=null;typeof self.require!="undefined"&&typeof self.require.getConfig=="function"?ke=self.require.getConfig():typeof self.requirejs!="undefined"&&(ke=self.requirejs.s.contexts._.config);var Ge=Et.c(y);N._onModuleLoaded=N._protocol.sendMessage(Nt,[N._worker.getId(),JSON.parse(JSON.stringify(ke)),a,Ge]);var Qe=function(yt,It){return N._request(yt,It)};return N._lazyProxy=new Promise(function(yt,It){_e=It,N._onModuleLoaded.then(function(Wt){yt(Et.b(Wt,Qe))},function(Wt){It(Wt),N._onError("Worker failed to load "+a,Wt)})}),N}return r.prototype.getProxyObject=function(){return this._lazyProxy},r.prototype._request=function(n,a){var y=this;return new Promise(function(N,_e){y._onModuleLoaded.then(function(){y._protocol.sendMessage(n,a).then(N,_e)},_e)})},r.prototype._onError=function(n,a){console.error(n),console.info(a)},r}(Rt.a),ze=function(){function s(r,n){var a=this;this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Ye({sendMessage:function(y,N){r(y,N)},handleMessage:function(y,N){return a._handleMessage(y,N)}})}return s.prototype.onmessage=function(r){this._protocol.handleMessage(r)},s.prototype._handleMessage=function(r,n){if(r===Nt)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[r]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+r));try{return Promise.resolve(this._requestHandler[r].apply(this._requestHandler,n))}catch(a){return Promise.reject(a)}},s.prototype.initialize=function(r,n,a,y){var N=this;this._protocol.setWorkerId(r);var _e=function(Ge,Qe){return N._protocol.sendMessage(Ge,Qe)},ke=Et.b(y,_e);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(ke),Promise.resolve(Et.c(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&(typeof n.paths.vs!="undefined"&&delete n.paths.vs),n.catchError=!0,self.require.config(n)),new Promise(function(Ge,Qe){self.require([a],function(yt){if(N._requestHandler=yt.create(ke),!N._requestHandler){Qe(new Error("No RequestHandler!"));return}Ge(Et.c(N._requestHandler))},Qe)}))},s}();function me(s){return new ze(s,null)}function G(s,r){if(ht.b.MonacoEnvironment){if(typeof ht.b.MonacoEnvironment.getWorker=="function")return ht.b.MonacoEnvironment.getWorker(s,r);if(typeof ht.b.MonacoEnvironment.getWorkerUrl=="function")return new Worker(ht.b.MonacoEnvironment.getWorkerUrl(s,r))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function oe(s){return typeof s.then=="function"}var Y=function(){function s(r,n,a,y,N){this.id=n;var _e=G("workerMain.js",a);oe(_e)?this.worker=_e:this.worker=Promise.resolve(_e),this.postMessage(r,[]),this.worker.then(function(ke){ke.onmessage=function(Ge){y(Ge.data)},ke.onmessageerror=N,typeof ke.addEventListener=="function"&&ke.addEventListener("error",N)})}return s.prototype.getId=function(){return this.id},s.prototype.postMessage=function(r,n){this.worker&&this.worker.then(function(a){return a.postMessage(r,n)})},s.prototype.dispose=function(){this.worker&&this.worker.then(function(r){return r.terminate()}),this.worker=null},s}(),ie=function(){function s(r){this._label=r,this._webWorkerFailedBeforeError=!1}return s.prototype.create=function(r,n,a){var y=this,N=++s.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Y(r,N,this._label||"anonymous"+N,n,function(_e){$e(_e),y._webWorkerFailedBeforeError=_e,a(_e)})},s.LAST_WORKER_ID=0,s}(),je=e("cMvZ"),dt=e("6OMU"),Dt=e("Gw4z"),Qt=e("JYp7"),to=e("N0LK"),fo=3;function ho(s,r,n,a){var y=new Dt.a(s,r,n);return y.ComputeDiff(a)}var wo=function(){function s(r){for(var n=[],a=[],y=0,N=r.length;y<N;y++)n[y]=Ho(r[y],1),a[y]=Fo(r[y],1);this.lines=r,this._startColumns=n,this._endColumns=a}return s.prototype.getElements=function(){for(var r=[],n=0,a=this.lines.length;n<a;n++)r[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return r},s.prototype.getStartLineNumber=function(r){return r+1},s.prototype.getEndLineNumber=function(r){return r+1},s.prototype.createCharSequence=function(r,n,a){for(var y=[],N=[],_e=[],ke=0,Ge=n;Ge<=a;Ge++)for(var Qe=this.lines[Ge],yt=r?this._startColumns[Ge]:1,It=r?this._endColumns[Ge]:Qe.length+1,Wt=yt;Wt<It;Wt++)y[ke]=Qe.charCodeAt(Wt-1),N[ke]=Ge+1,_e[ke]=Wt,ke++;return new Oo(y,N,_e)},s}(),Oo=function(){function s(r,n,a){this._charCodes=r,this._lineNumbers=n,this._columns=a}return s.prototype.getElements=function(){return this._charCodes},s.prototype.getStartLineNumber=function(r){return this._lineNumbers[r]},s.prototype.getStartColumn=function(r){return this._columns[r]},s.prototype.getEndLineNumber=function(r){return this._lineNumbers[r]},s.prototype.getEndColumn=function(r){return this._columns[r]+1},s}(),Ro=function(){function s(r,n,a,y,N,_e,ke,Ge){this.originalStartLineNumber=r,this.originalStartColumn=n,this.originalEndLineNumber=a,this.originalEndColumn=y,this.modifiedStartLineNumber=N,this.modifiedStartColumn=_e,this.modifiedEndLineNumber=ke,this.modifiedEndColumn=Ge}return s.createFromDiffChange=function(r,n,a){var y,N,_e,ke,Ge,Qe,yt,It;return r.originalLength===0?(y=0,N=0,_e=0,ke=0):(y=n.getStartLineNumber(r.originalStart),N=n.getStartColumn(r.originalStart),_e=n.getEndLineNumber(r.originalStart+r.originalLength-1),ke=n.getEndColumn(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(Ge=0,Qe=0,yt=0,It=0):(Ge=a.getStartLineNumber(r.modifiedStart),Qe=a.getStartColumn(r.modifiedStart),yt=a.getEndLineNumber(r.modifiedStart+r.modifiedLength-1),It=a.getEndColumn(r.modifiedStart+r.modifiedLength-1)),new s(y,N,_e,ke,Ge,Qe,yt,It)},s}();function jo(s){if(s.length<=1)return s;for(var r=[s[0]],n=r[0],a=1,y=s.length;a<y;a++){var N=s[a],_e=N.originalStart-(n.originalStart+n.originalLength),ke=N.modifiedStart-(n.modifiedStart+n.modifiedLength),Ge=Math.min(_e,ke);Ge<fo?(n.originalLength=N.originalStart+N.originalLength-n.originalStart,n.modifiedLength=N.modifiedStart+N.modifiedLength-n.modifiedStart):(r.push(N),n=N)}return r}var Eo=function(){function s(r,n,a,y,N){this.originalStartLineNumber=r,this.originalEndLineNumber=n,this.modifiedStartLineNumber=a,this.modifiedEndLineNumber=y,this.charChanges=N}return s.createFromDiffResult=function(r,n,a,y,N,_e,ke){var Ge,Qe,yt,It,Wt=void 0;if(n.originalLength===0?(Ge=a.getStartLineNumber(n.originalStart)-1,Qe=0):(Ge=a.getStartLineNumber(n.originalStart),Qe=a.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(yt=y.getStartLineNumber(n.modifiedStart)-1,It=0):(yt=y.getStartLineNumber(n.modifiedStart),It=y.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),_e&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&N()){var Pt=a.createCharSequence(r,n.originalStart,n.originalStart+n.originalLength-1),ro=y.createCharSequence(r,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),eo=ho(Pt,ro,N,!0).changes;ke&&(eo=jo(eo)),Wt=[];for(var Gt=0,Jt=eo.length;Gt<Jt;Gt++)Wt.push(Ro.createFromDiffChange(eo[Gt],Pt,ro))}return new s(Ge,Qe,yt,It,Wt)},s}(),Wo=function(){function s(r,n,a){this.shouldComputeCharChanges=a.shouldComputeCharChanges,this.shouldPostProcessCharChanges=a.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=a.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=a.shouldMakePrettyDiff,this.originalLines=r,this.modifiedLines=n,this.original=new wo(r),this.modified=new wo(n),this.continueLineDiff=Io(a.maxComputationTime),this.continueCharDiff=Io(a.maxComputationTime===0?0:Math.min(a.maxComputationTime,5e3))}return s.prototype.computeDiff=function(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var r=ho(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=r.changes,a=r.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var y=[],N=0,_e=n.length;N<_e;N++)y.push(Eo.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[N],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:a,changes:y}}for(var ke=[],Ge=0,Qe=0,N=-1,yt=n.length;N<yt;N++){for(var It=N+1<yt?n[N+1]:null,Wt=It?It.originalStart:this.originalLines.length,Pt=It?It.modifiedStart:this.modifiedLines.length;Ge<Wt&&Qe<Pt;){var ro=this.originalLines[Ge],eo=this.modifiedLines[Qe];if(ro!==eo){{for(var Gt=Ho(ro,1),Jt=Ho(eo,1);Gt>1&&Jt>1;){var co=ro.charCodeAt(Gt-2),So=eo.charCodeAt(Jt-2);if(co!==So)break;Gt--,Jt--}(Gt>1||Jt>1)&&this._pushTrimWhitespaceCharChange(ke,Ge+1,1,Gt,Qe+1,1,Jt)}{for(var xo=Fo(ro,1),Po=Fo(eo,1),Go=ro.length+1,Xo=eo.length+1;xo<Go&&Po<Xo;){var co=ro.charCodeAt(xo-1),So=ro.charCodeAt(Po-1);if(co!==So)break;xo++,Po++}(xo<Go||Po<Xo)&&this._pushTrimWhitespaceCharChange(ke,Ge+1,xo,Go,Qe+1,Po,Xo)}}Ge++,Qe++}It&&(ke.push(Eo.createFromDiffResult(this.shouldIgnoreTrimWhitespace,It,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Ge+=It.originalLength,Qe+=It.modifiedLength)}return{quitEarly:a,changes:ke}},s.prototype._pushTrimWhitespaceCharChange=function(r,n,a,y,N,_e,ke){if(this._mergeTrimWhitespaceCharChange(r,n,a,y,N,_e,ke))return;var Ge=void 0;this.shouldComputeCharChanges&&(Ge=[new Ro(n,a,n,y,N,_e,N,ke)]),r.push(new Eo(n,n,N,N,Ge))},s.prototype._mergeTrimWhitespaceCharChange=function(r,n,a,y,N,_e,ke){var Ge=r.length;if(Ge===0)return!1;var Qe=r[Ge-1];return Qe.originalEndLineNumber===0||Qe.modifiedEndLineNumber===0?!1:Qe.originalEndLineNumber+1===n&&Qe.modifiedEndLineNumber+1===N?(Qe.originalEndLineNumber=n,Qe.modifiedEndLineNumber=N,this.shouldComputeCharChanges&&Qe.charChanges&&Qe.charChanges.push(new Ro(n,a,n,y,N,_e,N,ke)),!0):!1},s}();function Ho(s,r){var n=to.q(s);return n===-1?r:n+1}function Fo(s,r){var n=to.D(s);return n===-1?r:n+2}function Io(s){if(s===0)return function(){return!0};var r=Date.now();return function(){return Date.now()-r<s}}var tn=e("LeU+"),un=function(){function s(r,n,a,y){this._uri=r,this._lines=n,this._eol=a,this._versionId=y,this._lineStarts=null}return s.prototype.dispose=function(){this._lines.length=0},s.prototype.getText=function(){return this._lines.join(this._eol)},s.prototype.onEvents=function(r){r.eol&&r.eol!==this._eol&&(this._eol=r.eol,this._lineStarts=null);for(var n=r.changes,a=0,y=n;a<y.length;a++){var N=y[a];this._acceptDeleteRange(N.range),this._acceptInsertText(new D.a(N.range.startLineNumber,N.range.startColumn),N.text)}this._versionId=r.versionId},s.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var r=this._eol.length,n=this._lines.length,a=new Uint32Array(n),y=0;y<n;y++)a[y]=this._lines[y].length+r;this._lineStarts=new tn.a(a)}},s.prototype._setLineText=function(r,n){this._lines[r]=n,this._lineStarts&&this._lineStarts.changeValue(r,this._lines[r].length+this._eol.length)},s.prototype._acceptDeleteRange=function(r){if(r.startLineNumber===r.endLineNumber){if(r.startColumn===r.endColumn)return;this._setLineText(r.startLineNumber-1,this._lines[r.startLineNumber-1].substring(0,r.startColumn-1)+this._lines[r.startLineNumber-1].substring(r.endColumn-1));return}this._setLineText(r.startLineNumber-1,this._lines[r.startLineNumber-1].substring(0,r.startColumn-1)+this._lines[r.endLineNumber-1].substring(r.endColumn-1)),this._lines.splice(r.startLineNumber,r.endLineNumber-r.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(r.startLineNumber,r.endLineNumber-r.startLineNumber)},s.prototype._acceptInsertText=function(r,n){if(n.length===0)return;var a=n.split(/\r\n|\r|\n/);if(a.length===1){this._setLineText(r.lineNumber-1,this._lines[r.lineNumber-1].substring(0,r.column-1)+a[0]+this._lines[r.lineNumber-1].substring(r.column-1));return}a[a.length-1]+=this._lines[r.lineNumber-1].substring(r.column-1),this._setLineText(r.lineNumber-1,this._lines[r.lineNumber-1].substring(0,r.column-1)+a[0]);for(var y=new Uint32Array(a.length-1),N=1;N<a.length;N++)this._lines.splice(r.lineNumber+N-1,0,a[N]),y[N-1]=a[N].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(r.lineNumber,y)},s}(),Vo=e("0JNc"),Cn=e("MXAL"),pn=function(){function s(r,n,a){for(var y=new Uint8Array(r*n),N=0,_e=r*n;N<_e;N++)y[N]=a;this._data=y,this.rows=r,this.cols=n}return s.prototype.get=function(r,n){return this._data[r*this.cols+n]},s.prototype.set=function(r,n,a){this._data[r*this.cols+n]=a},s}(),rn=function(){function s(r){for(var n=0,a=0,y=0,N=r.length;y<N;y++){var _e=r[y],ke=_e[0],Ge=_e[1],Qe=_e[2];Ge>n&&(n=Ge),ke>a&&(a=ke),Qe>a&&(a=Qe)}n++,a++;for(var yt=new pn(a,n,0),y=0,N=r.length;y<N;y++){var It=r[y],ke=It[0],Ge=It[1],Qe=It[2];yt.set(ke,Ge,Qe)}this._states=yt,this._maxCharCode=n}return s.prototype.nextState=function(r,n){return n<0||n>=this._maxCharCode?0:this._states.get(r,n)},s}(),on=null;function dn(){return on===null&&(on=new rn([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),on}var Uo=null;function Bo(){if(Uo===null){Uo=new Cn.a(0);for(var s=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF20\uFF03\uFF04\uFF05\uFF06\uFF0A\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`,r=0;r<s.length;r++)Uo.set(s.charCodeAt(r),1);for(var n=".,;",r=0;r<n.length;r++)Uo.set(n.charCodeAt(r),2)}return Uo}var St=function(){function s(){}return s._createLink=function(r,n,a,y,N){var _e=N-1;do{var ke=n.charCodeAt(_e),Ge=r.get(ke);if(Ge!==2)break;_e--}while(_e>y);if(y>0){var Qe=n.charCodeAt(y-1),yt=n.charCodeAt(_e);(Qe===40&&yt===41||Qe===91&&yt===93||Qe===123&&yt===125)&&_e--}return{range:{startLineNumber:a,startColumn:y+1,endLineNumber:a,endColumn:_e+2},url:n.substring(y,_e+1)}},s.computeLinks=function(r,n){n===void 0&&(n=dn());for(var a=Bo(),y=[],N=1,_e=r.getLineCount();N<=_e;N++){for(var ke=r.getLineContent(N),Ge=ke.length,Qe=0,yt=0,It=0,Wt=1,Pt=!1,ro=!1,eo=!1;Qe<Ge;){var Gt=!1,Jt=ke.charCodeAt(Qe);if(Wt===13){var co=void 0;switch(Jt){case 40:Pt=!0,co=0;break;case 41:co=Pt?0:1;break;case 91:ro=!0,co=0;break;case 93:co=ro?0:1;break;case 123:eo=!0,co=0;break;case 125:co=eo?0:1;break;case 39:co=It===34||It===96?0:1;break;case 34:co=It===39||It===96?0:1;break;case 96:co=It===39||It===34?0:1;break;case 42:co=It===42?1:0;break;case 124:co=It===124?1:0;break;default:co=a.get(Jt)}co===1&&(y.push(s._createLink(a,ke,N,yt,Qe)),Gt=!0)}else if(Wt===12){var co=void 0;Jt===91?(ro=!0,co=0):co=a.get(Jt),co===1?Gt=!0:Wt=13}else Wt=n.nextState(Wt,Jt),Wt===0&&(Gt=!0);Gt&&(Wt=1,Pt=!1,ro=!1,eo=!1,yt=Qe+1,It=Jt),Qe++}Wt===13&&y.push(s._createLink(a,ke,N,yt,Ge))}return y},s}();function st(s){return!s||typeof s.getLineCount!="function"||typeof s.getLineContent!="function"?[]:St.computeLinks(s)}var rt=function(){function s(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return s.prototype.navigateValueSet=function(r,n,a,y,N){if(r&&n){var _e=this.doNavigateValueSet(n,N);if(_e)return{range:r,value:_e}}if(a&&y){var _e=this.doNavigateValueSet(y,N);if(_e)return{range:a,value:_e}}return null},s.prototype.doNavigateValueSet=function(r,n){var a=this.numberReplace(r,n);return a!==null?a:this.textReplace(r,n)},s.prototype.numberReplace=function(r,n){var a=Math.pow(10,r.length-(r.lastIndexOf(".")+1)),y=Number(r),N=parseFloat(r);return!isNaN(y)&&!isNaN(N)&&y===N?y===0&&!n?null:(y=Math.floor(y*a),y+=n?a:-a,String(y/a)):null},s.prototype.textReplace=function(r,n){return this.valueSetsReplace(this._defaultValueSet,r,n)},s.prototype.valueSetsReplace=function(r,n,a){for(var y=null,N=0,_e=r.length;y===null&&N<_e;N++)y=this.valueSetReplace(r[N],n,a);return y},s.prototype.valueSetReplace=function(r,n,a){var y=r.indexOf(n);return y>=0?(y+=a?1:-1,y<0?y=r.length-1:y%=r.length,r[y]):null},s.INSTANCE=new s,s}(),Lt=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),be=function(s,r,n,a){function y(N){return N instanceof n?N:new n(function(_e){_e(N)})}return new(n||(n=Promise))(function(N,_e){function ke(yt){try{Qe(a.next(yt))}catch(It){_e(It)}}function Ge(yt){try{Qe(a.throw(yt))}catch(It){_e(It)}}function Qe(yt){yt.done?N(yt.value):y(yt.value).then(ke,Ge)}Qe((a=a.apply(s,r||[])).next())})},_=function(s,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},a,y,N,_e;return _e={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function ke(Qe){return function(yt){return Ge([Qe,yt])}}function Ge(Qe){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,y&&(N=Qe[0]&2?y.return:Qe[0]?y.throw||((N=y.return)&&N.call(y),0):y.next)&&!(N=N.call(y,Qe[1])).done)return N;(y=0,N)&&(Qe=[Qe[0]&2,N.value]);switch(Qe[0]){case 0:case 1:N=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,y=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!N||Qe[1]>N[0]&&Qe[1]<N[3])){n.label=Qe[1];break}if(Qe[0]===6&&n.label<N[1]){n.label=N[1],N=Qe;break}if(N&&n.label<N[2]){n.label=N[2],n.ops.push(Qe);break}N[2]&&n.ops.pop(),n.trys.pop();continue}Qe=r.call(s,n)}catch(yt){Qe=[6,yt],y=0}finally{a=N=0}if(Qe[0]&5)throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}},A=function(s){Lt(r,s);function r(){return s!==null&&s.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),r.prototype.getValue=function(){return this.getText()},r.prototype.getLinesContent=function(){return this._lines.slice(0)},r.prototype.getLineCount=function(){return this._lines.length},r.prototype.getLineContent=function(n){return this._lines[n-1]},r.prototype.getWordAtPosition=function(n,a){var y=Object(Vo.d)(n.column,Object(Vo.c)(a),this._lines[n.lineNumber-1],0);return y?new U.a(n.lineNumber,y.startColumn,n.lineNumber,y.endColumn):null},r.prototype.createWordIterator=function(n){var a=this,y,N=0,_e,ke=0,Ge=[],Qe=function(){if(ke<Ge.length){var yt=_e.substring(Ge[ke].start,Ge[ke].end);return ke+=1,y?y.value=yt:y={done:!1,value:yt},y}else return N>=a._lines.length?Qt.c:(_e=a._lines[N],Ge=a._wordenize(_e,n),ke=0,N+=1,Qe())};return{next:Qe}},r.prototype.getLineWords=function(n,a){for(var y=this._lines[n-1],N=this._wordenize(y,a),_e=[],ke=0,Ge=N;ke<Ge.length;ke++){var Qe=Ge[ke];_e.push({word:y.substring(Qe.start,Qe.end),startColumn:Qe.start+1,endColumn:Qe.end+1})}return _e},r.prototype._wordenize=function(n,a){var y=[],N;for(a.lastIndex=0;(N=a.exec(n))&&!(N[0].length===0);)y.push({start:N.index,end:N.index+N[0].length});return y},r.prototype.getValueInRange=function(n){if(n=this._validateRange(n),n.startLineNumber===n.endLineNumber)return this._lines[n.startLineNumber-1].substring(n.startColumn-1,n.endColumn-1);var a=this._eol,y=n.startLineNumber-1,N=n.endLineNumber-1,_e=[];_e.push(this._lines[y].substring(n.startColumn-1));for(var ke=y+1;ke<N;ke++)_e.push(this._lines[ke]);return _e.push(this._lines[N].substring(0,n.endColumn-1)),_e.join(a)},r.prototype.offsetAt=function(n){return n=this._validatePosition(n),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(n.lineNumber-2)+(n.column-1)},r.prototype.positionAt=function(n){n=Math.floor(n),n=Math.max(0,n),this._ensureLineStarts();var a=this._lineStarts.getIndexOf(n),y=this._lines[a.index].length;return{lineNumber:1+a.index,column:1+Math.min(a.remainder,y)}},r.prototype._validateRange=function(n){var a=this._validatePosition({lineNumber:n.startLineNumber,column:n.startColumn}),y=this._validatePosition({lineNumber:n.endLineNumber,column:n.endColumn});return a.lineNumber!==n.startLineNumber||a.column!==n.startColumn||y.lineNumber!==n.endLineNumber||y.column!==n.endColumn?{startLineNumber:a.lineNumber,startColumn:a.column,endLineNumber:y.lineNumber,endColumn:y.column}:n},r.prototype._validatePosition=function(n){if(!D.a.isIPosition(n))throw new Error("bad position");var a=n.lineNumber,y=n.column,N=!1;if(a<1)a=1,y=1,N=!0;else if(a>this._lines.length)a=this._lines.length,y=this._lines[a-1].length+1,N=!0;else{var _e=this._lines[a-1].length+1;y<1?(y=1,N=!0):y>_e&&(y=_e,N=!0)}return N?{lineNumber:a,column:y}:n},r}(un),X=function(){function s(r,n){this._host=r,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}return s.prototype.dispose=function(){this._models=Object.create(null)},s.prototype._getModel=function(r){return this._models[r]},s.prototype._getModels=function(){var r=this,n=[];return Object.keys(this._models).forEach(function(a){return n.push(r._models[a])}),n},s.prototype.acceptNewModel=function(r){this._models[r.url]=new A(K.a.parse(r.url),r.lines,r.EOL,r.versionId)},s.prototype.acceptModelChanged=function(r,n){if(!this._models[r])return;var a=this._models[r];a.onEvents(n)},s.prototype.acceptRemovedModel=function(r){if(!this._models[r])return;delete this._models[r]},s.prototype.computeDiff=function(r,n,a,y){return be(this,void 0,void 0,function(){var N,_e,ke,Ge,Qe,yt,It;return _(this,function(Wt){return N=this._getModel(r),_e=this._getModel(n),!N||!_e?[2,null]:(ke=N.getLinesContent(),Ge=_e.getLinesContent(),Qe=new Wo(ke,Ge,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:a,shouldMakePrettyDiff:!0,maxComputationTime:y}),yt=Qe.computeDiff(),It=yt.changes.length>0?!1:this._modelsAreIdentical(N,_e),[2,{quitEarly:yt.quitEarly,identical:It,changes:yt.changes}])})})},s.prototype._modelsAreIdentical=function(r,n){var a=r.getLineCount(),y=n.getLineCount();if(a!==y)return!1;for(var N=1;N<=a;N++){var _e=r.getLineContent(N),ke=n.getLineContent(N);if(_e!==ke)return!1}return!0},s.prototype.computeMoreMinimalEdits=function(r,n){return be(this,void 0,void 0,function(){var a,y,N,_e,ke,Ge,Qe,yt,It,Wt,Pt,ro,eo,Gt,Jt,co,So,xo;return _(this,function(Po){if(a=this._getModel(r),!a)return[2,n];for(y=[],N=void 0,n=Object(dt.r)(n,function(Go,Xo){if(Go.range&&Xo.range)return U.a.compareRangesUsingStarts(Go.range,Xo.range);var an=Go.range?0:1,yn=Xo.range?0:1;return an-yn}),_e=0,ke=n;_e<ke.length;_e++){if(Ge=ke[_e],Qe=Ge.range,yt=Ge.text,It=Ge.eol,typeof It=="number"&&(N=It),U.a.isEmpty(Qe)&&!yt)continue;if(Wt=a.getValueInRange(Qe),yt=yt.replace(/\r\n|\n|\r/g,a.eol),Wt===yt)continue;if(Math.max(yt.length,Wt.length)>s._diffLimit){y.push({range:Qe,text:yt});continue}for(Pt=Object(Dt.b)(Wt,yt,!1),ro=a.offsetAt(U.a.lift(Qe).getStartPosition()),eo=0,Gt=Pt;eo<Gt.length;eo++)Jt=Gt[eo],co=a.positionAt(ro+Jt.originalStart),So=a.positionAt(ro+Jt.originalStart+Jt.originalLength),xo={text:yt.substr(Jt.modifiedStart,Jt.modifiedLength),range:{startLineNumber:co.lineNumber,startColumn:co.column,endLineNumber:So.lineNumber,endColumn:So.column}},a.getValueInRange(xo.range)!==xo.text&&y.push(xo)}return typeof N=="number"&&y.push({eol:N,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,y]})})},s.prototype.computeLinks=function(r){return be(this,void 0,void 0,function(){var n;return _(this,function(a){return n=this._getModel(r),n?[2,st(n)]:[2,null]})})},s.prototype.textualSuggest=function(r,n,a,y){return be(this,void 0,void 0,function(){var N,_e,ke,Ge,Qe,yt,It,Wt;return _(this,function(Pt){if(N=this._getModel(r),!N)return[2,null];for(_e=[],ke=new Set,Ge=new RegExp(a,y),Qe=N.getWordAtPosition(n,Ge),Qe&&ke.add(N.getValueInRange(Qe)),yt=N.createWordIterator(Ge),It=yt.next();!It.done&&ke.size<=s._suggestionsLimit;It=yt.next()){if(Wt=It.value,ke.has(Wt))continue;if(ke.add(Wt),!isNaN(Number(Wt)))continue;_e.push(Wt)}return[2,_e]})})},s.prototype.computeWordRanges=function(r,n,a,y){return be(this,void 0,void 0,function(){var N,_e,ke,Ge,Qe,yt,It,Wt,Pt;return _(this,function(ro){if(N=this._getModel(r),!N)return[2,Object.create(null)];for(_e=new RegExp(a,y),ke=Object.create(null),Ge=n.startLineNumber;Ge<n.endLineNumber;Ge++)for(Qe=N.getLineWords(Ge,_e),yt=0,It=Qe;yt<It.length;yt++){if(Wt=It[yt],!isNaN(Number(Wt.word)))continue;Pt=ke[Wt.word],Pt||(Pt=[],ke[Wt.word]=Pt),Pt.push({startLineNumber:Ge,startColumn:Wt.startColumn,endLineNumber:Ge,endColumn:Wt.endColumn})}return[2,ke]})})},s.prototype.navigateValueSet=function(r,n,a,y,N){return be(this,void 0,void 0,function(){var _e,ke,Ge,Qe,yt,It;return _(this,function(Wt){return _e=this._getModel(r),_e?(ke=new RegExp(y,N),n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1}),Ge=_e.getValueInRange(n),Qe=_e.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},ke),Qe?(yt=_e.getValueInRange(Qe),It=rt.INSTANCE.navigateValueSet(n,Ge,Qe,yt,a),[2,It]):[2,null]):[2,null]})})},s.prototype.loadForeignModule=function(r,n,a){var y=this,N=function(Ge,Qe){return y._host.fhr(Ge,Qe)},_e=Et.b(a,N),ke={host:_e,getMirrorModels:function(){return y._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(ke,n),Promise.resolve(Et.c(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},s.prototype.fmr=function(r,n){if(!this._foreignModule||typeof this._foreignModule[r]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+r));try{return Promise.resolve(this._foreignModule[r].apply(this._foreignModule,n))}catch(a){return Promise.reject(a)}},s._diffLimit=1e5,s._suggestionsLimit=1e4,s}();function De(s){return new X(s,null)}typeof importScripts=="function"&&(ht.b.monaco=Ne());var xe=e("G2kB"),Ie=e("e0rL"),lt=e("09fa"),ft=e("5Y4S"),At=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ft=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},Ut=function(s,r){return function(n,a){r(n,a,s)}},Vt=function(s,r,n,a){function y(N){return N instanceof n?N:new n(function(_e){_e(N)})}return new(n||(n=Promise))(function(N,_e){function ke(yt){try{Qe(a.next(yt))}catch(It){_e(It)}}function Ge(yt){try{Qe(a.throw(yt))}catch(It){_e(It)}}function Qe(yt){yt.done?N(yt.value):y(yt.value).then(ke,Ge)}Qe((a=a.apply(s,r||[])).next())})},oo=function(s,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},a,y,N,_e;return _e={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function ke(Qe){return function(yt){return Ge([Qe,yt])}}function Ge(Qe){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,y&&(N=Qe[0]&2?y.return:Qe[0]?y.throw||((N=y.return)&&N.call(y),0):y.next)&&!(N=N.call(y,Qe[1])).done)return N;(y=0,N)&&(Qe=[Qe[0]&2,N.value]);switch(Qe[0]){case 0:case 1:N=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,y=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!N||Qe[1]>N[0]&&Qe[1]<N[3])){n.label=Qe[1];break}if(Qe[0]===6&&n.label<N[1]){n.label=N[1],N=Qe;break}if(N&&n.label<N[2]){n.label=N[2],n.ops.push(Qe);break}N[2]&&n.ops.pop(),n.trys.pop();continue}Qe=r.call(s,n)}catch(yt){Qe=[6,yt],y=0}finally{a=N=0}if(Qe[0]&5)throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}},Zt=60*1e3,mo=5*60*1e3;function mt(s,r){var n=s.getModel(r);return n?!n.isTooLargeForSyncing():!1}var He=function(s){At(r,s);function r(n,a,y){var N=s.call(this)||this;return N._modelService=n,N._workerManager=N._register(new ot(N._modelService)),N._logService=y,N._register(gt.s.register("*",{provideLinks:function(_e,ke){return mt(N._modelService,_e.uri)?N._workerManager.withWorker().then(function(Ge){return Ge.computeLinks(_e.uri)}).then(function(Ge){return Ge&&{links:Ge}}):Promise.resolve({links:[]})}})),N._register(gt.d.register("*",new Oe(N._workerManager,a,N._modelService))),N}return r.prototype.dispose=function(){s.prototype.dispose.call(this)},r.prototype.canComputeDiff=function(n,a){return mt(this._modelService,n)&&mt(this._modelService,a)},r.prototype.computeDiff=function(n,a,y,N){return this._workerManager.withWorker().then(function(_e){return _e.computeDiff(n,a,y,N)})},r.prototype.computeMoreMinimalEdits=function(n,a){var y=this;if(Object(dt.q)(a)){if(!mt(this._modelService,n))return Promise.resolve(a);var N=ft.a.create(!0),_e=this._workerManager.withWorker().then(function(ke){return ke.computeMoreMinimalEdits(n,a)});return _e.finally(function(){return y._logService.trace("FORMAT#computeMoreMinimalEdits",n.toString(!0),N.elapsed())}),_e}else return Promise.resolve(void 0)},r.prototype.canNavigateValueSet=function(n){return mt(this._modelService,n)},r.prototype.navigateValueSet=function(n,a,y){return this._workerManager.withWorker().then(function(N){return N.navigateValueSet(n,a,y)})},r.prototype.canComputeWordRanges=function(n){return mt(this._modelService,n)},r.prototype.computeWordRanges=function(n,a){return this._workerManager.withWorker().then(function(y){return y.computeWordRanges(n,a)})},r=Ft([Ut(0,xe.a),Ut(1,Ie.a),Ut(2,lt.a)],r),r}(Rt.a),Oe=function(){function s(r,n,a){this._debugDisplayName="wordbasedCompletions",this._workerManager=r,this._configurationService=n,this._modelService=a}return s.prototype.provideCompletionItems=function(r,n){return Vt(this,void 0,void 0,function(){var a,y,N,_e,ke,Ge;return oo(this,function(Qe){switch(Qe.label){case 0:return a=this._configurationService.getValue(r.uri,n,"editor").wordBasedSuggestions,a?mt(this._modelService,r.uri)?(y=r.getWordAtPosition(n),N=y?new U.a(n.lineNumber,y.startColumn,n.lineNumber,y.endColumn):U.a.fromPositions(n),_e=N.setEndPosition(n.lineNumber,n.column),[4,this._workerManager.withWorker()]):[2,void 0]:[2,void 0];case 1:return ke=Qe.sent(),[4,ke.textualSuggest(r.uri,n)];case 2:return Ge=Qe.sent(),Ge?[2,{suggestions:Ge.map(function(yt){return{kind:18,label:yt,insertText:yt,range:{insert:_e,replace:N}}})}]:[2,void 0]}})})},s}(),ot=function(s){At(r,s);function r(n){var a=s.call(this)||this;a._modelService=n,a._editorWorkerClient=null,a._lastWorkerUsedTime=new Date().getTime();var y=a._register(new ut.c);return y.cancelAndSet(function(){return a._checkStopIdleWorker()},Math.round(mo/2)),a._register(a._modelService.onModelRemoved(function(N){return a._checkStopEmptyWorker()})),a}return r.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),s.prototype.dispose.call(this)},r.prototype._checkStopEmptyWorker=function(){if(!this._editorWorkerClient)return;var n=this._modelService.getModels();n.length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype._checkStopIdleWorker=function(){if(!this._editorWorkerClient)return;var n=new Date().getTime()-this._lastWorkerUsedTime;n>mo&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new ue(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},r}(Rt.a),xt=function(s){At(r,s);function r(n,a,y){var N=s.call(this)||this;if(N._syncedModels=Object.create(null),N._syncedModelsLastUsedTime=Object.create(null),N._proxy=n,N._modelService=a,!y){var _e=new ut.c;_e.cancelAndSet(function(){return N._checkStopModelSync()},Math.round(Zt/2)),N._register(_e)}return N}return r.prototype.dispose=function(){for(var n in this._syncedModels)Object(Rt.f)(this._syncedModels[n]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),s.prototype.dispose.call(this)},r.prototype.ensureSyncedResources=function(n){for(var a=0,y=n;a<y.length;a++){var N=y[a],_e=N.toString();this._syncedModels[_e]||this._beginModelSync(N),this._syncedModels[_e]&&(this._syncedModelsLastUsedTime[_e]=new Date().getTime())}},r.prototype._checkStopModelSync=function(){var n=new Date().getTime(),a=[];for(var y in this._syncedModelsLastUsedTime){var N=n-this._syncedModelsLastUsedTime[y];N>Zt&&a.push(y)}for(var _e=0,ke=a;_e<ke.length;_e++){var Ge=ke[_e];this._stopModelSync(Ge)}},r.prototype._beginModelSync=function(n){var a=this,y=this._modelService.getModel(n);if(!y)return;if(y.isTooLargeForSyncing())return;var N=n.toString();this._proxy.acceptNewModel({url:y.uri.toString(),lines:y.getLinesContent(),EOL:y.getEOL(),versionId:y.getVersionId()});var _e=new Rt.b;_e.add(y.onDidChangeContent(function(ke){a._proxy.acceptModelChanged(N.toString(),ke)})),_e.add(y.onWillDispose(function(){a._stopModelSync(N)})),_e.add(Object(Rt.h)(function(){a._proxy.acceptRemovedModel(N)})),this._syncedModels[N]=_e},r.prototype._stopModelSync=function(n){var a=this._syncedModels[n];delete this._syncedModels[n],delete this._syncedModelsLastUsedTime[n],Object(Rt.f)(a)},r}(Rt.a),he=function(){function s(r){this._instance=r,this._proxyObj=Promise.resolve(this._instance)}return s.prototype.dispose=function(){this._instance.dispose()},s.prototype.getProxyObject=function(){return this._proxyObj},s}(),M=function(){function s(r){this._workerClient=r}return s.prototype.fhr=function(r,n){return this._workerClient.fhr(r,n)},s}(),ue=function(s){At(r,s);function r(n,a,y){var N=s.call(this)||this;return N._modelService=n,N._keepIdleModels=a,N._workerFactory=new ie(y),N._worker=null,N._modelManager=null,N}return r.prototype.fhr=function(n,a){throw new Error("Not implemented!")},r.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new Ve(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new M(this)))}catch(n){$e(n),this._worker=new he(new X(new M(this),null))}return this._worker},r.prototype._getProxy=function(){var n=this;return this._getOrCreateWorker().getProxyObject().then(void 0,function(a){return $e(a),n._worker=new he(new X(new M(n),null)),n._getOrCreateWorker().getProxyObject()})},r.prototype._getOrCreateModelManager=function(n){return this._modelManager||(this._modelManager=this._register(new xt(n,this._modelService,this._keepIdleModels))),this._modelManager},r.prototype._withSyncedResources=function(n){var a=this;return this._getProxy().then(function(y){return a._getOrCreateModelManager(y).ensureSyncedResources(n),y})},r.prototype.computeDiff=function(n,a,y,N){return this._withSyncedResources([n,a]).then(function(_e){return _e.computeDiff(n.toString(),a.toString(),y,N)})},r.prototype.computeMoreMinimalEdits=function(n,a){return this._withSyncedResources([n]).then(function(y){return y.computeMoreMinimalEdits(n.toString(),a)})},r.prototype.computeLinks=function(n){return this._withSyncedResources([n]).then(function(a){return a.computeLinks(n.toString())})},r.prototype.textualSuggest=function(n,a){var y=this;return this._withSyncedResources([n]).then(function(N){var _e=y._modelService.getModel(n);if(!_e)return null;var ke=je.a.getWordDefinition(_e.getLanguageIdentifier().id),Ge=ke.source,Qe=Object(to.H)(ke);return N.textualSuggest(n.toString(),a,Ge,Qe)})},r.prototype.computeWordRanges=function(n,a){var y=this;return this._withSyncedResources([n]).then(function(N){var _e=y._modelService.getModel(n);if(!_e)return Promise.resolve(null);var ke=je.a.getWordDefinition(_e.getLanguageIdentifier().id),Ge=ke.source,Qe=Object(to.H)(ke);return N.computeWordRanges(n.toString(),a,Ge,Qe)})},r.prototype.navigateValueSet=function(n,a,y){var N=this;return this._withSyncedResources([n]).then(function(_e){var ke=N._modelService.getModel(n);if(!ke)return null;var Ge=je.a.getWordDefinition(ke.getLanguageIdentifier().id),Qe=Ge.source,yt=Object(to.H)(Ge);return _e.navigateValueSet(n.toString(),a,y,Qe,yt)})},r}(Rt.a),We=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}();function Ze(s,r){return new at(s,r)}var at=function(s){We(r,s);function r(n,a){var y=s.call(this,n,a.keepIdleModels||!1,a.label)||this;return y._foreignModuleId=a.moduleId,y._foreignModuleCreateData=a.createData||null,y._foreignModuleHost=a.host||null,y._foreignProxy=null,y}return r.prototype.fhr=function(n,a){if(!this._foreignModuleHost||typeof this._foreignModuleHost[n]!="function")return Promise.reject(new Error("Missing method "+n+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[n].apply(this._foreignModuleHost,a))}catch(y){return Promise.reject(y)}},r.prototype._getForeignProxy=function(){var n=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then(function(a){var y=n._foreignModuleHost?Et.c(n._foreignModuleHost):[];return a.loadForeignModule(n._foreignModuleId,n._foreignModuleCreateData,y).then(function(N){n._foreignModuleCreateData=null;for(var _e=function(Wt,Pt){return a.fmr(Wt,Pt)},ke=function(Wt,Pt){return function(){var ro=Array.prototype.slice.call(arguments,0);return Pt(Wt,ro)}},Ge={},Qe=0,yt=N;Qe<yt.length;Qe++){var It=yt[Qe];Ge[It]=ke(It,_e)}return Ge})})),this._foreignProxy},r.prototype.getProxy=function(){return this._getForeignProxy()},r.prototype.withSyncedResources=function(n){var a=this;return this._withSyncedResources(n).then(function(y){return a.getProxy()})},r}(ue),wt=e("4bUh"),zt=e("baJR"),Xt=e("qNAo");function no(s){return Array.isArray(s)}function uo(s){return!no(s)}function go(s){return typeof s=="string"}function Ao(s){return!go(s)}function To(s){return!s}function _o(s,r){return s.ignoreCase&&r?r.toLowerCase():r}function No(s){return s.replace(/[&<>'"_]/g,"-")}function Qo(s,r){console.log(s.languageId+": "+r)}function Do(s,r){return new Error(s.languageId+": "+r)}function Lo(s,r,n,a,y){var N=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,_e=null;return r.replace(N,function(ke,Ge,Qe,yt,It,Wt,Pt,ro,eo){return To(Qe)?To(yt)?!To(It)&&It<a.length?_o(s,a[It]):!To(Pt)&&s&&typeof s[Pt]=="string"?s[Pt]:(_e===null&&(_e=y.split("."),_e.unshift(y)),!To(Wt)&&Wt<_e.length?_o(s,_e[Wt]):""):_o(s,n):"$"})}function vn(s,r){for(var n=r;n&&n.length>0;){var a=s.tokenizer[n];if(a)return a;var y=n.lastIndexOf(".");y<0?n=null:n=n.substr(0,y)}return null}function hn(s,r){for(var n=r;n&&n.length>0;){var a=s.stateNames[n];if(a)return!0;var y=n.lastIndexOf(".");y<0?n=null:n=n.substr(0,y)}return!1}var En=5,qo=function(){function s(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return s.create=function(r,n){return this._INSTANCE.create(r,n)},s.prototype.create=function(r,n){if(r!==null&&r.depth>=this._maxCacheDepth)return new xn(r,n);var a=xn.getStackElementId(r);a.length>0&&(a+="|"),a+=n;var y=this._entries[a];return y||(y=new xn(r,n),this._entries[a]=y,y)},s._INSTANCE=new s(En),s}(),xn=function(){function s(r,n){this.parent=r,this.state=n,this.depth=(this.parent?this.parent.depth:0)+1}return s.getStackElementId=function(r){for(var n="";r!==null;)n.length>0&&(n+="|"),n+=r.state,r=r.parent;return n},s._equals=function(r,n){for(;r!==null&&n!==null;){if(r===n)return!0;if(r.state!==n.state)return!1;r=r.parent,n=n.parent}return r===null&&n===null},s.prototype.equals=function(r){return s._equals(this,r)},s.prototype.push=function(r){return qo.create(this,r)},s.prototype.pop=function(){return this.parent},s.prototype.popall=function(){for(var r=this;r.parent;)r=r.parent;return r},s.prototype.switchTo=function(r){return qo.create(this.parent,r)},s}(),Un=function(){function s(r,n){this.modeId=r,this.state=n}return s.prototype.equals=function(r){return this.modeId===r.modeId&&this.state.equals(r.state)},s.prototype.clone=function(){var r=this.state.clone();return r===this.state?this:new s(this.modeId,this.state)},s}(),An=function(){function s(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return s.create=function(r,n){return this._INSTANCE.create(r,n)},s.prototype.create=function(r,n){if(n!==null)return new si(r,n);if(r!==null&&r.depth>=this._maxCacheDepth)return new si(r,n);var a=xn.getStackElementId(r),y=this._entries[a];return y||(y=new si(r,null),this._entries[a]=y,y)},s._INSTANCE=new s(En),s}(),si=function(){function s(r,n){this.stack=r,this.embeddedModeData=n}return s.prototype.clone=function(){var r=this.embeddedModeData?this.embeddedModeData.clone():null;return r===this.embeddedModeData?this:An.create(this.stack,this.embeddedModeData)},s.prototype.equals=function(r){return r instanceof s&&this.stack.equals(r.stack)?this.embeddedModeData===null&&r.embeddedModeData===null?!0:this.embeddedModeData===null||r.embeddedModeData===null?!1:this.embeddedModeData.equals(r.embeddedModeData):!1},s}(),ai=function(){function s(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return s.prototype.enterMode=function(r,n){this._language=n},s.prototype.emit=function(r,n){if(this._lastTokenType===n&&this._lastTokenLanguage===this._language)return;this._lastTokenType=n,this._lastTokenLanguage=this._language,this._tokens.push(new h.a(r,n,this._language))},s.prototype.nestedModeTokenize=function(r,n,a){var y=n.modeId,N=n.state,_e=gt.B.get(y);if(!_e)return this.enterMode(a,y),this.emit(a,""),N;var ke=_e.tokenize(r,N,a);return this._tokens=this._tokens.concat(ke.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,ke.endState},s.prototype.finalize=function(r){return new h.b(this._tokens,r)},s}(),Pn=function(){function s(r,n){this._modeService=r,this._theme=n,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return s.prototype.enterMode=function(r,n){this._currentLanguageId=this._modeService.getLanguageIdentifier(n).id},s.prototype.emit=function(r,n){var a=this._theme.match(this._currentLanguageId,n);if(this._lastTokenMetadata===a)return;this._lastTokenMetadata=a,this._tokens.push(r),this._tokens.push(a)},s._merge=function(r,n,a){var y=r!==null?r.length:0,N=n.length,_e=a!==null?a.length:0;if(y===0&&N===0&&_e===0)return new Uint32Array(0);if(y===0&&N===0)return a;if(N===0&&_e===0)return r;var ke=new Uint32Array(y+N+_e);r!==null&&ke.set(r);for(var Ge=0;Ge<N;Ge++)ke[y+Ge]=n[Ge];return a!==null&&ke.set(a,y+N),ke},s.prototype.nestedModeTokenize=function(r,n,a){var y=n.modeId,N=n.state,_e=gt.B.get(y);if(!_e)return this.enterMode(a,y),this.emit(a,""),N;var ke=_e.tokenize2(r,N,a);return this._prependTokens=s._merge(this._prependTokens,this._tokens,ke.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,ke.endState},s.prototype.finalize=function(r){return new h.c(s._merge(this._prependTokens,this._tokens,null),r)},s}(),bi=function(){function s(r,n,a,y){var N=this;this._modeService=r,this._standaloneThemeService=n,this._modeId=a,this._lexer=y,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var _e=!1;this._tokenizationRegistryListener=gt.B.onDidChange(function(ke){if(_e)return;for(var Ge=!1,Qe=0,yt=ke.changedLanguages.length;Qe<yt;Qe++){var It=ke.changedLanguages[Qe];if(N._embeddedModes[It]){Ge=!0;break}}Ge&&(_e=!0,gt.B.fire([N._modeId]),_e=!1)})}return s.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},s.prototype.getLoadStatus=function(){var r=[];for(var n in this._embeddedModes){var a=gt.B.get(n);if(a){if(a instanceof s){var y=a.getLoadStatus();y.loaded===!1&&r.push(y.promise)}continue}var N=gt.B.getPromise(n);N&&r.push(N)}return r.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(r).then(function(_e){return})}},s.prototype.getInitialState=function(){var r=qo.create(null,this._lexer.start);return An.create(r,null)},s.prototype.tokenize=function(r,n,a){var y=new ai,N=this._tokenize(r,n,a,y);return y.finalize(N)},s.prototype.tokenize2=function(r,n,a){var y=new Pn(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),N=this._tokenize(r,n,a,y);return y.finalize(N)},s.prototype._tokenize=function(r,n,a,y){return n.embeddedModeData?this._nestedTokenize(r,n,a,y):this._myTokenize(r,n,a,y)},s.prototype._findLeavingNestedModeOffset=function(r,n){var a=this._lexer.tokenizer[n.stack.state];if(!a&&(a=vn(this._lexer,n.stack.state),!a))throw Do(this._lexer,"tokenizer state is not defined: "+n.stack.state);for(var y=-1,N=!1,_e=0,ke=a;_e<ke.length;_e++){var Ge=ke[_e];if(!Ao(Ge.action)||Ge.action.nextEmbedded!=="@pop")continue;N=!0;var Qe=Ge.regex,yt=Ge.regex.source;yt.substr(0,4)==="^(?:"&&yt.substr(yt.length-1,1)===")"&&(Qe=new RegExp(yt.substr(4,yt.length-5),Qe.ignoreCase?"i":""));var It=r.search(Qe);if(It===-1||It!==0&&Ge.matchOnlyAtLineStart)continue;(y===-1||It<y)&&(y=It)}if(!N)throw Do(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+n.stack.state);return y},s.prototype._nestedTokenize=function(r,n,a,y){var N=this._findLeavingNestedModeOffset(r,n);if(N===-1){var _e=y.nestedModeTokenize(r,n.embeddedModeData,a);return An.create(n.stack,new Un(n.embeddedModeData.modeId,_e))}var ke=r.substring(0,N);ke.length>0&&y.nestedModeTokenize(ke,n.embeddedModeData,a);var Ge=r.substring(N);return this._myTokenize(Ge,n,a+N,y)},s.prototype._safeRuleName=function(r){return r?r.name:"(unknown)"},s.prototype._myTokenize=function(r,n,a,y){y.enterMode(a,this._modeId);for(var N=r.length,_e=n.embeddedModeData,ke=n.stack,Ge=0,Qe=null,yt=!0;yt||Ge<N;){var It=Ge,Wt=ke.depth,Pt=Qe?Qe.groups.length:0,ro=ke.state,eo=null,Gt=null,Jt=null,co=null,So=null;if(Qe){eo=Qe.matches;var xo=Qe.groups.shift();Gt=xo.matched,Jt=xo.action,co=Qe.rule,Qe.groups.length===0&&(Qe=null)}else{if(!yt&&Ge>=N)break;yt=!1;var Po=this._lexer.tokenizer[ro];if(!Po&&(Po=vn(this._lexer,ro),!Po))throw Do(this._lexer,"tokenizer state is not defined: "+ro);for(var Go=r.substr(Ge),Xo=0,an=Po;Xo<an.length;Xo++){var yn=an[Xo];if((Ge===0||!yn.matchOnlyAtLineStart)&&(eo=Go.match(yn.regex),eo)){Gt=eo[0],Jt=yn.action;break}}}if(eo||(eo=[""],Gt=""),Jt||(Ge<N&&(eo=[r.charAt(Ge)],Gt=eo[0]),Jt=this._lexer.defaultToken),Gt===null)break;for(Ge+=Gt.length;uo(Jt)&&Ao(Jt)&&Jt.test;)Jt=Jt.test(Gt,eo,ro,Ge===N);var Zo=null;if(typeof Jt=="string"||Array.isArray(Jt))Zo=Jt;else if(Jt.group)Zo=Jt.group;else if(Jt.token!==null&&Jt.token!==void 0){if(Jt.tokenSubst?Zo=Lo(this._lexer,Jt.token,Gt,eo,ro):Zo=Jt.token,Jt.nextEmbedded)if(Jt.nextEmbedded==="@pop"){if(!_e)throw Do(this._lexer,"cannot pop embedded mode if not inside one");_e=null}else{if(_e)throw Do(this._lexer,"cannot enter embedded mode from within an embedded mode");So=Lo(this._lexer,Jt.nextEmbedded,Gt,eo,ro)}if(Jt.goBack&&(Ge=Math.max(0,Ge-Jt.goBack)),Jt.switchTo&&typeof Jt.switchTo=="string"){var Yo=Lo(this._lexer,Jt.switchTo,Gt,eo,ro);if(Yo[0]==="@"&&(Yo=Yo.substr(1)),vn(this._lexer,Yo))ke=ke.switchTo(Yo);else throw Do(this._lexer,"trying to switch to a state '"+Yo+"' that is undefined in rule: "+this._safeRuleName(co))}else{if(Jt.transform&&typeof Jt.transform=="function")throw Do(this._lexer,"action.transform not supported");if(Jt.next)if(Jt.next==="@push"){if(ke.depth>=this._lexer.maxStack)throw Do(this._lexer,"maximum tokenizer stack size reached: ["+ke.state+","+ke.parent.state+",...]");ke=ke.push(ro)}else if(Jt.next==="@pop"){if(ke.depth<=1)throw Do(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(co));ke=ke.pop()}else if(Jt.next==="@popall")ke=ke.popall();else{var Yo=Lo(this._lexer,Jt.next,Gt,eo,ro);if(Yo[0]==="@"&&(Yo=Yo.substr(1)),vn(this._lexer,Yo))ke=ke.push(Yo);else throw Do(this._lexer,"trying to set a next state '"+Yo+"' that is undefined in rule: "+this._safeRuleName(co))}}Jt.log&&typeof Jt.log=="string"&&Qo(this._lexer,this._lexer.languageId+": "+Lo(this._lexer,Jt.log,Gt,eo,ro))}if(Zo===null)throw Do(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(co));if(Array.isArray(Zo)){if(Qe&&Qe.groups.length>0)throw Do(this._lexer,"groups cannot be nested: "+this._safeRuleName(co));if(eo.length!==Zo.length+1)throw Do(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(co));for(var mn=0,en=1;en<eo.length;en++)mn+=eo[en].length;if(mn!==Gt.length)throw Do(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(co));Qe={rule:co,matches:eo,groups:[]};for(var en=0;en<Zo.length;en++)Qe.groups[en]={action:Zo[en],matched:eo[en+1]};Ge-=Gt.length;continue}else{if(Zo==="@rematch"&&(Ge-=Gt.length,Gt="",eo=null,Zo=""),Gt.length===0){if(N===0||Wt!==ke.depth||ro!==ke.state||(Qe?Qe.groups.length:0)!==Pt)continue;throw Do(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(co))}var bn=null;if(go(Zo)&&Zo.indexOf("@brackets")===0){var Mn=Zo.substr("@brackets".length),Bn=Yr(this._lexer,Gt);if(!Bn)throw Do(this._lexer,"@brackets token returned but no bracket defined as: "+Gt);bn=No(Bn.token+Mn)}else{var kn=Zo===""?"":Zo+this._lexer.tokenPostfix;bn=No(kn)}y.emit(It+a,bn)}if(So!==null){var Gn=this._modeService.getModeIdForLanguageName(So);Gn&&(So=Gn);var ri=this._getNestedEmbeddedModeData(So);if(Ge<N){var Go=r.substr(Ge);return this._nestedTokenize(Go,An.create(ke,ri),a+Ge,y)}else return An.create(ke,ri)}}return An.create(ke,_e)},s.prototype._getNestedEmbeddedModeData=function(r){var n=this._locateMode(r);if(n){var a=gt.B.get(n);if(a)return new Un(n,a.getInitialState())}return new Un(n||Tt.b,Tt.c)},s.prototype._locateMode=function(r){if(!r||!this._modeService.isRegisteredMode(r))return null;if(r===this._modeId)return r;var n=this._modeService.getModeId(r);return n&&(this._modeService.triggerMode(n),this._embeddedModes[n]=!0),n},s}();function Yr(s,r){if(!r)return null;r=_o(s,r);for(var n=s.brackets,a=0,y=n;a<y.length;a++){var N=y[a];if(N.open===r)return{token:N.token,bracketType:1};if(N.close===r)return{token:N.token,bracketType:-1}}return null}function oa(s,r,n,a){return new bi(s,r,n,a)}var zi=function(){function s(){}return s.colorizeElement=function(r,n,a,y){y=y||{};var N=y.theme||"vs",_e=y.mimeType||a.getAttribute("lang")||a.getAttribute("data-lang");if(!_e)return console.error("Mode not detected"),Promise.resolve();r.setTheme(N);var ke=a.firstChild?a.firstChild.nodeValue:"";a.className+=" "+N;var Ge=function(Qe){a.innerHTML=Qe};return this.colorize(n,ke||"",_e,y).then(Ge,function(Qe){return console.error(Qe)})},s.colorize=function(r,n,a,y){var N=4;y&&typeof y.tabSize=="number"&&(N=y.tabSize),to.P(n)&&(n=n.substr(1));var _e=n.split(/\r\n|\r|\n/),ke=r.getModeId(a);if(!ke)return Promise.resolve(Zr(_e,N));r.triggerMode(ke);var Ge=gt.B.get(ke);if(Ge)return Ki(_e,N,Ge);var Qe=gt.B.getPromise(ke);return Qe?new Promise(function(yt,It){Qe.then(function(Wt){Ki(_e,N,Wt).then(yt,It)},It)}):new Promise(function(yt,It){var Wt=null,Pt=null,ro=function(){Wt&&(Wt.dispose(),Wt=null),Pt&&(Pt.dispose(),Pt=null);var eo=gt.B.get(ke);if(eo){Ki(_e,N,eo).then(yt,It);return}yt(Zr(_e,N))};Pt=new ut.e,Pt.cancelAndSet(ro,500),Wt=gt.B.onDidChange(function(eo){eo.changedLanguages.indexOf(ke)>=0&&ro()})})},s.colorizeLine=function(r,n,a,y,N){N===void 0&&(N=4);var _e=Xt.d.isBasicASCII(r,n),ke=Xt.d.containsRTL(r,_e,a),Ge=Object(zt.e)(new zt.c(!1,!0,r,!1,_e,ke,0,y,[],N,0,0,0,-1,"none",!1,!1,null));return Ge.html},s.colorizeModelLine=function(r,n,a){a===void 0&&(a=4);var y=r.getLineContent(n);r.forceTokenization(n);var N=r.getLineTokens(n),_e=N.inflate();return this.colorizeLine(y,r.mightContainNonBasicASCII(),r.mightContainRTL(),_e,a)},s}();function Ki(s,r,n){return new Promise(function(a,y){var N=function(){var _e=Gi(s,r,n);if(n instanceof bi){var ke=n.getLoadStatus();if(ke.loaded===!1){ke.promise.then(N,y);return}}a(_e)};N()})}function Zr(s,r){var n=[],a=(0<<11|1<<14|2<<23)>>>0,y=new Uint32Array(2);y[0]=0,y[1]=a;for(var N=0,_e=s.length;N<_e;N++){var ke=s[N];y[0]=ke.length;var Ge=new wt.a(y,ke),Qe=Xt.d.isBasicASCII(ke,!0),yt=Xt.d.containsRTL(ke,Qe,!0),It=Object(zt.e)(new zt.c(!1,!0,ke,!1,Qe,yt,0,Ge,[],r,0,0,0,-1,"none",!1,!1,null));n=n.concat(It.html),n.push("<br/>")}return n.join("")}function Gi(s,r,n){for(var a=[],y=n.getInitialState(),N=0,_e=s.length;N<_e;N++){var ke=s[N],Ge=n.tokenize2(ke,y,0);wt.a.convertToEndOffset(Ge.tokens,ke.length);var Qe=new wt.a(Ge.tokens,ke),yt=Xt.d.isBasicASCII(ke,!0),It=Xt.d.containsRTL(ke,yt,!0),Wt=Object(zt.e)(new zt.c(!1,!0,ke,!1,yt,It,0,Qe.inflate(),[],r,0,0,0,-1,"none",!1,!1,null));a=a.concat(Wt.html),a.push("<br/>"),y=Ge.endState}return a.join("")}var $o=e("uDWl"),li=e("S3by"),On=e("sFUC"),yr=e("iDAx"),Qr=e("0/Sa"),Dn=e("+7oY"),Qn=e("QDVR"),Xi=e("CRAX"),br=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Yi=function(){for(var s=0,r=0,n=arguments.length;r<n;r++)s+=arguments[r].length;for(var a=Array(s),y=0,r=0;r<n;r++)for(var N=arguments[r],_e=0,ke=N.length;_e<ke;_e++,y++)a[y]=N[_e];return a},di=function(){function s(r,n,a){r===void 0&&(r={}),n===void 0&&(n=[]),a===void 0&&(a=[]),this._contents=r,this._keys=n,this._overrides=a,this.isFrozen=!1}return Object.defineProperty(s.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),s.prototype.isEmpty=function(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0},s.prototype.getValue=function(r){return r?Object(Dn.d)(this.contents,r):this.contents},s.prototype.getOverrideValue=function(r,n){var a=this.getContentsForOverrideIdentifer(n);return a?r?Object(Dn.d)(a,r):a:void 0},s.prototype.override=function(r){var n=this.getContentsForOverrideIdentifer(r);if(!n||typeof n!="object"||!Object.keys(n).length)return this;for(var a={},y=0,N=dt.e(Yi(Object.keys(this.contents),Object.keys(n)));y<N.length;y++){var _e=N[y],ke=this.contents[_e],Ge=n[_e];Ge&&(typeof ke=="object"&&typeof Ge=="object"?(ke=Ot.c(ke),this.mergeContents(ke,Ge)):ke=Ge),a[_e]=ke}return new s(a,this.keys,this.overrides)},s.prototype.merge=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];for(var a=Ot.c(this.contents),y=Ot.c(this.overrides),N=Yi(this.keys),_e=0,ke=r;_e<ke.length;_e++){var Ge=ke[_e];this.mergeContents(a,Ge.contents);for(var Qe=function(Jt){var co=y.filter(function(So){return dt.g(So.identifiers,Jt.identifiers)})[0];co?yt.mergeContents(co.contents,Jt.contents):y.push(Ot.c(Jt))},yt=this,It=0,Wt=Ge.overrides;It<Wt.length;It++){var Pt=Wt[It];Qe(Pt)}for(var ro=0,eo=Ge.keys;ro<eo.length;ro++){var Gt=eo[ro];N.indexOf(Gt)===-1&&N.push(Gt)}}return new s(a,N,y)},s.prototype.freeze=function(){return this.isFrozen=!0,this},s.prototype.mergeContents=function(r,n){for(var a=0,y=Object.keys(n);a<y.length;a++){var N=y[a];if(N in r&&(Et.i(r[N])&&Et.i(n[N]))){this.mergeContents(r[N],n[N]);continue}r[N]=Ot.c(n[N])}},s.prototype.checkAndFreeze=function(r){return this.isFrozen&&!Object.isFrozen(r)?Ot.d(r):r},s.prototype.getContentsForOverrideIdentifer=function(r){for(var n=0,a=this.overrides;n<a.length;n++){var y=a[n];if(y.identifiers.indexOf(r)!==-1)return y.contents}return null},s.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},s.prototype.setValue=function(r,n){this.addKey(r),Object(Dn.b)(this.contents,r,n,function(a){throw new Error(a)})},s.prototype.removeValue=function(r){this.removeKey(r)&&Object(Dn.h)(this.contents,r)},s.prototype.addKey=function(r){for(var n=this.keys.length,a=0;a<n;a++)r.indexOf(this.keys[a])===0&&(n=a);this.keys.splice(n,1,r)},s.prototype.removeKey=function(r){var n=this.keys.indexOf(r);return n!==-1?(this.keys.splice(n,1),!0):!1},s}(),Cr=function(s){br(r,s);function r(){for(var n=this,a=Object(Dn.e)(),y=Object(Dn.c)(),N=[],_e=0,ke=Object.keys(a);_e<ke.length;_e++){var Ge=ke[_e];Xi.b.test(Ge)&&N.push({identifiers:[Object(Dn.g)(Ge).trim()],keys:Object.keys(a[Ge]),contents:Object(Dn.i)(a[Ge],function(Qe){return console.error("Conflict in default settings file: "+Qe)})})}return n=s.call(this,a,y,N)||this,n}return r}(di),$r=function(){function s(r,n,a,y,N,_e,ke,Ge){a===void 0&&(a=new di),y===void 0&&(y=new di),N===void 0&&(N=new Qn.b),_e===void 0&&(_e=new di),ke===void 0&&(ke=new Qn.b),Ge===void 0&&(Ge=!0),this._defaultConfiguration=r,this._localUserConfiguration=n,this._remoteUserConfiguration=a,this._workspaceConfiguration=y,this._folderConfigurations=N,this._memoryConfiguration=_e,this._memoryConfigurationByResource=ke,this._freeze=Ge,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Qn.b,this._userConfiguration=null}return s.prototype.getValue=function(r,n,a){var y=this.getConsolidateConfigurationModel(n,a);return y.getValue(r)},s.prototype.updateValue=function(r,n,a){a===void 0&&(a={});var y;a.resource?(y=this._memoryConfigurationByResource.get(a.resource),y||(y=new di,this._memoryConfigurationByResource.set(a.resource,y))):y=this._memoryConfiguration,n===void 0?y.removeValue(r):y.setValue(r,n),a.resource||(this._workspaceConsolidatedConfiguration=null)},s.prototype.inspect=function(r,n,a){var y=this.getConsolidateConfigurationModel(n,a),N=this.getFolderConfigurationModelForResource(n.resource,a),_e=n.resource?this._memoryConfigurationByResource.get(n.resource)||this._memoryConfiguration:this._memoryConfiguration,ke=n.overrideIdentifier?this._defaultConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this._defaultConfiguration.freeze().getValue(r),Ge=n.overrideIdentifier?this.userConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this.userConfiguration.freeze().getValue(r),Qe=n.overrideIdentifier?this.localUserConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this.localUserConfiguration.freeze().getValue(r),yt=n.overrideIdentifier?this.remoteUserConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this.remoteUserConfiguration.freeze().getValue(r),It=a?n.overrideIdentifier?this._workspaceConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this._workspaceConfiguration.freeze().getValue(r):void 0,Wt=N?n.overrideIdentifier?N.freeze().override(n.overrideIdentifier).getValue(r):N.freeze().getValue(r):void 0,Pt=n.overrideIdentifier?_e.override(n.overrideIdentifier).getValue(r):_e.getValue(r),ro=y.getValue(r),eo=dt.e(dt.m(y.overrides.map(function(Gt){return Gt.identifiers}))).filter(function(Gt){return y.getOverrideValue(r,Gt)!==void 0});return{defaultValue:ke,userValue:Ge,userLocalValue:Qe,userRemoteValue:yt,workspaceValue:It,workspaceFolderValue:Wt,memoryValue:Pt,value:ro,default:ke!==void 0?{value:this._defaultConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,user:Ge!==void 0?{value:this.userConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,userLocal:Qe!==void 0?{value:this.localUserConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,userRemote:yt!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,workspace:It!==void 0?{value:this._workspaceConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,workspaceFolder:Wt!==void 0?{value:N==null?void 0:N.freeze().getValue(r),override:n.overrideIdentifier?N==null?void 0:N.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,memory:Pt!==void 0?{value:_e.getValue(r),override:n.overrideIdentifier?_e.getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,overrideIdentifiers:eo.length?eo:void 0}},Object.defineProperty(s.prototype,"userConfiguration",{get:function(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),s.prototype.getConsolidateConfigurationModel=function(r,n){var a=this.getConsolidatedConfigurationModelForResource(r,n);return r.overrideIdentifier?a.override(r.overrideIdentifier):a},s.prototype.getConsolidatedConfigurationModelForResource=function(r,n){var a=r.resource,y=this.getWorkspaceConsolidatedConfiguration();if(n&&a){var N=n.getFolder(a);N&&(y=this.getFolderConsolidatedConfiguration(N.uri)||y);var _e=this._memoryConfigurationByResource.get(a);_e&&(y=y.merge(_e))}return y},s.prototype.getWorkspaceConsolidatedConfiguration=function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},s.prototype.getFolderConsolidatedConfiguration=function(r){var n=this._foldersConsolidatedConfigurations.get(r);if(!n){var a=this.getWorkspaceConsolidatedConfiguration(),y=this._folderConfigurations.get(r);y?(n=a.merge(y),this._freeze&&(n=n.freeze()),this._foldersConsolidatedConfigurations.set(r,n)):n=a}return n},s.prototype.getFolderConfigurationModelForResource=function(r,n){if(n&&r){var a=n.getFolder(r);if(a)return this._folderConfigurations.get(a.uri)}return},s}(),_n=e("3/fG"),Zi=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Jr=function(s){Zi(r,s);function r(n,a,y,N){var _e=s.call(this)||this;return _e._contextKeyService=n,_e._commandService=a,_e._telemetryService=y,_e._notificationService=N,_e._onDidUpdateKeybindings=_e._register(new I.a),_e._currentChord=null,_e._currentChordChecker=new ut.c,_e._currentChordStatusMessage=null,_e}return Object.defineProperty(r.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:I.b.None},enumerable:!0,configurable:!0}),r.prototype.dispose=function(){s.prototype.dispose.call(this)},r.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},r.prototype.lookupKeybinding=function(n){var a=this._getResolver().lookupPrimaryKeybinding(n);return a?a.resolvedKeybinding:void 0},r.prototype.softDispatch=function(n,a){var y=this.resolveKeyboardEvent(n);if(y.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var N=y.getDispatchParts()[0];if(N===null)return null;var _e=this._contextKeyService.getContext(a),ke=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(_e,ke,N)},r.prototype._enterChordMode=function(n,a){var y=this;this._currentChord={keypress:n,label:a},this._currentChordStatusMessage=this._notificationService.status(_n.a("first.chord","({0}) was pressed. Waiting for second key of chord...",a));var N=Date.now();this._currentChordChecker.cancelAndSet(function(){if(!y._documentHasFocus()){y._leaveChordMode();return}Date.now()-N>5e3&&y._leaveChordMode()},500)},r.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},r.prototype._dispatch=function(n,a){return this._doDispatch(this.resolveKeyboardEvent(n),a)},r.prototype._doDispatch=function(n,a){var y=this,N=!1;if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var _e=n.getDispatchParts()[0];if(_e===null)return N;var ke=this._contextKeyService.getContext(a),Ge=this._currentChord?this._currentChord.keypress:null,Qe=n.getLabel(),yt=this._getResolver().resolve(ke,Ge,_e);return yt&&yt.enterChord?(N=!0,this._enterChordMode(_e,Qe),N):(this._currentChord&&((!yt||!yt.commandId)&&(this._notificationService.status(_n.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Qe),{hideAfter:10*1e3}),N=!0)),this._leaveChordMode(),yt&&yt.commandId&&(yt.bubble||(N=!0),typeof yt.commandArgs=="undefined"?this._commandService.executeCommand(yt.commandId).then(void 0,function(It){return y._notificationService.warn(It)}):this._commandService.executeCommand(yt.commandId,yt.commandArgs).then(void 0,function(It){return y._notificationService.warn(It)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:yt.commandId,from:"keybinding"})),N)},r.prototype.mightProducePrintableCharacter=function(n){return n.ctrlKey||n.metaKey?!1:n.keyCode>=31&&n.keyCode<=56||n.keyCode>=21&&n.keyCode<=30},r}(Rt.a),wn=e("T8No"),Qi=function(){function s(r,n){this._defaultKeybindings=r,this._defaultBoundCommands=new Map;for(var a=0,y=r.length;a<y;a++){var N=r[a].command;N&&this._defaultBoundCommands.set(N,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=s.combine(r,n);for(var a=0,y=this._keybindings.length;a<y;a++){var _e=this._keybindings[a];if(_e.keypressParts.length===0)continue;this._addKeyPress(_e.keypressParts[0],_e)}}return s._isTargetedForRemoval=function(r,n,a,y,N){if(r.command!==y)return!1;if(n&&r.keypressParts[0]!==n)return!1;if(a&&r.keypressParts[1]!==a)return!1;if(N){if(!r.when)return!1;if(!N.equals(r.when))return!1}return!0},s.combine=function(r,n){r=r.slice(0);for(var a=[],y=0,N=n;y<N.length;y++){var _e=N[y];if(!_e.command||_e.command.length===0||_e.command.charAt(0)!=="-"){a.push(_e);continue}for(var ke=_e.command.substr(1),Ge=_e.keypressParts[0],Qe=_e.keypressParts[1],yt=_e.when,It=r.length-1;It>=0;It--)this._isTargetedForRemoval(r[It],Ge,Qe,ke,yt)&&r.splice(It,1)}return r.concat(a)},s.prototype._addKeyPress=function(r,n){var a=this._map.get(r);if(typeof a=="undefined"){this._map.set(r,[n]),this._addToLookupMap(n);return}for(var y=a.length-1;y>=0;y--){var N=a[y];if(N.command===n.command)continue;var _e=N.keypressParts.length>1,ke=n.keypressParts.length>1;if(_e&&ke&&N.keypressParts[1]!==n.keypressParts[1])continue;s.whenIsEntirelyIncluded(N.when,n.when)&&this._removeFromLookupMap(N)}a.push(n),this._addToLookupMap(n)},s.prototype._addToLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);typeof n=="undefined"?(n=[r],this._lookupMap.set(r.command,n)):n.push(r)},s.prototype._removeFromLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);if(typeof n=="undefined")return;for(var a=0,y=n.length;a<y;a++)if(n[a]===r){n.splice(a,1);return}},s.whenIsEntirelyIncluded=function(r,n){return n?r?this._implies(r,n):!1:!0},s._implies=function(r,n){for(var a=r.negate(),y=function(It){return It instanceof wn.b?It.expr:[It]},N=y(a).concat(y(n)),_e=0;_e<N.length;_e++)for(var ke=N[_e],Ge=ke.negate(),Qe=_e+1;Qe<N.length;Qe++){var yt=N[Qe];if(Ge.equals(yt))return!0}return!1},s.prototype.getKeybindings=function(){return this._keybindings},s.prototype.lookupPrimaryKeybinding=function(r){var n=this._lookupMap.get(r);return typeof n=="undefined"||n.length===0?null:n[n.length-1]},s.prototype.resolve=function(r,n,a){var y=null;if(n!==null){var N=this._map.get(n);if(typeof N=="undefined")return null;y=[];for(var _e=0,ke=N.length;_e<ke;_e++){var Ge=N[_e];Ge.keypressParts[1]===a&&y.push(Ge)}}else{var N=this._map.get(a);if(typeof N=="undefined")return null;y=N}var Qe=this._findCommand(r,y);return Qe?n===null&&Qe.keypressParts.length>1&&Qe.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:Qe.command,commandArgs:Qe.commandArgs,bubble:Qe.bubble}:null},s.prototype._findCommand=function(r,n){for(var a=n.length-1;a>=0;a--){var y=n[a];if(!s.contextMatchesRules(r,y.when))continue;return y}return null},s.contextMatchesRules=function(r,n){return n?n.evaluate(r):!0},s}(),qr=e("nrhi"),$i=function(){function s(r,n,a,y,N){this.resolvedKeybinding=r,this.keypressParts=r?Er(r.getDispatchParts()):[],this.bubble=n?n.charCodeAt(0)===94:!1,this.command=this.bubble?n.substr(1):n,this.commandArgs=a,this.when=y,this.isDefault=N}return s}();function Er(s){for(var r=[],n=0,a=s.length;n<a;n++){var y=s[n];if(!y)return r;r.push(y)}return r}var _r=e("i04g"),es=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),na=function(s){es(r,s);function r(n,a){var y=s.call(this)||this;if(a.length===0)throw Object(Ct.b)("parts");return y._os=n,y._parts=a,y}return r.prototype.getLabel=function(){var n=this;return _r.b.toLabel(this._os,this._parts,function(a){return n._getLabel(a)})},r.prototype.getAriaLabel=function(){var n=this;return _r.a.toLabel(this._os,this._parts,function(a){return n._getAriaLabel(a)})},r.prototype.isChord=function(){return this._parts.length>1},r.prototype.getParts=function(){var n=this;return this._parts.map(function(a){return n._getPart(a)})},r.prototype._getPart=function(n){return new H.d(n.ctrlKey,n.shiftKey,n.altKey,n.metaKey,this._getLabel(n),this._getAriaLabel(n))},r.prototype.getDispatchParts=function(){var n=this;return this._parts.map(function(a){return n._getDispatchPart(a)})},r}(H.c),ts=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),wr=function(s){ts(r,s);function r(n,a){return s.call(this,a,n.parts)||this}return r.prototype._keyCodeToUILabel=function(n){if(this._os===2)switch(n){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return H.b.toString(n)},r.prototype._getLabel=function(n){return n.isDuplicateModifierCase()?"":this._keyCodeToUILabel(n.keyCode)},r.prototype._getAriaLabel=function(n){return n.isDuplicateModifierCase()?"":H.b.toString(n.keyCode)},r.prototype._getDispatchPart=function(n){return r.getDispatchStr(n)},r.getDispatchStr=function(n){if(n.isModifierKey())return null;var a="";return n.ctrlKey&&(a+="ctrl+"),n.shiftKey&&(a+="shift+"),n.altKey&&(a+="alt+"),n.metaKey&&(a+="meta+"),a+=H.b.toString(n.keyCode),a},r}(na),Hn=e("sM1p"),Sr=e("EWX2"),Di=e("A9l+"),os=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),ns=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},is=function(s,r){return function(n,a){r(n,a,s)}},rs=function(){for(var s=0,r=0,n=arguments.length;r<n;r++)s+=arguments[r].length;for(var a=Array(s),y=0,r=0;r<n;r++)for(var N=arguments[r],_e=0,ke=N.length;_e<ke;_e++,y++)a[y]=N[_e];return a},ia=function(){function s(r){this.model=r,this._onDispose=new I.a}return Object.defineProperty(s.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),s.prototype.dispose=function(){this._onDispose.fire()},s}();function ss(s,r,n){return Object(On.a)(s)?r(s):n(s)}var as=function(){function s(r){this.modelService=r}return s.prototype.setEditor=function(r){this.editor=r},s.prototype.createModelReference=function(r){var n=this,a=null;return this.editor&&(a=ss(this.editor,function(y){return n.findModel(y,r)},function(y){return n.findModel(y.getOriginalEditor(),r)||n.findModel(y.getModifiedEditor(),r)})),a?Promise.resolve(new Rt.c(new ia(a))):Promise.reject(new Error("Model not found"))},s.prototype.findModel=function(r,n){var a=this.modelService?this.modelService.getModel(n):r.getModel();return a&&a.uri.toString()!==n.toString()?null:a},s}(),ra=function(){function s(){}return s.prototype.show=function(){return s.NULL_PROGRESS_RUNNER},s.prototype.showWhile=function(r,n){return Promise.resolve(void 0)},s.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},s}(),ls=function(){function s(){}return s}(),ds=function(){function s(){}return s.prototype.info=function(r){return this.notify({severity:li.a.Info,message:r})},s.prototype.warn=function(r){return this.notify({severity:li.a.Warning,message:r})},s.prototype.error=function(r){return this.notify({severity:li.a.Error,message:r})},s.prototype.notify=function(r){switch(r.severity){case li.a.Error:console.error(r.message);break;case li.a.Warning:console.warn(r.message);break;default:console.log(r.message);break}return s.NO_OP},s.prototype.status=function(r,n){return Rt.a.None},s.NO_OP=new Hn.b,s}(),cs=function(){function s(r){this._onWillExecuteCommand=new I.a,this._onDidExecuteCommand=new I.a,this._instantiationService=r,this._dynamicCommands=Object.create(null)}return s.prototype.addCommand=function(r){var n=this,a=r.id;return this._dynamicCommands[a]=r,Object(Rt.h)(function(){delete n._dynamicCommands[a]})},s.prototype.executeCommand=function(r){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var y=$.a.getCommand(r)||this._dynamicCommands[r];if(!y)return Promise.reject(new Error("command '"+r+"' not found"));try{this._onWillExecuteCommand.fire({commandId:r,args:n});var N=this._instantiationService.invokeFunction.apply(this._instantiationService,rs([y.handler],n));return this._onDidExecuteCommand.fire({commandId:r,args:n}),Promise.resolve(N)}catch(_e){return Promise.reject(_e)}},s}(),Lr=function(s){os(r,s);function r(n,a,y,N,_e){var ke=s.call(this,n,a,y,N)||this;return ke._cachedResolver=null,ke._dynamicKeybindings=[],ke._register(ge.j(_e,ge.d.KEY_DOWN,function(Ge){var Qe=new $o.a(Ge),yt=ke._dispatch(Qe,Qe.target);yt&&(Qe.preventDefault(),Qe.stopPropagation())})),ke}return r.prototype.addDynamicKeybinding=function(n,a,y,N){var _e=this,ke=Object(H.f)(a,ht.a),Ge=new Rt.b;ke&&(this._dynamicKeybindings.push({keybinding:ke,command:n,when:N,weight1:1e3,weight2:0}),Ge.add(Object(Rt.h)(function(){for(var yt=0;yt<_e._dynamicKeybindings.length;yt++){var It=_e._dynamicKeybindings[yt];if(It.command===n){_e._dynamicKeybindings.splice(yt,1),_e.updateResolver({source:1});return}}})));var Qe=this._commandService;if(Qe instanceof cs)Ge.add(Qe.addCommand({id:n,handler:y}));else throw new Error("Unknown command service!");return this.updateResolver({source:1}),Ge},r.prototype.updateResolver=function(n){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(n)},r.prototype._getResolver=function(){if(!this._cachedResolver){var n=this._toNormalizedKeybindingItems(qr.a.getDefaultKeybindings(),!0),a=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Qi(n,a)}return this._cachedResolver},r.prototype._documentHasFocus=function(){return document.hasFocus()},r.prototype._toNormalizedKeybindingItems=function(n,a){for(var y=[],N=0,_e=0,ke=n;_e<ke.length;_e++){var Ge=ke[_e],Qe=Ge.when||void 0,yt=Ge.keybinding;if(!yt)y[N++]=new $i(void 0,Ge.command,Ge.commandArgs,Qe,a);else for(var It=this.resolveKeybinding(yt),Wt=0,Pt=It;Wt<Pt.length;Wt++){var ro=Pt[Wt];y[N++]=new $i(ro,Ge.command,Ge.commandArgs,Qe,a)}}return y},r.prototype.resolveKeybinding=function(n){return[new wr(n,ht.a)]},r.prototype.resolveKeyboardEvent=function(n){var a=new H.e(n.ctrlKey,n.shiftKey,n.altKey,n.metaKey,n.keyCode).toChord();return new wr(a,ht.a)},r}(Jr);function Mr(s){return s&&typeof s=="object"&&(!s.overrideIdentifier||typeof s.overrideIdentifier=="string")&&(!s.resource||s.resource instanceof K.a)}var Or=function(){function s(){this._onDidChangeConfiguration=new I.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new $r(new Cr,new di)}return s.prototype.configuration=function(){return this._configuration},s.prototype.getValue=function(r,n){var a=typeof r=="string"?r:void 0,y=Mr(r)?r:Mr(n)?n:{};return this.configuration().getValue(a,y,void 0)},s.prototype.updateValue=function(r,n,a,y){return this.configuration().updateValue(r,n),Promise.resolve()},s.prototype.inspect=function(r,n){return n===void 0&&(n={}),this.configuration().inspect(r,n,void 0)},s}(),us=function(){function s(r){var n=this;this.configurationService=r,this._onDidChangeConfiguration=new I.a,this.configurationService.onDidChangeConfiguration(function(a){n._onDidChangeConfiguration.fire({affectedKeys:a.affectedKeys,affectsConfiguration:function(y,N){return a.affectsConfiguration(N)}})})}return s.prototype.getValue=function(r,n,a){var y=D.a.isIPosition(n)?n:null,N=y?typeof a=="string"?a:void 0:typeof n=="string"?n:void 0;return typeof N=="undefined"?this.configurationService.getValue():this.configurationService.getValue(N)},s}(),hs=function(){function s(r){this.configurationService=r}return s.prototype.getEOL=function(r,n){var a=this.configurationService.getValue("files.eol",{overrideIdentifier:n,resource:r});return a&&a!=="auto"?a:ht.d||ht.e?`
`:`\r
`},s=ns([is(0,Dn.a)],s),s}(),fs=function(){function s(){}return s.prototype.publicLog=function(r,n){return Promise.resolve(void 0)},s.prototype.publicLog2=function(r,n){return this.publicLog(r,n)},s}(),ms=function(){function s(){var r=K.a.from({scheme:s.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new Sr.b({uri:r,name:"",index:0})]}}return s.prototype.getWorkspace=function(){return this.workspace},s.prototype.getWorkspaceFolder=function(r){return r&&r.scheme===s.SCHEME?this.workspace.folders[0]:null},s.SCHEME="inmemory",s}();function ti(s,r,n){if(!r)return;if(!(s instanceof Or))return;Object.keys(r).forEach(function(a){Object(yr.d)(a)&&s.updateValue("editor."+a,r[a]),n&&Object(yr.c)(a)&&s.updateValue("diffEditor."+a,r[a])})}var sa=function(){function s(r){this._modelService=r}return s.prototype.hasPreviewHandler=function(){return!1},s.prototype.apply=function(r,n){var a=new Map;if(r.edits)for(var y=0,N=r.edits;y<N.length;y++){var _e=N[y];if(!gt.D.is(_e))return Promise.reject(new Error("bad edit - only text edits are supported"));var ke=this._modelService.getModel(_e.resource);if(!ke)return Promise.reject(new Error("bad edit - model not found"));var Ge=a.get(ke);Ge||(Ge=[],a.set(ke,Ge)),Ge.push(_e.edit)}var Qe=0,yt=0;return a.forEach(function(It,Wt){Wt.pushStackElement(),Wt.pushEditOperations([],It.map(function(Pt){return Qr.a.replaceMove(U.a.lift(Pt.range),Pt.text)}),function(){return[]}),Wt.pushStackElement(),yt+=1,Qe+=It.length}),Promise.resolve({selection:void 0,ariaSummary:to.r(Di.f.bulkEditServiceSummary,Qe,yt)})},s}(),Dr=function(){function s(){}return s.prototype.getUriLabel=function(r,n){return r.scheme==="file"?r.fsPath:r.path},s}(),Tr=function(){function s(r){this._container=r,this.onLayout=I.b.None}return Object.defineProperty(s.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),s}(),ps=e("D3Dy"),gs=e("OBOq"),xr=e("nB0o"),Ar=e("lKfe"),Ci=e("ZlPH"),vs=e("cMOf"),Ti=e("HdwC"),ys=e("vATl"),aa=e("DTDp"),bs=e("WqXY"),Cs=e("GJhM"),ci=e("8HAY"),ui=e("sswD"),Vn=e("kYye"),gn=e("MD5Z"),Ln=e("t9D7"),Sn=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),xi=3,Ei=function(){function s(r,n,a,y){this.originalLineStart=r,this.originalLineEnd=n,this.modifiedLineStart=a,this.modifiedLineEnd=y}return s.prototype.getType=function(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0},s}(),Ji=function(){function s(r){this.entries=r}return s}(),qi=function(s){Sn(r,s);function r(n){var a=s.call(this)||this;return a._width=0,a._diffEditor=n,a._isVisible=!1,a.shadow=Object(Ci.b)(document.createElement("div")),a.shadow.setClassName("diff-review-shadow"),a.actionBarContainer=Object(Ci.b)(document.createElement("div")),a.actionBarContainer.setClassName("diff-review-actions"),a._actionBar=a._register(new bs.a(a.actionBarContainer.domNode)),a._actionBar.push(new ci.a("diffreview.close",_n.a("label.close","Close"),"close-diff-review",!0,function(){return a.hide(),Promise.resolve(null)}),{label:!1,icon:!0}),a.domNode=Object(Ci.b)(document.createElement("div")),a.domNode.setClassName("diff-review monaco-editor-background"),a._content=Object(Ci.b)(document.createElement("div")),a._content.setClassName("diff-review-content"),a.scrollbar=a._register(new Cs.a(a._content.domNode,{})),a.domNode.domNode.appendChild(a.scrollbar.getDomNode()),a._register(n.onDidUpdateDiff(function(){if(!a._isVisible)return;a._diffs=a._compute(),a._render()})),a._register(n.getModifiedEditor().onDidChangeCursorPosition(function(){if(!a._isVisible)return;a._render()})),a._register(n.getOriginalEditor().onDidFocusEditorWidget(function(){a._isVisible&&a.hide()})),a._register(n.getModifiedEditor().onDidFocusEditorWidget(function(){a._isVisible&&a.hide()})),a._register(ge.o(a.domNode.domNode,"click",function(y){y.preventDefault();var N=ge.x(y.target,"diff-review-row");N&&a._goToRow(N)})),a._register(ge.o(a.domNode.domNode,"keydown",function(y){(y.equals(18)||y.equals(2048|18)||y.equals(512|18))&&(y.preventDefault(),a._goToRow(a._getNextRow())),(y.equals(16)||y.equals(2048|16)||y.equals(512|16))&&(y.preventDefault(),a._goToRow(a._getPrevRow())),(y.equals(9)||y.equals(2048|9)||y.equals(512|9)||y.equals(1024|9))&&(y.preventDefault(),a.hide()),(y.equals(10)||y.equals(3))&&(y.preventDefault(),a.accept())})),a._diffs=[],a._currentDiff=null,a}return r.prototype.prev=function(){var n=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var a=-1,y=0,N=this._diffs.length;y<N;y++)if(this._diffs[y]===this._currentDiff){a=y;break}n=this._diffs.length+a-1}else n=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;n=n%this._diffs.length,this._diffEditor.setPosition(new D.a(this._diffs[n].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())},r.prototype.next=function(){var n=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var a=-1,y=0,N=this._diffs.length;y<N;y++)if(this._diffs[y]===this._currentDiff){a=y;break}n=a+1}else n=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;n=n%this._diffs.length,this._diffEditor.setPosition(new D.a(this._diffs[n].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())},r.prototype.accept=function(){var n=-1,a=this._getCurrentFocusedRow();if(a){var y=parseInt(a.getAttribute("data-line"),10);isNaN(y)||(n=y)}this.hide(),n!==-1&&(this._diffEditor.setPosition(new D.a(n,1)),this._diffEditor.revealPosition(new D.a(n,1),1))},r.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},r.prototype._getPrevRow=function(){var n=this._getCurrentFocusedRow();return n?n.previousElementSibling?n.previousElementSibling:n:this._getFirstRow()},r.prototype._getNextRow=function(){var n=this._getCurrentFocusedRow();return n?n.nextElementSibling?n.nextElementSibling:n:this._getFirstRow()},r.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},r.prototype._getCurrentFocusedRow=function(){var n=document.activeElement;return n&&/diff-review-row/.test(n.className)?n:null},r.prototype._goToRow=function(n){var a=this._getCurrentFocusedRow();n.tabIndex=0,n.focus(),a&&a!==n&&(a.tabIndex=-1),this.scrollbar.scanDomNode()},r.prototype.isVisible=function(){return this._isVisible},r.prototype.layout=function(n,a,y){this._width=a,this.shadow.setTop(n-6),this.shadow.setWidth(a),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(n),this.domNode.setWidth(a),this.domNode.setHeight(y),this._content.setHeight(y),this._content.setWidth(a),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))},r.prototype._compute=function(){var n=this._diffEditor.getLineChanges();if(!n||n.length===0)return[];var a=this._diffEditor.getOriginalEditor().getModel(),y=this._diffEditor.getModifiedEditor().getModel();return!a||!y?[]:r._mergeAdjacent(n,a.getLineCount(),y.getLineCount())},r._mergeAdjacent=function(n,a,y){if(!n||n.length===0)return[];for(var N=[],_e=0,ke=0,Ge=n.length;ke<Ge;ke++){var Qe=n[ke],yt=Qe.originalStartLineNumber,It=Qe.originalEndLineNumber,Wt=Qe.modifiedStartLineNumber,Pt=Qe.modifiedEndLineNumber,ro=[],eo=0;{var Gt=It===0?yt:yt-1,Jt=Pt===0?Wt:Wt-1,co=1,So=1;if(ke>0){var xo=n[ke-1];xo.originalEndLineNumber===0?co=xo.originalStartLineNumber+1:co=xo.originalEndLineNumber+1,xo.modifiedEndLineNumber===0?So=xo.modifiedStartLineNumber+1:So=xo.modifiedEndLineNumber+1}var Po=Gt-xi+1,Go=Jt-xi+1;if(Po<co){var Xo=co-Po;Po=Po+Xo,Go=Go+Xo}if(Go<So){var Xo=So-Go;Po=Po+Xo,Go=Go+Xo}ro[eo++]=new Ei(Po,Gt,Go,Jt)}It!==0&&(ro[eo++]=new Ei(yt,It,0,0)),Pt!==0&&(ro[eo++]=new Ei(0,0,Wt,Pt));{var an=It===0?yt+1:It+1,yn=Pt===0?Wt+1:Pt+1,Zo=a,Yo=y;if(ke+1<Ge){var mn=n[ke+1];mn.originalEndLineNumber===0?Zo=mn.originalStartLineNumber:Zo=mn.originalStartLineNumber-1,mn.modifiedEndLineNumber===0?Yo=mn.modifiedStartLineNumber:Yo=mn.modifiedStartLineNumber-1}var en=an+xi-1,bn=yn+xi-1;if(en>Zo){var Xo=Zo-en;en=en+Xo,bn=bn+Xo}if(bn>Yo){var Xo=Yo-bn;en=en+Xo,bn=bn+Xo}ro[eo++]=new Ei(an,en,yn,bn)}N[_e++]=new Ji(ro)}for(var Mn=N[0].entries,Bn=[],kn=0,ke=1,Ge=N.length;ke<Ge;ke++){var Gn=N[ke].entries,ri=Mn[Mn.length-1],Vi=Gn[0];if(ri.getType()===0&&Vi.getType()===0&&Vi.originalLineStart<=ri.originalLineEnd){Mn[Mn.length-1]=new Ei(ri.originalLineStart,Vi.originalLineEnd,ri.modifiedLineStart,Vi.modifiedLineEnd),Mn=Mn.concat(Gn.slice(1));continue}Bn[kn++]=new Ji(Mn),Mn=Gn}return Bn[kn++]=new Ji(Mn),Bn},r.prototype._findDiffIndex=function(n){for(var a=n.lineNumber,y=0,N=this._diffs.length;y<N;y++){var _e=this._diffs[y].entries,ke=_e[_e.length-1].modifiedLineEnd;if(a<=ke)return y}return 0},r.prototype._render=function(){var n=this._diffEditor.getOriginalEditor().getOptions(),a=this._diffEditor.getModifiedEditor().getOptions(),y=this._diffEditor.getOriginalEditor().getModel(),N=this._diffEditor.getModifiedEditor().getModel(),_e=y.getOptions(),ke=N.getOptions();if(!this._isVisible||!y||!N){ge.t(this._content.domNode),this._currentDiff=null,this.scrollbar.scanDomNode();return}var Ge=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[Ge]===this._currentDiff)return;this._currentDiff=this._diffs[Ge];var Qe=this._diffs[Ge].entries,yt=document.createElement("div");yt.className="diff-review-table",yt.setAttribute("role","list"),Ti.a.applyFontInfoSlow(yt,a.get(34));for(var It=0,Wt=0,Pt=0,ro=0,eo=0,Gt=Qe.length;eo<Gt;eo++){var Jt=Qe[eo],co=Jt.originalLineStart,So=Jt.originalLineEnd,xo=Jt.modifiedLineStart,Po=Jt.modifiedLineEnd;co!==0&&(It===0||co<It)&&(It=co),So!==0&&(Wt===0||So>Wt)&&(Wt=So),xo!==0&&(Pt===0||xo<Pt)&&(Pt=xo),Po!==0&&(ro===0||Po>ro)&&(ro=Po)}var Go=document.createElement("div");Go.className="diff-review-row";var Xo=document.createElement("div");Xo.className="diff-review-cell diff-review-summary";var an=Wt-It+1,yn=ro-Pt+1;Xo.appendChild(document.createTextNode(Ge+1+"/"+this._diffs.length+": @@ -"+It+","+an+" +"+Pt+","+yn+" @@")),Go.setAttribute("data-line",String(Pt));var Zo=function(bn){return bn===0?_n.a("no_lines","no lines"):bn===1?_n.a("one_line","1 line"):_n.a("more_lines","{0} lines",bn)},Yo=Zo(an),mn=Zo(yn);Go.setAttribute("aria-label",_n.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",Ge+1,this._diffs.length,It,Yo,Pt,mn)),Go.appendChild(Xo),Go.setAttribute("role","listitem"),yt.appendChild(Go);for(var en=Pt,eo=0,Gt=Qe.length;eo<Gt;eo++){var Jt=Qe[eo];r._renderSection(yt,Jt,en,this._width,n,y,_e,a,N,ke),Jt.modifiedLineStart!==0&&(en=Jt.modifiedLineEnd)}ge.t(this._content.domNode),this._content.domNode.appendChild(yt),this.scrollbar.scanDomNode()},r._renderSection=function(n,a,y,N,_e,ke,Ge,Qe,yt,It){var Wt=a.getType(),Pt="diff-review-row",ro="",eo="diff-review-spacer";switch(Wt){case 1:Pt="diff-review-row line-insert",ro=" char-insert",eo="diff-review-spacer insert-sign";break;case 2:Pt="diff-review-row line-delete",ro=" char-delete",eo="diff-review-spacer delete-sign";break}for(var Gt=a.originalLineStart,Jt=a.originalLineEnd,co=a.modifiedLineStart,So=a.modifiedLineEnd,xo=Math.max(So-co,Jt-Gt),Po=_e.get(107),Go=Po.glyphMarginWidth+Po.lineNumbersWidth,Xo=Qe.get(107),an=10+Xo.glyphMarginWidth+Xo.lineNumbersWidth,yn=0;yn<=xo;yn++){var Zo=Gt===0?0:Gt+yn,Yo=co===0?0:co+yn,mn=document.createElement("div");mn.style.minWidth=N+"px",mn.className=Pt,mn.setAttribute("role","listitem"),Yo!==0&&(y=Yo),mn.setAttribute("data-line",String(y));var en=document.createElement("div");en.className="diff-review-cell",mn.appendChild(en);var bn=document.createElement("span");bn.style.width=Go+"px",bn.style.minWidth=Go+"px",bn.className="diff-review-line-number"+ro,Zo!==0?bn.appendChild(document.createTextNode(String(Zo))):bn.innerHTML="&#160;",en.appendChild(bn);var Mn=document.createElement("span");Mn.style.width=an+"px",Mn.style.minWidth=an+"px",Mn.style.paddingRight="10px",Mn.className="diff-review-line-number"+ro,Yo!==0?Mn.appendChild(document.createTextNode(String(Yo))):Mn.innerHTML="&#160;",en.appendChild(Mn);var Bn=document.createElement("span");Bn.className=eo,Bn.innerHTML="&#160;&#160;",en.appendChild(Bn);var kn=void 0;Yo!==0?(en.insertAdjacentHTML("beforeend",this._renderLine(yt,Qe,It.tabSize,Yo)),kn=yt.getLineContent(Yo)):(en.insertAdjacentHTML("beforeend",this._renderLine(ke,_e,Ge.tabSize,Zo)),kn=ke.getLineContent(Zo)),kn.length===0&&(kn=_n.a("blankLine","blank"));var Gn="";switch(Wt){case 0:Gn=_n.a("equalLine","original {0}, modified {1}: {2}",Zo,Yo,kn);break;case 1:Gn=_n.a("insertLine","+ modified {0}: {1}",Yo,kn);break;case 2:Gn=_n.a("deleteLine","- original {0}: {1}",Zo,kn);break}mn.setAttribute("aria-label",Gn),n.appendChild(mn)}},r._renderLine=function(n,a,y,N){var _e=n.getLineContent(N),ke=a.get(34),Ge=(0<<11|1<<14|2<<23)>>>0,Qe=new Uint32Array(2);Qe[0]=_e.length,Qe[1]=Ge;var yt=new wt.a(Qe,_e),It=Xt.d.isBasicASCII(_e,n.mightContainNonBasicASCII()),Wt=Xt.d.containsRTL(_e,It,n.mightContainRTL()),Pt=Object(zt.e)(new zt.c(ke.isMonospace&&!a.get(23),ke.canUseHalfwidthRightwardsArrow,_e,!1,It,Wt,0,yt,[],y,0,ke.spaceWidth,ke.middotWidth,a.get(88),a.get(74),a.get(69),a.get(35)!==T.d.OFF,null));return Pt.html},r}(Rt.a);Object(Ln.e)(function(s,r){var n=s.getColor(Vn.k);n&&r.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var a=s.getColor(gn.Vb);a&&r.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+a+" 0 -6px 6px -6px inset; }")});var er=function(s){Sn(r,s);function r(){return s.call(this,{id:"editor.action.diffReview.next",label:_n.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:wn.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return r.prototype.run=function(n,a){var y=Ir(n);y&&y.diffReviewNext()},r}(ui.b),Rr=function(s){Sn(r,s);function r(){return s.call(this,{id:"editor.action.diffReview.prev",label:_n.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:wn.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return r.prototype.run=function(n,a){var y=Ir(n);y&&y.diffReviewPrev()},r}(ui.b);function Ir(s){for(var r=s.get(de.a),n=r.listDiffEditors(),a=0,y=n.length;a<y;a++){var N=n[a];if(N.hasWidgetFocus())return N}return null}Object(ui.f)(er),Object(ui.f)(Rr);var Es=e("erNZ"),Jo=e("tX9W"),Ai=e("MvK1"),_s=e("dBaI"),Rn=e("Cg/j"),_i=e("8HsV"),Xn=e("Uzvx"),zn=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ri=function(s,r,n,a){function y(N){return N instanceof n?N:new n(function(_e){_e(N)})}return new(n||(n=Promise))(function(N,_e){function ke(yt){try{Qe(a.next(yt))}catch(It){_e(It)}}function Ge(yt){try{Qe(a.throw(yt))}catch(It){_e(It)}}function Qe(yt){yt.done?N(yt.value):y(yt.value).then(ke,Ge)}Qe((a=a.apply(s,r||[])).next())})},tr=function(s,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},a,y,N,_e;return _e={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function ke(Qe){return function(yt){return Ge([Qe,yt])}}function Ge(Qe){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,y&&(N=Qe[0]&2?y.return:Qe[0]?y.throw||((N=y.return)&&N.call(y),0):y.next)&&!(N=N.call(y,Qe[1])).done)return N;(y=0,N)&&(Qe=[Qe[0]&2,N.value]);switch(Qe[0]){case 0:case 1:N=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,y=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!N||Qe[1]>N[0]&&Qe[1]<N[3])){n.label=Qe[1];break}if(Qe[0]===6&&n.label<N[1]){n.label=N[1],N=Qe;break}if(N&&n.label<N[2]){n.label=N[2],n.ops.push(Qe);break}N[2]&&n.ops.pop(),n.trys.pop();continue}Qe=r.call(s,n)}catch(yt){Qe=[6,yt],y=0}finally{a=N=0}if(Qe[0]&5)throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}},wi=function(s){zn(r,s);function r(n,a,y,N,_e,ke){var Ge=s.call(this)||this;Ge._viewZoneId=n,Ge._marginDomNode=a,Ge.editor=y,Ge.diff=N,Ge._contextMenuService=_e,Ge._clipboardService=ke,Ge._visibility=!1,Ge._marginDomNode.style.zIndex="10",Ge._diffActions=document.createElement("div"),Ge._diffActions.className="codicon codicon-lightbulb lightbulb-glyph",Ge._diffActions.style.position="absolute";var Qe=y.getOption(49),yt=y.getModel().getEOL();Ge._diffActions.style.right="0px",Ge._diffActions.style.visibility="hidden",Ge._diffActions.style.height=Qe+"px",Ge._diffActions.style.lineHeight=Qe+"px",Ge._marginDomNode.appendChild(Ge._diffActions);var It=[];It.push(new ci.a("diff.clipboard.copyDeletedContent",N.originalEndLineNumber>N.modifiedStartLineNumber?_n.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):_n.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){return tr(this,function(Gt){switch(Gt.label){case 0:return[4,this._clipboardService.writeText(N.originalContent.join(yt)+yt)];case 1:return Gt.sent(),[2]}})})}));var Wt=0,Pt=void 0;N.originalEndLineNumber>N.modifiedStartLineNumber&&(Pt=new ci.a("diff.clipboard.copyDeletedLineContent",_n.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",N.originalStartLineNumber),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){return tr(this,function(Gt){switch(Gt.label){case 0:return[4,this._clipboardService.writeText(N.originalContent[Wt])];case 1:return Gt.sent(),[2]}})})}),It.push(Pt));var ro=y.getOption(68);ro||It.push(new ci.a("diff.inline.revertChange",_n.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){var Gt,Gt;return tr(this,function(Jt){return N.modifiedEndLineNumber===0?(Gt=y.getModel().getLineMaxColumn(N.modifiedStartLineNumber),y.executeEdits("diffEditor",[{range:new U.a(N.modifiedStartLineNumber,Gt,N.modifiedStartLineNumber,Gt),text:yt+N.originalContent.join(yt)}])):(Gt=y.getModel().getLineMaxColumn(N.modifiedEndLineNumber),y.executeEdits("diffEditor",[{range:new U.a(N.modifiedStartLineNumber,1,N.modifiedEndLineNumber,Gt),text:N.originalContent.join(yt)}])),[2]})})}));var eo=function(Gt,Jt){Ge._contextMenuService.showContextMenu({getAnchor:function(){return{x:Gt,y:Jt}},getActions:function(){return Pt&&(Pt.label=_n.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",N.originalStartLineNumber+Wt)),It},autoSelectFirstItem:!0})};return Ge._register(ge.o(Ge._diffActions,"mousedown",function(Gt){var Jt=ge.C(Ge._diffActions),co=Jt.top,So=Jt.height,xo=Math.floor(Qe/3);Gt.preventDefault(),eo(Gt.posx,co+So+xo)})),Ge._register(y.onMouseMove(function(Gt){if(Gt.target.type===8||Gt.target.type===5){var Jt=Gt.target.detail.viewZoneId;Jt===Ge._viewZoneId?(Ge.visibility=!0,Wt=Ge._updateLightBulbPosition(Ge._marginDomNode,Gt.event.browserEvent.y,Qe)):Ge.visibility=!1}else Ge.visibility=!1})),Ge._register(y.onMouseDown(function(Gt){if(!Gt.event.rightButton)return;if(Gt.target.type===8||Gt.target.type===5){var Jt=Gt.target.detail.viewZoneId;Jt===Ge._viewZoneId&&(Gt.event.preventDefault(),Wt=Ge._updateLightBulbPosition(Ge._marginDomNode,Gt.event.browserEvent.y,Qe),eo(Gt.event.posx,Gt.event.posy+Qe))}})),Ge}return Object.defineProperty(r.prototype,"visibility",{get:function(){return this._visibility},set:function(n){this._visibility!==n&&(this._visibility=n,n?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")},enumerable:!0,configurable:!0}),r.prototype._updateLightBulbPosition=function(n,a,y){var N=ge.C(n).top,_e=a-N,ke=Math.floor(_e/y),Ge=ke*y;return this._diffActions.style.top=Ge+"px",ke},r}(Rt.a),Ii=e("tTk5"),ws=e("o39E"),hi=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ss=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},$n=function(s,r){return function(n,a){r(n,a,s)}},Jn=function(){function s(r,n){this._contextMenuService=r,this._clipboardService=n,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return s.prototype.getForeignViewZones=function(r){var n=this;return r.filter(function(a){return!n._zonesMap[String(a.id)]})},s.prototype.clean=function(r){var n=this;this._zones.length>0&&r.changeViewZones(function(a){for(var y=0,N=n._zones.length;y<N;y++)a.removeZone(n._zones[y])}),this._zones=[],this._zonesMap={},this._decorations=r.deltaDecorations(this._decorations,[])},s.prototype.apply=function(r,n,a,y){var N=this,_e=y?ys.c.capture(r):null;r.changeViewZones(function(ke){for(var Ge=0,Qe=N._zones.length;Ge<Qe;Ge++)ke.removeZone(N._zones[Ge]);for(var Ge=0,yt=N.inlineDiffMargins.length;Ge<yt;Ge++)N.inlineDiffMargins[Ge].dispose();N._zones=[],N._zonesMap={},N.inlineDiffMargins=[];for(var Ge=0,It=a.zones.length;Ge<It;Ge++){var Wt=a.zones[Ge];Wt.suppressMouseDown=!0;var Pt=ke.addZone(Wt);N._zones.push(Pt),N._zonesMap[String(Pt)]=!0,a.zones[Ge].diff&&Wt.marginDomNode&&N._clipboardService&&(Wt.suppressMouseDown=!1,N.inlineDiffMargins.push(new wi(Pt,Wt.marginDomNode,r,a.zones[Ge].diff,N._contextMenuService,N._clipboardService)))}}),_e&&_e.restore(r),this._decorations=r.deltaDecorations(this._decorations,a.decorations),n&&n.setZones(a.overviewZones)},s}(),Ls=0,or=function(s){hi(r,s);function r(n,a,y,N,_e,ke,Ge,Qe,yt,It,Wt){var Pt=s.call(this)||this;Pt._editorProgressService=Wt,Pt._onDidDispose=Pt._register(new I.a),Pt.onDidDispose=Pt._onDidDispose.event,Pt._onDidUpdateDiff=Pt._register(new I.a),Pt.onDidUpdateDiff=Pt._onDidUpdateDiff.event,Pt._lastOriginalWarning=null,Pt._lastModifiedWarning=null,Pt._editorWorkerService=N,Pt._codeEditorService=Ge,Pt._contextKeyService=Pt._register(_e.createScoped(n)),Pt._contextKeyService.createKey("isInDiffEditor",!0),Pt._themeService=Qe,Pt._notificationService=yt,Pt.id=++Ls,Pt._state=0,Pt._updatingDiffProgress=null,Pt._domElement=n,a=a||{},Pt._renderSideBySide=!0,typeof a.renderSideBySide!="undefined"&&(Pt._renderSideBySide=a.renderSideBySide),Pt._maxComputationTime=5e3,typeof a.maxComputationTime!="undefined"&&(Pt._maxComputationTime=a.maxComputationTime),Pt._ignoreTrimWhitespace=!0,typeof a.ignoreTrimWhitespace!="undefined"&&(Pt._ignoreTrimWhitespace=a.ignoreTrimWhitespace),Pt._renderIndicators=!0,typeof a.renderIndicators!="undefined"&&(Pt._renderIndicators=a.renderIndicators),Pt._originalIsEditable=!1,typeof a.originalEditable!="undefined"&&(Pt._originalIsEditable=Boolean(a.originalEditable)),Pt._updateDecorationsRunner=Pt._register(new ut.d(function(){return Pt._updateDecorations()},0)),Pt._containerDomElement=document.createElement("div"),Pt._containerDomElement.className=r._getClassName(Pt._themeService.getTheme(),Pt._renderSideBySide),Pt._containerDomElement.style.position="relative",Pt._containerDomElement.style.height="100%",Pt._domElement.appendChild(Pt._containerDomElement),Pt._overviewViewportDomElement=Object(Ci.b)(document.createElement("div")),Pt._overviewViewportDomElement.setClassName("diffViewport"),Pt._overviewViewportDomElement.setPosition("absolute"),Pt._overviewDomElement=document.createElement("div"),Pt._overviewDomElement.className="diffOverview",Pt._overviewDomElement.style.position="absolute",Pt._overviewDomElement.appendChild(Pt._overviewViewportDomElement.domNode),Pt._register(ge.o(Pt._overviewDomElement,"mousedown",function(an){Pt.modifiedEditor.delegateVerticalScrollbarMouseDown(an)})),Pt._containerDomElement.appendChild(Pt._overviewDomElement),Pt._originalDomNode=document.createElement("div"),Pt._originalDomNode.className="editor original",Pt._originalDomNode.style.position="absolute",Pt._originalDomNode.style.height="100%",Pt._containerDomElement.appendChild(Pt._originalDomNode),Pt._modifiedDomNode=document.createElement("div"),Pt._modifiedDomNode.className="editor modified",Pt._modifiedDomNode.style.position="absolute",Pt._modifiedDomNode.style.height="100%",Pt._containerDomElement.appendChild(Pt._modifiedDomNode),Pt._beginUpdateDecorationsTimeout=-1,Pt._currentlyChangingViewZones=!1,Pt._diffComputationToken=0,Pt._originalEditorState=new Jn(It,y),Pt._modifiedEditorState=new Jn(It,y),Pt._isVisible=!0,Pt._isHandlingScrollEvent=!1,Pt._elementSizeObserver=Pt._register(new ws.a(Pt._containerDomElement,void 0,function(){return Pt._onDidContainerSizeChanged()})),a.automaticLayout&&Pt._elementSizeObserver.startObserving(),Pt._diffComputationResult=null;var ro=Pt._contextKeyService.createScoped();ro.createKey("isInDiffLeftEditor",!0);var eo=new _i.a;eo.set(wn.c,ro);var Gt=ke.createChild(eo),Jt=Pt._contextKeyService.createScoped();Jt.createKey("isInDiffRightEditor",!0);var co=new _i.a;co.set(wn.c,Jt);var So=ke.createChild(co);Pt.originalEditor=Pt._createLeftHandSideEditor(a,Gt),Pt.modifiedEditor=Pt._createRightHandSideEditor(a,So),Pt._originalOverviewRuler=null,Pt._modifiedOverviewRuler=null,Pt._reviewPane=new qi(Pt),Pt._containerDomElement.appendChild(Pt._reviewPane.domNode.domNode),Pt._containerDomElement.appendChild(Pt._reviewPane.shadow.domNode),Pt._containerDomElement.appendChild(Pt._reviewPane.actionBarContainer.domNode),Pt._enableSplitViewResizing=!0,typeof a.enableSplitViewResizing!="undefined"&&(Pt._enableSplitViewResizing=a.enableSplitViewResizing),Pt._renderSideBySide?Pt._setStrategy(new rr(Pt._createDataSource(),Pt._enableSplitViewResizing)):Pt._setStrategy(new Ni(Pt._createDataSource(),Pt._enableSplitViewResizing)),Pt._register(Qe.onThemeChange(function(an){Pt._strategy&&Pt._strategy.applyColors(an)&&Pt._updateDecorationsRunner.schedule(),Pt._containerDomElement.className=r._getClassName(Pt._themeService.getTheme(),Pt._renderSideBySide)}));for(var xo=ui.d.getDiffEditorContributions(),Po=0,Go=xo;Po<Go.length;Po++){var Xo=Go[Po];try{Pt._register(ke.createInstance(Xo.ctor,Pt))}catch(an){Object(Ct.e)(an)}}return Pt._codeEditorService.addDiffEditor(Pt),Pt}return r.prototype._setState=function(n){if(this._state===n)return;this._state=n,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3))},r.prototype.hasWidgetFocus=function(){return ge.K(document.activeElement,this._domElement)},r.prototype.diffReviewNext=function(){this._reviewPane.next()},r.prototype.diffReviewPrev=function(){this._reviewPane.prev()},r._getClassName=function(n,a){var y="monaco-diff-editor monaco-editor-background ";return a&&(y+="side-by-side "),y+=Object(Ln.d)(n.type),y},r.prototype._recreateOverviewRulers=function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()},r.prototype._createLeftHandSideEditor=function(n,a){var y=this,N=this._createInnerEditor(a,this._originalDomNode,this._adjustOptionsForLeftHandSide(n,this._originalIsEditable));return this._register(N.onDidScrollChange(function(_e){if(y._isHandlingScrollEvent)return;if(!_e.scrollTopChanged&&!_e.scrollLeftChanged&&!_e.scrollHeightChanged)return;y._isHandlingScrollEvent=!0,y.modifiedEditor.setScrollPosition({scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop}),y._isHandlingScrollEvent=!1,y._layoutOverviewViewport()})),this._register(N.onDidChangeViewZones(function(){y._onViewZonesChanged()})),this._register(N.onDidChangeModelContent(function(){y._isVisible&&y._beginUpdateDecorationsSoon()})),N},r.prototype._createRightHandSideEditor=function(n,a){var y=this,N=this._createInnerEditor(a,this._modifiedDomNode,this._adjustOptionsForRightHandSide(n));return this._register(N.onDidScrollChange(function(_e){if(y._isHandlingScrollEvent)return;if(!_e.scrollTopChanged&&!_e.scrollLeftChanged&&!_e.scrollHeightChanged)return;y._isHandlingScrollEvent=!0,y.originalEditor.setScrollPosition({scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop}),y._isHandlingScrollEvent=!1,y._layoutOverviewViewport()})),this._register(N.onDidChangeViewZones(function(){y._onViewZonesChanged()})),this._register(N.onDidChangeConfiguration(function(_e){_e.hasChanged(34)&&N.getModel()&&y._onViewZonesChanged()})),this._register(N.onDidChangeModelContent(function(){y._isVisible&&y._beginUpdateDecorationsSoon()})),this._register(N.onDidChangeModelOptions(function(_e){_e.tabSize&&y._updateDecorationsRunner.schedule()})),N},r.prototype._createInnerEditor=function(n,a,y){return n.createInstance(xr.a,a,y,{})},r.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),s.prototype.dispose.call(this)},r.prototype.getId=function(){return this.getEditorType()+":"+this.id},r.prototype.getEditorType=function(){return jt.a.IDiffEditor},r.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},r.prototype.getOriginalEditor=function(){return this.originalEditor},r.prototype.getModifiedEditor=function(){return this.modifiedEditor},r.prototype.updateOptions=function(n){var a=!1;typeof n.renderSideBySide!="undefined"&&(this._renderSideBySide!==n.renderSideBySide&&(this._renderSideBySide=n.renderSideBySide,a=!0)),typeof n.maxComputationTime!="undefined"&&(this._maxComputationTime=n.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var y=!1;typeof n.ignoreTrimWhitespace!="undefined"&&(this._ignoreTrimWhitespace!==n.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=n.ignoreTrimWhitespace,y=!0)),typeof n.renderIndicators!="undefined"&&(this._renderIndicators!==n.renderIndicators&&(this._renderIndicators=n.renderIndicators,y=!0)),y&&this._beginUpdateDecorations(),typeof n.originalEditable!="undefined"&&(this._originalIsEditable=Boolean(n.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(n)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(n,this._originalIsEditable)),typeof n.enableSplitViewResizing!="undefined"&&(this._enableSplitViewResizing=n.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),a&&(this._renderSideBySide?this._setStrategy(new rr(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new Ni(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=r._getClassName(this._themeService.getTheme(),this._renderSideBySide))},r.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},r.prototype.setModel=function(n){if(n&&(!n.original||!n.modified))throw new Error(n.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(n?n.original:null),this.modifiedEditor.setModel(n?n.modified:null),this._updateDecorationsRunner.cancel(),n&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),n&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()},r.prototype.getDomNode=function(){return this._domElement},r.prototype.getVisibleColumnFromPosition=function(n){return this.modifiedEditor.getVisibleColumnFromPosition(n)},r.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},r.prototype.setPosition=function(n){this.modifiedEditor.setPosition(n)},r.prototype.revealLine=function(n,a){a===void 0&&(a=0),this.modifiedEditor.revealLine(n,a)},r.prototype.revealLineInCenter=function(n,a){a===void 0&&(a=0),this.modifiedEditor.revealLineInCenter(n,a)},r.prototype.revealLineInCenterIfOutsideViewport=function(n,a){a===void 0&&(a=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(n,a)},r.prototype.revealPosition=function(n,a){a===void 0&&(a=0),this.modifiedEditor.revealPosition(n,a)},r.prototype.revealPositionInCenter=function(n,a){a===void 0&&(a=0),this.modifiedEditor.revealPositionInCenter(n,a)},r.prototype.revealPositionInCenterIfOutsideViewport=function(n,a){a===void 0&&(a=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(n,a)},r.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},r.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},r.prototype.setSelection=function(n){this.modifiedEditor.setSelection(n)},r.prototype.setSelections=function(n){this.modifiedEditor.setSelections(n)},r.prototype.revealLines=function(n,a,y){y===void 0&&(y=0),this.modifiedEditor.revealLines(n,a,y)},r.prototype.revealLinesInCenter=function(n,a,y){y===void 0&&(y=0),this.modifiedEditor.revealLinesInCenter(n,a,y)},r.prototype.revealLinesInCenterIfOutsideViewport=function(n,a,y){y===void 0&&(y=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(n,a,y)},r.prototype.revealRange=function(n,a,y,N){a===void 0&&(a=0),y===void 0&&(y=!1),N===void 0&&(N=!0),this.modifiedEditor.revealRange(n,a,y,N)},r.prototype.revealRangeInCenter=function(n,a){a===void 0&&(a=0),this.modifiedEditor.revealRangeInCenter(n,a)},r.prototype.revealRangeInCenterIfOutsideViewport=function(n,a){a===void 0&&(a=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(n,a)},r.prototype.revealRangeAtTop=function(n,a){a===void 0&&(a=0),this.modifiedEditor.revealRangeAtTop(n,a)},r.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},r.prototype.saveViewState=function(){var n=this.originalEditor.saveViewState(),a=this.modifiedEditor.saveViewState();return{original:n,modified:a}},r.prototype.restoreViewState=function(n){if(n.original&&n.modified){var a=n;this.originalEditor.restoreViewState(a.original),this.modifiedEditor.restoreViewState(a.modified)}},r.prototype.layout=function(n){this._elementSizeObserver.observe(n)},r.prototype.focus=function(){this.modifiedEditor.focus()},r.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},r.prototype.trigger=function(n,a,y){this.modifiedEditor.trigger(n,a,y)},r.prototype.changeDecorations=function(n){return this.modifiedEditor.changeDecorations(n)},r.prototype._onDidContainerSizeChanged=function(){this._doLayout()},r.prototype._getReviewHeight=function(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0},r.prototype._layoutOverviewRulers=function(){if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;var n=this._elementSizeObserver.getHeight(),a=this._getReviewHeight(),y=r.ENTIRE_DIFF_OVERVIEW_WIDTH-2*r.ONE_OVERVIEW_WIDTH,N=this.modifiedEditor.getLayoutInfo();N&&(this._originalOverviewRuler.setLayout({top:0,width:r.ONE_OVERVIEW_WIDTH,right:y+r.ONE_OVERVIEW_WIDTH,height:n-a}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:r.ONE_OVERVIEW_WIDTH,height:n-a}))},r.prototype._onViewZonesChanged=function(){if(this._currentlyChangingViewZones)return;this._updateDecorationsRunner.schedule()},r.prototype._beginUpdateDecorationsSoon=function(){var n=this;this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(function(){return n._beginUpdateDecorations()},r.UPDATE_DIFF_DECORATIONS_DELAY)},r._equals=function(n,a){return!n&&!a?!0:!n||!a?!1:n.toString()===a.toString()},r.prototype._beginUpdateDecorations=function(){var n=this;this._beginUpdateDecorationsTimeout=-1;var a=this.originalEditor.getModel(),y=this.modifiedEditor.getModel();if(!a||!y)return;this._diffComputationToken++;var N=this._diffComputationToken;if(this._setState(1),!this._editorWorkerService.canComputeDiff(a.uri,y.uri)){(!r._equals(a.uri,this._lastOriginalWarning)||!r._equals(y.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=a.uri,this._lastModifiedWarning=y.uri,this._notificationService.warn(_n.a("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._editorWorkerService.computeDiff(a.uri,y.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(function(_e){N===n._diffComputationToken&&a===n.originalEditor.getModel()&&y===n.modifiedEditor.getModel()&&(n._setState(2),n._diffComputationResult=_e,n._updateDecorationsRunner.schedule(),n._onDidUpdateDiff.fire())},function(_e){N===n._diffComputationToken&&a===n.originalEditor.getModel()&&y===n.modifiedEditor.getModel()&&(n._setState(2),n._diffComputationResult=null,n._updateDecorationsRunner.schedule())})},r.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},r.prototype._updateDecorations=function(){if(!this.originalEditor.getModel()||!this.modifiedEditor.getModel()||!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;var n=this._diffComputationResult?this._diffComputationResult.changes:[],a=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),y=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),N=this._strategy.getEditorsDiffDecorations(n,this._ignoreTrimWhitespace,this._renderIndicators,a,y,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,N.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,N.modified,!0)}finally{this._currentlyChangingViewZones=!1}},r.prototype._adjustOptionsForSubEditor=function(n){var a=Ot.c(n||{});return a.inDiffEditor=!0,a.wordWrap="off",a.wordWrapMinified=!1,a.automaticLayout=!1,a.scrollbar=a.scrollbar||{},a.scrollbar.vertical="visible",a.folding=!1,a.codeLens=!1,a.fixedOverflowWidgets=!0,a.minimap||(a.minimap={}),a.minimap.enabled=!1,a},r.prototype._adjustOptionsForLeftHandSide=function(n,a){var y=this._adjustOptionsForSubEditor(n);return y.readOnly=!a,y.extraEditorClassName="original-in-monaco-diff-editor",y},r.prototype._adjustOptionsForRightHandSide=function(n){var a=this._adjustOptionsForSubEditor(n);return a.revealHorizontalRightPadding=T.e.revealHorizontalRightPadding.defaultValue+r.ENTIRE_DIFF_OVERVIEW_WIDTH,a.scrollbar.verticalHasArrows=!1,a.extraEditorClassName="modified-in-monaco-diff-editor",a},r.prototype.doLayout=function(){this._elementSizeObserver.observe(),this._doLayout()},r.prototype._doLayout=function(){var n=this._elementSizeObserver.getWidth(),a=this._elementSizeObserver.getHeight(),y=this._getReviewHeight(),N=this._strategy.layout();this._originalDomNode.style.width=N+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=n-N+"px",this._modifiedDomNode.style.left=N+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=a-y+"px",this._overviewDomElement.style.width=r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=n-r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(r.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:N,height:a-y}),this.modifiedEditor.layout({width:n-N-r.ENTIRE_DIFF_OVERVIEW_WIDTH,height:a-y}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(a-y,n,y),this._layoutOverviewViewport()},r.prototype._layoutOverviewViewport=function(){var n=this._computeOverviewViewport();n?(this._overviewViewportDomElement.setTop(n.top),this._overviewViewportDomElement.setHeight(n.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},r.prototype._computeOverviewViewport=function(){var n=this.modifiedEditor.getLayoutInfo();if(!n)return null;var a=this.modifiedEditor.getScrollTop(),y=this.modifiedEditor.getScrollHeight(),N=Math.max(0,n.height),_e=Math.max(0,N-2*0),ke=y>0?_e/y:0,Ge=Math.max(0,Math.floor(n.height*ke)),Qe=Math.floor(a*ke);return{height:Ge,top:Qe}},r.prototype._createDataSource=function(){var n=this;return{getWidth:function(){return n._elementSizeObserver.getWidth()},getHeight:function(){return n._elementSizeObserver.getHeight()-n._getReviewHeight()},getContainerDomNode:function(){return n._containerDomElement},relayoutEditors:function(){n._doLayout()},getOriginalEditor:function(){return n.originalEditor},getModifiedEditor:function(){return n.modifiedEditor}}},r.prototype._setStrategy=function(n){this._strategy&&this._strategy.dispose(),this._strategy=n,n.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},r.prototype._getLineChangeAtOrBeforeLineNumber=function(n,a){var y=this._diffComputationResult?this._diffComputationResult.changes:[];if(y.length===0||n<a(y[0]))return null;for(var N=0,_e=y.length-1;N<_e;){var ke=Math.floor((N+_e)/2),Ge=a(y[ke]),Qe=ke+1<=_e?a(y[ke+1]):1073741824;n<Ge?_e=ke-1:n>=Qe?N=ke+1:(N=ke,_e=ke)}return y[N]},r.prototype._getEquivalentLineForOriginalLineNumber=function(n){var a=this._getLineChangeAtOrBeforeLineNumber(n,function(Qe){return Qe.originalStartLineNumber});if(!a)return n;var y=a.originalStartLineNumber+(a.originalEndLineNumber>0?-1:0),N=a.modifiedStartLineNumber+(a.modifiedEndLineNumber>0?-1:0),_e=a.originalEndLineNumber>0?a.originalEndLineNumber-a.originalStartLineNumber+1:0,ke=a.modifiedEndLineNumber>0?a.modifiedEndLineNumber-a.modifiedStartLineNumber+1:0,Ge=n-y;return Ge<=_e?N+Math.min(Ge,ke):N+ke-_e+Ge},r.prototype._getEquivalentLineForModifiedLineNumber=function(n){var a=this._getLineChangeAtOrBeforeLineNumber(n,function(Qe){return Qe.modifiedStartLineNumber});if(!a)return n;var y=a.originalStartLineNumber+(a.originalEndLineNumber>0?-1:0),N=a.modifiedStartLineNumber+(a.modifiedEndLineNumber>0?-1:0),_e=a.originalEndLineNumber>0?a.originalEndLineNumber-a.originalStartLineNumber+1:0,ke=a.modifiedEndLineNumber>0?a.modifiedEndLineNumber-a.modifiedStartLineNumber+1:0,Ge=n-N;return Ge<=ke?y+Math.min(Ge,_e):y+_e-ke+Ge},r.prototype.getDiffLineInformationForOriginal=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(n)}:null},r.prototype.getDiffLineInformationForModified=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(n)}:null},r.ONE_OVERVIEW_WIDTH=15,r.ENTIRE_DIFF_OVERVIEW_WIDTH=30,r.UPDATE_DIFF_DECORATIONS_DELAY=200,r=Ss([$n(3,it.a),$n(4,wn.c),$n(5,Rn.a),$n(6,de.a),$n(7,Ln.c),$n(8,Hn.a),$n(9,Xn.a),$n(10,Ii.a)],r),r}(Rt.a),Nr=function(s){hi(r,s);function r(n){var a=s.call(this)||this;return a._dataSource=n,a._insertColor=null,a._removeColor=null,a}return r.prototype.applyColors=function(n){var a=(n.getColor(gn.j)||gn.g).transparent(2),y=(n.getColor(gn.l)||gn.h).transparent(2),N=!a.equals(this._insertColor)||!y.equals(this._removeColor);return this._insertColor=a,this._removeColor=y,N},r.prototype.getEditorsDiffDecorations=function(n,a,y,N,_e,ke,Ge){_e=_e.sort(function(Wt,Pt){return Wt.afterLineNumber-Pt.afterLineNumber}),N=N.sort(function(Wt,Pt){return Wt.afterLineNumber-Pt.afterLineNumber});var Qe=this._getViewZones(n,N,_e,ke,Ge,y),yt=this._getOriginalEditorDecorations(n,a,y,ke,Ge),It=this._getModifiedEditorDecorations(n,a,y,ke,Ge);return{original:{decorations:yt.decorations,overviewZones:yt.overviewZones,zones:Qe.original},modified:{decorations:It.decorations,overviewZones:It.overviewZones,zones:Qe.modified}}},r}(Rt.a),nr=function(){function s(r){this._source=r,this._index=-1,this.current=null,this.advance()}return s.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},s}(),ir=function(){function s(r,n,a,y,N){this.lineChanges=r,this.originalForeignVZ=n,this.originalLineHeight=a,this.modifiedForeignVZ=y,this.modifiedLineHeight=N}return s.prototype.getViewZones=function(){for(var r={original:[],modified:[]},n=0,a=0,y=0,N=0,_e=0,ke=0,Ge=function(Zo,Yo){return Zo.afterLineNumber-Yo.afterLineNumber},Qe=function(Zo,Yo){if(Yo.domNode===null&&Zo.length>0){var mn=Zo[Zo.length-1];if(mn.afterLineNumber===Yo.afterLineNumber&&mn.domNode===null){mn.heightInLines+=Yo.heightInLines;return}}Zo.push(Yo)},yt=new nr(this.modifiedForeignVZ),It=new nr(this.originalForeignVZ),Wt=0,Pt=this.lineChanges.length;Wt<=Pt;Wt++){var ro=Wt<Pt?this.lineChanges[Wt]:null;ro!==null?(y=ro.originalStartLineNumber+(ro.originalEndLineNumber>0?-1:0),N=ro.modifiedStartLineNumber+(ro.modifiedEndLineNumber>0?-1:0),a=ro.originalEndLineNumber>0?ro.originalEndLineNumber-ro.originalStartLineNumber+1:0,n=ro.modifiedEndLineNumber>0?ro.modifiedEndLineNumber-ro.modifiedStartLineNumber+1:0,_e=Math.max(ro.originalStartLineNumber,ro.originalEndLineNumber),ke=Math.max(ro.modifiedStartLineNumber,ro.modifiedEndLineNumber)):(y+=1e7+a,N+=1e7+n,_e=y,ke=N);for(var eo=[],Gt=[];yt.current&&yt.current.afterLineNumber<=ke;){var Jt=void 0;yt.current.afterLineNumber<=N?Jt=y-N+yt.current.afterLineNumber:Jt=_e;var co=null;ro&&ro.modifiedStartLineNumber<=yt.current.afterLineNumber&&yt.current.afterLineNumber<=ro.modifiedEndLineNumber&&(co=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),eo.push({afterLineNumber:Jt,heightInLines:yt.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:co}),yt.advance()}for(;It.current&&It.current.afterLineNumber<=_e;){var Jt=void 0;It.current.afterLineNumber<=y?Jt=N-y+It.current.afterLineNumber:Jt=ke,Gt.push({afterLineNumber:Jt,heightInLines:It.current.height/this.originalLineHeight,domNode:null}),It.advance()}if(ro!==null&&fi(ro)){var So=this._produceOriginalFromDiff(ro,a,n);So&&eo.push(So)}if(ro!==null&&oi(ro)){var So=this._produceModifiedFromDiff(ro,a,n);So&&Gt.push(So)}var xo=0,Po=0;for(eo=eo.sort(Ge),Gt=Gt.sort(Ge);xo<eo.length&&Po<Gt.length;){var Go=eo[xo],Xo=Gt[Po],an=Go.afterLineNumber-y,yn=Xo.afterLineNumber-N;an<yn?(Qe(r.original,Go),xo++):yn<an?(Qe(r.modified,Xo),Po++):Go.shouldNotShrink?(Qe(r.original,Go),xo++):Xo.shouldNotShrink?(Qe(r.modified,Xo),Po++):Go.heightInLines>=Xo.heightInLines?(Go.heightInLines-=Xo.heightInLines,Po++):(Xo.heightInLines-=Go.heightInLines,xo++)}for(;xo<eo.length;)Qe(r.original,eo[xo]),xo++;for(;Po<Gt.length;)Qe(r.modified,Gt[Po]),Po++}return{original:s._ensureDomNodes(r.original),modified:s._ensureDomNodes(r.modified)}},s._ensureDomNodes=function(r){return r.map(function(n){return n.domNode||(n.domNode=Ds()),n})},s}();function Yn(s,r,n,a,y){return{range:new U.a(s,r,n,a),options:y}}var Tn={charDelete:Jo.a.register({className:"char-delete"}),charDeleteWholeLine:Jo.a.register({className:"char-delete",isWholeLine:!0}),charInsert:Jo.a.register({className:"char-insert"}),charInsertWholeLine:Jo.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:Jo.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:Jo.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:Jo.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:Jo.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:Jo.a.register({marginClassName:"line-delete"})},rr=function(s){hi(r,s);function r(n,a){var y=s.call(this,n)||this;return y._disableSash=a===!1,y._sashRatio=null,y._sashPosition=null,y._startSashPosition=null,y._sash=y._register(new vs.a(y._dataSource.getContainerDomNode(),y)),y._disableSash&&(y._sash.state=0),y._sash.onDidStart(function(){return y.onSashDragStart()}),y._sash.onDidChange(function(N){return y.onSashDrag(N)}),y._sash.onDidEnd(function(){return y.onSashDragEnd()}),y._sash.onDidReset(function(){return y.onSashReset()}),y}return r.prototype.setEnableSplitViewResizing=function(n){var a=n===!1;this._disableSash!==a&&(this._disableSash=a,this._sash.state=this._disableSash?0:3)},r.prototype.layout=function(n){n===void 0&&(n=this._sashRatio);var a=this._dataSource.getWidth(),y=a-or.ENTIRE_DIFF_OVERVIEW_WIDTH,N=Math.floor((n||.5)*y),_e=Math.floor(.5*y);return N=this._disableSash?_e:N||_e,y>r.MINIMUM_EDITOR_WIDTH*2?(N<r.MINIMUM_EDITOR_WIDTH&&(N=r.MINIMUM_EDITOR_WIDTH),N>y-r.MINIMUM_EDITOR_WIDTH&&(N=y-r.MINIMUM_EDITOR_WIDTH)):N=_e,this._sashPosition!==N&&(this._sashPosition=N,this._sash.layout()),this._sashPosition},r.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},r.prototype.onSashDrag=function(n){var a=this._dataSource.getWidth(),y=a-or.ENTIRE_DIFF_OVERVIEW_WIDTH,N=this.layout((this._startSashPosition+(n.currentX-n.startX))/y);this._sashRatio=N/y,this._dataSource.relayoutEditors()},r.prototype.onSashDragEnd=function(){this._sash.layout()},r.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},r.prototype.getVerticalSashTop=function(n){return 0},r.prototype.getVerticalSashLeft=function(n){return this._sashPosition},r.prototype.getVerticalSashHeight=function(n){return this._dataSource.getHeight()},r.prototype._getViewZones=function(n,a,y,N,_e){var ke=new Ms(n,a,N.getOption(49),y,_e.getOption(49));return ke.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,a,y,N,_e){for(var ke=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Qe=N.getModel(),yt=0,It=n.length;yt<It;yt++){var Wt=n[yt];if(oi(Wt)&&(Ge.decorations.push({range:new U.a(Wt.originalStartLineNumber,1,Wt.originalEndLineNumber,1073741824),options:y?Tn.lineDeleteWithSign:Tn.lineDelete}),(!fi(Wt)||!Wt.charChanges)&&Ge.decorations.push(Yn(Wt.originalStartLineNumber,1,Wt.originalEndLineNumber,1073741824,Tn.charDeleteWholeLine)),Ge.overviewZones.push(new Ai.a(Wt.originalStartLineNumber,Wt.originalEndLineNumber,ke)),Wt.charChanges))for(var Pt=0,ro=Wt.charChanges.length;Pt<ro;Pt++){var eo=Wt.charChanges[Pt];if(oi(eo))if(a)for(var Gt=eo.originalStartLineNumber;Gt<=eo.originalEndLineNumber;Gt++){var Jt=void 0,co=void 0;Gt===eo.originalStartLineNumber?Jt=eo.originalStartColumn:Jt=Qe.getLineFirstNonWhitespaceColumn(Gt),Gt===eo.originalEndLineNumber?co=eo.originalEndColumn:co=Qe.getLineLastNonWhitespaceColumn(Gt),Ge.decorations.push(Yn(Gt,Jt,Gt,co,Tn.charDelete))}else Ge.decorations.push(Yn(eo.originalStartLineNumber,eo.originalStartColumn,eo.originalEndLineNumber,eo.originalEndColumn,Tn.charDelete))}}return Ge},r.prototype._getModifiedEditorDecorations=function(n,a,y,N,_e){for(var ke=String(this._insertColor),Ge={decorations:[],overviewZones:[]},Qe=_e.getModel(),yt=0,It=n.length;yt<It;yt++){var Wt=n[yt];if(fi(Wt)&&(Ge.decorations.push({range:new U.a(Wt.modifiedStartLineNumber,1,Wt.modifiedEndLineNumber,1073741824),options:y?Tn.lineInsertWithSign:Tn.lineInsert}),(!oi(Wt)||!Wt.charChanges)&&Ge.decorations.push(Yn(Wt.modifiedStartLineNumber,1,Wt.modifiedEndLineNumber,1073741824,Tn.charInsertWholeLine)),Ge.overviewZones.push(new Ai.a(Wt.modifiedStartLineNumber,Wt.modifiedEndLineNumber,ke)),Wt.charChanges))for(var Pt=0,ro=Wt.charChanges.length;Pt<ro;Pt++){var eo=Wt.charChanges[Pt];if(fi(eo))if(a)for(var Gt=eo.modifiedStartLineNumber;Gt<=eo.modifiedEndLineNumber;Gt++){var Jt=void 0,co=void 0;Gt===eo.modifiedStartLineNumber?Jt=eo.modifiedStartColumn:Jt=Qe.getLineFirstNonWhitespaceColumn(Gt),Gt===eo.modifiedEndLineNumber?co=eo.modifiedEndColumn:co=Qe.getLineLastNonWhitespaceColumn(Gt),Ge.decorations.push(Yn(Gt,Jt,Gt,co,Tn.charInsert))}else Ge.decorations.push(Yn(eo.modifiedStartLineNumber,eo.modifiedStartColumn,eo.modifiedEndLineNumber,eo.modifiedEndColumn,Tn.charInsert))}}return Ge},r.MINIMUM_EDITOR_WIDTH=100,r}(Nr),Ms=function(s){hi(r,s);function r(n,a,y,N,_e){return s.call(this,n,a,y,N,_e)||this}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},r.prototype._produceOriginalFromDiff=function(n,a,y){return y>a?{afterLineNumber:Math.max(n.originalStartLineNumber,n.originalEndLineNumber),heightInLines:y-a,domNode:null}:null},r.prototype._produceModifiedFromDiff=function(n,a,y){return a>y?{afterLineNumber:Math.max(n.modifiedStartLineNumber,n.modifiedEndLineNumber),heightInLines:a-y,domNode:null}:null},r}(ir),Ni=function(s){hi(r,s);function r(n,a){var y=s.call(this,n)||this;return y.decorationsLeft=n.getOriginalEditor().getLayoutInfo().decorationsLeft,y._register(n.getOriginalEditor().onDidLayoutChange(function(N){y.decorationsLeft!==N.decorationsLeft&&(y.decorationsLeft=N.decorationsLeft,n.relayoutEditors())})),y}return r.prototype.setEnableSplitViewResizing=function(n){},r.prototype._getViewZones=function(n,a,y,N,_e,ke){var Ge=new Os(n,a,y,N,_e,ke);return Ge.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,a,y,N,_e){for(var ke=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Qe=0,yt=n.length;Qe<yt;Qe++){var It=n[Qe];oi(It)&&(Ge.decorations.push({range:new U.a(It.originalStartLineNumber,1,It.originalEndLineNumber,1073741824),options:Tn.lineDeleteMargin}),Ge.overviewZones.push(new Ai.a(It.originalStartLineNumber,It.originalEndLineNumber,ke)))}return Ge},r.prototype._getModifiedEditorDecorations=function(n,a,y,N,_e){for(var ke=String(this._insertColor),Ge={decorations:[],overviewZones:[]},Qe=_e.getModel(),yt=0,It=n.length;yt<It;yt++){var Wt=n[yt];if(fi(Wt))if(Ge.decorations.push({range:new U.a(Wt.modifiedStartLineNumber,1,Wt.modifiedEndLineNumber,1073741824),options:y?Tn.lineInsertWithSign:Tn.lineInsert}),Ge.overviewZones.push(new Ai.a(Wt.modifiedStartLineNumber,Wt.modifiedEndLineNumber,ke)),Wt.charChanges)for(var Pt=0,ro=Wt.charChanges.length;Pt<ro;Pt++){var eo=Wt.charChanges[Pt];if(fi(eo))if(a)for(var Gt=eo.modifiedStartLineNumber;Gt<=eo.modifiedEndLineNumber;Gt++){var Jt=void 0,co=void 0;Gt===eo.modifiedStartLineNumber?Jt=eo.modifiedStartColumn:Jt=Qe.getLineFirstNonWhitespaceColumn(Gt),Gt===eo.modifiedEndLineNumber?co=eo.modifiedEndColumn:co=Qe.getLineLastNonWhitespaceColumn(Gt),Ge.decorations.push(Yn(Gt,Jt,Gt,co,Tn.charInsert))}else Ge.decorations.push(Yn(eo.modifiedStartLineNumber,eo.modifiedStartColumn,eo.modifiedEndLineNumber,eo.modifiedEndColumn,Tn.charInsert))}else Ge.decorations.push(Yn(Wt.modifiedStartLineNumber,1,Wt.modifiedEndLineNumber,1073741824,Tn.charInsertWholeLine))}return Ge},r.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},r}(Nr),Os=function(s){hi(r,s);function r(n,a,y,N,_e,ke){var Ge=s.call(this,n,a,N.getOption(49),y,_e.getOption(49))||this;return Ge.originalModel=N.getModel(),Ge.modifiedEditorOptions=_e.getOptions(),Ge.modifiedEditorTabSize=_e.getModel().getOptions().tabSize,Ge.renderIndicators=ke,Ge}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var n=document.createElement("div");return n.className="inline-added-margin-view-zone",n},r.prototype._produceOriginalFromDiff=function(n,a,y){var N=document.createElement("div");return N.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(n.originalStartLineNumber,n.originalEndLineNumber),heightInLines:y,domNode:document.createElement("div"),marginDomNode:N}},r.prototype._produceModifiedFromDiff=function(n,a,y){var N=[];if(n.charChanges)for(var _e=0,ke=n.charChanges.length;_e<ke;_e++){var Ge=n.charChanges[_e];oi(Ge)&&N.push(new Xt.a(new U.a(Ge.originalStartLineNumber,Ge.originalStartColumn,Ge.originalEndLineNumber,Ge.originalEndColumn),"char-delete",0))}for(var Qe=Object(Es.a)(1e4),yt=[],It=this.modifiedEditorOptions.get(107),Wt=this.modifiedEditorOptions.get(34),Pt=It.decorationsWidth,ro=this.modifiedEditorOptions.get(49),eo=Wt.typicalHalfwidthCharacterWidth,Gt=0,Jt=[],co=n.originalStartLineNumber;co<=n.originalEndLineNumber;co++)if(Gt=Math.max(Gt,this._renderOriginalLine(co-n.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,co,N,Qe)),Jt.push(this.originalModel.getLineContent(co)),this.renderIndicators){var So=co-n.originalStartLineNumber;yt=yt.concat(['<div class="delete-sign codicon codicon-remove" style="position:absolute;top:'+So*ro+"px;width:"+Pt+"px;height:"+ro+'px;right:0;"></div>'])}Gt+=this.modifiedEditorOptions.get(79);var xo=document.createElement("div");xo.className="view-lines line-delete",xo.innerHTML=Qe.build(),Ti.a.applyFontInfoSlow(xo,Wt);var Po=document.createElement("div");return Po.className="inline-deleted-margin-view-zone",Po.innerHTML=yt.join(""),Ti.a.applyFontInfoSlow(Po,Wt),{shouldNotShrink:!0,afterLineNumber:n.modifiedEndLineNumber===0?n.modifiedStartLineNumber:n.modifiedStartLineNumber-1,heightInLines:a,minWidthInPx:Gt*eo,domNode:xo,marginDomNode:Po,diff:{originalStartLineNumber:n.originalStartLineNumber,originalEndLineNumber:n.originalEndLineNumber,modifiedStartLineNumber:n.modifiedStartLineNumber,modifiedEndLineNumber:n.modifiedEndLineNumber,originalContent:Jt}}},r.prototype._renderOriginalLine=function(n,a,y,N,_e,ke,Ge){var Qe=a.getLineTokens(_e),yt=Qe.getLineContent(),It=y.get(34),Wt=_s.a.filter(ke,_e,1,yt.length+1);Ge.appendASCIIString('<div class="view-line'),ke.length===0&&Ge.appendASCIIString(" char-delete"),Ge.appendASCIIString('" style="top:'),Ge.appendASCIIString(String(n*y.get(49))),Ge.appendASCIIString('px;width:1000000px;">');var Pt=Xt.d.isBasicASCII(yt,a.mightContainNonBasicASCII()),ro=Xt.d.containsRTL(yt,Pt,a.mightContainRTL()),eo=Object(zt.d)(new zt.c(It.isMonospace&&!y.get(23),It.canUseHalfwidthRightwardsArrow,yt,!1,Pt,ro,0,Qe,Wt,N,0,It.spaceWidth,It.middotWidth,y.get(88),y.get(74),y.get(69),y.get(35)!==T.d.OFF,null),Ge);Ge.appendASCIIString("</div>");var Gt=eo.characterMapping.getAbsoluteOffsets();return Gt.length>0?Gt[Gt.length-1]:0},r}(ir);function fi(s){return s.modifiedEndLineNumber>0}function oi(s){return s.originalEndLineNumber>0}function Ds(){var s=document.createElement("div");return s.className="diagonal-fill",s}Object(Ln.e)(function(s,r){var n=s.getColor(gn.j);n&&(r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var a=s.getColor(gn.l);a&&(r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+a+"; }"),r.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+a+"; }"),r.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+a+"; }"));var y=s.getColor(gn.k);y&&r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(s.type==="hc"?"dashed":"solid")+" "+y+"; }");var N=s.getColor(gn.m);N&&r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(s.type==="hc"?"dashed":"solid")+" "+N+"; }");var _e=s.getColor(gn.Vb);_e&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+_e+"; }");var ke=s.getColor(gn.i);ke&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+ke+"; }")});var Ts=e("9Y+e"),Si=e("scqD"),Kn=e("fjLI"),ni=e("bexQ"),mi=e("R3nR"),xs=e("9XeP"),sr=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),ar=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},sn=function(s,r){return function(n,a){r(n,a,s)}},As=function(){for(var s=0,r=0,n=arguments.length;r<n;r++)s+=arguments[r].length;for(var a=Array(s),y=0,r=0;r<n;r++)for(var N=arguments[r],_e=0,ke=N.length;_e<ke;_e++,y++)a[y]=N[_e];return a},Rs=0,jr=!1;function Is(){if(jr)return;jr=!0,gs.b(document.body)}var ji=function(s){sr(r,s);function r(n,a,y,N,_e,ke,Ge,Qe,yt,It){var Wt=this;return a=a||{},a.ariaLabel=a.ariaLabel||Di.g.editorViewAccessibleLabel,a.ariaLabel=a.ariaLabel+";"+(ps.i?Di.g.accessibilityHelpMessageIE:Di.g.accessibilityHelpMessage),Wt=s.call(this,n,a,{},y,N,_e,ke,Qe,yt,It)||this,Ge instanceof Lr?Wt._standaloneKeybindingService=Ge:Wt._standaloneKeybindingService=null,Is(),Wt}return r.prototype.addCommand=function(n,a,y){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var N="DYNAMIC_"+ ++Rs,_e=wn.a.deserialize(y);return this._standaloneKeybindingService.addDynamicKeybinding(N,n,a,_e),N},r.prototype.createContextKey=function(n,a){return this._contextKeyService.createKey(n,a)},r.prototype.addAction=function(n){var a=this;if(typeof n.id!="string"||typeof n.label!="string"||typeof n.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Rt.a.None;var y=n.id,N=n.label,_e=wn.a.and(wn.a.equals("editorId",this.getId()),wn.a.deserialize(n.precondition)),ke=n.keybindings,Ge=wn.a.and(_e,wn.a.deserialize(n.keybindingContext)),Qe=n.contextMenuGroupId||null,yt=n.contextMenuOrder||0,It=function(So){for(var xo=[],Po=1;Po<arguments.length;Po++)xo[Po-1]=arguments[Po];return Promise.resolve(n.run.apply(n,As([a],xo)))},Wt=new Rt.b,Pt=this.getId()+":"+y;if(Wt.add($.a.registerCommand(Pt,It)),Qe){var ro={command:{id:Pt,title:N},when:_e,group:Qe,order:yt};Wt.add(Kn.c.appendMenuItem(7,ro))}if(Array.isArray(ke))for(var eo=0,Gt=ke;eo<Gt.length;eo++){var Jt=Gt[eo];Wt.add(this._standaloneKeybindingService.addDynamicKeybinding(Pt,Jt,It,Ge))}var co=new Ts.a(Pt,N,N,_e,It,this._contextKeyService);return this._actions[y]=co,Wt.add(Object(Rt.h)(function(){delete a._actions[y]})),Wt},r=ar([sn(2,Rn.a),sn(3,de.a),sn(4,$.b),sn(5,wn.c),sn(6,ni.a),sn(7,Ln.c),sn(8,Hn.a),sn(9,mi.b)],r),r}(xr.a),lr=function(s){sr(r,s);function r(n,a,y,N,_e,ke,Ge,Qe,yt,It,Wt,Pt,ro){var eo=this;ti(Pt,a,!1);var Gt=It.registerEditorContainer(n);a=a||{},typeof a.theme=="string"&&It.setTheme(a.theme);var Jt=a.model;delete a.model,eo=s.call(this,n,a,N,_e,ke,Ge,Qe,It,Wt,ro)||this,eo._contextViewService=yt,eo._configurationService=Pt,eo._register(y),eo._register(Gt);var co;if(typeof Jt=="undefined"?(co=self.monaco.editor.createModel(a.value||"",a.language||"text/plain"),eo._ownsModel=!0):(co=Jt,eo._ownsModel=!1),eo._attachModel(co),co){var So={oldModelUrl:null,newModelUrl:co.uri};eo._onDidChangeModel.fire(So)}return eo}return r.prototype.dispose=function(){s.prototype.dispose.call(this)},r.prototype.updateOptions=function(n){ti(this._configurationService,n,!1),s.prototype.updateOptions.call(this,n)},r.prototype._attachModel=function(n){s.prototype._attachModel.call(this,n),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},r.prototype._postDetachModelCleanup=function(n){s.prototype._postDetachModelCleanup.call(this,n),n&&this._ownsModel&&(n.dispose(),this._ownsModel=!1)},r=ar([sn(3,Rn.a),sn(4,de.a),sn(5,$.b),sn(6,wn.c),sn(7,ni.a),sn(8,Xn.b),sn(9,Si.a),sn(10,Hn.a),sn(11,Dn.a),sn(12,mi.b)],r),r}(ji),Ns=function(s){sr(r,s);function r(n,a,y,N,_e,ke,Ge,Qe,yt,It,Wt,Pt,ro,eo,Gt){var Jt=this;ti(Pt,a,!0);var co=It.registerEditorContainer(n);return a=a||{},typeof a.theme=="string"&&(a.theme=It.setTheme(a.theme)),Jt=s.call(this,n,a,Gt,Qe,_e,N,yt,It,Wt,ro,eo)||this,Jt._contextViewService=Ge,Jt._configurationService=Pt,Jt._register(y),Jt._register(co),Jt._contextViewService.setContainer(Jt._containerDomElement),Jt}return r.prototype.dispose=function(){s.prototype.dispose.call(this)},r.prototype.updateOptions=function(n){ti(this._configurationService,n,!0),s.prototype.updateOptions.call(this,n)},r.prototype._createInnerEditor=function(n,a,y){return n.createInstance(ji,a,y)},r.prototype.getOriginalEditor=function(){return s.prototype.getOriginalEditor.call(this)},r.prototype.getModifiedEditor=function(){return s.prototype.getModifiedEditor.call(this)},r.prototype.addCommand=function(n,a,y){return this.getModifiedEditor().addCommand(n,a,y)},r.prototype.createContextKey=function(n,a){return this.getModifiedEditor().createContextKey(n,a)},r.prototype.addAction=function(n){return this.getModifiedEditor().addAction(n)},r=ar([sn(3,Rn.a),sn(4,wn.c),sn(5,ni.a),sn(6,Xn.b),sn(7,it.a),sn(8,de.a),sn(9,Si.a),sn(10,Hn.a),sn(11,Dn.a),sn(12,Xn.a),sn(13,Ii.a),sn(14,Object(Rn.d)(xs.a))],r),r}(or),js=e("x/UI"),Ps=e("WBhO"),Pi=function(){function s(r){this._languageIdentifier=r}return s.prototype.getId=function(){return this._languageIdentifier.language},s}(),dr=e("MrjW"),cr=e("l2gE"),ki="text/plain",Pr="application/unknown",Fi=[],kr=[],Fr=[];function pi(s,r){r===void 0&&(r=!1);var n=ur(s);Fi.push(n),n.userConfigured?Fr.push(n):kr.push(n),r&&!n.userConfigured&&Fi.forEach(function(a){if(a.mime===n.mime||a.userConfigured)return;n.extension&&a.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&a.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&a.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&a.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>")})}function ur(s){return{id:s.id,mime:s.mime,filename:s.filename,extension:s.extension,filepattern:s.filepattern,firstline:s.firstline,userConfigured:s.userConfigured,filenameLowercase:s.filename?s.filename.toLowerCase():void 0,extensionLowercase:s.extension?s.extension.toLowerCase():void 0,filepatternLowercase:s.filepattern?s.filepattern.toLowerCase():void 0,filepatternOnPath:s.filepattern?s.filepattern.indexOf(dr.posix.sep)>=0:!1}}function Li(s,r){var n;if(s)switch(s.scheme){case Ce.b.file:n=s.fsPath;break;case Ce.b.data:var a=fe.a.parseMetaData(s);n=a.get(fe.a.META_DATA_LABEL);break;default:n=s.path}if(!n)return[Pr];n=n.toLowerCase();var y=Object(dr.basename)(n),N=Wr(n,y,Fr);if(N)return[N,ki];var _e=Wr(n,y,kr);if(_e)return[_e,ki];if(r){var ke=ii(r);if(ke)return[ke,ki]}return[Pr]}function Wr(s,r,n){for(var a=null,y=null,N=null,_e=n.length-1;_e>=0;_e--){var ke=n[_e];if(r===ke.filenameLowercase){a=ke;break}if(ke.filepattern&&(!y||ke.filepattern.length>y.filepattern.length)){var Ge=ke.filepatternOnPath?s:r;Object(cr.a)(ke.filepatternLowercase,Ge)&&(y=ke)}ke.extension&&((!N||ke.extension.length>N.extension.length)&&(Object(to.m)(r,ke.extensionLowercase)&&(N=ke)))}return a?a.mime:y?y.mime:N?N.mime:null}function ii(s){if(Object(to.P)(s)&&(s=s.substr(1)),s.length>0)for(var r=Fi.length-1;r>=0;r--){var n=Fi[r];if(!n.firstline)continue;var a=s.match(n.firstline);if(a&&a.length>0)return n.mime}return null}var gi=e("MqQJ"),hr=e("ic2d"),ks=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),qn=Object.prototype.hasOwnProperty,Fs=function(s){ks(r,s);function r(n,a){n===void 0&&(n=!0),a===void 0&&(a=!1);var y=s.call(this)||this;return y._onDidChange=y._register(new I.a),y.onDidChange=y._onDidChange.event,y._warnOnOverwrite=a,y._nextLanguageId2=1,y._languageIdToLanguage=[],y._languageToLanguageId=Object.create(null),y._languages={},y._mimeTypesMap={},y._nameMap={},y._lowercaseNameMap={},n&&(y._initializeFromRegistry(),y._register(gi.a.onDidChangeLanguages(function(N){return y._initializeFromRegistry()}))),y}return r.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var n=gi.a.getLanguages();this._registerLanguages(n)},r.prototype._registerLanguages=function(n){for(var a=this,y=0,N=n;y<N.length;y++){var _e=N[y];this._registerLanguage(_e)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(function(ke){var Ge=a._languages[ke];Ge.name&&(a._nameMap[Ge.name]=Ge.identifier),Ge.aliases.forEach(function(Qe){a._lowercaseNameMap[Qe.toLowerCase()]=Ge.identifier}),Ge.mimetypes.forEach(function(Qe){a._mimeTypesMap[Qe]=Ge.identifier})}),hr.a.as(Xi.a.Configuration).registerOverrideIdentifiers(gi.a.getLanguages().map(function(ke){return ke.id})),this._onDidChange.fire()},r.prototype._getLanguageId=function(n){if(this._languageToLanguageId[n])return this._languageToLanguageId[n];var a=this._nextLanguageId2++;return this._languageIdToLanguage[a]=n,this._languageToLanguageId[n]=a,a},r.prototype._registerLanguage=function(n){var a=n.id,y;if(qn.call(this._languages,a))y=this._languages[a];else{var N=this._getLanguageId(a);y={identifier:new gt.r(a,N),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[a]=y}this._mergeLanguage(y,n)},r.prototype._mergeLanguage=function(n,a){var y,N=a.id,_e=null;if(Array.isArray(a.mimetypes)&&a.mimetypes.length>0&&((y=n.mimetypes).push.apply(y,a.mimetypes),_e=a.mimetypes[0]),_e||(_e="text/x-"+N,n.mimetypes.push(_e)),Array.isArray(a.extensions))for(var ke=0,Ge=a.extensions;ke<Ge.length;ke++){var Qe=Ge[ke];pi({id:N,mime:_e,extension:Qe},this._warnOnOverwrite),n.extensions.push(Qe)}if(Array.isArray(a.filenames))for(var yt=0,It=a.filenames;yt<It.length;yt++){var Wt=It[yt];pi({id:N,mime:_e,filename:Wt},this._warnOnOverwrite),n.filenames.push(Wt)}if(Array.isArray(a.filenamePatterns))for(var Pt=0,ro=a.filenamePatterns;Pt<ro.length;Pt++){var eo=ro[Pt];pi({id:N,mime:_e,filepattern:eo},this._warnOnOverwrite)}if(typeof a.firstLine=="string"&&a.firstLine.length>0){var Gt=a.firstLine;Gt.charAt(0)!=="^"&&(Gt="^"+Gt);try{var Jt=new RegExp(Gt);to.I(Jt)||pi({id:N,mime:_e,firstline:Jt},this._warnOnOverwrite)}catch(an){Object(Ct.e)(an)}}n.aliases.push(N);var co=null;if(typeof a.aliases!="undefined"&&Array.isArray(a.aliases)&&(a.aliases.length===0?co=[null]:co=a.aliases),co!==null)for(var So=0,xo=co;So<xo.length;So++){var Po=xo[So];if(!Po||Po.length===0)continue;n.aliases.push(Po)}var Go=co!==null&&co.length>0;if(!(Go&&co[0]===null)){var Xo=(Go?co[0]:null)||N;(Go||!n.name)&&(n.name=Xo)}a.configuration&&n.configurationFiles.push(a.configuration)},r.prototype.isRegisteredMode=function(n){return qn.call(this._mimeTypesMap,n)?!0:qn.call(this._languages,n)},r.prototype.getModeIdForLanguageNameLowercase=function(n){return qn.call(this._lowercaseNameMap,n)?this._lowercaseNameMap[n].language:null},r.prototype.extractModeIds=function(n){var a=this;return n?n.split(",").map(function(y){return y.trim()}).map(function(y){return qn.call(a._mimeTypesMap,y)?a._mimeTypesMap[y].language:y}).filter(function(y){return qn.call(a._languages,y)}):[]},r.prototype.getLanguageIdentifier=function(n){if(n===Tt.b||n===0)return Tt.a;var a;if(typeof n=="string")a=n;else if(a=this._languageIdToLanguage[n],!a)return null;return qn.call(this._languages,a)?this._languages[a].identifier:null},r.prototype.getModeIdsFromFilepathOrFirstLine=function(n,a){if(!n&&!a)return[];var y=Li(n,a);return this.extractModeIds(y.join(","))},r}(Rt.a),Ws=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Br=function(s){Ws(r,s);function r(n,a){var y=s.call(this)||this;return y._onDidChange=y._register(new I.a),y.onDidChange=y._onDidChange.event,y._selector=a,y.languageIdentifier=y._selector(),y._register(n(function(){return y._evaluate()})),y}return r.prototype._evaluate=function(){var n=this._selector();if(n.id===this.languageIdentifier.id)return;this.languageIdentifier=n,this._onDidChange.fire(this.languageIdentifier)},r}(Rt.a),Bs=function(){function s(r){var n=this;r===void 0&&(r=!1),this._onDidCreateMode=new I.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new I.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Fs(!0,r),this._registry.onDidChange(function(){return n._onLanguagesMaybeChanged.fire()})}return s.prototype.isRegisteredMode=function(r){return this._registry.isRegisteredMode(r)},s.prototype.getModeIdForLanguageName=function(r){return this._registry.getModeIdForLanguageNameLowercase(r)},s.prototype.getModeIdByFilepathOrFirstLine=function(r,n){var a=this._registry.getModeIdsFromFilepathOrFirstLine(r,n);return Object(dt.l)(a,null)},s.prototype.getModeId=function(r){var n=this._registry.extractModeIds(r);return Object(dt.l)(n,null)},s.prototype.getLanguageIdentifier=function(r){return this._registry.getLanguageIdentifier(r)},s.prototype.create=function(r){var n=this;return new Br(this.onLanguagesMaybeChanged,function(){var a=n.getModeId(r);return n._createModeAndGetLanguageIdentifier(a)})},s.prototype.createByFilepathOrFirstLine=function(r,n){var a=this;return new Br(this.onLanguagesMaybeChanged,function(){var y=a.getModeIdByFilepathOrFirstLine(r,n);return a._createModeAndGetLanguageIdentifier(y)})},s.prototype._createModeAndGetLanguageIdentifier=function(r){var n=this.getLanguageIdentifier(r||"plaintext")||Tt.a;return this._getOrCreateMode(n.language),n},s.prototype.triggerMode=function(r){var n=this.getModeId(r);this._getOrCreateMode(n||"plaintext")},s.prototype._getOrCreateMode=function(r){if(!this._instantiatedModes.hasOwnProperty(r)){var n=this.getLanguageIdentifier(r)||Tt.a;this._instantiatedModes[r]=new Pi(n),this._onDidCreateMode.fire(this._instantiatedModes[r])}return this._instantiatedModes[r]},s}(),Ur=e("QRHv"),vi=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Us=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},Wi=function(s,r){return function(n,a){r(n,a,s)}};function Bi(s){return s.toString()}var k=function(){function s(r,n,a){this._modelEventListeners=new Rt.b,this.model=r,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(r.onWillDispose(function(){return n(r)})),this._modelEventListeners.add(r.onDidChangeLanguage(function(y){return a(r,y)}))}return s.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},s.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},s.prototype.setLanguage=function(r){var n=this;this._disposeLanguageSelection(),this._languageSelection=r,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return n.model.setMode(r.languageIdentifier)}),this.model.setMode(r.languageIdentifier)},s}(),o=ht.d||ht.e?1:2,t=function(s){vi(r,s);function r(n,a,y,N){var _e=s.call(this)||this;return _e._onModelAdded=_e._register(new I.a),_e.onModelAdded=_e._onModelAdded.event,_e._onModelRemoved=_e._register(new I.a),_e.onModelRemoved=_e._onModelRemoved.event,_e._onModelModeChanged=_e._register(new I.a),_e.onModelModeChanged=_e._onModelModeChanged.event,_e._configurationService=n,_e._resourcePropertiesService=a,_e._models={},_e._modelCreationOptionsByLanguageAndResource=Object.create(null),_e._configurationServiceSubscription=_e._configurationService.onDidChangeConfiguration(function(ke){return _e._updateModelOptions()}),_e._updateModelOptions(),_e._register(new i(_e,y,n,N)),_e}return r._readModelOptions=function(n,a){var y=T.c.tabSize;if(n.editor&&typeof n.editor.tabSize!="undefined"){var N=parseInt(n.editor.tabSize,10);isNaN(N)||(y=N),y<1&&(y=1)}var _e=y;if(n.editor&&typeof n.editor.indentSize!="undefined"&&n.editor.indentSize!=="tabSize"){var ke=parseInt(n.editor.indentSize,10);isNaN(ke)||(_e=ke),_e<1&&(_e=1)}var Ge=T.c.insertSpaces;n.editor&&typeof n.editor.insertSpaces!="undefined"&&(Ge=n.editor.insertSpaces==="false"?!1:Boolean(n.editor.insertSpaces));var Qe=o,yt=n.eol;yt===`\r
`?Qe=2:yt===`
`&&(Qe=1);var It=T.c.trimAutoWhitespace;n.editor&&typeof n.editor.trimAutoWhitespace!="undefined"&&(It=n.editor.trimAutoWhitespace==="false"?!1:Boolean(n.editor.trimAutoWhitespace));var Wt=T.c.detectIndentation;n.editor&&typeof n.editor.detectIndentation!="undefined"&&(Wt=n.editor.detectIndentation==="false"?!1:Boolean(n.editor.detectIndentation));var Pt=T.c.largeFileOptimizations;return n.editor&&typeof n.editor.largeFileOptimizations!="undefined"&&(Pt=n.editor.largeFileOptimizations==="false"?!1:Boolean(n.editor.largeFileOptimizations)),{isForSimpleWidget:a,tabSize:y,indentSize:_e,insertSpaces:Ge,detectIndentation:Wt,defaultEOL:Qe,trimAutoWhitespace:It,largeFileOptimizations:Pt}},r.prototype.getCreationOptions=function(n,a,y){var N=this._modelCreationOptionsByLanguageAndResource[n+a];if(!N){var _e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:a}),ke=this._resourcePropertiesService.getEOL(a,n);N=r._readModelOptions({editor:_e,eol:ke},y),this._modelCreationOptionsByLanguageAndResource[n+a]=N}return N},r.prototype._updateModelOptions=function(){var n=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var a=Object.keys(this._models),y=0,N=a.length;y<N;y++){var _e=a[y],ke=this._models[_e],Ge=ke.model.getLanguageIdentifier().language,Qe=ke.model.uri,yt=n[Ge+Qe],It=this.getCreationOptions(Ge,Qe,ke.model.isForSimpleWidget);r._setModelOptionsForModel(ke.model,It,yt)}},r._setModelOptionsForModel=function(n,a,y){if(y&&y.defaultEOL!==a.defaultEOL&&n.getLineCount()===1&&n.setEOL(a.defaultEOL===1?0:1),y&&y.detectIndentation===a.detectIndentation&&y.insertSpaces===a.insertSpaces&&y.tabSize===a.tabSize&&y.indentSize===a.indentSize&&y.trimAutoWhitespace===a.trimAutoWhitespace)return;a.detectIndentation?(n.detectIndentation(a.insertSpaces,a.tabSize),n.updateOptions({trimAutoWhitespace:a.trimAutoWhitespace})):n.updateOptions({insertSpaces:a.insertSpaces,tabSize:a.tabSize,indentSize:a.indentSize,trimAutoWhitespace:a.trimAutoWhitespace})},r.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),s.prototype.dispose.call(this)},r.prototype._createModelData=function(n,a,y,N){var _e=this,ke=this.getCreationOptions(a.language,y,N),Ge=new Jo.b(n,ke,a,y),Qe=Bi(Ge.uri);if(this._models[Qe])throw new Error("ModelService: Cannot add model because it already exists!");var yt=new k(Ge,function(It){return _e._onWillDispose(It)},function(It,Wt){return _e._onDidChangeLanguage(It,Wt)});return this._models[Qe]=yt,yt},r.prototype.createModel=function(n,a,y,N){N===void 0&&(N=!1);var _e;return a?(_e=this._createModelData(n,a.languageIdentifier,y,N),this.setMode(_e.model,a)):_e=this._createModelData(n,gi.b,y,N),this._onModelAdded.fire(_e.model),_e.model},r.prototype.setMode=function(n,a){if(!a)return;var y=this._models[Bi(n.uri)];if(!y)return;y.setLanguage(a)},r.prototype.getModels=function(){for(var n=[],a=Object.keys(this._models),y=0,N=a.length;y<N;y++){var _e=a[y];n.push(this._models[_e].model)}return n},r.prototype.getModel=function(n){var a=Bi(n),y=this._models[a];return y?y.model:null},r.prototype._onWillDispose=function(n){var a=Bi(n.uri),y=this._models[a];delete this._models[a],y.dispose(),delete this._modelCreationOptionsByLanguageAndResource[n.getLanguageIdentifier().language+n.uri],this._onModelRemoved.fire(n)},r.prototype._onDidChangeLanguage=function(n,a){var y=a.oldLanguage,N=n.getLanguageIdentifier().language,_e=this.getCreationOptions(y,n.uri,n.isForSimpleWidget),ke=this.getCreationOptions(N,n.uri,n.isForSimpleWidget);r._setModelOptionsForModel(n,ke,_e),this._onModelModeChanged.fire({model:n,oldModeId:y})},r=Us([Wi(0,Dn.a),Wi(1,Ie.b),Wi(2,Ln.c),Wi(3,lt.a)],r),r}(Rt.a),i=function(s){vi(r,s);function r(n,a,y,N){var _e=s.call(this)||this;_e._configurationService=y,_e._watchers=Object.create(null),_e._semanticStyling=_e._register(new l(a,N));var ke=function(yt){var It=y.getValue(r.SETTING_ID,{overrideIdentifier:yt.getLanguageIdentifier().language,resource:yt.uri});return It&&It.enabled},Ge=function(yt){_e._watchers[yt.uri.toString()]=new qe(yt,a,_e._semanticStyling)},Qe=function(yt,It){It.dispose(),delete _e._watchers[yt.uri.toString()]};return _e._register(n.onModelAdded(function(yt){ke(yt)&&Ge(yt)})),_e._register(n.onModelRemoved(function(yt){var It=_e._watchers[yt.uri.toString()];It&&Qe(yt,It)})),_e._configurationService.onDidChangeConfiguration(function(yt){if(yt.affectsConfiguration(r.SETTING_ID))for(var It=0,Wt=n.getModels();It<Wt.length;It++){var Pt=Wt[It],ro=_e._watchers[Pt.uri.toString()];ke(Pt)?ro||Ge(Pt):ro&&Qe(Pt,ro)}}),_e}return r.SETTING_ID="editor.semanticHighlighting",r}(Rt.a),l=function(s){vi(r,s);function r(n,a){var y=s.call(this)||this;return y._themeService=n,y._logService=a,y._caches=new WeakMap,y._themeService&&y._register(y._themeService.onThemeChange(function(){y._caches=new WeakMap})),y}return r.prototype.get=function(n){return this._caches.has(n)||this._caches.set(n,new Ae(n.getLegend(),this._themeService,this._logService)),this._caches.get(n)},r}(Rt.a),g=function(){function s(r,n,a){this.tokenTypeIndex=r,this.tokenModifierSet=n,this.metadata=a,this.next=null}return s}(),te=function(){function s(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<s._SIZES.length?2/3*this._currentLength:0),this._elements=[],s._nullOutEntries(this._elements,this._currentLength)}return s._nullOutEntries=function(r,n){for(var a=0;a<n;a++)r[a]=null},s.prototype._hashFunc=function(r,n){return((r<<5)-r+n|0)%this._currentLength},s.prototype.get=function(r,n){for(var a=this._hashFunc(r,n),y=this._elements[a];y;){if(y.tokenTypeIndex===r&&y.tokenModifierSet===n)return y;y=y.next}return null},s.prototype.add=function(r,n,a){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){var y=this._elements;this._currentLengthIndex++,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<s._SIZES.length?2/3*this._currentLength:0),this._elements=[],s._nullOutEntries(this._elements,this._currentLength);for(var N=0,_e=y;N<_e.length;N++)for(var ke=_e[N],Ge=ke;Ge;){var Qe=Ge.next;Ge.next=null,this._add(Ge),Ge=Qe}}this._add(new g(r,n,a))},s.prototype._add=function(r){var n=this._hashFunc(r.tokenTypeIndex,r.tokenModifierSet);r.next=this._elements[n],this._elements[n]=r},s._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],s}(),Ae=function(){function s(r,n,a){this._legend=r,this._themeService=n,this._logService=a,this._hashTable=new te}return s.prototype.getMetadata=function(r,n){var a=this._hashTable.get(r,n),y;if(a)y=a.metadata;else{for(var N=this._legend.tokenTypes[r],_e=[],ke=n,Ge=0;ke>0&&Ge<this._legend.tokenModifiers.length;Ge++)ke&1&&_e.push(this._legend.tokenModifiers[Ge]),ke=ke>>1;var Qe=this._themeService.getTheme().getTokenStyleMetadata(N,_e);if(typeof Qe=="undefined")y=2147483647;else{if(y=0,typeof Qe.italic!="undefined"){var yt=(Qe.italic?1:0)<<11;y|=yt|1}if(typeof Qe.bold!="undefined"){var It=(Qe.bold?2:0)<<11;y|=It|2}if(typeof Qe.underline!="undefined"){var Wt=(Qe.underline?4:0)<<11;y|=Wt|4}if(Qe.foreground){var Pt=Qe.foreground<<14;y|=Pt|8}y===0&&(y=2147483647)}this._hashTable.add(r,n,y)}if(this._logService.getLevel()===lt.b.Trace){var ro=this._legend.tokenTypes[r],eo=n?" "+this._legend.tokenModifiers.filter(function(Gt,Jt){return n&1<<Jt}).join(" "):"";this._logService.trace("tokenStyleMetadata "+(a?"[CACHED] ":"")+ro+eo+": foreground "+gt.A.getForeground(y)+", fontStyle "+gt.A.getFontStyle(y).toString(2))}return y},s}(),Se=function(){function s(r,n,a){this._provider=r,this.resultId=n,this.data=a}return s.prototype.dispose=function(){this._provider.releaseDocumentSemanticTokens(this.resultId)},s}(),qe=function(s){vi(r,s);function r(n,a,y){var N=s.call(this)||this;return N._isDisposed=!1,N._model=n,N._semanticStyling=y,N._fetchSemanticTokens=N._register(new ut.d(function(){return N._fetchSemanticTokensNow()},300)),N._currentResponse=null,N._currentRequestCancellationTokenSource=null,N._register(N._model.onDidChangeContent(function(_e){N._fetchSemanticTokens.isScheduled()||N._fetchSemanticTokens.schedule()})),N._register(gt.l.onDidChange(function(_e){return N._fetchSemanticTokens.schedule()})),a&&N._register(a.onThemeChange(function(_e){N._setSemanticTokens(null,null,null,[]),N._fetchSemanticTokens.schedule()})),N._fetchSemanticTokens.schedule(0),N}return r.prototype.dispose=function(){this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._currentRequestCancellationTokenSource&&(this._currentRequestCancellationTokenSource.cancel(),this._currentRequestCancellationTokenSource=null),this._setSemanticTokens(null,null,null,[]),this._isDisposed=!0,s.prototype.dispose.call(this)},r.prototype._fetchSemanticTokensNow=function(){var n=this;if(this._currentRequestCancellationTokenSource)return;var a=this._getSemanticColoringProvider();if(!a)return;this._currentRequestCancellationTokenSource=new J.b;var y=[],N=this._model.onDidChangeContent(function(Qe){y.push(Qe)}),_e=this._semanticStyling.get(a),ke=this._currentResponse&&this._currentResponse.resultId||null,Ge=Promise.resolve(a.provideDocumentSemanticTokens(this._model,ke,this._currentRequestCancellationTokenSource.token));Ge.then(function(Qe){n._currentRequestCancellationTokenSource=null,N.dispose(),n._setSemanticTokens(a,Qe||null,_e,y)},function(Qe){(!Qe||typeof Qe.message!="string"||Qe.message.indexOf("busy")===-1)&&Ct.e(Qe),n._currentRequestCancellationTokenSource=null,N.dispose(),y.length>0&&(n._fetchSemanticTokens.isScheduled()||n._fetchSemanticTokens.schedule())})},r._isSemanticTokens=function(n){return n&&!!n.data},r._isSemanticTokensEdits=function(n){return n&&Array.isArray(n.edits)},r._copy=function(n,a,y,N,_e){for(var ke=0;ke<_e;ke++)y[N+ke]=n[a+ke]},r.prototype._setSemanticTokens=function(n,a,y,N){var _e=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed){n&&a&&n.releaseDocumentSemanticTokens(a.resultId);return}if(!n||!a||!y){this._model.setSemanticTokens(null);return}if(r._isSemanticTokensEdits(a)){if(!_e){this._model.setSemanticTokens(null);return}if(a.edits.length===0)a={resultId:a.resultId,data:_e.data};else{for(var ke=0,Ge=0,Qe=a.edits;Ge<Qe.length;Ge++){var yt=Qe[Ge];ke+=(yt.data?yt.data.length:0)-yt.deleteCount}for(var It=_e.data,Wt=new Uint32Array(It.length+ke),Pt=It.length,ro=Wt.length,eo=a.edits.length-1;eo>=0;eo--){var yt=a.edits[eo],Gt=Pt-(yt.start+yt.deleteCount);Gt>0&&(r._copy(It,Pt-Gt,Wt,ro-Gt,Gt),ro-=Gt),yt.data&&(r._copy(yt.data,0,Wt,ro-yt.data.length,yt.data.length),ro-=yt.data.length),Pt=yt.start}Pt>0&&r._copy(It,0,Wt,0,Pt),a={resultId:a.resultId,data:Wt}}}if(r._isSemanticTokens(a)){this._currentResponse=new Se(n,a.resultId,a.data);for(var It=a.data,Jt=a.data.length/5|0,co=Math.max(Math.ceil(Jt/1024),400),So=[],xo=0,Po=1,Go=0;xo<Jt;){var Xo=xo,an=Math.min(Xo+co,Jt);if(an<Jt){for(var yn=an;yn-1>Xo&&It[5*yn]===0;)yn--;if(yn-1===Xo){for(var Zo=an;Zo+1<Jt&&It[5*Zo]===0;)Zo++;an=Zo}else an=yn}for(var Wt=new Uint32Array((an-Xo)*4),Yo=0,mn=0;xo<an;){var en=5*xo,bn=It[en],Mn=It[en+1],Bn=Po+bn,kn=bn===0?Go+Mn:Mn,Gn=It[en+2],ri=It[en+3],Vi=It[en+4],Aa=y.getMetadata(ri,Vi);Aa!==2147483647&&(mn===0&&(mn=Bn),Wt[Yo]=Bn-mn,Wt[Yo+1]=kn,Wt[Yo+2]=kn+Gn,Wt[Yo+3]=Aa,Yo+=4),Po=Bn,Go=kn,xo++}Yo!==Wt.length&&(Wt=Wt.subarray(0,Yo));var qd=new Ur.a(mn,new Ur.c(Wt));So.push(qd)}if(N.length>0){for(var qs=0,Ra=N;qs<Ra.length;qs++)for(var ec=Ra[qs],ea=0,Ia=So;ea<Ia.length;ea++)for(var tc=Ia[ea],ta=0,Na=ec.changes;ta<Na.length;ta++){var ja=Na[ta];tc.applyEdit(ja.range,ja.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(So);return}this._model.setSemanticTokens(null)},r.prototype._getSemanticColoringProvider=function(){var n=gt.l.ordered(this._model);return n.length>0?n[0]:null},r}(Rt.a),ct=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),_t=function(s){ct(r,s);function r(){var n=s.call(this)||this;return n._onCodeEditorAdd=n._register(new I.a),n.onCodeEditorAdd=n._onCodeEditorAdd.event,n._onCodeEditorRemove=n._register(new I.a),n.onCodeEditorRemove=n._onCodeEditorRemove.event,n._onDiffEditorAdd=n._register(new I.a),n._onDiffEditorRemove=n._register(new I.a),n._codeEditors=Object.create(null),n._diffEditors=Object.create(null),n}return r.prototype.addCodeEditor=function(n){this._codeEditors[n.getId()]=n,this._onCodeEditorAdd.fire(n)},r.prototype.removeCodeEditor=function(n){delete this._codeEditors[n.getId()]&&this._onCodeEditorRemove.fire(n)},r.prototype.listCodeEditors=function(){var n=this;return Object.keys(this._codeEditors).map(function(a){return n._codeEditors[a]})},r.prototype.addDiffEditor=function(n){this._diffEditors[n.getId()]=n,this._onDiffEditorAdd.fire(n)},r.prototype.removeDiffEditor=function(n){delete this._diffEditors[n.getId()]&&this._onDiffEditorRemove.fire(n)},r.prototype.listDiffEditors=function(){var n=this;return Object.keys(this._diffEditors).map(function(a){return n._diffEditors[a]})},r.prototype.getFocusedCodeEditor=function(){for(var n=null,a=this.listCodeEditors(),y=0,N=a;y<N.length;y++){var _e=N[y];if(_e.hasTextFocus())return _e;_e.hasWidgetFocus()&&(n=_e)}return n},r}(Rt.a),tt=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),kt=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},Bt=function(s,r){return function(n,a){r(n,a,s)}},Ht=function(){function s(r,n,a){this._parent=r,this._editorId=n,this.styleSheet=a,this._refCount=0}return s.prototype.ref=function(){this._refCount++},s.prototype.unref=function(){var r;this._refCount--,this._refCount===0&&((r=this.styleSheet.parentNode)===null||r===void 0||r.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},s}(),qt=function(){function s(r){this.styleSheet=r}return s.prototype.ref=function(){},s.prototype.unref=function(){},s}(),$t=function(s){tt(r,s);function r(n,a){a===void 0&&(a=null);var y=s.call(this)||this;return y._decorationOptionProviders=new Map,y._editorStyleSheets=new Map,y._globalStyleSheet=a?new qt(a):null,y._themeService=n,y}return r.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qt(ge.w())),this._globalStyleSheet},r.prototype._getOrCreateStyleSheet=function(n){if(!n)return this._getOrCreateGlobalStyleSheet();var a=n.getContainerDomNode();if(!ge.N(a))return this._getOrCreateGlobalStyleSheet();var y=n.getId();if(!this._editorStyleSheets.has(y)){var N=new Ht(this,y,ge.w(a));this._editorStyleSheets.set(y,N)}return this._editorStyleSheets.get(y)},r.prototype._removeEditorStyleSheets=function(n){this._editorStyleSheets.delete(n)},r.prototype.registerDecorationType=function(n,a,y,N){var _e=this._decorationOptionProviders.get(n);if(!_e){var ke=this._getOrCreateStyleSheet(N),Ge={styleSheet:ke.styleSheet,key:n,parentTypeKey:y,options:a||Object.create(null)};y?_e=new io(this._themeService,ke,Ge):_e=new yo(this._themeService,ke,Ge),this._decorationOptionProviders.set(n,_e)}_e.refCount++},r.prototype.removeDecorationType=function(n){var a=this._decorationOptionProviders.get(n);a&&(a.refCount--,a.refCount<=0&&(this._decorationOptionProviders.delete(n),a.dispose(),this.listCodeEditors().forEach(function(y){return y.removeDecorations(n)})))},r.prototype.resolveDecorationOptions=function(n,a){var y=this._decorationOptionProviders.get(n);if(!y)throw new Error("Unknown decoration type key: "+n);return y.getOptions(this,a)},r=kt([Bt(0,Ln.c)],r),r}(_t),io=function(){function s(r,n,a){this._styleSheet=n,this._styleSheet.ref(),this._parentTypeKey=a.parentTypeKey,this.refCount=0,this._beforeContentRules=new bo(3,a,r),this._afterContentRules=new bo(4,a,r)}return s.prototype.getOptions=function(r,n){var a=r.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(a.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(a.afterContentClassName=this._afterContentRules.className),a},s.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},s}(),yo=function(){function s(r,n,a){var y=this;this._disposables=new Rt.b,this._styleSheet=n,this._styleSheet.ref(),this.refCount=0;var N=function(It){var Wt=new bo(It,a,r);return y._disposables.add(Wt),Wt.hasContent?Wt.className:void 0},_e=function(It){var Wt=new bo(It,a,r);return y._disposables.add(Wt),Wt.hasContent?{className:Wt.className,hasLetterSpacing:Wt.hasLetterSpacing}:null};this.className=N(0);var ke=_e(1);ke&&(this.inlineClassName=ke.className,this.inlineClassNameAffectsLetterSpacing=ke.hasLetterSpacing),this.beforeContentClassName=N(3),this.afterContentClassName=N(4),this.glyphMarginClassName=N(2);var Ge=a.options;this.isWholeLine=Boolean(Ge.isWholeLine),this.stickiness=Ge.rangeBehavior;var Qe=Ge.light&&Ge.light.overviewRulerColor||Ge.overviewRulerColor,yt=Ge.dark&&Ge.dark.overviewRulerColor||Ge.overviewRulerColor;(typeof Qe!="undefined"||typeof yt!="undefined")&&(this.overviewRuler={color:Qe||yt,darkColor:yt||Qe,position:Ge.overviewRulerLane||pt.d.Center})}return s.prototype.getOptions=function(r,n){return n?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},s.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},s}(),po={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},bo=function(){function s(r,n,a){var y=this;this._theme=a.getTheme(),this._ruleType=r,this._providerArgs=n,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var N=vo.getClassName(this._providerArgs.key,r);this._providerArgs.parentTypeKey&&(N=N+" "+vo.getClassName(this._providerArgs.parentTypeKey,r)),this._className=N,this._unThemedSelector=vo.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,r),this._buildCSS(),this._usesThemeColors?this._themeListener=a.onThemeChange(function(_e){y._theme=a.getTheme(),y._removeCSS(),y._buildCSS()}):this._themeListener=null}return s.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(s.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),s.prototype._buildCSS=function(){var r=this._providerArgs.options,n,a,y;switch(this._ruleType){case 0:n=this.getCSSTextForModelDecorationClassName(r),a=this.getCSSTextForModelDecorationClassName(r.light),y=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:n=this.getCSSTextForModelDecorationInlineClassName(r),a=this.getCSSTextForModelDecorationInlineClassName(r.light),y=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:n=this.getCSSTextForModelDecorationGlyphMarginClassName(r),a=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),y=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:n=this.getCSSTextForModelDecorationContentClassName(r.before),a=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),y=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:n=this.getCSSTextForModelDecorationContentClassName(r.after),a=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),y=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var N=this._providerArgs.styleSheet.sheet,_e=!1;n.length>0&&(N.insertRule(this._unThemedSelector+" {"+n+"}",0),_e=!0),a.length>0&&(N.insertRule(".vs"+this._unThemedSelector+" {"+a+"}",0),_e=!0),y.length>0&&(N.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+y+"}",0),_e=!0),this._hasContent=_e},s.prototype._removeCSS=function(){ge.O(this._unThemedSelector,this._providerArgs.styleSheet)},s.prototype.getCSSTextForModelDecorationClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["backgroundColor"],n),this.collectCSSText(r,["outline","outlineColor","outlineStyle","outlineWidth"],n),this.collectBorderSettingsCSSText(r,n),n.join("")},s.prototype.getCSSTextForModelDecorationInlineClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],n),r.letterSpacing&&(this._hasLetterSpacing=!0),n.join("")},s.prototype.getCSSTextForModelDecorationContentClassName=function(r){if(!r)return"";var n=[];if(typeof r!="undefined"){if(this.collectBorderSettingsCSSText(r,n),typeof r.contentIconPath!="undefined"&&n.push(to.r(po.contentIconPath,ge.r(K.a.revive(r.contentIconPath)))),typeof r.contentText=="string"){var a=r.contentText.match(/^.*$/m)[0],y=a.replace(/['\\]/g,"\\$&");n.push(to.r(po.contentText,y))}this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],n),this.collectCSSText(r,["width","height"],n)&&n.push("display:inline-block;")}return n.join("")},s.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(r){if(!r)return"";var n=[];return typeof r.gutterIconPath!="undefined"&&(n.push(to.r(po.gutterIconPath,ge.r(K.a.revive(r.gutterIconPath)))),typeof r.gutterIconSize!="undefined"&&n.push(to.r(po.gutterIconSize,r.gutterIconSize))),n.join("")},s.prototype.collectBorderSettingsCSSText=function(r,n){return this.collectCSSText(r,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],n)?(n.push(to.r("box-sizing: border-box;")),!0):!1},s.prototype.collectCSSText=function(r,n,a){for(var y=a.length,N=0,_e=n;N<_e.length;N++){var ke=_e[N],Ge=this.resolveValue(r[ke]);typeof Ge=="string"&&a.push(to.r(po[ke],Ge))}return a.length!==y},s.prototype.resolveValue=function(r){if(Object(jt.c)(r)){this._usesThemeColors=!0;var n=this._theme.getColor(r.id);return n?n.toString():"transparent"}return r},s}(),vo=function(){function s(){}return s.getClassName=function(r,n){return"ced-"+r+"-"+n},s.getSelector=function(r,n,a){var y=".monaco-editor ."+this.getClassName(r,a);return n&&(y=y+"."+this.getClassName(n,a)),a===3?y+="::before":a===4&&(y+="::after"),y},s}(),Co=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Mo=function(s){Co(r,s);function r(){return s!==null&&s.apply(this,arguments)||this}return r.prototype.getActiveCodeEditor=function(){return null},r.prototype.openCodeEditor=function(n,a,y){return a?Promise.resolve(this.doOpenEditor(a,n)):Promise.resolve(null)},r.prototype.doOpenEditor=function(n,a){var y=this.findModel(n,a.resource);if(!y){if(a.resource){var N=a.resource.scheme;if(N===Ce.b.http||N===Ce.b.https)return Object(ge.ab)(a.resource.toString()),n}return null}var _e=a.options?a.options.selection:null;if(_e)if(typeof _e.endLineNumber=="number"&&typeof _e.endColumn=="number")n.setSelection(_e),n.revealRangeInCenter(_e,1);else{var ke={lineNumber:_e.startLineNumber,column:_e.startColumn};n.setPosition(ke),n.revealPositionInCenter(ke,1)}return n},r.prototype.findModel=function(n,a){var y=n.getModel();return y&&y.uri.toString()!==a.toString()?null:y},r}($t),Ko=e("zrhQ"),zo=function(){function s(r,n,a,y,N){this.token=r,this.index=n,this.fontStyle=a,this.foreground=y,this.background=N}return s}();function ko(s){if(!s||!Array.isArray(s))return[];for(var r=[],n=0,a=0,y=s.length;a<y;a++){var N=s[a],_e=-1;if(typeof N.fontStyle=="string"){_e=0;for(var ke=N.fontStyle.split(" "),Ge=0,Qe=ke.length;Ge<Qe;Ge++){var yt=ke[Ge];switch(yt){case"italic":_e=_e|1;break;case"bold":_e=_e|2;break;case"underline":_e=_e|4;break}}}var It=null;typeof N.foreground=="string"&&(It=N.foreground);var Wt=null;typeof N.background=="string"&&(Wt=N.background),r[n++]=new zo(N.token||"",a,_e,It,Wt)}return r}function fn(s,r){s.sort(function(Jt,co){var So=Fn(Jt.token,co.token);return So!==0?So:Jt.index-co.index});for(var n=0,a="000000",y="ffffff";s.length>=1&&s[0].token==="";){var N=s.shift();N.fontStyle!==-1&&(n=N.fontStyle),N.foreground!==null&&(a=N.foreground),N.background!==null&&(y=N.background)}for(var _e=new ln,ke=0,Ge=r;ke<Ge.length;ke++){var Qe=Ge[ke];_e.getId(Qe)}for(var yt=_e.getId(a),It=_e.getId(y),Wt=new Ui(n,yt,It),Pt=new fr(Wt),ro=0,eo=s.length;ro<eo;ro++){var Gt=s[ro];Pt.insert(Gt.token,Gt.fontStyle,_e.getId(Gt.foreground),_e.getId(Gt.background))}return new Nn(_e,Pt)}var In=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,ln=function(){function s(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return s.prototype.getId=function(r){if(r===null)return 0;var n=r.match(In);if(!n)throw new Error("Illegal value for token color: "+r);r=n[1].toUpperCase();var a=this._color2id.get(r);return a||(a=++this._lastColorId,this._color2id.set(r,a),this._id2color[a]=Ko.a.fromHex("#"+r),a)},s.prototype.getColorMap=function(){return this._id2color.slice(0)},s}(),Nn=function(){function s(r,n){this._colorMap=r,this._root=n,this._cache=new Map}return s.createFromRawTokenTheme=function(r,n){return this.createFromParsedTokenTheme(ko(r),n)},s.createFromParsedTokenTheme=function(r,n){return fn(r,n)},s.prototype.getColorMap=function(){return this._colorMap.getColorMap()},s.prototype._match=function(r){return this._root.match(r)},s.prototype.match=function(r,n){var a=this._cache.get(n);if(typeof a=="undefined"){var y=this._match(n),N=Wn(n);a=(y.metadata|N<<8)>>>0,this._cache.set(n,a)}return(a|r<<0)>>>0},s}(),cn=/\b(comment|string|regex|regexp)\b/;function Wn(s){var r=s.match(cn);if(!r)return 0;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function Fn(s,r){return s<r?-1:s>r?1:0}var Ui=function(){function s(r,n,a){this._fontStyle=r,this._foreground=n,this._background=a,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return s.prototype.clone=function(){return new s(this._fontStyle,this._foreground,this._background)},s.prototype.acceptOverwrite=function(r,n,a){r!==-1&&(this._fontStyle=r),n!==0&&(this._foreground=n),a!==0&&(this._background=a),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},s}(),fr=function(){function s(r){this._mainRule=r,this._children=new Map}return s.prototype.match=function(r){if(r==="")return this._mainRule;var n=r.indexOf("."),a,y;n===-1?(a=r,y=""):(a=r.substring(0,n),y=r.substring(n+1));var N=this._children.get(a);return typeof N!="undefined"?N.match(y):this._mainRule},s.prototype.insert=function(r,n,a,y){if(r===""){this._mainRule.acceptOverwrite(n,a,y);return}var N=r.indexOf("."),_e,ke;N===-1?(_e=r,ke=""):(_e=r.substring(0,N),ke=r.substring(N+1));var Ge=this._children.get(_e);typeof Ge=="undefined"&&(Ge=new s(this._mainRule.clone()),this._children.set(_e,Ge)),Ge.insert(ke,n,a,y)},s}();function Hr(s){for(var r=[],n=1,a=s.length;n<a;n++){var y=s[n];r[n]=".mtk"+n+" { color: "+y+"; }"}return r.push(".mtki { font-style: italic; }"),r.push(".mtkb { font-weight: bold; }"),r.push(".mtku { text-decoration: underline; text-underline-position: under; }"),r.join(`
`)}var Zn,yi,Hi,Pa={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(Zn={},Zn[gn.o]="#FFFFFE",Zn[gn.x]="#000000",Zn[gn.F]="#E5EBF1",Zn[Vn.h]="#D3D3D3",Zn[Vn.a]="#939393",Zn[gn.M]="#ADD6FF4D",Zn)},ka={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(yi={},yi[gn.o]="#1E1E1E",yi[gn.x]="#D4D4D4",yi[gn.F]="#3A3D41",yi[Vn.h]="#404040",yi[Vn.a]="#707070",yi[gn.M]="#ADD6FF26",yi)},Fa={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(Hi={},Hi[gn.o]="#000000",Hi[gn.x]="#FFFFFF",Hi[Vn.h]="#FFFFFF",Hi[Vn.a]="#FFFFFF",Hi)},Wa=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Mi="vs",Vr="vs-dark",mr="hc-black",Ba=hr.a.as(gn.a.ColorContribution),Ua=hr.a.as(Ln.a.ThemingContribution),la=function(){function s(r,n){this.themeData=n;var a=n.base;r.length>0?(this.id=a+" "+r,this.themeName=r):(this.id=a,this.themeName=a),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(s.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),s.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},s.prototype.getColors=function(){if(!this.colors){var r=new Map;for(var n in this.themeData.colors)r.set(n,Ko.a.fromHex(this.themeData.colors[n]));if(this.themeData.inherit){var a=Vs(this.themeData.base);for(var n in a.colors)r.has(n)||r.set(n,Ko.a.fromHex(a.colors[n]))}this.colors=r}return this.colors},s.prototype.getColor=function(r,n){var a=this.getColors().get(r);return a||(n!==!1?this.getDefault(r):void 0)},s.prototype.getDefault=function(r){var n=this.defaultColors[r];return n||(n=Ba.resolveDefaultColor(r,this),this.defaultColors[r]=n,n)},s.prototype.defines=function(r){return Object.prototype.hasOwnProperty.call(this.getColors(),r)},Object.defineProperty(s.prototype,"type",{get:function(){switch(this.base){case Mi:return"light";case mr:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var r=[],n=[];if(this.themeData.inherit){var a=Vs(this.themeData.base);r=a.rules,a.encodedTokensColors&&(n=a.encodedTokensColors)}r=r.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(n=this.themeData.encodedTokensColors),this._tokenTheme=Nn.createFromRawTokenTheme(r,n)}return this._tokenTheme},enumerable:!0,configurable:!0}),s.prototype.getTokenStyleMetadata=function(r,n){return},s}();function Hs(s){return s===Mi||s===Vr||s===mr}function Vs(s){switch(s){case Mi:return Pa;case Vr:return ka;case mr:return Fa}}function zs(s){var r=Vs(s);return new la(s,r)}var Ha=function(s){Wa(r,s);function r(){var n=s.call(this)||this;return n._onThemeChange=n._register(new I.a),n.onThemeChange=n._onThemeChange.event,n._environment=Object.create(null),n._knownThemes=new Map,n._knownThemes.set(Mi,zs(Mi)),n._knownThemes.set(Vr,zs(Vr)),n._knownThemes.set(mr,zs(mr)),n._css="",n._globalStyleElement=null,n._styleElements=[],n.setTheme(Mi),n}return r.prototype.registerEditorContainer=function(n){return ge.N(n)?this._registerShadowDomContainer(n):this._registerRegularEditorContainer()},r.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=ge.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),Rt.a.None},r.prototype._registerShadowDomContainer=function(n){var a=this,y=ge.w(n);return y.className="monaco-colors",y.innerHTML=this._css,this._styleElements.push(y),{dispose:function(){for(var N=0;N<a._styleElements.length;N++)if(a._styleElements[N]===y){a._styleElements.splice(N,1);return}}}},r.prototype.defineTheme=function(n,a){if(!/^[a-z0-9\-]+$/i.test(n))throw new Error("Illegal theme name!");if(!Hs(a.base)&&!Hs(n))throw new Error("Illegal theme base!");this._knownThemes.set(n,new la(n,a)),Hs(n)&&this._knownThemes.forEach(function(y){y.base===n&&y.notifyBaseUpdated()}),this._theme&&this._theme.themeName===n&&this.setTheme(n)},r.prototype.getTheme=function(){return this._theme},r.prototype.setTheme=function(n){var a=this,y;if(this._knownThemes.has(n)?y=this._knownThemes.get(n):y=this._knownThemes.get(Mi),this._theme===y)return y.id;this._theme=y;var N=[],_e={},ke={addRule:function(yt){_e[yt]||(N.push(yt),_e[yt]=!0)}};Ua.getThemingParticipants().forEach(function(yt){return yt(y,ke,a._environment)});var Ge=y.tokenTheme,Qe=Ge.getColorMap();return ke.addRule(Hr(Qe)),this._css=N.join(`
`),this._styleElements.forEach(function(yt){return yt.innerHTML=a._css}),gt.B.setColorMap(Qe),this._onThemeChange.fire(y),y.id},r.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},r}(Rt.a),zr=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Va=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},za=function(s,r){return function(n,a){r(n,a,s)}},Kr="data-keybinding-context",Ks=function(){function s(r,n){this._id=r,this._parent=n,this._value=Object.create(null),this._value._contextId=r}return s.prototype.setValue=function(r,n){return this._value[r]!==n?(this._value[r]=n,!0):!1},s.prototype.removeValue=function(r){return r in this._value?(delete this._value[r],!0):!1},s.prototype.getValue=function(r){var n=this._value[r];return typeof n=="undefined"&&this._parent?this._parent.getValue(r):n},s}(),Gr=function(s){zr(r,s);function r(){return s.call(this,-1,null)||this}return r.prototype.setValue=function(n,a){return!1},r.prototype.removeValue=function(n){return!1},r.prototype.getValue=function(n){return},r.INSTANCE=new r,r}(Ks),Ka=function(s){zr(r,s);function r(n,a,y){var N=s.call(this,n,null)||this;return N._configurationService=a,N._values=new Map,N._listener=N._configurationService.onDidChangeConfiguration(function(_e){if(_e.source===6){var ke=Object(Qn.d)(N._values);N._values.clear(),y.fire(new ca(ke))}else{for(var Ge=[],Qe=0,yt=_e.affectedKeys;Qe<yt.length;Qe++){var It=yt[Qe],Wt="config."+It;N._values.has(Wt)&&(N._values.delete(Wt),Ge.push(Wt))}y.fire(new ca(Ge))}}),N}return r.prototype.dispose=function(){this._listener.dispose()},r.prototype.getValue=function(n){if(n.indexOf(r._keyPrefix)!==0)return s.prototype.getValue.call(this,n);if(this._values.has(n))return this._values.get(n);var a=n.substr(r._keyPrefix.length),y=this._configurationService.getValue(a),N=void 0;switch(typeof y){case"number":case"boolean":case"string":N=y;break}return this._values.set(n,N),N},r.prototype.setValue=function(n,a){return s.prototype.setValue.call(this,n,a)},r.prototype.removeValue=function(n){return s.prototype.removeValue.call(this,n)},r._keyPrefix="config.",r}(Ks),Ga=function(){function s(r,n,a){this._service=r,this._key=n,this._defaultValue=a,this.reset()}return s.prototype.set=function(r){this._service.setContext(this._key,r)},s.prototype.reset=function(){typeof this._defaultValue=="undefined"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},s.prototype.get=function(){return this._service.getContextKeyValue(this._key)},s}(),da=function(){function s(r){this.key=r}return s.prototype.affectsSome=function(r){return r.has(this.key)},s}(),ca=function(){function s(r){this.keys=r}return s.prototype.affectsSome=function(r){for(var n=0,a=this.keys;n<a.length;n++){var y=a[n];if(r.has(y))return!0}return!1},s}(),Xa=function(){function s(r){this.events=r}return s.prototype.affectsSome=function(r){for(var n=0,a=this.events;n<a.length;n++){var y=a[n];if(y.affectsSome(r))return!0}return!1},s}(),ua=function(){function s(r){this._onDidChangeContext=new I.e({merge:function(n){return new Xa(n)}}),this._isDisposed=!1,this._myContextId=r}return s.prototype.createKey=function(r,n){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Ga(this,r,n)},Object.defineProperty(s.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),s.prototype.bufferChangeEvents=function(r){this._onDidChangeContext.pause();try{r()}finally{this._onDidChangeContext.resume()}},s.prototype.createScoped=function(r){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Za(this,r)},s.prototype.contextMatchesRules=function(r){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var n=this.getContextValuesContainer(this._myContextId),a=Qi.contextMatchesRules(n,r);return a},s.prototype.getContextKeyValue=function(r){return this._isDisposed?void 0:this.getContextValuesContainer(this._myContextId).getValue(r)},s.prototype.setContext=function(r,n){if(this._isDisposed)return;var a=this.getContextValuesContainer(this._myContextId);if(!a)return;a.setValue(r,n)&&this._onDidChangeContext.fire(new da(r))},s.prototype.removeContext=function(r){if(this._isDisposed)return;this.getContextValuesContainer(this._myContextId).removeValue(r)&&this._onDidChangeContext.fire(new da(r))},s.prototype.getContext=function(r){return this._isDisposed?Gr.INSTANCE:this.getContextValuesContainer(Qa(r))},s}(),Ya=function(s){zr(r,s);function r(n){var a=s.call(this,0)||this;a._contexts=new Map,a._toDispose=new Rt.b,a._lastContextId=0;var y=new Ka(a._myContextId,n,a._onDidChangeContext);return a._contexts.set(a._myContextId,y),a._toDispose.add(y),a}return r.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},r.prototype.getContextValuesContainer=function(n){return this._isDisposed?Gr.INSTANCE:this._contexts.get(n)||Gr.INSTANCE},r.prototype.createChildContext=function(n){if(n===void 0&&(n=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var a=++this._lastContextId;return this._contexts.set(a,new Ks(a,this.getContextValuesContainer(n))),a},r.prototype.disposeContext=function(n){this._isDisposed||this._contexts.delete(n)},r=Va([za(0,Dn.a)],r),r}(ua),Za=function(s){zr(r,s);function r(n,a){var y=s.call(this,n.createChildContext())||this;return y._parent=n,a&&(y._domNode=a,y._domNode.setAttribute(Kr,String(y._myContextId))),y}return r.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(Kr),this._domNode=void 0)},Object.defineProperty(r.prototype,"onDidChangeContext",{get:function(){return I.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),r.prototype.getContextValuesContainer=function(n){return this._isDisposed?Gr.INSTANCE:this._parent.getContextValuesContainer(n)},r.prototype.createChildContext=function(n){if(n===void 0&&(n=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(n)},r.prototype.disposeContext=function(n){if(this._isDisposed)return;this._parent.disposeContext(n)},r}(ua);function Qa(s){for(;s;){if(s.hasAttribute(Kr)){var r=s.getAttribute(Kr);return r?parseInt(r,10):NaN}s=s.parentElement}return 0}$.a.registerCommand(wn.e,function(s,r,n){s.get(wn.c).createKey(String(r),n)});var oc=e("eizg"),$a=e("2gzu"),Ja=e("ptcw"),ha=e("4y0V"),qa=e("XSiN"),el=function(){function s(r,n,a,y,N){this.contextViewService=r,this.telemetryService=n,this.notificationService=a,this.keybindingService=y,this.themeService=N,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}return s.prototype.configure=function(r){this.options=r},s.prototype.showContextMenu=function(r){var n=this,a=r.getActions();if(!a.length)return;this.focusToReturn=document.activeElement;var y;this.contextViewService.showContextView({getAnchor:function(){return r.getAnchor()},canRelayout:!1,anchorAlignment:r.anchorAlignment,render:function(N){var _e=r.getMenuClassName?r.getMenuClassName():"";_e&&(N.className+=" "+_e),n.options.blockMouse&&(n.block=N.appendChild(Object(ge.a)(".context-view-block")));var ke=new Rt.b,Ge=r.actionRunner||new ci.b;return Ge.onDidBeforeRun(n.onActionRun,n,ke),Ge.onDidRun(n.onDidActionRun,n,ke),y=new $a.a(N,a,{actionViewItemProvider:r.getActionViewItem,context:r.getActionsContext?r.getActionsContext():null,actionRunner:Ge,getKeyBinding:r.getKeyBinding?r.getKeyBinding:function(Qe){return n.keybindingService.lookupKeybinding(Qe.id)}}),ke.add(Object(Ja.c)(y,n.themeService)),y.onDidCancel(function(){return n.contextViewService.hideContextView(!0)},null,ke),y.onDidBlur(function(){return n.contextViewService.hideContextView(!0)},null,ke),Object(ha.a)(window,ge.d.BLUR)(function(){n.contextViewService.hideContextView(!0)},null,ke),Object(ha.a)(window,ge.d.MOUSE_DOWN)(function(Qe){if(Qe.defaultPrevented)return;var yt=new qa.b(Qe),It=yt.target;if(yt.rightButton)return;for(;It;){if(It===N)return;It=It.parentElement}n.contextViewService.hideContextView(!0)},null,ke),Object(Rt.e)(ke,y)},focus:function(){y&&y.focus(!!r.autoSelectFirstItem)},onHide:function(N){r.onHide&&r.onHide(!!N),n.block&&(Object(ge.R)(n.block),n.block=null),n.focusToReturn&&n.focusToReturn.focus()}})},s.prototype.onActionRun=function(r){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:r.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()},s.prototype.onDidActionRun=function(r){r.error&&this.notificationService&&this.notificationService.error(r.error)},s}(),Gs=e("XXUj"),tl=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),ol=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},pr=function(s,r){return function(n,a){r(n,a,s)}},nl=function(s){tl(r,s);function r(n,a,y,N,_e){var ke=s.call(this)||this;return ke._onDidContextMenu=ke._register(new I.a),ke.contextMenuHandler=new el(y,n,a,N,_e),ke}return r.prototype.configure=function(n){this.contextMenuHandler.configure(n)},r.prototype.showContextMenu=function(n){this.contextMenuHandler.showContextMenu(n),this._onDidContextMenu.fire()},r=ol([pr(0,Gs.a),pr(1,Hn.a),pr(2,Xn.b),pr(3,ni.a),pr(4,Ln.c)],r),r}(Rt.a),nc=e("TT2d"),il=e("nuFA"),rl=e("CjF5"),sl=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}();function fa(s,r,n){var a=n.offset+n.size;return n.position===0?r<=s-a?a:r<=n.offset?n.offset-r:Math.max(s-r,0):r<=n.offset?n.offset-r:r<=s-a?a:0}var al=function(s){sl(r,s);function r(n){var a=s.call(this)||this;return a.container=null,a.delegate=null,a.toDisposeOnClean=Rt.a.None,a.toDisposeOnSetContainer=Rt.a.None,a.view=ge.a(".context-view"),ge.J(a.view),a.setContainer(n),a._register(Object(Rt.h)(function(){return a.setContainer(null)})),a}return r.prototype.setContainer=function(n){var a=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),n){this.container=n,this.container.appendChild(this.view);var y=new Rt.b;r.BUBBLE_UP_EVENTS.forEach(function(N){y.add(ge.o(a.container,N,function(_e){a.onDOMEvent(_e,!1)}))}),r.BUBBLE_DOWN_EVENTS.forEach(function(N){y.add(ge.o(a.container,N,function(_e){a.onDOMEvent(_e,!0)},!0))}),this.toDisposeOnSetContainer=y}},r.prototype.show=function(n){this.isVisible()&&this.hide(),ge.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",ge.X(this.view),this.toDisposeOnClean=n.render(this.view)||Rt.a.None,this.delegate=n,this.doLayout(),this.delegate.focus&&this.delegate.focus()},r.prototype.layout=function(){if(!this.isVisible())return;if(this.delegate.canRelayout===!1&&!(ht.c&&rl.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()},r.prototype.doLayout=function(){if(!this.isVisible())return;var n=this.delegate.getAnchor(),a;if(ge.L(n)){var y=ge.C(n);a={top:y.top,left:y.left,width:y.width,height:y.height}}else a={top:n.y,left:n.x,width:n.width||1,height:n.height||2};var N=ge.H(this.view),_e=ge.G(this.view),ke=this.delegate.anchorPosition||0,Ge=this.delegate.anchorAlignment||0,Qe={offset:a.top-window.pageYOffset,size:a.height,position:ke===0?0:1},yt;Ge===0?yt={offset:a.left,size:0,position:0}:yt={offset:a.left+a.width,size:0,position:1};var It=fa(window.innerHeight,_e,Qe)+window.pageYOffset;il.a.intersects({start:It,end:It+_e},{start:Qe.offset,end:Qe.offset+Qe.size})&&(yt.size=a.width,Ge===1&&(yt.offset=a.left));var Wt=fa(window.innerWidth,N,yt);ge.Q(this.view,"top","bottom","left","right"),ge.f(this.view,ke===0?"bottom":"top"),ge.f(this.view,Ge===0?"left":"right");var Pt=ge.C(this.container);this.view.style.top=It-Pt.top+"px",this.view.style.left=Wt-Pt.left+"px",this.view.style.width="initial"},r.prototype.hide=function(n){var a=this.delegate;this.delegate=null,(a==null?void 0:a.onHide)&&a.onHide(n),this.toDisposeOnClean.dispose(),ge.J(this.view)},r.prototype.isVisible=function(){return!!this.delegate},r.prototype.onDOMEvent=function(n,a){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(n,document.activeElement):a&&!ge.K(n.target,this.container)&&this.hide())},r.prototype.dispose=function(){this.hide(),s.prototype.dispose.call(this)},r.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],r.BUBBLE_DOWN_EVENTS=["click"],r}(Rt.a),ma=Object(Rn.c)("layoutService"),ll=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),dl=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},cl=function(s,r){return function(n,a){r(n,a,s)}},ul=function(s){ll(r,s);function r(n){var a=s.call(this)||this;return a.layoutService=n,a.contextView=a._register(new al(n.container)),a.layout(),a._register(n.onLayout(function(){return a.layout()})),a}return r.prototype.setContainer=function(n){this.contextView.setContainer(n)},r.prototype.showContextView=function(n){this.contextView.show(n)},r.prototype.layout=function(){this.contextView.layout()},r.prototype.hideContextView=function(n){this.contextView.hide(n)},r=dl([cl(0,ma)],r),r}(Rt.a),hl=Object(Rn.c)("dialogService"),Xs=e("vl9R");function fl(s){return{data:s,incoming:Object.create(null),outgoing:Object.create(null)}}var ml=function(){function s(r){this._hashFn=r,this._nodes=Object.create(null)}return s.prototype.roots=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){Object(Et.f)(n.value.outgoing)&&r.push(n.value)}),r},s.prototype.insertEdge=function(r,n){var a=this.lookupOrInsertNode(r),y=this.lookupOrInsertNode(n);a.outgoing[this._hashFn(n)]=y,y.incoming[this._hashFn(r)]=a},s.prototype.removeNode=function(r){var n=this._hashFn(r);delete this._nodes[n],Object(Xs.c)(this._nodes,function(a){delete a.value.outgoing[n],delete a.value.incoming[n]})},s.prototype.lookupOrInsertNode=function(r){var n=this._hashFn(r),a=this._nodes[n];return a||(a=fl(r),this._nodes[n]=a),a},s.prototype.isEmpty=function(){for(var r in this._nodes)return!1;return!0},s.prototype.toString=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){r.push(n.key+", (incoming)["+Object.keys(n.value.incoming).join(", ")+"], (outgoing)["+Object.keys(n.value.outgoing).join(",")+"]")}),r.join(`
`)},s}(),gr=e("r0BQ"),pa=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ys=function(){for(var s=0,r=0,n=arguments.length;r<n;r++)s+=arguments[r].length;for(var a=Array(s),y=0,r=0;r<n;r++)for(var N=arguments[r],_e=0,ke=N.length;_e<ke;_e++,y++)a[y]=N[_e];return a},ga=!1,pl=typeof Proxy=="function",va=function(s){pa(r,s);function r(n){var a=s.call(this,"cyclic dependency between services")||this;return a.message=n.toString(),a}return r}(Error),ya=function(){function s(r,n,a){r===void 0&&(r=new _i.a),n===void 0&&(n=!1),this._services=r,this._strict=n,this._parent=a,this._services.set(Rn.a,this)}return s.prototype.createChild=function(r){return new s(r,this._strict,this)},s.prototype.invokeFunction=function(r){for(var n=this,a=[],y=1;y<arguments.length;y++)a[y-1]=arguments[y];var N=Zs.traceInvocation(r),_e=!1;try{var ke={get:function(Ge,Qe){if(_e)throw Object(Ct.c)("service accessor is only valid during the invocation of its target method");var yt=n._getOrCreateServiceInstance(Ge,N);if(!yt&&Qe!==Rn.d)throw new Error("[invokeFunction] unknown service '"+Ge+"'");return yt}};return r.apply(void 0,Ys([ke],a))}finally{_e=!0,N.stop()}},s.prototype.createInstance=function(r){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var y,N;return r instanceof gr.a?(y=Zs.traceCreation(r.ctor),N=this._createInstance(r.ctor,r.staticArguments.concat(n),y)):(y=Zs.traceCreation(r),N=this._createInstance(r,n,y)),y.stop(),N},s.prototype._createInstance=function(r,n,a){n===void 0&&(n=[]);for(var y=Rn.b.getServiceDependencies(r).sort(function(Wt,Pt){return Wt.index-Pt.index}),N=[],_e=0,ke=y;_e<ke.length;_e++){var Ge=ke[_e],Qe=this._getOrCreateServiceInstance(Ge.id,a);if(!Qe&&this._strict&&!Ge.optional)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+Ge.id+".");N.push(Qe)}var yt=y.length>0?y[0].index:n.length;if(n.length!==yt){console.warn("[createInstance] First service dependency of "+r.name+" at position "+(yt+1)+" conflicts with "+n.length+" static arguments");var It=yt-n.length;It>0?n=n.concat(new Array(It)):n=n.slice(0,yt)}return new(r.bind.apply(r,Ys([void 0],Ys(n,N))))},s.prototype._setServiceInstance=function(r,n){if(this._services.get(r)instanceof gr.a)this._services.set(r,n);else if(this._parent)this._parent._setServiceInstance(r,n);else throw new Error("illegalState - setting UNKNOWN service instance")},s.prototype._getServiceInstanceOrDescriptor=function(r){var n=this._services.get(r);return!n&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):n},s.prototype._getOrCreateServiceInstance=function(r,n){var a=this._getServiceInstanceOrDescriptor(r);return a instanceof gr.a?this._createAndCacheServiceInstance(r,a,n.branch(r,!0)):(n.branch(r,!1),a)},s.prototype._createAndCacheServiceInstance=function(r,n,a){for(var y=new ml(function(co){return co.id.toString()}),N=0,_e=[{id:r,desc:n,_trace:a}];_e.length;){var ke=_e.pop();if(y.lookupOrInsertNode(ke),N++>150)throw new va(y);for(var Ge=0,Qe=Rn.b.getServiceDependencies(ke.desc.ctor);Ge<Qe.length;Ge++){var yt=Qe[Ge],It=this._getServiceInstanceOrDescriptor(yt.id);if(!It&&!yt.optional&&console.warn("[createInstance] "+r+" depends on "+yt.id+" which is NOT registered."),It instanceof gr.a){var Wt={id:yt.id,desc:It,_trace:ke._trace.branch(yt.id,!0)};y.insertEdge(ke,Wt),_e.push(Wt)}}}for(;;){var Pt=y.roots();if(Pt.length===0){if(!y.isEmpty())throw new va(y);break}for(var ro=0,eo=Pt;ro<eo.length;ro++){var Gt=eo[ro].data,Jt=this._createServiceInstanceWithOwner(Gt.id,Gt.desc.ctor,Gt.desc.staticArguments,Gt.desc.supportsDelayedInstantiation,Gt._trace);this._setServiceInstance(Gt.id,Jt),y.removeNode(Gt)}}return this._getServiceInstanceOrDescriptor(r)},s.prototype._createServiceInstanceWithOwner=function(r,n,a,y,N){if(a===void 0&&(a=[]),this._services.get(r)instanceof gr.a)return this._createServiceInstance(n,a,y,N);if(this._parent)return this._parent._createServiceInstanceWithOwner(r,n,a,y,N);throw new Error("illegalState - creating UNKNOWN service instance "+n.name)},s.prototype._createServiceInstance=function(r,n,a,y){var N=this;if(n===void 0&&(n=[]),!a||!pl)return this._createInstance(r,n,y);var _e=new ut.b(function(){return N._createInstance(r,n,y)});return new Proxy(Object.create(null),{get:function(ke,Ge){if(Ge in ke)return ke[Ge];var Qe=_e.getValue(),yt=Qe[Ge];return typeof yt!="function"||(yt=yt.bind(Qe),ke[Ge]=yt),yt},set:function(ke,Ge,Qe){return _e.getValue()[Ge]=Qe,!0}})},s}(),Zs=function(){function s(r,n){this.type=r,this.name=n,this._start=Date.now(),this._dep=[]}return s.traceInvocation=function(r){return ga?new s(1,r.name||r.toString().substring(0,42).replace(/\n/g,"")):s._None},s.traceCreation=function(r){return ga?new s(0,r.name):s._None},s.prototype.branch=function(r,n){var a=new s(2,r.toString());return this._dep.push([r,n,a]),a},s.prototype.stop=function(){var r=Date.now()-this._start;s._totals+=r;var n=!1;function a(N,_e){for(var ke=[],Ge=new Array(N+1).join(" "),Qe=0,yt=_e._dep;Qe<yt.length;Qe++){var It=yt[Qe],Wt=It[0],Pt=It[1],ro=It[2];if(Pt&&ro){n=!0,ke.push(Ge+"CREATES -> "+Wt);var eo=a(N+1,ro);eo&&ke.push(eo)}else ke.push(Ge+"uses -> "+Wt)}return ke.join(`
`)}var y=[(this.type===0?"CREATE":"CALL")+" "+this.name,""+a(1,this),"DONE, took "+r.toFixed(2)+"ms (grand total "+s._totals.toFixed(2)+"ms)"];(r>2||n)&&console.log(y.join(`
`))},s._None=new(function(r){pa(n,r);function n(){return r.call(this,-1,null)||this}return n.prototype.stop=function(){},n.prototype.branch=function(){return this},n}(s)),s._totals=0,s}(),gl=e("R8sh"),ba=e("k9mg"),ei=e("tADe"),Oi;(function(s){function r(y,N,_e){return y[N]?y[N][_e]:void 0}s.get=r;function n(y,N,_e,ke){y[N]||(y[N]=Object.create(null)),y[N][_e]=ke}s.set=n;function a(y,N,_e){return y[N]&&y[N][_e]?(delete y[N][_e],Object(Et.f)(y[N])&&delete y[N],!0):!1}s.remove=a})(Oi||(Oi={}));var vl=function(){function s(r){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=r,this._subscription=r.onMarkerChanged(this._update,this)}return s.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},s.prototype._update=function(r){if(!this._data)return;for(var n=0,a=r;n<a.length;n++){var y=a[n],N=y.toString(),_e=this._data[N];_e&&this._substract(_e);var ke=this._resourceStats(y);this._add(ke),this._data[N]=ke}},s.prototype._resourceStats=function(r){var n={errors:0,warnings:0,infos:0,unknowns:0};if(r.scheme===Ce.b.inMemory||r.scheme===Ce.b.walkThrough||r.scheme===Ce.b.walkThroughSnippet)return n;for(var a=0,y=this._service.read({resource:r});a<y.length;a++){var N=y[a].severity;N===ei.c.Error?n.errors+=1:N===ei.c.Warning?n.warnings+=1:N===ei.c.Info?n.infos+=1:n.unknowns+=1}return n},s.prototype._substract=function(r){this.errors-=r.errors,this.warnings-=r.warnings,this.infos-=r.infos,this.unknowns-=r.unknowns},s.prototype._add=function(r){this.errors+=r.errors,this.warnings+=r.warnings,this.infos+=r.infos,this.unknowns+=r.unknowns},s}(),yl=function(){function s(){this._onMarkerChanged=new I.a,this._onMarkerChangedEvent=I.b.debounce(this._onMarkerChanged.event,s._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new vl(this)}return s.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty(s.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),s.prototype.remove=function(r,n){for(var a=0,y=n||[];a<y.length;a++){var N=y[a];this.changeOne(r,N,[])}},s.prototype.changeOne=function(r,n,a){if(Object(dt.p)(a)){var y=Oi.remove(this._byResource,n.toString(),r),N=Oi.remove(this._byOwner,r,n.toString());if(y!==N)throw new Error("invalid marker service state");y&&N&&this._onMarkerChanged.fire([n])}else{for(var _e=[],ke=0,Ge=a;ke<Ge.length;ke++){var Qe=Ge[ke],yt=s._toMarker(r,n,Qe);yt&&_e.push(yt)}Oi.set(this._byResource,n.toString(),r,_e),Oi.set(this._byOwner,r,n.toString(),_e),this._onMarkerChanged.fire([n])}},s._toMarker=function(r,n,a){var y=a.code,N=a.severity,_e=a.message,ke=a.source,Ge=a.startLineNumber,Qe=a.startColumn,yt=a.endLineNumber,It=a.endColumn,Wt=a.relatedInformation,Pt=a.tags;return _e?(Ge=Ge>0?Ge:1,Qe=Qe>0?Qe:1,yt=yt>=Ge?yt:Ge,It=It>0?It:Qe,{resource:n,owner:r,code:y,severity:N,message:_e,source:ke,startLineNumber:Ge,startColumn:Qe,endLineNumber:yt,endColumn:It,relatedInformation:Wt,tags:Pt}):void 0},s.prototype.read=function(r){r===void 0&&(r=Object.create(null));var n=r.owner,a=r.resource,y=r.severities,N=r.take;if((!N||N<0)&&(N=-1),n&&a){var _e=Oi.get(this._byResource,a.toString(),n);if(_e){for(var ke=[],Ge=0,Qe=_e;Ge<Qe.length;Ge++){var yt=Qe[Ge];if(s._accept(yt,y)){var It=ke.push(yt);if(N>0&&It===N)break}}return ke}else return[]}else if(!n&&!a){var ke=[];for(var Wt in this._byResource)for(var Pt in this._byResource[Wt])for(var ro=0,eo=this._byResource[Wt][Pt];ro<eo.length;ro++){var _e=eo[ro];if(s._accept(_e,y)){var It=ke.push(_e);if(N>0&&It===N)return ke}}return ke}else{var Gt=n?this._byOwner[n]:a?this._byResource[a.toString()]:void 0;if(!Gt)return[];var ke=[];for(var Jt in Gt)for(var co=0,So=Gt[Jt];co<So.length;co++){var _e=So[co];if(s._accept(_e,y)){var It=ke.push(_e);if(N>0&&It===N)return ke}}return ke}},s._accept=function(r,n){return n===void 0||(n&r.severity)===r.severity},s._debouncer=function(r,n){r||(s._dedupeMap=Object.create(null),r=[]);for(var a=0,y=n;a<y.length;a++){var N=y[a];s._dedupeMap[N.toString()]===void 0&&(s._dedupeMap[N.toString()]=!0,r.push(N))}return r},s}(),Ca=e("A+jI"),Ea=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},Qs=function(s,r){return function(n,a){r(n,a,s)}},bl=function(){function s(r){this._commandService=r}return s.prototype.createMenu=function(r,n){return new Cl(r,this._commandService,n)},s=Ea([Qs(0,$.b)],s),s}(),Cl=function(){function s(r,n,a){var y=this;this._id=r,this._commandService=n,this._contextKeyService=a,this._onDidChange=new I.a,this._dispoables=new Rt.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(I.b.debounce(I.b.filter(Kn.c.onDidChangeMenu,function(N){return N===y._id}),function(){},50)(this._build,this)),this._dispoables.add(I.b.debounce(this._contextKeyService.onDidChangeContext,function(N,_e){return N||_e.affectsSome(y._contextKeys)},50)(function(N){return N&&y._onDidChange.fire(void 0)},this))}return s.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},s.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var r=Kn.c.getMenuItems(this._id),n;r.sort(s._compareMenuItems);for(var a=0,y=r;a<y.length;a++){var N=y[a],_e=N.group||"";(!n||n[0]!==_e)&&(n=[_e,[]],this._menuGroups.push(n)),n[1].push(N),s._fillInKbExprKeys(N.when,this._contextKeys),Object(Kn.e)(N)&&N.command.precondition&&s._fillInKbExprKeys(N.command.precondition,this._contextKeys),Object(Kn.e)(N)&&N.command.toggled&&s._fillInKbExprKeys(N.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},s.prototype.getActions=function(r){for(var n=[],a=0,y=this._menuGroups;a<y.length;a++){for(var N=y[a],_e=N[0],ke=N[1],Ge=[],Qe=0,yt=ke;Qe<yt.length;Qe++){var It=yt[Qe];if(this._contextKeyService.contextMatchesRules(It.when)){var Wt=Object(Kn.e)(It)?new Kn.b(It.command,It.alt,r,this._contextKeyService,this._commandService):new Kn.d(It);Ge.push(Wt)}}Ge.length>0&&n.push([_e,Ge])}return n},s._fillInKbExprKeys=function(r,n){if(r)for(var a=0,y=r.keys();a<y.length;a++){var N=y[a];n.add(N)}},s._compareMenuItems=function(r,n){var a=r.group,y=n.group;if(a!==y){if(a){if(!y)return-1}else return 1;if(a==="navigation")return-1;if(y==="navigation")return 1;var N=a.localeCompare(y);if(N!==0)return N}var _e=r.order||0,ke=n.order||0;return _e<ke?-1:_e>ke?1:s._compareTitles(Object(Kn.e)(r)?r.command.title:r.title,Object(Kn.e)(n)?n.command.title:n.title)},s._compareTitles=function(r,n){var a=typeof r=="string"?r:r.value,y=typeof n=="string"?n:n.value;return a.localeCompare(y)},s=Ea([Qs(1,$.b),Qs(2,wn.c)],s),s}(),El=e("79sc"),_a=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),_l=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},wa=function(s,r){return function(n,a){r(n,a,s)}};function vr(s){return s.toString()}var wl=function(s){_a(r,s);function r(n){var a=s.call(this)||this;return a.model=n,a._markersData=new Map,a._register(Object(Rt.h)(function(){a.model.deltaDecorations(Object(Qn.d)(a._markersData),[]),a._markersData.clear()})),a}return r.prototype.update=function(n,a){var y=Object(Qn.d)(this._markersData);this._markersData.clear();for(var N=this.model.deltaDecorations(y,a),_e=0;_e<N.length;_e++)this._markersData.set(N[_e],n[_e])},r.prototype.getMarker=function(n){return this._markersData.get(n.id)},r}(Rt.a),Sl=function(s){_a(r,s);function r(n,a){var y=s.call(this)||this;return y._markerService=a,y._onDidChangeMarker=y._register(new I.a),y._markerDecorations=new Map,n.getModels().forEach(function(N){return y._onModelAdded(N)}),y._register(n.onModelAdded(y._onModelAdded,y)),y._register(n.onModelRemoved(y._onModelRemoved,y)),y._register(y._markerService.onMarkerChanged(y._handleMarkerChange,y)),y}return r.prototype.dispose=function(){s.prototype.dispose.call(this),this._markerDecorations.forEach(function(n){return n.dispose()}),this._markerDecorations.clear()},r.prototype.getMarker=function(n,a){var y=this._markerDecorations.get(vr(n.uri));return y?Object(Et.o)(y.getMarker(a)):null},r.prototype._handleMarkerChange=function(n){var a=this;n.forEach(function(y){var N=a._markerDecorations.get(vr(y));N&&a._updateDecorations(N)})},r.prototype._onModelAdded=function(n){var a=new wl(n);this._markerDecorations.set(vr(n.uri),a),this._updateDecorations(a)},r.prototype._onModelRemoved=function(n){var a=this,y=this._markerDecorations.get(vr(n.uri));y&&(y.dispose(),this._markerDecorations.delete(vr(n.uri))),(n.uri.scheme===Ce.b.inMemory||n.uri.scheme===Ce.b.internal||n.uri.scheme===Ce.b.vscode)&&(this._markerService&&this._markerService.read({resource:n.uri}).map(function(N){return N.owner}).forEach(function(N){return a._markerService.remove(N,[n.uri])}))},r.prototype._updateDecorations=function(n){var a=this,y=this._markerService.read({resource:n.model.uri,take:500}),N=y.map(function(_e){return{range:a._createDecorationRange(n.model,_e),options:a._createDecorationOption(_e)}});n.update(y,N),this._onDidChangeMarker.fire(n.model)},r.prototype._createDecorationRange=function(n,a){var y=U.a.lift(a);if(a.severity===ei.c.Hint&&!this._hasMarkerTag(a,1)&&!this._hasMarkerTag(a,2)&&(y=y.setEndPosition(y.startLineNumber,y.startColumn+2)),y=n.validateRange(y),y.isEmpty()){var N=n.getWordAtPosition(y.getStartPosition());if(N)y=new U.a(y.startLineNumber,N.startColumn,y.endLineNumber,N.endColumn);else{var _e=n.getLineLastNonWhitespaceColumn(y.startLineNumber)||n.getLineMaxColumn(y.startLineNumber);_e===1||(y.endColumn>=_e?y=new U.a(y.startLineNumber,_e-1,y.endLineNumber,_e):y=new U.a(y.startLineNumber,y.startColumn,y.endLineNumber,y.endColumn+1))}}else if(a.endColumn===Number.MAX_VALUE&&a.startColumn===1&&y.startLineNumber===y.endLineNumber){var ke=n.getLineFirstNonWhitespaceColumn(a.startLineNumber);ke<y.endColumn&&(y=new U.a(y.startLineNumber,ke,y.endLineNumber,y.endColumn),a.startColumn=ke)}return y},r.prototype._createDecorationOption=function(n){var a,y=void 0,N,_e=void 0,ke;switch(n.severity){case ei.c.Hint:this._hasMarkerTag(n,2)?a=void 0:this._hasMarkerTag(n,1)?a="squiggly-unnecessary":a="squiggly-hint",N=0;break;case ei.c.Warning:a="squiggly-warning",y=Object(Ln.f)(Vn.r),N=20,ke={color:Object(Ln.f)(gn.Jb),position:pt.c.Inline};break;case ei.c.Info:a="squiggly-info",y=Object(Ln.f)(Vn.q),N=10;break;case ei.c.Error:default:a="squiggly-error",y=Object(Ln.f)(Vn.p),N=30,ke={color:Object(Ln.f)(gn.Gb),position:pt.c.Inline};break}return n.tags&&(n.tags.indexOf(1)!==-1&&(_e="squiggly-inline-unnecessary"),n.tags.indexOf(2)!==-1&&(_e="squiggly-inline-deprecated")),{stickiness:1,className:a,showIfCollapsed:!0,overviewRuler:{color:y,position:pt.d.Right},minimap:ke,zIndex:N,inlineClassName:_e}},r.prototype._hasMarkerTag=function(n,a){return n.tags?n.tags.indexOf(a)>=0:!1},r=_l([wa(0,xe.a),wa(1,ei.b)],r),r}(Rt.a),Ll=e("9fML"),Ml=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ol=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},Sa=function(s,r){return function(n,a){r(n,a,s)}},Dl=function(s){Ml(r,s);function r(n,a){var y=s.call(this)||this;y._contextKeyService=n,y._configurationService=a,y._accessibilitySupport=0,y._onDidChangeScreenReaderOptimized=new I.a,y._accessibilityModeEnabledContext=mi.a.bindTo(y._contextKeyService);var N=function(){return y._accessibilityModeEnabledContext.set(y.isScreenReaderOptimized())};return y._register(y._configurationService.onDidChangeConfiguration(function(_e){_e.affectsConfiguration("editor.accessibilitySupport")&&(N(),y._onDidChangeScreenReaderOptimized.fire())})),N(),y.onDidChangeScreenReaderOptimized(function(){return N()}),y}return Object.defineProperty(r.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),r.prototype.isScreenReaderOptimized=function(){var n=this._configurationService.getValue("editor.accessibilitySupport");return n==="on"||n==="auto"&&this._accessibilitySupport===2},r.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},r=Ol([Sa(0,wn.c),Sa(1,Dn.a)],r),r}(Rt.a),Tl=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),nn;(function(s){var r=new _i.a,n=function(){function ke(Ge,Qe){this._serviceId=Ge,this._factory=Qe,this._value=null}return Object.defineProperty(ke.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),ke.prototype.get=function(Ge){if(!this._value){if(Ge&&(this._value=Ge[this._serviceId.toString()]),this._value||(this._value=this._factory(Ge)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");r.set(this._serviceId,this._value)}return this._value},ke}();s.LazyStaticService=n;var a=[];function y(ke,Ge){var Qe=new n(ke,Ge);return a.push(Qe),Qe}function N(ke){for(var Ge=new _i.a,Qe=0,yt=Object(Ll.a)();Qe<yt.length;Qe++){var It=yt[Qe],Wt=It[0],Pt=It[1];Ge.set(Wt,Pt)}for(var ro in ke)ke.hasOwnProperty(ro)&&Ge.set(Object(Rn.c)(ro),ke[ro]);a.forEach(function(Gt){return Ge.set(Gt.id,Gt.get(ke))});var eo=new ya(Ge,!0);return Ge.set(Rn.a,eo),[Ge,eo]}s.init=N,s.instantiationService=y(Rn.a,function(){return new ya(r,!0)});var _e=new Or;s.configurationService=y(Dn.a,function(){return _e}),s.resourceConfigurationService=y(Ie.a,function(){return new us(_e)}),s.resourcePropertiesService=y(Ie.b,function(){return new hs(_e)}),s.contextService=y(Sr.a,function(){return new ms}),s.labelService=y(gl.a,function(){return new Dr}),s.telemetryService=y(Gs.a,function(){return new fs}),s.dialogService=y(hl,function(){return new ls}),s.notificationService=y(Hn.a,function(){return new ds}),s.markerService=y(ei.b,function(){return new yl}),s.modeService=y(Ps.a,function(ke){return new Bs}),s.standaloneThemeService=y(Si.a,function(){return new Ha}),s.logService=y(lt.a,function(){return new lt.c}),s.modelService=y(xe.a,function(ke){return new t(s.configurationService.get(ke),s.resourcePropertiesService.get(ke),s.standaloneThemeService.get(ke),s.logService.get(ke))}),s.markerDecorationsService=y(El.a,function(ke){return new Sl(s.modelService.get(ke),s.markerService.get(ke))}),s.codeEditorService=y(de.a,function(ke){return new Mo(s.standaloneThemeService.get(ke))}),s.editorProgressService=y(Ii.a,function(){return new ra}),s.storageService=y(Ca.a,function(){return new Ca.b}),s.editorWorkerService=y(it.a,function(ke){return new He(s.modelService.get(ke),s.resourceConfigurationService.get(ke),s.logService.get(ke))})})(nn||(nn={}));var xl=function(s){Tl(r,s);function r(n,a){var y=s.call(this)||this,N=nn.init(a),_e=N[0],ke=N[1];y._serviceCollection=_e,y._instantiationService=ke;var Ge=y.get(Dn.a),Qe=y.get(Hn.a),yt=y.get(Gs.a),It=y.get(Ln.c),Wt=function(co,So){var xo=null;return a&&(xo=a[co.toString()]),xo||(xo=So()),y._serviceCollection.set(co,xo),xo},Pt=Wt(wn.c,function(){return y._register(new Ya(Ge))});Wt(mi.b,function(){return new Dl(Pt,Ge)}),Wt(ba.a,function(){return new ba.b(It)});var ro=Wt($.b,function(){return new cs(y._instantiationService)}),eo=Wt(ni.a,function(){return y._register(new Lr(Pt,ro,yt,Qe,n))}),Gt=Wt(ma,function(){return new Tr(n)}),Jt=Wt(Xn.b,function(){return y._register(new ul(Gt))});return Wt(Xn.a,function(){var co=new nl(yt,Qe,Jt,eo,It);return co.configure({blockMouse:!1}),y._register(co)}),Wt(Kn.a,function(){return new bl(ro)}),Wt(js.a,function(){return new sa(nn.modelService.get(xe.a))}),y}return r.prototype.get=function(n){var a=this._serviceCollection.get(n);if(!a)throw new Error("Missing service "+n);return a},r.prototype.set=function(n,a){this._serviceCollection.set(n,a)},r.prototype.has=function(n){return this._serviceCollection.has(n)},r}(Rt.a);function La(s,r,n){var a=new xl(s,r),y=null;a.has(et.a)||(y=new as(nn.modelService.get()),a.set(et.a,y)),a.has(S.a)||a.set(S.a,new nt(a.get(de.a),a.get($.b)));var N=n(a);return y&&y.setEditor(N),N}function Al(s,r,n){return La(s,n||{},function(a){return new lr(s,r,a,a.get(Rn.a),a.get(de.a),a.get($.b),a.get(wn.c),a.get(ni.a),a.get(Xn.b),a.get(Si.a),a.get(Hn.a),a.get(Dn.a),a.get(mi.b))})}function Rl(s){return nn.codeEditorService.get().onCodeEditorAdd(function(r){s(r)})}function Il(s,r,n){return La(s,n||{},function(a){return new Ns(s,r,a,a.get(Rn.a),a.get(wn.c),a.get(ni.a),a.get(Xn.b),a.get(it.a),a.get(de.a),a.get(Si.a),a.get(Hn.a),a.get(Dn.a),a.get(Xn.a),a.get(Ii.a),null)})}function Nl(s,r){return new lo(s,r)}function Ma(s,r,n){return nn.modelService.get().createModel(s,r,n)}function jl(s,r,n){if(s=s||"",!r){var a=s.indexOf(`
`),y=s;return a!==-1&&(y=s.substring(0,a)),Ma(s,nn.modeService.get().createByFilepathOrFirstLine(n||null,y),n)}return Ma(s,nn.modeService.get().create(r),n)}function Pl(s,r){nn.modelService.get().setMode(s,nn.modeService.get().create(r))}function kl(s,r,n){s&&nn.markerService.get().changeOne(r,s.uri,n)}function Fl(s){return nn.markerService.get().read(s)}function Wl(s){return nn.modelService.get().getModel(s)}function Bl(){return nn.modelService.get().getModels()}function Ul(s){return nn.modelService.get().onModelAdded(s)}function Hl(s){return nn.modelService.get().onModelRemoved(s)}function Vl(s){return nn.modelService.get().onModelModeChanged(function(r){s({model:r.model,oldLanguage:r.oldModeId})})}function zl(s){return Ze(nn.modelService.get(),s)}function Kl(s,r){return zi.colorizeElement(nn.standaloneThemeService.get(),nn.modeService.get(),s,r)}function Gl(s,r,n){return zi.colorize(nn.modeService.get(),s,r,n)}function Xl(s,r,n){return n===void 0&&(n=4),zi.colorizeModelLine(s,r,n)}function Yl(s){var r=gt.B.get(s);return r||{getInitialState:function(){return Tt.c},tokenize:function(n,a,y){return Object(Tt.d)(s,n,a,y)}}}function Zl(s,r){var n=nn.modeService.get();n.triggerMode(r);for(var a=Yl(r),y=s.split(/\r\n|\r|\n/),N=[],_e=a.getInitialState(),ke=0,Ge=y.length;ke<Ge;ke++){var Qe=y[ke],yt=a.tokenize(Qe,_e,0);N[ke]=yt.tokens,_e=yt.endState}return N}function Ql(s,r){nn.standaloneThemeService.get().defineTheme(s,r)}function $l(s){nn.standaloneThemeService.get().setTheme(s)}function Jl(){Object(Ti.b)()}function ql(){return{create:Al,onDidCreateEditor:Rl,createDiffEditor:Il,createDiffNavigator:Nl,createModel:jl,setModelLanguage:Pl,setModelMarkers:kl,getModelMarkers:Fl,getModels:Bl,getModel:Wl,onDidCreateModel:Ul,onWillDisposeModel:Hl,onDidChangeModelLanguage:Vl,createWebWorker:zl,colorizeElement:Kl,colorize:Gl,colorizeModelLine:Xl,tokenize:Zl,defineTheme:Ql,setTheme:$l,remeasureFonts:Jl,AccessibilitySupport:b,ContentWidgetPositionPreference:v,CursorChangeReason:p,DefaultEndOfLine:d,EditorAutoIndentStrategy:u,EditorOption:f,EndOfLinePreference:E,EndOfLineSequence:L,MinimapPosition:V,MouseTargetType:W,OverlayWidgetPositionPreference:B,OverviewRulerLane:ae,RenderLineNumbersType:we,RenderMinimap:Me,ScrollbarVisibility:Be,ScrollType:Pe,TextEditorCursorBlinkingStyle:ne,TextEditorCursorStyle:q,TrackedRangeStickiness:le,WrappingIndent:Z,ConfigurationChangedEvent:T.a,BareFontInfo:so.a,FontInfo:so.b,TextModelResolvedOptions:pt.e,FindMatch:pt.b,EditorType:jt.a,EditorOptions:T.e}}function ed(s,r){if(!r)return!1;if(!Array.isArray(r))return!1;for(var n=0,a=r;n<a.length;n++){var y=a[n];if(!s(y))return!1}return!0}function Oa(s,r){return typeof s=="boolean"?s:r}function Da(s,r){return typeof s=="string"?s:r}function td(s){for(var r={},n=0,a=s;n<a.length;n++){var y=a[n];r[y]=!0}return r}function Ta(s,r){r===void 0&&(r=!1),r&&(s=s.map(function(a){return a.toLowerCase()}));var n=td(s);return r?function(a){return n[a.toLowerCase()]!==void 0&&n.hasOwnProperty(a.toLowerCase())}:function(a){return n[a]!==void 0&&n.hasOwnProperty(a)}}function $s(s,r){for(var n=0;r.indexOf("@")>=0&&n<5;)n++,r=r.replace(/@(\w+)/g,function(a,y){var N="";if(typeof s[y]=="string")N=s[y];else if(s[y]&&s[y]instanceof RegExp)N=s[y].source;else throw s[y]===void 0?Do(s,"language definition does not contain attribute '"+y+"', used at: "+r):Do(s,"attribute reference '"+y+"' must be a string, used at: "+r);return To(N)?"":"(?:"+N+")"});return new RegExp(r,s.ignoreCase?"i":"")}function od(s,r,n,a){if(a<0)return s;if(a<r.length)return r[a];if(a>=100){a=a-100;var y=n.split(".");if(y.unshift(n),a<y.length)return y[a]}return null}function nd(s,r,n,a){var y=-1,N=n,_e=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);_e&&(_e[3]&&(y=parseInt(_e[3]),_e[2]&&(y=y+100)),N=_e[4]);var ke="~",Ge=N;!N||N.length===0?(ke="!=",Ge=""):/^\w*$/.test(Ge)?ke="==":(_e=N.match(/^(@|!@|~|!~|==|!=)(.*)$/),_e&&(ke=_e[1],Ge=_e[2]));var Qe;if((ke==="~"||ke==="!~")&&/^(\w|\|)*$/.test(Ge)){var yt=Ta(Ge.split("|"),s.ignoreCase);Qe=function(Gt){return ke==="~"?yt(Gt):!yt(Gt)}}else if(ke==="@"||ke==="!@"){var It=s[Ge];if(!It)throw Do(s,"the @ match target '"+Ge+"' is not defined, in rule: "+r);if(!ed(function(Gt){return typeof Gt=="string"},It))throw Do(s,"the @ match target '"+Ge+"' must be an array of strings, in rule: "+r);var Wt=Ta(It,s.ignoreCase);Qe=function(Gt){return ke==="@"?Wt(Gt):!Wt(Gt)}}else if(ke==="~"||ke==="!~")if(Ge.indexOf("$")<0){var Pt=$s(s,"^"+Ge+"$");Qe=function(Gt){return ke==="~"?Pt.test(Gt):!Pt.test(Gt)}}else Qe=function(Gt,Jt,co,So){var xo=$s(s,"^"+Lo(s,Ge,Jt,co,So)+"$");return xo.test(Gt)};else if(Ge.indexOf("$")<0){var ro=_o(s,Ge);Qe=function(Gt){return ke==="=="?Gt===ro:Gt!==ro}}else{var eo=_o(s,Ge);Qe=function(Gt,Jt,co,So,xo){var Po=Lo(s,eo,Jt,co,So);return ke==="=="?Gt===Po:Gt!==Po}}return y===-1?{name:n,value:a,test:function(Gt,Jt,co,So){return Qe(Gt,Gt,Jt,co,So)}}:{name:n,value:a,test:function(Gt,Jt,co,So){var xo=od(Gt,Jt,co,y);return Qe(xo||"",Gt,Jt,co,So)}}}function Js(s,r,n){if(n){if(typeof n=="string")return n;if(n.token||n.token===""){if(typeof n.token!="string")throw Do(s,"a 'token' attribute must be of type string, in rule: "+r);var a={token:n.token};if(n.token.indexOf("$")>=0&&(a.tokenSubst=!0),typeof n.bracket=="string")if(n.bracket==="@open")a.bracket=1;else if(n.bracket==="@close")a.bracket=-1;else throw Do(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(n.next){if(typeof n.next!="string")throw Do(s,"the next state must be a string value in rule: "+r);var y=n.next;if(!/^(@pop|@push|@popall)$/.test(y)&&(y[0]==="@"&&(y=y.substr(1)),y.indexOf("$")<0&&!hn(s,Lo(s,y,"",[],""))))throw Do(s,"the next state '"+n.next+"' is not defined in rule: "+r);a.next=y}return typeof n.goBack=="number"&&(a.goBack=n.goBack),typeof n.switchTo=="string"&&(a.switchTo=n.switchTo),typeof n.log=="string"&&(a.log=n.log),typeof n.nextEmbedded=="string"&&(a.nextEmbedded=n.nextEmbedded,s.usesEmbedded=!0),a}else if(Array.isArray(n)){for(var N=[],_e=0,ke=n.length;_e<ke;_e++)N[_e]=Js(s,r,n[_e]);return{group:N}}else if(n.cases){var Ge=[];for(var Qe in n.cases)if(n.cases.hasOwnProperty(Qe)){var yt=Js(s,r,n.cases[Qe]);Qe==="@default"||Qe==="@"||Qe===""?Ge.push({test:void 0,value:yt,name:Qe}):Qe==="@eos"?Ge.push({test:function(Wt,Pt,ro,eo){return eo},value:yt,name:Qe}):Ge.push(nd(s,r,Qe,yt))}var It=s.defaultToken;return{test:function(Wt,Pt,ro,eo){for(var Gt=0,Jt=Ge;Gt<Jt.length;Gt++){var co=Jt[Gt],So=!co.test||co.test(Wt,Pt,ro,eo);if(So)return co.value}return It}}}else throw Do(s,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+r)}else return{token:""}}var id=function(){function s(r){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=r}return s.prototype.setRegex=function(r,n){var a;if(typeof n=="string")a=n;else if(n instanceof RegExp)a=n.source;else throw Do(r,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=a.length>0&&a[0]==="^",this.name=this.name+": "+a,this.regex=$s(r,"^(?:"+(this.matchOnlyAtLineStart?a.substr(1):a)+")")},s.prototype.setAction=function(r,n){this.action=Js(r,this.name,n)},s}();function rd(s,r){if(!r||typeof r!="object")throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=s,n.noThrow=!1,n.maxStack=100,n.start=typeof r.start=="string"?r.start:null,n.ignoreCase=Oa(r.ignoreCase,!1),n.tokenPostfix=Da(r.tokenPostfix,"."+n.languageId),n.defaultToken=Da(r.defaultToken,"source"),n.usesEmbedded=!1;var a=r;a.languageId=s,a.ignoreCase=n.ignoreCase,a.noThrow=n.noThrow,a.usesEmbedded=n.usesEmbedded,a.stateNames=r.tokenizer,a.defaultToken=n.defaultToken;function y(Wt,Pt,ro){for(var eo=0,Gt=ro;eo<Gt.length;eo++){var Jt=Gt[eo],co=Jt.include;if(co){if(typeof co!="string")throw Do(n,"an 'include' attribute must be a string at: "+Wt);if(co[0]==="@"&&(co=co.substr(1)),!r.tokenizer[co])throw Do(n,"include target '"+co+"' is not defined at: "+Wt);y(Wt+"."+co,Pt,r.tokenizer[co])}else{var So=new id(Wt);if(Array.isArray(Jt)&&Jt.length>=1&&Jt.length<=3)if(So.setRegex(a,Jt[0]),Jt.length>=3)if(typeof Jt[1]=="string")So.setAction(a,{token:Jt[1],next:Jt[2]});else if(typeof Jt[1]=="object"){var xo=Jt[1];xo.next=Jt[2],So.setAction(a,xo)}else throw Do(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+Wt);else So.setAction(a,Jt[1]);else{if(!Jt.regex)throw Do(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Wt);Jt.name&&(typeof Jt.name=="string"&&(So.name=Jt.name)),Jt.matchOnlyAtStart&&(So.matchOnlyAtLineStart=Oa(Jt.matchOnlyAtLineStart,!1)),So.setRegex(a,Jt.regex),So.setAction(a,Jt.action)}Pt.push(So)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw Do(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(var N in r.tokenizer)if(r.tokenizer.hasOwnProperty(N)){n.start||(n.start=N);var _e=r.tokenizer[N];n.tokenizer[N]=new Array,y("tokenizer."+N,n.tokenizer[N],_e)}if(n.usesEmbedded=a.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw Do(n,"the 'brackets' attribute must be defined as an array")}else r.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var ke=[],Ge=0,Qe=r.brackets;Ge<Qe.length;Ge++){var yt=Qe[Ge],It=yt;if(It&&Array.isArray(It)&&It.length===3&&(It={token:It[2],open:It[0],close:It[1]}),It.open===It.close)throw Do(n,"open and close brackets in a 'brackets' attribute must be different: "+It.open+`
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof It.open=="string"&&typeof It.token=="string"&&typeof It.close=="string")ke.push({token:It.token+n.tokenPostfix,open:_o(n,It.open),close:_o(n,It.close)});else throw Do(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return n.brackets=ke,n.noThrow=!0,n}function sd(s){gi.a.registerLanguage(s)}function ad(){var s=[];return s=s.concat(gi.a.getLanguages()),s}function ld(s){var r=nn.modeService.get().getLanguageIdentifier(s);return r?r.id:0}function dd(s,r){var n=nn.modeService.get().onDidCreateMode(function(a){a.getId()===s&&(n.dispose(),r())});return n}function cd(s,r){var n=nn.modeService.get().getLanguageIdentifier(s);if(!n)throw new Error("Cannot set configuration for unknown language "+s);return je.a.register(n,r)}var ud=function(){function s(r){this._actual=r}return s.prototype.getInitialState=function(){return this._actual.getInitialState()},s.prototype.tokenize=function(r,n,a){throw new Error("Not supported!")},s.prototype.tokenize2=function(r,n){var a=this._actual.tokenizeEncoded(r,n);return new h.c(a.tokens,a.endState)},s}(),hd=function(){function s(r,n,a){this._standaloneThemeService=r,this._languageIdentifier=n,this._actual=a}return s.prototype.getInitialState=function(){return this._actual.getInitialState()},s.prototype._toClassicTokens=function(r,n,a){for(var y=[],N=0,_e=0,ke=r.length;_e<ke;_e++){var Ge=r[_e],Qe=Ge.startIndex;_e===0?Qe=0:Qe<N&&(Qe=N),y[_e]=new h.a(Qe+a,Ge.scopes,n),N=Qe}return y},s.prototype.tokenize=function(r,n,a){var y=this._actual.tokenize(r,n),N=this._toClassicTokens(y.tokens,this._languageIdentifier.language,a),_e;return y.endState.equals(n)?_e=n:_e=y.endState,new h.b(N,_e)},s.prototype._toBinaryTokens=function(r,n){for(var a=this._languageIdentifier.id,y=this._standaloneThemeService.getTheme().tokenTheme,N=[],_e=0,ke=0,Ge=0,Qe=r.length;Ge<Qe;Ge++){var yt=r[Ge],It=y.match(a,yt.scopes);if(_e>0&&N[_e-1]===It)continue;var Wt=yt.startIndex;Ge===0?Wt=0:Wt<ke&&(Wt=ke),N[_e++]=Wt+n,N[_e++]=It,ke=Wt}for(var Pt=new Uint32Array(_e),Ge=0;Ge<_e;Ge++)Pt[Ge]=N[Ge];return Pt},s.prototype.tokenize2=function(r,n,a){var y=this._actual.tokenize(r,n),N=this._toBinaryTokens(y.tokens,a),_e;return y.endState.equals(n)?_e=n:_e=y.endState,new h.c(N,_e)},s}();function fd(s){return"tokenizeEncoded"in s}function xa(s){return s&&typeof s.then=="function"}function md(s,r){var n=nn.modeService.get().getLanguageIdentifier(s);if(!n)throw new Error("Cannot set tokens provider for unknown language "+s);var a=function(y){return fd(y)?new ud(y):new hd(nn.standaloneThemeService.get(),n,y)};return xa(r)?gt.B.registerPromise(s,r.then(function(y){return a(y)})):gt.B.register(s,a(r))}function pd(s,r){var n=function(a){return oa(nn.modeService.get(),nn.standaloneThemeService.get(),s,rd(s,a))};return xa(r)?gt.B.registerPromise(s,r.then(function(a){return n(a)})):gt.B.register(s,n(r))}function gd(s,r){return gt.u.register(s,r)}function vd(s,r){return gt.v.register(s,r)}function yd(s,r){return gt.x.register(s,r)}function bd(s,r){return gt.p.register(s,{provideHover:function(n,a,y){var N=n.getWordAtPosition(a);return Promise.resolve(r.provideHover(n,a,y)).then(function(_e){return _e?(!_e.range&&N&&(_e.range=new U.a(a.lineNumber,N.startColumn,a.lineNumber,N.endColumn)),_e.range||(_e.range=new U.a(a.lineNumber,a.column,a.lineNumber,a.column)),_e):void 0})}})}function Cd(s,r){return gt.m.register(s,r)}function Ed(s,r){return gt.i.register(s,r)}function _d(s,r){return gt.f.register(s,r)}function wd(s,r){return gt.q.register(s,r)}function Sd(s,r){return gt.C.register(s,r)}function Ld(s,r){return gt.b.register(s,r)}function Md(s,r){return gt.a.register(s,{provideCodeActions:function(n,a,y,N){var _e=nn.markerService.get().read({resource:n.uri}).filter(function(ke){return U.a.areIntersectingOrTouching(ke,a)});return r.provideCodeActions(n,a,{markers:_e,only:y.only},N)}})}function Od(s,r){return gt.g.register(s,r)}function Dd(s,r){return gt.j.register(s,r)}function Td(s,r){return gt.t.register(s,r)}function xd(s,r){return gt.s.register(s,r)}function Ad(s,r){return gt.d.register(s,r)}function Rd(s,r){return gt.c.register(s,r)}function Id(s,r){return gt.o.register(s,r)}function Nd(s,r){return gt.e.register(s,r)}function jd(s,r){return gt.w.register(s,r)}function Pd(s,r){return gt.l.register(s,r)}function kd(s,r){return gt.k.register(s,r)}function Fd(){return{register:sd,getLanguages:ad,onLanguage:dd,getEncodedLanguageId:ld,setLanguageConfiguration:cd,setTokensProvider:md,setMonarchTokensProvider:pd,registerReferenceProvider:gd,registerRenameProvider:vd,registerCompletionItemProvider:Ad,registerSignatureHelpProvider:yd,registerHoverProvider:bd,registerDocumentSymbolProvider:Cd,registerDocumentHighlightProvider:Ed,registerDefinitionProvider:_d,registerImplementationProvider:wd,registerTypeDefinitionProvider:Sd,registerCodeLensProvider:Ld,registerCodeActionProvider:Md,registerDocumentFormattingEditProvider:Od,registerDocumentRangeFormattingEditProvider:Dd,registerOnTypeFormattingEditProvider:Td,registerLinkProvider:xd,registerColorProvider:Rd,registerFoldingRangeProvider:Id,registerDeclarationProvider:Nd,registerSelectionRangeProvider:jd,registerDocumentSemanticTokensProvider:Pd,registerDocumentRangeSemanticTokensProvider:kd,DocumentHighlightKind:c,CompletionItemKind:m,CompletionItemTag:C,CompletionItemInsertTextRule:O,SymbolKind:re,SymbolTag:ee,IndentAction:R,CompletionTriggerKind:w,SignatureHelpTriggerKind:Fe,FoldingRangeKind:gt.n}}var Xr=self;T.e.wrappingIndent.defaultValue=0,T.e.glyphMargin.defaultValue=!1,T.e.autoIndent.defaultValue=3,T.e.overviewRulerLanes.defaultValue=2;var jn=Ne();jn.editor=ql(),jn.languages=Fd();var Wd=jn.CancellationTokenSource,Bd=jn.Emitter,Ud=jn.KeyCode,Hd=jn.KeyMod,Vd=jn.Position,zd=jn.Range,Kd=jn.Selection,Gd=jn.SelectionDirection,Xd=jn.MarkerSeverity,Yd=jn.MarkerTag,Zd=jn.Uri,Qd=jn.Token,$d=jn.editor,Jd=jn.languages;Xr.monaco=jn,typeof Xr.require!="undefined"&&typeof Xr.require.config=="function"&&Xr.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},"9B1q":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return e.e(300).then(e.bind(null,"v7Iz"))}})},"9XAT":function(Mt,F,e){"use strict";e.r(F),e.d(F,"LanguageServiceDefaultsImpl",function(){return I});var T=e("M/lh"),pe=e.n(T);"use strict";var J=monaco.Emitter,I=function(){function O(m,C,w){this._onDidChange=new J,this._languageId=m,this.setDiagnosticsOptions(C),this.setModeConfiguration(w)}return Object.defineProperty(O.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),O.prototype.setDiagnosticsOptions=function(m){this._diagnosticsOptions=m||Object.create(null),this._onDidChange.fire(this)},O.prototype.setModeConfiguration=function(m){this._modeConfiguration=m||Object.create(null),this._onDidChange.fire(this)},O}(),H={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"}},K={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},D=new I("css",H,K),U=new I("scss",H,K),j=new I("less",H,K);function h(){return{cssDefaults:D,lessDefaults:j,scssDefaults:U}}monaco.languages.css=h();function b(){return e.e(288).then(e.bind(null,"20/g"))}monaco.languages.onLanguage("less",function(){b().then(function(O){return O.setupMode(j)})}),monaco.languages.onLanguage("scss",function(){b().then(function(O){return O.setupMode(U)})}),monaco.languages.onLanguage("css",function(){b().then(function(O){return O.setupMode(D)})})},"9XeP":function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("Cg/j"),pe=Object(T.c)("clipboardService")},"9Y+e":function(Mt,F,e){"use strict";e.d(F,"a",function(){return T});var T=function(){function pe(J,I,H,K,D,U){this.id=J,this.label=I,this.alias=H,this._precondition=K,this._run=D,this._contextKeyService=U}return pe.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},pe.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var J=this._run();return J||Promise.resolve(void 0)},pe}()},"9fML":function(Mt,F,e){"use strict";e.d(F,"b",function(){return J}),e.d(F,"a",function(){return I});var T=e("r0BQ"),pe=[];function J(H,K,D){pe.push([H,new T.a(K,[],D)])}function I(){return pe}},"9o5J":function(Mt,F,e){"use strict";e.d(F,"b",function(){return U}),e.d(F,"a",function(){return h}),e.d(F,"c",function(){return b});var T=e("3/fG"),pe=e("MI8n"),J=e("gslv"),I=e("pmY6"),H=e("N0LK"),K=e("nD70"),D=e("aokT"),U=function(){function O(m,C,w,v){this.isProviderFirst=m,this.parent=C,this._range=w,this._rangeCallback=v,this.id=K.b.nextId()}return Object.defineProperty(O.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"range",{get:function(){return this._range},set:function(m){this._range=m,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"ariaMessage",{get:function(){return Object(T.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(J.b)(this.uri),this.range.startLineNumber,this.range.startColumn)},enumerable:!0,configurable:!0}),O}(),j=function(){function O(m){this._modelReference=m}return O.prototype.dispose=function(){this._modelReference.dispose()},O.prototype.preview=function(m,C){C===void 0&&(C=8);var w=this._modelReference.object.textEditorModel;if(!w)return;var v=m.startLineNumber,p=m.startColumn,d=m.endLineNumber,c=m.endColumn,u=w.getWordUntilPosition({lineNumber:v,column:p-C}),f=new D.a(v,u.startColumn,v,p),E=new D.a(d,c,d,1073741824),L=w.getValueInRange(f).replace(/^\s+/,""),R=w.getValueInRange(m),P=w.getValueInRange(E).replace(/\s+$/,"");return{value:L+R+P,highlight:{start:L.length,end:L.length+R.length}}},O}(),h=function(){function O(m,C){this.parent=m,this.uri=C,this.children=[]}return O.prototype.dispose=function(){Object(I.f)(this._preview),this._preview=void 0},Object.defineProperty(O.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"ariaMessage",{get:function(){var m=this.children.length;return m===1?Object(T.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(J.b)(this.uri),this.uri.fsPath):Object(T.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",m,Object(J.b)(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),O.prototype.resolve=function(m){var C=this;return this._resolved?Promise.resolve(this):Promise.resolve(m.createModelReference(this.uri).then(function(w){var v=w.object;if(!v)throw w.dispose(),new Error;return C._preview=new j(w),C._resolved=!0,C},function(w){return C.children.length=0,C._resolved=!0,C._loadFailure=w,C}))},O}(),b=function(){function O(m,C){var w=this;this._disposables=new I.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new pe.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=m,this._title=C;var v=m[0];m.sort(O._compareReferences);for(var p,d=0,c=m;d<c.length;d++){var u=c[d];if((!p||p.uri.toString()!==u.uri.toString())&&(p=new h(this,u.uri),this.groups.push(p)),p.children.length===0||!D.a.equalsRange(u.range,p.children[p.children.length-1].range)){var f=new U(v===u,p,u.targetSelectionRange||u.range,function(E){return w._onDidChangeReferenceRange.fire(E)});this.references.push(f),p.children.push(f)}}}return O.prototype.dispose=function(){Object(I.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},O.prototype.clone=function(){return new O(this._links,this._title)},Object.defineProperty(O.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"isEmpty",{get:function(){return this.groups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"ariaMessage",{get:function(){return this.isEmpty?Object(T.a)("aria.result.0","No results found"):this.references.length===1?Object(T.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?Object(T.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(T.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},enumerable:!0,configurable:!0}),O.prototype.nextOrPreviousReference=function(m,C){var w=m.parent,v=w.children.indexOf(m),p=w.children.length,d=w.parent.groups.length;return d===1||C&&v+1<p||!C&&v>0?(C?v=(v+1)%p:v=(v+p-1)%p,w.children[v]):(v=w.parent.groups.indexOf(w),C?(v=(v+1)%d,w.parent.groups[v].children[0]):(v=(v+d-1)%d,w.parent.groups[v].children[w.parent.groups[v].children.length-1]))},O.prototype.nearestReference=function(m,C){var w=this.references.map(function(v,p){return{idx:p,prefixLen:H.c(v.uri.toString(),m.toString()),offsetDist:Math.abs(v.range.startLineNumber-C.lineNumber)*100+Math.abs(v.range.startColumn-C.column)}}).sort(function(v,p){return v.prefixLen>p.prefixLen?-1:v.prefixLen<p.prefixLen?1:v.offsetDist<p.offsetDist?-1:v.offsetDist>p.offsetDist?1:0})[0];return w?this.references[w.idx]:void 0},O.prototype.referenceAt=function(m,C){for(var w=0,v=this.references;w<v.length;w++){var p=v[w];if(p.uri.toString()===m.toString()&&D.a.containsPosition(p.range,C))return p}return},O.prototype.firstReference=function(){for(var m=0,C=this.references;m<C.length;m++){var w=C[m];if(w.isProviderFirst)return w}return this.references[0]},O._compareReferences=function(m,C){return H.e(m.uri.toString(),C.uri.toString())||D.a.compareRangesUsingStarts(m.range,C.range)},O}()},"A+jI":function(Mt,F,e){"use strict";e.d(F,"a",function(){return K}),e.d(F,"c",function(){return D}),e.d(F,"b",function(){return U});var T=e("Cg/j"),pe=e("MI8n"),J=e("pmY6"),I=e("746U"),H=function(){var j=function(h,b){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,m){O.__proto__=m}||function(O,m){for(var C in m)m.hasOwnProperty(C)&&(O[C]=m[C])},j(h,b)};return function(h,b){j(h,b);function O(){this.constructor=h}h.prototype=b===null?Object.create(b):(O.prototype=b.prototype,new O)}}(),K=Object(T.c)("storageService"),D;(function(j){j[j.NONE=0]="NONE",j[j.SHUTDOWN=1]="SHUTDOWN"})(D||(D={}));var U=function(j){H(h,j);function h(){var b=j!==null&&j.apply(this,arguments)||this;return b._onDidChangeStorage=b._register(new pe.a),b.onDidChangeStorage=b._onDidChangeStorage.event,b._onWillSaveState=b._register(new pe.a),b.onWillSaveState=b._onWillSaveState.event,b.globalCache=new Map,b.workspaceCache=new Map,b}return h.prototype.getCache=function(b){return b===0?this.globalCache:this.workspaceCache},h.prototype.get=function(b,O,m){var C=this.getCache(O).get(b);return Object(I.l)(C)?m:C},h.prototype.getBoolean=function(b,O,m){var C=this.getCache(O).get(b);return Object(I.l)(C)?m:C==="true"},h.prototype.store=function(b,O,m){if(Object(I.l)(O))return this.remove(b,m);var C=String(O),w=this.getCache(m).get(b);return w===C||(this.getCache(m).set(b,C),this._onDidChangeStorage.fire({scope:m,key:b})),Promise.resolve()},h.prototype.remove=function(b,O){var m=this.getCache(O).delete(b);return m&&this._onDidChangeStorage.fire({scope:O,key:b}),Promise.resolve()},h}(J.a)},"A9l+":function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"c",function(){return J}),e.d(F,"b",function(){return I}),e.d(F,"d",function(){return H}),e.d(F,"e",function(){return K}),e.d(F,"g",function(){return D}),e.d(F,"h",function(){return U}),e.d(F,"f",function(){return j});var T=e("3/fG"),pe;(function(h){h.noSelection=T.a("noSelection","No selection"),h.singleSelectionRange=T.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),h.singleSelection=T.a("singleSelection","Line {0}, Column {1}"),h.multiSelectionRange=T.a("multiSelectionRange","{0} selections ({1} characters selected)"),h.multiSelection=T.a("multiSelection","{0} selections"),h.emergencyConfOn=T.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),h.openingDocs=T.a("openingDocs","Now opening the Editor Accessibility documentation page."),h.readonlyDiffEditor=T.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),h.editableDiffEditor=T.a("editableDiffEditor"," in a pane of a diff editor."),h.readonlyEditor=T.a("readonlyEditor"," in a read-only code editor"),h.editableEditor=T.a("editableEditor"," in a code editor"),h.changeConfigToOnMac=T.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),h.changeConfigToOnWinLinux=T.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),h.auto_on=T.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),h.auto_off=T.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),h.tabFocusModeOnMsg=T.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),h.tabFocusModeOnMsgNoKb=T.a("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),h.tabFocusModeOffMsg=T.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),h.tabFocusModeOffMsgNoKb=T.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),h.openDocMac=T.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),h.openDocWinLinux=T.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),h.outroMsg=T.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),h.showAccessibilityHelpAction=T.a("showAccessibilityHelpAction","Show Accessibility Help")})(pe||(pe={}));var J;(function(h){h.inspectTokensAction=T.a("inspectTokens","Developer: Inspect Tokens")})(J||(J={}));var I;(function(h){h.gotoLineLabelValidLineAndColumn=T.a("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),h.gotoLineLabelValidLine=T.a("gotoLineLabelValidLine","Go to line {0}"),h.gotoLineLabelEmptyWithLineLimit=T.a("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),h.gotoLineLabelEmptyWithLineAndColumnLimit=T.a("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),h.gotoLineAriaLabel=T.a("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),h.gotoLineActionInput=T.a("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),h.gotoLineActionLabel=T.a("gotoLineActionLabel","Go to Line...")})(I||(I={}));var H;(function(h){h.ariaLabelEntryWithKey=T.a("ariaLabelEntryWithKey","{0}, {1}, commands"),h.ariaLabelEntry=T.a("ariaLabelEntry","{0}, commands"),h.quickCommandActionInput=T.a("quickCommandActionInput","Type the name of an action you want to execute"),h.quickCommandActionLabel=T.a("quickCommandActionLabel","Command Palette")})(H||(H={}));var K;(function(h){h.entryAriaLabel=T.a("entryAriaLabel","{0}, symbols"),h.quickOutlineActionInput=T.a("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),h.quickOutlineActionLabel=T.a("quickOutlineActionLabel","Go to Symbol..."),h._symbols_=T.a("symbols","symbols ({0})"),h._modules_=T.a("modules","modules ({0})"),h._class_=T.a("class","classes ({0})"),h._interface_=T.a("interface","interfaces ({0})"),h._method_=T.a("method","methods ({0})"),h._function_=T.a("function","functions ({0})"),h._property_=T.a("property","properties ({0})"),h._variable_=T.a("variable","variables ({0})"),h._variable2_=T.a("variable2","variables ({0})"),h._constructor_=T.a("_constructor","constructors ({0})"),h._call_=T.a("call","calls ({0})")})(K||(K={}));var D;(function(h){h.editorViewAccessibleLabel=T.a("editorViewAccessibleLabel","Editor content"),h.accessibilityHelpMessageIE=T.a("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),h.accessibilityHelpMessage=T.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(D||(D={}));var U;(function(h){h.toggleHighContrast=T.a("toggleHighContrast","Toggle High Contrast Theme")})(U||(U={}));var j;(function(h){h.bulkEditServiceSummary=T.a("bulkEditServiceSummary","Made {0} edits in {1} files")})(j||(j={}))},AKMP:function(Mt,F,e){"use strict";e.d(F,"b",function(){return U}),e.d(F,"a",function(){return j});var T=e("EffR"),pe=e("MNsG"),J=e("D3Dy"),I=e("51f4"),H=e("XSiN"),K=e("pmY6"),D=e("CjF5");function U(h,b){var O=new H.b(b);return O.preventDefault(),{leftButton:O.leftButton,buttons:O.buttons,posx:O.posx,posy:O.posy}}var j=function(){function h(){this._hooks=new K.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}return h.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},h.prototype.stopMonitoring=function(b){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var O=this._onStopCallback;this._onStopCallback=null,b&&O&&O()},h.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},h.prototype.startMonitoring=function(b,O,m,C,w){var v=this;if(this.isMonitoring())return;this._mouseMoveEventMerger=m,this._mouseMoveCallback=C,this._onStopCallback=w;var p=I.a.getSameOriginWindowChain(),d=pe.c&&D.a.pointerEvents?"pointermove":"mousemove",c=pe.c&&D.a.pointerEvents?"pointerup":"mouseup",u=p.map(function(x){return x.window.document}),f=T.E(b);f&&u.unshift(f);for(var E=0,L=u;E<L.length;E++){var R=L[E];this._hooks.add(T.m(R,d,function(x){if(!J.i&&x.buttons!==O){v.stopMonitoring(!0);return}v._mouseMoveCallback(x)},function(x,Q){return v._mouseMoveEventMerger(x,Q)})),this._hooks.add(T.j(R,c,function(x){return v.stopMonitoring(!0)}))}if(I.a.hasDifferentOriginAncestor()){var P=p[p.length-1];this._hooks.add(T.j(P.window.document,"mouseout",function(x){var Q=new H.b(x);Q.target.tagName.toLowerCase()==="html"&&v.stopMonitoring(!0)})),this._hooks.add(T.j(P.window.document,"mouseover",function(x){var Q=new H.b(x);Q.target.tagName.toLowerCase()==="html"&&v.stopMonitoring(!0)})),this._hooks.add(T.j(P.window.document.body,"mouseleave",function(x){v.stopMonitoring(!0)}))}},h}()},AbCa:function(Mt,F,e){},AhDq:function(Mt,F,e){"use strict";e.r(F),e.d(F,"GotoLineEntry",function(){return m}),e.d(F,"GotoLineAction",function(){return C});var T=e("C9rm"),pe=e.n(T),J=e("N0LK"),I=e("Rpxm"),H=e("sFUC"),K=e("sswD"),D=e("cGHE"),U=e("aokT"),j=e("wQH0"),h=e("rzPn"),b=e("A9l+"),O=function(){var w=function(v,p){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var u in c)c.hasOwnProperty(u)&&(d[u]=c[u])},w(v,p)};return function(v,p){w(v,p);function d(){this.constructor=v}v.prototype=p===null?Object.create(p):(d.prototype=p.prototype,new d)}}(),m=function(w){O(v,w);function v(p,d,c){var u=w.call(this)||this;return u.editor=d,u.decorator=c,u.parseResult=u.parseInput(p),u}return v.prototype.parseInput=function(p){var d=p.split(",").map(function(R){return parseInt(R,10)}).filter(function(R){return!isNaN(R)}),c;d.length===0?c=new D.a(-1,-1):d.length===1?c=new D.a(d[0],1):c=new D.a(d[0],d[1]);var u;if(Object(H.a)(this.editor))u=this.editor.getModel();else{var f=this.editor.getModel();u=f?f.modified:null}var E=u?u.validatePosition(c).equals(c):!1,L;return E?c.column&&c.column>1?L=J.r(b.b.gotoLineLabelValidLineAndColumn,c.lineNumber,c.column):L=J.r(b.b.gotoLineLabelValidLine,c.lineNumber):c.lineNumber<1||c.lineNumber>(u?u.getLineCount():0)?L=J.r(b.b.gotoLineLabelEmptyWithLineLimit,u?u.getLineCount():0):L=J.r(b.b.gotoLineLabelEmptyWithLineAndColumnLimit,u?u.getLineMaxColumn(c.lineNumber):0),{position:c,isValid:E,label:L}},v.prototype.getLabel=function(){return this.parseResult.label},v.prototype.getAriaLabel=function(){var p=this.editor.getPosition(),d=p?p.lineNumber:0;return J.r(b.b.gotoLineAriaLabel,d,this.parseResult.label)},v.prototype.run=function(p,d){return p===1?this.runOpen():this.runPreview()},v.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var p=this.toSelection();return this.editor.setSelection(p),this.editor.revealRangeInCenter(p,0),this.editor.focus(),!0},v.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var p=this.toSelection();return this.editor.revealRangeInCenter(p,0),this.decorator.decorateLine(p,this.editor),!1},v.prototype.toSelection=function(){return new U.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},v}(I.a),C=function(w){O(v,w);function v(){return w.call(this,b.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:b.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:j.a.focus,primary:2048|37,mac:{primary:256|37},weight:100}})||this}return v.prototype.run=function(p,d){var c=this;this._show(this.getController(d),{getModel:function(u){return new I.c([new m(u,d,c.getController(d))])},getAutoFocus:function(u){return{autoFocusFirstEntry:u.length>0}}})},v}(h.a);Object(K.f)(C)},ApJL:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return e.e(296).then(e.bind(null,"AoeA"))}})},BEdG:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return e.e(347).then(e.bind(null,"aH2L"))}})},BFtn:function(Mt,F,e){"use strict";e.d(F,"a",function(){return T}),e.d(F,"b",function(){return J});function T(I,H){for(var K=I.getCount(),D=I.findTokenIndexAtOffset(H),U=I.getLanguageId(D),j=D;j+1<K&&I.getLanguageId(j+1)===U;)j++;for(var h=D;h>0&&I.getLanguageId(h-1)===U;)h--;return new pe(I,U,h,j+1,I.getStartOffset(h),I.getEndOffset(j))}var pe=function(){function I(H,K,D,U,j,h){this._actual=H,this.languageId=K,this._firstTokenIndex=D,this._lastTokenIndex=U,this.firstCharOffset=j,this._lastCharOffset=h}return I.prototype.getLineContent=function(){var H=this._actual.getLineContent();return H.substring(this.firstCharOffset,this._lastCharOffset)},I.prototype.getActualLineContentBefore=function(H){var K=this._actual.getLineContent();return K.substring(0,this.firstCharOffset+H)},I.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},I.prototype.findTokenIndexAtOffset=function(H){return this._actual.findTokenIndexAtOffset(H+this.firstCharOffset)-this._firstTokenIndex},I.prototype.getStandardTokenType=function(H){return this._actual.getStandardTokenType(H+this._firstTokenIndex)},I}();function J(I){return(I&7)!==0}},BUKB:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return e.e(343).then(e.bind(null,"xT+r"))}})},BjKj:function(Mt,F,e){},"C1Q+":function(Mt,F,e){"use strict";e.d(F,"f",function(){return jt}),e.d(F,"e",function(){return it}),e.d(F,"b",function(){return et}),e.d(F,"g",function(){return ut}),e.d(F,"h",function(){return Ct}),e.d(F,"d",function(){return ht}),e.d(F,"c",function(){return Et}),e.d(F,"a",function(){return Yt});var T=function(){function Nt(bt){this.executor=bt,this._didRun=!1}return Nt.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(bt){this._error=bt}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(Nt.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),Nt}(),pe=e("pmY6"),J=e("N0LK"),I=e("sswD"),H=e("x/UI"),K=e("wQH0"),D=e("hJVp"),U=e("6OMU"),j=e("/cxE"),h=e("NR8r"),b=e("Cg/j"),O=e("EffR"),m=e("WqXY"),C=e("8HAY"),w=e("cGHE"),v=e("twdY"),p=e("nlbu"),d=e("Uzvx"),c=e("bexQ"),u=function(){var Nt=function(bt,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,Ve){Ye.__proto__=Ve}||function(Ye,Ve){for(var ze in Ve)Ve.hasOwnProperty(ze)&&(Ye[ze]=Ve[ze])},Nt(bt,$e)};return function(bt,$e){Nt(bt,$e);function Ye(){this.constructor=bt}bt.prototype=$e===null?Object.create($e):(Ye.prototype=$e.prototype,new Ye)}}(),f=function(){return f=Object.assign||function(Nt){for(var bt,$e=1,Ye=arguments.length;$e<Ye;$e++){bt=arguments[$e];for(var Ve in bt)Object.prototype.hasOwnProperty.call(bt,Ve)&&(Nt[Ve]=bt[Ve])}return Nt},f.apply(this,arguments)},E=function(Nt,bt,$e,Ye){var Ve=arguments.length,ze=Ve<3?bt:Ye===null?Ye=Object.getOwnPropertyDescriptor(bt,$e):Ye,me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ze=Reflect.decorate(Nt,bt,$e,Ye);else for(var G=Nt.length-1;G>=0;G--)(me=Nt[G])&&(ze=(Ve<3?me(ze):Ve>3?me(bt,$e,ze):me(bt,$e))||ze);return Ve>3&&ze&&Object.defineProperty(bt,$e,ze),ze},L=function(Nt,bt){return function($e,Ye){bt($e,Ye,Nt)}},R=function(Nt,bt,$e,Ye){function Ve(ze){return ze instanceof $e?ze:new $e(function(me){me(ze)})}return new($e||($e=Promise))(function(ze,me){function G(ie){try{Y(Ye.next(ie))}catch(je){me(je)}}function oe(ie){try{Y(Ye.throw(ie))}catch(je){me(je)}}function Y(ie){ie.done?ze(ie.value):Ve(ie.value).then(G,oe)}Y((Ye=Ye.apply(Nt,bt||[])).next())})},P=function(Nt,bt){var $e={label:0,sent:function(){if(ze[0]&1)throw ze[1];return ze[1]},trys:[],ops:[]},Ye,Ve,ze,me;return me={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(me[Symbol.iterator]=function(){return this}),me;function G(Y){return function(ie){return oe([Y,ie])}}function oe(Y){if(Ye)throw new TypeError("Generator is already executing.");for(;$e;)try{if(Ye=1,Ve&&(ze=Y[0]&2?Ve.return:Y[0]?Ve.throw||((ze=Ve.return)&&ze.call(Ve),0):Ve.next)&&!(ze=ze.call(Ve,Y[1])).done)return ze;(Ve=0,ze)&&(Y=[Y[0]&2,ze.value]);switch(Y[0]){case 0:case 1:ze=Y;break;case 4:return $e.label++,{value:Y[1],done:!1};case 5:$e.label++,Ve=Y[1],Y=[0];continue;case 7:Y=$e.ops.pop(),$e.trys.pop();continue;default:if(!(ze=$e.trys,ze=ze.length>0&&ze[ze.length-1])&&(Y[0]===6||Y[0]===2)){$e=0;continue}if(Y[0]===3&&(!ze||Y[1]>ze[0]&&Y[1]<ze[3])){$e.label=Y[1];break}if(Y[0]===6&&$e.label<ze[1]){$e.label=ze[1],ze=Y;break}if(ze&&$e.label<ze[2]){$e.label=ze[2],$e.ops.push(Y);break}ze[2]&&$e.ops.pop(),$e.trys.pop();continue}Y=bt.call(Nt,$e)}catch(ie){Y=[6,ie],Ve=0}finally{Ye=ze=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},x=function(){for(var Nt=0,bt=0,$e=arguments.length;bt<$e;bt++)Nt+=arguments[bt].length;for(var Ye=Array(Nt),Ve=0,bt=0;bt<$e;bt++)for(var ze=arguments[bt],me=0,G=ze.length;me<G;me++,Ve++)Ye[Ve]=ze[me];return Ye},Q=function(Nt){u(bt,Nt);function bt($e,Ye){var Ve=Nt.call(this,$e.command?$e.command.id:$e.title,$e.title,void 0,!$e.disabled,Ye)||this;return Ve.action=$e,Ve}return bt}(C.a),V=function(Nt){u(bt,Nt);function bt($e,Ye,Ve,ze){var me=Nt.call(this)||this;return me._editor=$e,me._delegate=Ye,me._contextMenuService=Ve,me._visible=!1,me._showingActions=me._register(new pe.d),me._keybindingResolver=new W({getKeybindings:function(){return ze.getKeybindings()}}),me}return Object.defineProperty(bt.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),bt.prototype.show=function($e,Ye,Ve,ze){return R(this,void 0,void 0,function(){var me,G,oe,Y,ie=this;return P(this,function(je){if(me=ze.includeDisabledActions?Ye.allActions:Ye.validActions,!me.length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(j.a)();return this._visible=!0,this._showingActions.value=Ye,G=this.getMenuActions($e,me),oe=w.a.isIPosition(Ve)?this._toCoords(Ve):Ve||{x:0,y:0},Y=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return oe},getActions:function(){return G},onHide:function(){ie._visible=!1,ie._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(dt){return dt instanceof Q?Y(dt.action):void 0}}),[2]})})},bt.prototype.getMenuActions=function($e,Ye){var Ve=this,ze,me,G=function(Qt){return new Q(Qt,function(){return Ve._delegate.onSelectCodeAction(Qt)})},oe=Ye.map(G),Y=this._editor.getModel();if(Y&&oe.length)for(var ie=0,je=v.a.all(Y);ie<je.length;ie++){var dt=je[ie];if(dt._getAdditionalMenuItems){var Dt=dt._getAdditionalMenuItems({trigger:$e.type,only:(me=(ze=$e.filter)===null||ze===void 0?void 0:ze.include)===null||me===void 0?void 0:me.value},Ye);Dt.length&&oe.push.apply(oe,x([new m.d],Dt.map(function(Qt){return G({title:Qt.title,command:Qt})})))}}return oe},bt.prototype._toCoords=function($e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition($e,1),this._editor.render();var Ye=this._editor.getScrolledVisiblePosition($e),Ve=Object(O.C)(this._editor.getDomNode()),ze=Ve.left+Ye.left,me=Ve.top+Ye.top+Ye.height;return{x:ze,y:me}},bt=E([L(2,d.a),L(3,c.a)],bt),bt}(pe.a),W=function(){function Nt(bt){this._keybindingProvider=bt}return Nt.prototype.getResolver=function(){var bt=this,$e=new T(function(){return bt._keybindingProvider.getKeybindings().filter(function(Ye){return Nt.codeActionCommands.indexOf(Ye.command)>=0}).filter(function(Ye){return Ye.resolvedKeybinding}).map(function(Ye){var Ve=Ye.commandArgs;return Ye.command===D.d?Ve={kind:p.b.SourceOrganizeImports.value}:Ye.command===D.b&&(Ve={kind:p.b.SourceFixAll.value}),f({resolvedKeybinding:Ye.resolvedKeybinding},p.a.fromUser(Ve,{kind:p.b.None,apply:"never"}))})});return function(Ye){if(Ye.kind){var Ve=bt.bestKeybindingForCodeAction(Ye,$e.getValue());return Ve==null?void 0:Ve.resolvedKeybinding}return}},Nt.prototype.bestKeybindingForCodeAction=function(bt,$e){if(!bt.kind)return;var Ye=new p.b(bt.kind);return $e.filter(function(Ve){return Ve.kind.contains(Ye)}).filter(function(Ve){return Ve.preferred?bt.isPreferred:!0}).reduceRight(function(Ve,ze){return Ve?Ve.kind.contains(ze.kind)?ze:Ve:ze},void 0)},Nt.codeActionCommands=[D.e,D.a,D.f,D.d,D.b],Nt}(),B=e("AKMP"),ae=e("MI8n"),we=e("MNXI"),Me=e("tX9W"),Pe=e("3/fG"),Be=e("t9D7"),Ke=e("MD5Z"),Fe=e("pg8w"),re=function(){var Nt=function(bt,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,Ve){Ye.__proto__=Ve}||function(Ye,Ve){for(var ze in Ve)Ve.hasOwnProperty(ze)&&(Ye[ze]=Ve[ze])},Nt(bt,$e)};return function(bt,$e){Nt(bt,$e);function Ye(){this.constructor=bt}bt.prototype=$e===null?Object.create($e):(Ye.prototype=$e.prototype,new Ye)}}(),ee=function(Nt,bt,$e,Ye){var Ve=arguments.length,ze=Ve<3?bt:Ye===null?Ye=Object.getOwnPropertyDescriptor(bt,$e):Ye,me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ze=Reflect.decorate(Nt,bt,$e,Ye);else for(var G=Nt.length-1;G>=0;G--)(me=Nt[G])&&(ze=(Ve<3?me(ze):Ve>3?me(bt,$e,ze):me(bt,$e))||ze);return Ve>3&&ze&&Object.defineProperty(bt,$e,ze),ze},ne=function(Nt,bt){return function($e,Ye){bt($e,Ye,Nt)}},q;(function(Nt){Nt.Hidden={type:0};var bt=function(){function $e(Ye,Ve,ze,me){this.actions=Ye,this.trigger=Ve,this.editorPosition=ze,this.widgetPosition=me,this.type=1}return $e}();Nt.Showing=bt})(q||(q={}));var le=function(Nt){re(bt,Nt);function bt($e,Ye,Ve,ze){var me=Nt.call(this)||this;return me._editor=$e,me._quickFixActionId=Ye,me._preferredFixActionId=Ve,me._keybindingService=ze,me._onClick=me._register(new ae.a),me.onClick=me._onClick.event,me._state=q.Hidden,me._domNode=document.createElement("div"),me._domNode.className="codicon codicon-lightbulb",me._editor.addContentWidget(me),me._register(me._editor.onDidChangeModelContent(function(G){var oe=me._editor.getModel();(me.state.type!==1||!oe||me.state.editorPosition.lineNumber>=oe.getLineCount())&&me.hide()})),Fe.b.ignoreTarget(me._domNode),me._register(O.n(me._domNode,function(G){if(me.state.type!==1)return;me._editor.focus(),G.preventDefault();var oe=O.C(me._domNode),Y=oe.top,ie=oe.height,je=me._editor.getOption(49),dt=Math.floor(je/3);me.state.widgetPosition.position!==null&&me.state.widgetPosition.position.lineNumber<me.state.editorPosition.lineNumber&&(dt+=je),me._onClick.fire({x:G.posx,y:Y+ie+dt,actions:me.state.actions,trigger:me.state.trigger})})),me._register(O.j(me._domNode,"mouseenter",function(G){if((G.buttons&1)!==1)return;me.hide();var oe=new B.a;oe.startMonitoring(G.target,G.buttons,B.b,function(){},function(){oe.dispose()})})),me._register(me._editor.onDidChangeConfiguration(function(G){G.hasChanged(47)&&!me._editor.getOption(47).enabled&&me.hide()})),me._updateLightBulbTitle(),me._register(me._keybindingService.onDidUpdateKeybindings(me._updateLightBulbTitle,me)),me}return bt.prototype.dispose=function(){Nt.prototype.dispose.call(this),this._editor.removeContentWidget(this)},bt.prototype.getId=function(){return"LightBulbWidget"},bt.prototype.getDomNode=function(){return this._domNode},bt.prototype.getPosition=function(){return this._state.type===1?this._state.widgetPosition:null},bt.prototype.update=function($e,Ye,Ve){var ze=this;if($e.validActions.length<=0)return this.hide();var me=this._editor.getOptions();if(!me.get(47).enabled)return this.hide();var G=Ve.lineNumber,oe=Ve.column,Y=this._editor.getModel();if(!Y)return this.hide();var ie=Y.getOptions().tabSize,je=me.get(34),dt=Y.getLineContent(G),Dt=Me.b.computeIndentLevel(dt,ie),Qt=je.spaceWidth*Dt>22,to=function(ho){return ho>2&&ze._editor.getTopForLineNumber(ho)===ze._editor.getTopForLineNumber(ho-1)},fo=G;if(!Qt){if(G>1&&!to(G-1))fo-=1;else if(!to(G+1))fo+=1;else if(oe*je.spaceWidth<22)return this.hide()}this.state=new q.Showing($e,Ye,Ve,{position:{lineNumber:fo,column:1},preference:bt._posPref}),O.Y(this._domNode,"codicon-lightbulb-autofix",$e.hasAutoFix),this._editor.layoutContentWidget(this)},bt.prototype.hide=function(){this.state=q.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(bt.prototype,"state",{get:function(){return this._state},set:function($e){this._state=$e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),bt.prototype._updateLightBulbTitle=function(){if(this.state.type===1&&this.state.actions.hasAutoFix){var $e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if($e){this.title=Pe.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",$e.getLabel());return}}var Ye=this._keybindingService.lookupKeybinding(this._quickFixActionId);Ye?this.title=Pe.a("quickFixWithKb","Show Fixes ({0})",Ye.getLabel()):this.title=Pe.a("quickFix","Show Fixes")},Object.defineProperty(bt.prototype,"title",{set:function($e){this._domNode.title=$e},enumerable:!0,configurable:!0}),bt._posPref=[0],bt=ee([ne(3,c.a)],bt),bt}(pe.a);Object(Be.e)(function(Nt,bt){var $e=Nt.getColor(Ke.J);$e&&bt.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb {
color: `+$e+`;
}`);var Ye=Nt.getColor(Ke.I);Ye&&bt.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb-autofix {
color: `+Ye+`;
}`)});var Z=function(){var Nt=function(bt,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,Ve){Ye.__proto__=Ve}||function(Ye,Ve){for(var ze in Ve)Ve.hasOwnProperty(ze)&&(Ye[ze]=Ve[ze])},Nt(bt,$e)};return function(bt,$e){Nt(bt,$e);function Ye(){this.constructor=bt}bt.prototype=$e===null?Object.create($e):(Ye.prototype=$e.prototype,new Ye)}}(),ve=function(Nt,bt,$e,Ye){var Ve=arguments.length,ze=Ve<3?bt:Ye===null?Ye=Object.getOwnPropertyDescriptor(bt,$e):Ye,me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ze=Reflect.decorate(Nt,bt,$e,Ye);else for(var G=Nt.length-1;G>=0;G--)(me=Nt[G])&&(ze=(Ve<3?me(ze):Ve>3?me(bt,$e,ze):me(bt,$e))||ze);return Ve>3&&ze&&Object.defineProperty(bt,$e,ze),ze},Ne=function(Nt,bt){return function($e,Ye){bt($e,Ye,Nt)}},Xe=function(Nt,bt,$e,Ye){function Ve(ze){return ze instanceof $e?ze:new $e(function(me){me(ze)})}return new($e||($e=Promise))(function(ze,me){function G(ie){try{Y(Ye.next(ie))}catch(je){me(je)}}function oe(ie){try{Y(Ye.throw(ie))}catch(je){me(je)}}function Y(ie){ie.done?ze(ie.value):Ve(ie.value).then(G,oe)}Y((Ye=Ye.apply(Nt,bt||[])).next())})},de=function(Nt,bt){var $e={label:0,sent:function(){if(ze[0]&1)throw ze[1];return ze[1]},trys:[],ops:[]},Ye,Ve,ze,me;return me={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(me[Symbol.iterator]=function(){return this}),me;function G(Y){return function(ie){return oe([Y,ie])}}function oe(Y){if(Ye)throw new TypeError("Generator is already executing.");for(;$e;)try{if(Ye=1,Ve&&(ze=Y[0]&2?Ve.return:Y[0]?Ve.throw||((ze=Ve.return)&&ze.call(Ve),0):Ve.next)&&!(ze=ze.call(Ve,Y[1])).done)return ze;(Ve=0,ze)&&(Y=[Y[0]&2,ze.value]);switch(Y[0]){case 0:case 1:ze=Y;break;case 4:return $e.label++,{value:Y[1],done:!1};case 5:$e.label++,Ve=Y[1],Y=[0];continue;case 7:Y=$e.ops.pop(),$e.trys.pop();continue;default:if(!(ze=$e.trys,ze=ze.length>0&&ze[ze.length-1])&&(Y[0]===6||Y[0]===2)){$e=0;continue}if(Y[0]===3&&(!ze||Y[1]>ze[0]&&Y[1]<ze[3])){$e.label=Y[1];break}if(Y[0]===6&&$e.label<ze[1]){$e.label=ze[1],ze=Y;break}if(ze&&$e.label<ze[2]){$e.label=ze[2],$e.ops.push(Y);break}ze[2]&&$e.ops.pop(),$e.trys.pop();continue}Y=bt.call(Nt,$e)}catch(ie){Y=[6,ie],Ve=0}finally{Ye=ze=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},ge=function(Nt){Z(bt,Nt);function bt($e,Ye,Ve,ze,me){var G=Nt.call(this)||this;return G._editor=$e,G.delegate=ze,G._activeCodeActions=G._register(new pe.d),G._codeActionWidget=new T(function(){return G._register(me.createInstance(V,G._editor,{onSelectCodeAction:function(oe){return Xe(G,void 0,void 0,function(){return de(this,function(Y){return this.delegate.applyCodeAction(oe,!0),[2]})})}}))}),G._lightBulbWidget=new T(function(){var oe=G._register(me.createInstance(le,G._editor,Ye,Ve));return G._register(oe.onClick(function(Y){return G.showCodeActionList(Y.trigger,Y.actions,Y,{includeDisabledActions:!1})})),oe}),G}return bt.prototype.update=function($e){var Ye,Ve,ze;return Xe(this,void 0,void 0,function(){var me,G,oe,Y,ie;return de(this,function(je){switch(je.label){case 0:if($e.type!==1)return(Ye=this._lightBulbWidget.rawValue)===null||Ye===void 0||Ye.hide(),[2];je.label=1;case 1:return je.trys.push([1,3,,4]),[4,$e.actions];case 2:return me=je.sent(),[3,4];case 3:return G=je.sent(),Object(j.e)(G),[2];case 4:if(this._lightBulbWidget.getValue().update(me,$e.trigger,$e.position),!($e.trigger.type===2))return[3,11];if(!((Ve=$e.trigger.filter)===null||Ve===void 0?void 0:Ve.include))return[3,10];if(oe=this.tryGetValidActionToApply($e.trigger,me),!oe)return[3,9];je.label=5;case 5:return je.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(oe,!1)];case 6:return je.sent(),[3,8];case 7:return me.dispose(),[7];case 8:return[2];case 9:if($e.trigger.context&&(Y=this.getInvalidActionThatWouldHaveBeenApplied($e.trigger,me),Y&&Y.disabled))return h.a.get(this._editor).showMessage(Y.disabled,$e.trigger.context.position),me.dispose(),[2];je.label=10;case 10:return ie=!!((ze=$e.trigger.filter)===null||ze===void 0?void 0:ze.include),$e.trigger.context&&(!me.allActions.length||!ie&&!me.validActions.length)?(h.a.get(this._editor).showMessage($e.trigger.context.notAvailableMessage,$e.trigger.context.position),this._activeCodeActions.value=me,me.dispose(),[2]):(this._activeCodeActions.value=me,this._codeActionWidget.getValue().show($e.trigger,me,$e.position,{includeDisabledActions:ie}),[3,12]);case 11:this._codeActionWidget.getValue().isVisible?me.dispose():this._activeCodeActions.value=me,je.label=12;case 12:return[2]}})})},bt.prototype.getInvalidActionThatWouldHaveBeenApplied=function($e,Ye){return Ye.allActions.length&&($e.autoApply==="first"&&Ye.validActions.length===0||$e.autoApply==="ifSingle"&&Ye.allActions.length===1)?Object(U.h)(Ye.allActions,function(Ve){return Ve.disabled}):void 0},bt.prototype.tryGetValidActionToApply=function($e,Ye){return Ye.validActions.length&&($e.autoApply==="first"&&Ye.validActions.length>0||$e.autoApply==="ifSingle"&&Ye.validActions.length===1)?Ye.validActions[0]:void 0},bt.prototype.showCodeActionList=function($e,Ye,Ve,ze){return Xe(this,void 0,void 0,function(){return de(this,function(me){return this._codeActionWidget.getValue().show($e,Ye,Ve,ze),[2]})})},bt=ve([Ne(4,b.a)],bt),bt}(pe.a),Ee=e("nnTU"),Te=e("T8No"),Ce=e("tADe"),fe=e("sM1p"),$=e("tTk5"),S=e("XXUj"),z=e("X+cX"),ce=e("aokT"),se=e("gslv"),ye=function(){var Nt=function(bt,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,Ve){Ye.__proto__=Ve}||function(Ye,Ve){for(var ze in Ve)Ve.hasOwnProperty(ze)&&(Ye[ze]=Ve[ze])},Nt(bt,$e)};return function(bt,$e){Nt(bt,$e);function Ye(){this.constructor=bt}bt.prototype=$e===null?Object.create($e):(Ye.prototype=$e.prototype,new Ye)}}(),Re=new Te.d("supportedCodeAction",""),Le=function(Nt){ye(bt,Nt);function bt($e,Ye,Ve,ze){ze===void 0&&(ze=250);var me=Nt.call(this)||this;return me._editor=$e,me._markerService=Ye,me._signalChange=Ve,me._delay=ze,me._autoTriggerTimer=me._register(new z.e),me._register(me._markerService.onMarkerChanged(function(G){return me._onMarkerChanges(G)})),me._register(me._editor.onDidChangeCursorPosition(function(){return me._onCursorChange()})),me}return bt.prototype.trigger=function($e){var Ye=this._getRangeOfSelectionUnlessWhitespaceEnclosed($e);return this._createEventAndSignalChange($e,Ye)},bt.prototype._onMarkerChanges=function($e){var Ye=this,Ve=this._editor.getModel();if(!Ve)return;$e.some(function(ze){return Object(se.e)(ze,Ve.uri)})&&this._autoTriggerTimer.cancelAndSet(function(){Ye.trigger({type:1})},this._delay)},bt.prototype._onCursorChange=function(){var $e=this;this._autoTriggerTimer.cancelAndSet(function(){$e.trigger({type:1})},this._delay)},bt.prototype._getRangeOfMarker=function($e){var Ye=this._editor.getModel();if(!Ye)return;for(var Ve=0,ze=this._markerService.read({resource:Ye.uri});Ve<ze.length;Ve++){var me=ze[Ve],G=Ye.validateRange(me);if(ce.a.intersectRanges(G,$e))return ce.a.lift(G)}return},bt.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function($e){if(!this._editor.hasModel())return;var Ye=this._editor.getModel(),Ve=this._editor.getSelection();if(Ve.isEmpty()&&$e.type===1){var ze=Ve.getPosition(),me=ze.lineNumber,G=ze.column,oe=Ye.getLineContent(me);if(oe.length===0)return;if(G===1){if(/\s/.test(oe[0]))return}else if(G===Ye.getLineMaxColumn(me)){if(/\s/.test(oe[oe.length-1]))return}else if(/\s/.test(oe[G-2])&&/\s/.test(oe[G-1]))return}return Ve},bt.prototype._createEventAndSignalChange=function($e,Ye){var Ve=this._editor.getModel();if(!Ye||!Ve){this._signalChange(void 0);return}var ze=this._getRangeOfMarker(Ye),me=ze?ze.getStartPosition():Ye.getStartPosition(),G={trigger:$e,selection:Ye,position:me};return this._signalChange(G),G},bt}(pe.a),Ue;(function(Nt){Nt.Empty={type:0};var bt=function(){function $e(Ye,Ve,ze,me){this.trigger=Ye,this.rangeOrSelection=Ve,this.position=ze,this.actions=me,this.type=1}return $e}();Nt.Triggered=bt})(Ue||(Ue={}));var Je=function(Nt){ye(bt,Nt);function bt($e,Ye,Ve,ze){var me=Nt.call(this)||this;return me._editor=$e,me._markerService=Ye,me._progressService=ze,me._codeActionOracle=me._register(new pe.d),me._state=Ue.Empty,me._onDidChangeState=me._register(new ae.a),me.onDidChangeState=me._onDidChangeState.event,me._supportedCodeActions=Re.bindTo(Ve),me._register(me._editor.onDidChangeModel(function(){return me._update()})),me._register(me._editor.onDidChangeModelLanguage(function(){return me._update()})),me._register(v.a.onDidChange(function(){return me._update()})),me._update(),me}return bt.prototype.dispose=function(){Nt.prototype.dispose.call(this),this.setState(Ue.Empty,!0)},bt.prototype._update=function(){var $e=this;this._codeActionOracle.value=void 0,this.setState(Ue.Empty);var Ye=this._editor.getModel();if(Ye&&v.a.has(Ye)&&!this._editor.getOption(68)){for(var Ve=[],ze=0,me=v.a.all(Ye);ze<me.length;ze++){var G=me[ze];Array.isArray(G.providedCodeActionKinds)&&Ve.push.apply(Ve,G.providedCodeActionKinds)}this._supportedCodeActions.set(Ve.join(" ")),this._codeActionOracle.value=new Le(this._editor,this._markerService,function(oe){if(!oe){$e.setState(Ue.Empty);return}var Y=Object(z.f)(function(ie){return Object(D.c)(Ye,oe.selection,oe.trigger,ie)});$e._progressService&&oe.trigger.type===2&&$e._progressService.showWhile(Y,250),$e.setState(new Ue.Triggered(oe.trigger,oe.selection,oe.position,Y))},void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()},bt.prototype.trigger=function($e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger($e)},bt.prototype.setState=function($e,Ye){if($e===this._state)return;this._state.type===1&&this._state.actions.cancel(),this._state=$e,Ye||this._onDidChangeState.fire($e)},bt}(pe.a),nt=function(){var Nt=function(bt,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,Ve){Ye.__proto__=Ve}||function(Ye,Ve){for(var ze in Ve)Ve.hasOwnProperty(ze)&&(Ye[ze]=Ve[ze])},Nt(bt,$e)};return function(bt,$e){Nt(bt,$e);function Ye(){this.constructor=bt}bt.prototype=$e===null?Object.create($e):(Ye.prototype=$e.prototype,new Ye)}}(),vt=function(Nt,bt,$e,Ye){var Ve=arguments.length,ze=Ve<3?bt:Ye===null?Ye=Object.getOwnPropertyDescriptor(bt,$e):Ye,me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ze=Reflect.decorate(Nt,bt,$e,Ye);else for(var G=Nt.length-1;G>=0;G--)(me=Nt[G])&&(ze=(Ve<3?me(ze):Ve>3?me(bt,$e,ze):me(bt,$e))||ze);return Ve>3&&ze&&Object.defineProperty(bt,$e,ze),ze},Rt=function(Nt,bt){return function($e,Ye){bt($e,Ye,Nt)}},Ot=function(Nt,bt,$e,Ye){function Ve(ze){return ze instanceof $e?ze:new $e(function(me){me(ze)})}return new($e||($e=Promise))(function(ze,me){function G(ie){try{Y(Ye.next(ie))}catch(je){me(je)}}function oe(ie){try{Y(Ye.throw(ie))}catch(je){me(je)}}function Y(ie){ie.done?ze(ie.value):Ve(ie.value).then(G,oe)}Y((Ye=Ye.apply(Nt,bt||[])).next())})},Kt=function(Nt,bt){var $e={label:0,sent:function(){if(ze[0]&1)throw ze[1];return ze[1]},trys:[],ops:[]},Ye,Ve,ze,me;return me={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(me[Symbol.iterator]=function(){return this}),me;function G(Y){return function(ie){return oe([Y,ie])}}function oe(Y){if(Ye)throw new TypeError("Generator is already executing.");for(;$e;)try{if(Ye=1,Ve&&(ze=Y[0]&2?Ve.return:Y[0]?Ve.throw||((ze=Ve.return)&&ze.call(Ve),0):Ve.next)&&!(ze=ze.call(Ve,Y[1])).done)return ze;(Ve=0,ze)&&(Y=[Y[0]&2,ze.value]);switch(Y[0]){case 0:case 1:ze=Y;break;case 4:return $e.label++,{value:Y[1],done:!1};case 5:$e.label++,Ve=Y[1],Y=[0];continue;case 7:Y=$e.ops.pop(),$e.trys.pop();continue;default:if(!(ze=$e.trys,ze=ze.length>0&&ze[ze.length-1])&&(Y[0]===6||Y[0]===2)){$e=0;continue}if(Y[0]===3&&(!ze||Y[1]>ze[0]&&Y[1]<ze[3])){$e.label=Y[1];break}if(Y[0]===6&&$e.label<ze[1]){$e.label=ze[1],ze=Y;break}if(ze&&$e.label<ze[2]){$e.label=ze[2],$e.ops.push(Y);break}ze[2]&&$e.ops.pop(),$e.trys.pop();continue}Y=bt.call(Nt,$e)}catch(ie){Y=[6,ie],Ve=0}finally{Ye=ze=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},ao=function(){for(var Nt=0,bt=0,$e=arguments.length;bt<$e;bt++)Nt+=arguments[bt].length;for(var Ye=Array(Nt),Ve=0,bt=0;bt<$e;bt++)for(var ze=arguments[bt],me=0,G=ze.length;me<G;me++,Ve++)Ye[Ve]=ze[me];return Ye};function lo(Nt){return Te.a.regex(Re.keys()[0],new RegExp("(\\s|^)"+Object(J.p)(Nt.value)+"\\b"))}var so={type:"object",required:["kind"],defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:Pe.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:Pe.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[Pe.a("args.schema.apply.first","Always apply the first returned code action."),Pe.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),Pe.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:Pe.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},jt=function(Nt){nt(bt,Nt);function bt($e,Ye,Ve,ze,me){var G=Nt.call(this)||this;return G._instantiationService=me,G._editor=$e,G._model=G._register(new Je(G._editor,Ye,Ve,ze)),G._register(G._model.onDidChangeState(function(oe){return G.update(oe)})),G._ui=new T(function(){return G._register(new ge($e,it.Id,Yt.Id,{applyCodeAction:function(oe,Y){return Ot(G,void 0,void 0,function(){return Kt(this,function(ie){switch(ie.label){case 0:return ie.trys.push([0,,2,3]),[4,this._applyCodeAction(oe)];case 1:return ie.sent(),[3,3];case 2:return Y&&this._trigger({type:1,filter:{}}),[7];case 3:return[2]}})})}},G._instantiationService))}),G}return bt.get=function($e){return $e.getContribution(bt.ID)},bt.prototype.update=function($e){this._ui.getValue().update($e)},bt.prototype.showCodeActions=function($e,Ye,Ve){return this._ui.getValue().showCodeActionList($e,Ye,Ve,{includeDisabledActions:!1})},bt.prototype.manualTriggerAtCurrentPosition=function($e,Ye,Ve){if(!this._editor.hasModel())return;h.a.get(this._editor).closeMessage();var ze=this._editor.getPosition();this._trigger({type:2,filter:Ye,autoApply:Ve,context:{notAvailableMessage:$e,position:ze}})},bt.prototype._trigger=function($e){return this._model.trigger($e)},bt.prototype._applyCodeAction=function($e){return this._instantiationService.invokeFunction(pt,$e,this._editor)},bt.ID="editor.contrib.quickFixController",bt=vt([Rt(1,Ce.b),Rt(2,Te.c),Rt(3,$.a),Rt(4,b.a)],bt),bt}(pe.a);function pt(Nt,bt,$e){return Ot(this,void 0,void 0,function(){var Ye,Ve,ze,me,G,oe;return Kt(this,function(Y){switch(Y.label){case 0:return Ye=Nt.get(H.a),Ve=Nt.get(Ee.b),ze=Nt.get(S.a),me=Nt.get(fe.a),ze.publicLog2("codeAction.applyCodeAction",{codeActionTitle:bt.title,codeActionKind:bt.kind,codeActionIsPreferred:!!bt.isPreferred}),bt.edit?[4,Ye.apply(bt.edit,{editor:$e})]:[3,2];case 1:Y.sent(),Y.label=2;case 2:if(!bt.command)return[3,6];Y.label=3;case 3:return Y.trys.push([3,5,,6]),[4,Ve.executeCommand.apply(Ve,ao([bt.command.id],bt.command.arguments||[]))];case 4:return Y.sent(),[3,6];case 5:return G=Y.sent(),oe=gt(G),me.error(typeof oe=="string"?oe:Pe.a("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}})})}function gt(Nt){return typeof Nt=="string"?Nt:Nt instanceof Error&&typeof Nt.message=="string"?Nt.message:void 0}function Tt(Nt,bt,$e,Ye){if(Nt.hasModel()){var Ve=jt.get(Nt);Ve&&Ve.manualTriggerAtCurrentPosition(bt,$e,Ye)}}var it=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:bt.Id,label:Pe.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:Te.a.and(K.a.writable,K.a.hasCodeActionsProvider),kbOpts:{kbExpr:K.a.editorTextFocus,primary:2048|84,weight:100}})||this}return bt.prototype.run=function($e,Ye){return Tt(Ye,Pe.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},bt.Id="editor.action.quickFix",bt}(I.b),et=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:D.a,precondition:Te.a.and(K.a.writable,K.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:so}]}})||this}return bt.prototype.runEditorCommand=function($e,Ye,Ve){var ze=p.a.fromUser(Ve,{kind:p.b.Empty,apply:"ifSingle"});return Tt(Ye,typeof(Ve==null?void 0:Ve.kind)=="string"?ze.preferred?Pe.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",Ve.kind):Pe.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",Ve.kind):ze.preferred?Pe.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):Pe.a("editor.action.codeAction.noneMessage","No code actions available"),{include:ze.kind,includeSourceActions:!0,onlyIncludePreferredActions:ze.preferred},ze.apply)},bt}(I.c),ut=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:D.e,label:Pe.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:Te.a.and(K.a.writable,K.a.hasCodeActionsProvider),kbOpts:{kbExpr:K.a.editorTextFocus,primary:2048|1024|48,mac:{primary:256|1024|48},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:Te.a.and(K.a.writable,lo(p.b.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:so}]}})||this}return bt.prototype.run=function($e,Ye,Ve){var ze=p.a.fromUser(Ve,{kind:p.b.Refactor,apply:"never"});return Tt(Ye,typeof(Ve==null?void 0:Ve.kind)=="string"?ze.preferred?Pe.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",Ve.kind):Pe.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",Ve.kind):ze.preferred?Pe.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):Pe.a("editor.action.refactor.noneMessage","No refactorings available"),{include:p.b.Refactor.contains(ze.kind)?ze.kind:p.b.None,onlyIncludePreferredActions:ze.preferred},ze.apply)},bt}(I.b),Ct=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:D.f,label:Pe.a("source.label","Source Action..."),alias:"Source Action...",precondition:Te.a.and(K.a.writable,K.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:Te.a.and(K.a.writable,lo(p.b.Source))},description:{description:"Source Action...",args:[{name:"args",schema:so}]}})||this}return bt.prototype.run=function($e,Ye,Ve){var ze=p.a.fromUser(Ve,{kind:p.b.Source,apply:"never"});return Tt(Ye,typeof(Ve==null?void 0:Ve.kind)=="string"?ze.preferred?Pe.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",Ve.kind):Pe.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",Ve.kind):ze.preferred?Pe.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):Pe.a("editor.action.source.noneMessage","No source actions available"),{include:p.b.Source.contains(ze.kind)?ze.kind:p.b.None,includeSourceActions:!0,onlyIncludePreferredActions:ze.preferred},ze.apply)},bt}(I.b),ht=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:D.d,label:Pe.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Te.a.and(K.a.writable,lo(p.b.SourceOrganizeImports)),kbOpts:{kbExpr:K.a.editorTextFocus,primary:1024|512|45,weight:100}})||this}return bt.prototype.run=function($e,Ye){return Tt(Ye,Pe.a("editor.action.organize.noneMessage","No organize imports action available"),{include:p.b.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},bt}(I.b),Et=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:D.b,label:Pe.a("fixAll.label","Fix All"),alias:"Fix All",precondition:Te.a.and(K.a.writable,lo(p.b.SourceFixAll))})||this}return bt.prototype.run=function($e,Ye){return Tt(Ye,Pe.a("fixAll.noneMessage","No fix all action available"),{include:p.b.SourceFixAll,includeSourceActions:!0},"ifSingle")},bt}(I.b),Yt=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:bt.Id,label:Pe.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Te.a.and(K.a.writable,lo(p.b.QuickFix)),kbOpts:{kbExpr:K.a.editorTextFocus,primary:512|1024|84,mac:{primary:2048|512|84},weight:100}})||this}return bt.prototype.run=function($e,Ye){return Tt(Ye,Pe.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:p.b.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},bt.Id="editor.action.autoFix",bt}(I.b)},C6rC:function(Mt,F,e){},C9rm:function(Mt,F,e){},CClx:function(Mt,F,e){},CHaL:function(Mt,F,e){},CRAX:function(Mt,F,e){"use strict";e.d(F,"a",function(){return D}),e.d(F,"b",function(){return d});var T=e("3/fG"),pe=e("MI8n"),J=e("ic2d"),I=e("746U"),H=e("3Rsk"),K=e("QDVR"),D={Configuration:"base.contributions.configuration"},U={properties:{},patternProperties:{}},j={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},b={properties:{},patternProperties:{}},O={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},C="vscode://schemas/settings/resourceLanguage",w=J.a.as(H.a.JSONContribution),v=function(){function E(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new pe.a,this._onDidUpdateConfiguration=new pe.a,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:T.a("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},w.registerSchema(C,this.resourceLanguageSettingsSchema)}return E.prototype.registerConfiguration=function(L,R){R===void 0&&(R=!0),this.registerConfigurations([L],R)},E.prototype.registerConfigurations=function(L,R){var P=this;R===void 0&&(R=!0);var x=[];L.forEach(function(Q){x.push.apply(x,P.validateAndRegisterProperties(Q,R)),P.configurationContributors.push(Q),P.registerJSONConfiguration(Q)}),w.registerSchema(C,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(x)},E.prototype.registerOverrideIdentifiers=function(L){for(var R=0,P=L;R<P.length;R++){var x=P[R];this.overrideIdentifiers.add(x)}this.updateOverridePropertyPatternKey()},E.prototype.validateAndRegisterProperties=function(L,R,P){R===void 0&&(R=!0),P===void 0&&(P=3),P=I.l(L.scope)?P:L.scope;var x=[],Q=L.properties;if(Q)for(var V in Q){if(R&&f(V)){delete Q[V];continue}var W=Q[V],B=W.default;if(I.k(B)&&(W.default=c(W.type)),d.test(V)?W.scope=void 0:W.scope=I.l(W.scope)?P:W.scope,Q[V].hasOwnProperty("included")&&!Q[V].included){this.excludedConfigurationProperties[V]=Q[V],delete Q[V];continue}else this.configurationProperties[V]=Q[V];x.push(V)}var ae=L.allOf;if(ae)for(var we=0,Me=ae;we<Me.length;we++){var Pe=Me[we];x.push.apply(x,this.validateAndRegisterProperties(Pe,R,P))}return x},E.prototype.getConfigurationProperties=function(){return this.configurationProperties},E.prototype.registerJSONConfiguration=function(L){var R=this,P=function(x){var Q=x.properties;if(Q)for(var V in Q){U.properties[V]=Q[V];switch(Q[V].scope){case 1:j.properties[V]=Q[V];break;case 2:h.properties[V]=Q[V];break;case 6:b.properties[V]=Q[V];break;case 3:O.properties[V]=Q[V];break;case 4:m.properties[V]=Q[V];break;case 5:m.properties[V]=Q[V],R.resourceLanguageSettingsSchema.properties[V]=Q[V];break}}var W=x.allOf;W&&W.forEach(P)};P(L)},E.prototype.updateOverridePropertyPatternKey=function(){for(var L,R=0,P=Object(K.e)(this.overrideIdentifiers);R<P.length;R++){var x=P[R],Q="["+x+"]",V={type:"object",description:T.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:T.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:C,default:(L=this.defaultOverridesConfigurationNode.properties[Q])===null||L===void 0?void 0:L.default};U.properties[Q]=V,j.properties[Q]=V,h.properties[Q]=V,b.properties[Q]=V,O.properties[Q]=V,m.properties[Q]=V}this._onDidSchemaChange.fire()},E}(),p="\\[.*\\]$",d=new RegExp(p);function c(E){var L=Array.isArray(E)?E[0]:E;switch(L){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var u=new v;J.a.add(D.Configuration,u);function f(E){return d.test(E)?T.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",E):u.getConfigurationProperties()[E]!==void 0?T.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",E):null}},CZ1j:function(Mt,F,e){"use strict";e.d(F,"b",function(){return T}),e.d(F,"a",function(){return pe});function T(J){return J<0?0:J>255?255:J|0}function pe(J){return J<0?0:J>4294967295?4294967295:J|0}},CdFp:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return e.e(291).then(e.bind(null,"6Xso"))}})},CjF5:function(Mt,F,e){"use strict";e.d(F,"a",function(){return J});var T=e("D3Dy"),pe=e("MNsG"),J={clipboard:{writeText:pe.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:pe.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(T.i)return!1;if(T.e){var I=navigator.userAgent.indexOf("Edge/"),H=parseInt(navigator.userAgent.substring(I+5,navigator.userAgent.indexOf(".",I)),10);if(!H||H>=12&&H<=16)return!1}return!0}()},keyboard:function(){return pe.f||T.l?0:navigator.keyboard||T.k?1:2}(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},CjOT:function(Mt,F,e){},Comh:function(Mt,F,e){"use strict";e.d(F,"b",function(){return I}),e.d(F,"a",function(){return H});var T=e("N0LK"),pe=e("cGHE"),J=e("aokT"),I=function(){function K(D,U,j,h,b){this.value=D,this.selectionStart=U,this.selectionEnd=j,this.selectionStartPosition=h,this.selectionEndPosition=b}return K.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},K.readFromTextArea=function(D){return new K(D.getValue(),D.getSelectionStart(),D.getSelectionEnd(),null,null)},K.prototype.collapseSelection=function(){return new K(this.value,this.value.length,this.value.length,null,null)},K.prototype.writeToTextArea=function(D,U,j){U.setValue(D,this.value),j&&U.setSelectionRange(D,this.selectionStart,this.selectionEnd)},K.prototype.deduceEditorPosition=function(D){if(D<=this.selectionStart){var U=this.value.substring(D,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,U,-1)}if(D>=this.selectionEnd){var U=this.value.substring(this.selectionEnd,D);return this._finishDeduceEditorPosition(this.selectionEndPosition,U,1)}var j=this.value.substring(this.selectionStart,D);if(j.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,j,1);var h=this.value.substring(D,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,h,-1)},K.prototype._finishDeduceEditorPosition=function(D,U,j){for(var h=0,b=-1;(b=U.indexOf(`
`,b+1))!==-1;)h++;return[D,j*U.length,h]},K.selectedText=function(D){return new K(D,0,D.length,null,null)},K.deduceInput=function(D,U,j){if(!D)return{text:"",replaceCharCnt:0};var h=D.value,b=D.selectionStart,O=D.selectionEnd,m=U.value,C=U.selectionStart,w=U.selectionEnd,v=h.substring(O),p=m.substring(w),d=T.d(v,p);m=m.substring(0,m.length-d),h=h.substring(0,h.length-d);var c=h.substring(0,b),u=m.substring(0,C),f=T.c(c,u);if(m=m.substring(f),h=h.substring(f),C-=f,b-=f,w-=f,O-=f,j&&C===w&&h.length>0){var E=null;if(C===m.length?T.N(m,h)&&(E=m.substring(h.length)):T.m(m,h)&&(E=m.substring(0,m.length-h.length)),E!==null&&E.length>0&&(/\uFE0F/.test(E)||T.g(E)))return{text:E,replaceCharCnt:0}}if(C===w){if(h===m&&b===0&&O===h.length&&C===m.length&&m.indexOf(`
`)===-1&&T.h(m))return{text:"",replaceCharCnt:0};var L=c.length-f;return{text:m,replaceCharCnt:L}}var R=O-b;return{text:m,replaceCharCnt:R}},K.EMPTY=new K("",0,0,null,null),K}(),H=function(){function K(){}return K._getPageOfLine=function(D,U){return Math.floor((D-1)/U)},K._getRangeForPage=function(D,U){var j=D*U,h=j+1,b=j+U;return new J.a(h,1,b+1,1)},K.fromEditorSelection=function(D,U,j,h,b){var O=K._getPageOfLine(j.startLineNumber,h),m=K._getRangeForPage(O,h),C=K._getPageOfLine(j.endLineNumber,h),w=K._getRangeForPage(C,h),v=m.intersectRanges(new J.a(1,1,j.startLineNumber,j.startColumn)),p=U.getValueInRange(v,1),d=U.getLineCount(),c=U.getLineMaxColumn(d),u=w.intersectRanges(new J.a(j.endLineNumber,j.endColumn,d,c)),f=U.getValueInRange(u,1),E;if(O===C||O+1===C)E=U.getValueInRange(j,1);else{var L=m.intersectRanges(j),R=w.intersectRanges(j);E=U.getValueInRange(L,1)+String.fromCharCode(8230)+U.getValueInRange(R,1)}if(b){var P=500;p.length>P&&(p=p.substring(p.length-P,p.length)),f.length>P&&(f=f.substring(0,P)),E.length>2*P&&(E=E.substring(0,P)+String.fromCharCode(8230)+E.substring(E.length-P,E.length))}return new I(p+E+f,p.length,p.length+E.length,new pe.a(j.startLineNumber,j.startColumn),new pe.a(j.endLineNumber,j.endColumn))},K}()},CxEt:function(Mt,F,e){"use strict";e.r(F);var T=e("sswD"),pe=e("C1Q+");Object(T.h)(pe.f.ID,pe.f),Object(T.f)(pe.e),Object(T.f)(pe.g),Object(T.f)(pe.h),Object(T.f)(pe.d),Object(T.f)(pe.a),Object(T.f)(pe.c),Object(T.g)(new pe.b)},D3Dy:function(Mt,F,e){"use strict";e.d(F,"c",function(){return J}),e.d(F,"b",function(){return I}),e.d(F,"o",function(){return H}),e.d(F,"a",function(){return K}),e.d(F,"i",function(){return U}),e.d(F,"e",function(){return j}),e.d(F,"f",function(){return h}),e.d(F,"h",function(){return b}),e.d(F,"m",function(){return O}),e.d(F,"d",function(){return m}),e.d(F,"k",function(){return C}),e.d(F,"n",function(){return w}),e.d(F,"j",function(){return v}),e.d(F,"g",function(){return p}),e.d(F,"l",function(){return d});var T=e("MI8n"),pe=function(){function c(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new T.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return c.prototype.getZoomLevel=function(){return this._zoomLevel},c.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},c.prototype.getPixelRatio=function(){var u=document.createElement("canvas").getContext("2d"),f=window.devicePixelRatio||1,E=u.webkitBackingStorePixelRatio||u.mozBackingStorePixelRatio||u.msBackingStorePixelRatio||u.oBackingStorePixelRatio||u.backingStorePixelRatio||1;return f/E},c.INSTANCE=new c,c}();function J(){return pe.INSTANCE.getZoomLevel()}function I(){return pe.INSTANCE.getTimeSinceLastZoomLevelChanged()}function H(c){return pe.INSTANCE.onDidChangeZoomLevel(c)}function K(){return pe.INSTANCE.getPixelRatio()}var D=navigator.userAgent,U=D.indexOf("Trident")>=0,j=D.indexOf("Edge/")>=0,h=U||j,b=D.indexOf("Firefox")>=0,O=D.indexOf("AppleWebKit")>=0,m=D.indexOf("Chrome")>=0,C=!m&&D.indexOf("Safari")>=0,w=!m&&!C&&O,v=D.indexOf("iPad")>=0||C&&navigator.maxTouchPoints>0,p=j&&D.indexOf("WebView/")>=0,d=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},DTDp:function(Mt,F,e){},Dvnd:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return e.e(309).then(e.bind(null,"y0OK"))}})},"E+ie":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return e.e(299).then(e.bind(null,"p+q7"))}})},E4kL:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return e.e(348).then(e.bind(null,"EaLm"))}})},EIAu:function(Mt,F,e){"use strict";e.d(F,"b",function(){return H}),e.d(F,"a",function(){return v});var T=e("N0LK"),pe=e("aokT"),J=function(){function p(d,c,u,f,E,L){this.languageIdentifier=d,this.index=c,this.open=u,this.close=f,this.forwardRegex=E,this.reversedRegex=L,this._openSet=p._toSet(this.open),this._closeSet=p._toSet(this.close)}return p.prototype.isOpen=function(d){return this._openSet.has(d)},p.prototype.isClose=function(d){return this._closeSet.has(d)},p._toSet=function(d){for(var c=new Set,u=0,f=d;u<f.length;u++){var E=f[u];c.add(E)}return c},p}();function I(p){var d=p.length;p=p.map(function(Me){return[Me[0].toLowerCase(),Me[1].toLowerCase()]});for(var c=[],u=0;u<d;u++)c[u]=u;for(var f=function(Me,Pe){var Be=Me[0],Ke=Me[1],Fe=Pe[0],re=Pe[1];return Be===Fe||Be===re||Ke===Fe||Ke===re},E=function(Me,Pe){for(var Be=Math.min(Me,Pe),Ke=Math.max(Me,Pe),Fe=0;Fe<d;Fe++)c[Fe]===Ke&&(c[Fe]=Be)},u=0;u<d;u++)for(var L=p[u],R=u+1;R<d;R++){var P=p[R];f(L,P)&&E(c[u],c[R])}for(var x=[],Q=0;Q<d;Q++){for(var V=[],W=[],u=0;u<d;u++)if(c[u]===Q){var B=p[u],ae=B[0],we=B[1];V.push(ae),W.push(we)}V.length>0&&x.push({open:V,close:W})}return x}var H=function(){function p(d,c){var u=I(c);this.brackets=u.map(function(B,ae){return new J(d,ae,B.open,B.close,j(B.open,B.close,u,ae),h(B.open,B.close,u,ae))}),this.forwardRegex=b(this.brackets),this.reversedRegex=O(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var f=0,E=this.brackets;f<E.length;f++){for(var L=E[f],R=0,P=L.open;R<P.length;R++){var x=P[R];this.textIsBracket[x]=L,this.textIsOpenBracket[x]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,x.length)}for(var Q=0,V=L.close;Q<V.length;Q++){var W=V[Q];this.textIsBracket[W]=L,this.textIsOpenBracket[W]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,W.length)}}}return p}();function K(p,d,c,u){for(var f=0,E=d.length;f<E;f++){if(f===c)continue;for(var L=d[f],R=0,P=L.open;R<P.length;R++){var x=P[R];x.indexOf(p)>=0&&u.push(x)}for(var Q=0,V=L.close;Q<V.length;Q++){var W=V[Q];W.indexOf(p)>=0&&u.push(W)}}}function D(p,d){return p.length-d.length}function U(p){if(p.length<=1)return p;for(var d=[],c=new Set,u=0,f=p;u<f.length;u++){var E=f[u];if(c.has(E))continue;d.push(E),c.add(E)}return d}function j(p,d,c,u){var f=[];f=f.concat(p),f=f.concat(d);for(var E=0,L=f.length;E<L;E++)K(f[E],c,u,f);return f=U(f),f.sort(D),f.reverse(),C(f)}function h(p,d,c,u){var f=[];f=f.concat(p),f=f.concat(d);for(var E=0,L=f.length;E<L;E++)K(f[E],c,u,f);return f=U(f),f.sort(D),f.reverse(),C(f.map(w))}function b(p){for(var d=[],c=0,u=p;c<u.length;c++){for(var f=u[c],E=0,L=f.open;E<L.length;E++){var R=L[E];d.push(R)}for(var P=0,x=f.close;P<x.length;P++){var Q=x[P];d.push(Q)}}return d=U(d),C(d)}function O(p){for(var d=[],c=0,u=p;c<u.length;c++){for(var f=u[c],E=0,L=f.open;E<L.length;E++){var R=L[E];d.push(R)}for(var P=0,x=f.close;P<x.length;P++){var Q=x[P];d.push(Q)}}return d=U(d),C(d.map(w))}function m(p){var d=/^[\w ]+$/.test(p);return p=T.p(p),d?"\\b"+p+"\\b":p}function C(p){var d="("+p.map(m).join(")|(")+")";return T.l(d,!0)}var w=function(){function p(u){for(var f="",E=u.length-1;E>=0;E--)f+=u.charAt(E);return f}var d=null,c=null;return function(f){return d!==f&&(d=f,c=p(d)),c}}(),v=function(){function p(){}return p._findPrevBracketInText=function(d,c,u,f){var E=u.match(d);if(!E)return null;var L=u.length-(E.index||0),R=E[0].length,P=f+L;return new pe.a(c,P-R+1,c,P+1)},p.findPrevBracketInRange=function(d,c,u,f,E){var L=w(u),R=L.substring(u.length-E,u.length-f);return this._findPrevBracketInText(d,c,R,f)},p.findNextBracketInText=function(d,c,u,f){var E=u.match(d);if(!E)return null;var L=E.index||0,R=E[0].length;if(R===0)return null;var P=f+L;return new pe.a(c,P+1,c,P+1+R)},p.findNextBracketInRange=function(d,c,u,f,E){var L=u.substring(f,E);return this.findNextBracketInText(d,c,L,f)},p}()},EOst:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return e.e(345).then(e.bind(null,"87dK"))}})},"EPS+":function(Mt,F,e){},EWX2:function(Mt,F,e){"use strict";e.d(F,"a",function(){return H}),e.d(F,"b",function(){return j});var T=e("bY76"),pe=e("gslv"),J=e("Cg/j"),I=e("QDVR"),H=Object(J.c)("contextService"),K;(function(h){function b(O){return O&&typeof O=="object"&&typeof O.id=="string"&&Array.isArray(O.folders)}h.isIWorkspace=b})(K||(K={}));var D;(function(h){function b(O){return O&&typeof O=="object"&&T.a.isUri(O.uri)&&typeof O.name=="string"&&typeof O.toResource=="function"}h.isIWorkspaceFolder=b})(D||(D={}));var U=function(){function h(b,O,m){O===void 0&&(O=[]),m===void 0&&(m=null),this._id=b,this._configuration=m,this._foldersMap=I.c.forPaths(),this.folders=O}return Object.defineProperty(h.prototype,"folders",{get:function(){return this._folders},set:function(b){this._folders=b,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"configuration",{get:function(){return this._configuration},set:function(b){this._configuration=b},enumerable:!0,configurable:!0}),h.prototype.getFolder=function(b){return b&&this._foldersMap.findSubstr(b.with({scheme:b.scheme,authority:b.authority,path:b.path}).toString())||null},h.prototype.updateFoldersMap=function(){this._foldersMap=I.c.forPaths();for(var b=0,O=this.folders;b<O.length;b++){var m=O[b];this._foldersMap.set(m.uri.toString(),m)}},h.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}},h}(),j=function(){function h(b,O){this.raw=O,this.uri=b.uri,this.index=b.index,this.name=b.name}return h.prototype.toResource=function(b){return pe.f(this.uri,b)},h.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},h}()},EffR:function(Mt,F,e){"use strict";e.d(F,"t",function(){return v}),e.d(F,"R",function(){return p}),e.d(F,"M",function(){return d}),e.d(F,"I",function(){return E}),e.d(F,"f",function(){return L}),e.d(F,"g",function(){return R}),e.d(F,"P",function(){return P}),e.d(F,"Q",function(){return x}),e.d(F,"Y",function(){return Q}),e.d(F,"j",function(){return W}),e.d(F,"o",function(){return we}),e.d(F,"n",function(){return Me}),e.d(F,"h",function(){return Pe}),e.d(F,"i",function(){return Be}),e.d(F,"k",function(){return Ke}),e.d(F,"l",function(){return Fe}),e.d(F,"U",function(){return ne}),e.d(F,"W",function(){return q}),e.d(F,"m",function(){return Xe}),e.d(F,"z",function(){return de}),e.d(F,"y",function(){return ge}),e.d(F,"b",function(){return Te}),e.d(F,"F",function(){return Ce}),e.d(F,"C",function(){return fe}),e.d(F,"e",function(){return $}),e.d(F,"H",function(){return S}),e.d(F,"B",function(){return z}),e.d(F,"A",function(){return ce}),e.d(F,"G",function(){return se}),e.d(F,"K",function(){return ye}),e.d(F,"x",function(){return Re}),e.d(F,"N",function(){return Ue}),e.d(F,"E",function(){return Je}),e.d(F,"w",function(){return nt}),e.d(F,"v",function(){return Kt}),e.d(F,"O",function(){return ao}),e.d(F,"L",function(){return lo}),e.d(F,"d",function(){return so}),e.d(F,"c",function(){return jt}),e.d(F,"V",function(){return pt}),e.d(F,"T",function(){return gt}),e.d(F,"Z",function(){return it}),e.d(F,"q",function(){return et}),e.d(F,"a",function(){return Et}),e.d(F,"X",function(){return Yt}),e.d(F,"J",function(){return Nt}),e.d(F,"S",function(){return $e}),e.d(F,"D",function(){return Ye}),e.d(F,"u",function(){return Ve}),e.d(F,"ab",function(){return ze}),e.d(F,"p",function(){return me}),e.d(F,"s",function(){return G}),e.d(F,"r",function(){return oe});var T=e("D3Dy"),pe=e("4y0V"),J=e("uDWl"),I=e("XSiN"),H=e("X+cX"),K=e("/cxE"),D=e("MI8n"),U=e("pmY6"),j=e("MNsG"),h=e("6OMU"),b=e("tYmi"),O=e("CjF5"),m=function(){var Y=function(ie,je){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dt,Dt){dt.__proto__=Dt}||function(dt,Dt){for(var Qt in Dt)Dt.hasOwnProperty(Qt)&&(dt[Qt]=Dt[Qt])},Y(ie,je)};return function(ie,je){Y(ie,je);function dt(){this.constructor=ie}ie.prototype=je===null?Object.create(je):(dt.prototype=je.prototype,new dt)}}(),C=function(){return C=Object.assign||function(Y){for(var ie,je=1,dt=arguments.length;je<dt;je++){ie=arguments[je];for(var Dt in ie)Object.prototype.hasOwnProperty.call(ie,Dt)&&(Y[Dt]=ie[Dt])}return Y},C.apply(this,arguments)},w=function(){for(var Y=0,ie=0,je=arguments.length;ie<je;ie++)Y+=arguments[ie].length;for(var dt=Array(Y),Dt=0,ie=0;ie<je;ie++)for(var Qt=arguments[ie],to=0,fo=Qt.length;to<fo;to++,Dt++)dt[Dt]=Qt[to];return dt};function v(Y){for(;Y.firstChild;)Y.removeChild(Y.firstChild)}function p(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function d(Y){for(;Y;){if(Y===document.body)return!0;Y=Y.parentNode||Y.host}return!1}var c=new(function(){function Y(){this._lastStart=-1,this._lastEnd=-1}return Y.prototype._findClassName=function(ie,je){var dt=ie.className;if(!dt){this._lastStart=-1;return}je=je.trim();var Dt=dt.length,Qt=je.length;if(Qt===0){this._lastStart=-1;return}if(Dt<Qt){this._lastStart=-1;return}if(dt===je){this._lastStart=0,this._lastEnd=Dt;return}for(var to=-1,fo;(to=dt.indexOf(je,to+1))>=0;){if(fo=to+Qt,(to===0||dt.charCodeAt(to-1)===32)&&dt.charCodeAt(fo)===32){this._lastStart=to,this._lastEnd=fo+1;return}if(to>0&&dt.charCodeAt(to-1)===32&&fo===Dt){this._lastStart=to-1,this._lastEnd=fo;return}if(to===0&&fo===Dt){this._lastStart=0,this._lastEnd=fo;return}}this._lastStart=-1},Y.prototype.hasClass=function(ie,je){return this._findClassName(ie,je),this._lastStart!==-1},Y.prototype.addClasses=function(ie){for(var je=this,dt=[],Dt=1;Dt<arguments.length;Dt++)dt[Dt-1]=arguments[Dt];dt.forEach(function(Qt){return Qt.split(" ").forEach(function(to){return je.addClass(ie,to)})})},Y.prototype.addClass=function(ie,je){ie.className?(this._findClassName(ie,je),this._lastStart===-1&&(ie.className=ie.className+" "+je)):ie.className=je},Y.prototype.removeClass=function(ie,je){if(this._findClassName(ie,je),this._lastStart===-1)return;ie.className=ie.className.substring(0,this._lastStart)+ie.className.substring(this._lastEnd)},Y.prototype.removeClasses=function(ie){for(var je=this,dt=[],Dt=1;Dt<arguments.length;Dt++)dt[Dt-1]=arguments[Dt];dt.forEach(function(Qt){return Qt.split(" ").forEach(function(to){return je.removeClass(ie,to)})})},Y.prototype.toggleClass=function(ie,je,dt){this._findClassName(ie,je),this._lastStart!==-1&&(dt===void 0||!dt)&&this.removeClass(ie,je),this._lastStart===-1&&(dt===void 0||dt)&&this.addClass(ie,je)},Y}()),u=new(function(){function Y(){}return Y.prototype.hasClass=function(ie,je){return Boolean(je)&&ie.classList&&ie.classList.contains(je)},Y.prototype.addClasses=function(ie){for(var je=this,dt=[],Dt=1;Dt<arguments.length;Dt++)dt[Dt-1]=arguments[Dt];dt.forEach(function(Qt){return Qt.split(" ").forEach(function(to){return je.addClass(ie,to)})})},Y.prototype.addClass=function(ie,je){je&&ie.classList&&ie.classList.add(je)},Y.prototype.removeClass=function(ie,je){je&&ie.classList&&ie.classList.remove(je)},Y.prototype.removeClasses=function(ie){for(var je=this,dt=[],Dt=1;Dt<arguments.length;Dt++)dt[Dt-1]=arguments[Dt];dt.forEach(function(Qt){return Qt.split(" ").forEach(function(to){return je.removeClass(ie,to)})})},Y.prototype.toggleClass=function(ie,je,dt){ie.classList&&ie.classList.toggle(je,dt)},Y}()),f=T.i?c:u,E=f.hasClass.bind(f),L=f.addClass.bind(f),R=f.addClasses.bind(f),P=f.removeClass.bind(f),x=f.removeClasses.bind(f),Q=f.toggleClass.bind(f),V=function(){function Y(ie,je,dt,Dt){this._node=ie,this._type=je,this._handler=dt,this._options=Dt||!1,this._node.addEventListener(this._type,this._handler,this._options)}return Y.prototype.dispose=function(){if(!this._handler)return;this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null},Y}();function W(Y,ie,je,dt){return new V(Y,ie,je,dt)}function B(Y){return function(ie){return Y(new I.b(ie))}}function ae(Y){return function(ie){return Y(new J.a(ie))}}var we=function(ie,je,dt,Dt){var Qt=dt;return je==="click"||je==="mousedown"?Qt=B(dt):(je==="keydown"||je==="keypress"||je==="keyup")&&(Qt=ae(dt)),W(ie,je,Qt,Dt)},Me=function(ie,je,dt){var Dt=B(je);return Pe(ie,Dt,dt)};function Pe(Y,ie,je){return W(Y,j.c&&O.a.pointerEvents?so.POINTER_DOWN:so.MOUSE_DOWN,ie,je)}function Be(Y,ie,je){return W(Y,j.c&&O.a.pointerEvents?so.POINTER_UP:so.MOUSE_UP,ie,je)}function Ke(Y,ie){return W(Y,"mouseout",function(je){for(var dt=je.relatedTarget;dt&&dt!==Y;)dt=dt.parentNode;if(dt===Y)return;ie(je)})}function Fe(Y,ie){return W(Y,"pointerout",function(je){for(var dt=je.relatedTarget;dt&&dt!==Y;)dt=dt.parentNode;if(dt===Y)return;ie(je)})}var re=null;function ee(Y){if(!re){var ie=function(je){return setTimeout(function(){return je(new Date().getTime())},0)};re=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||ie}return re.call(self,Y)}var ne,q,le=function(){function Y(ie,je){je===void 0&&(je=0),this._runner=ie,this.priority=je,this._canceled=!1}return Y.prototype.dispose=function(){this._canceled=!0},Y.prototype.execute=function(){if(this._canceled)return;try{this._runner()}catch(ie){Object(K.e)(ie)}},Y.sort=function(ie,je){return je.priority-ie.priority},Y}();(function(){var Y=[],ie=null,je=!1,dt=!1,Dt=function(){for(je=!1,ie=Y,Y=[],dt=!0;ie.length>0;){ie.sort(le.sort);var Qt=ie.shift();Qt.execute()}dt=!1};q=function(Qt,to){to===void 0&&(to=0);var fo=new le(Qt,to);return Y.push(fo),je||(je=!0,ee(Dt)),fo},ne=function(Qt,to){if(dt){var fo=new le(Qt,to);return ie.push(fo),fo}else return q(Qt,to)}})();var Z=16,ve=function(Y,ie){return ie},Ne=function(Y){m(ie,Y);function ie(je,dt,Dt,Qt,to){Qt===void 0&&(Qt=ve),to===void 0&&(to=Z);var fo=Y.call(this)||this,ho=null,wo=0,Oo=fo._register(new H.e),Ro=function(){wo=new Date().getTime(),Dt(ho),ho=null};return fo._register(W(je,dt,function(jo){ho=Qt(ho,jo);var Eo=new Date().getTime()-wo;Eo>=to?(Oo.cancel(),Ro()):Oo.setIfNotSet(Ro,to-Eo)})),fo}return ie}(U.a);function Xe(Y,ie,je,dt,Dt){return new Ne(Y,ie,je,dt,Dt)}function de(Y){return document.defaultView.getComputedStyle(Y,null)}function ge(Y){if(Y!==document.body)return new Te(Y.clientWidth,Y.clientHeight);if(j.c&&window.visualViewport){var ie=window.visualViewport.width,je=window.visualViewport.height-(T.l?20+4:0);return new Te(ie,je)}if(window.innerWidth&&window.innerHeight)return new Te(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Te(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Te(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var Ee=function(){function Y(){}return Y.convertToPixels=function(ie,je){return parseFloat(je)||0},Y.getDimension=function(ie,je,dt){var Dt=de(ie),Qt="0";return Dt&&(Dt.getPropertyValue?Qt=Dt.getPropertyValue(je):Qt=Dt.getAttribute(dt)),Y.convertToPixels(ie,Qt)},Y.getBorderLeftWidth=function(ie){return Y.getDimension(ie,"border-left-width","borderLeftWidth")},Y.getBorderRightWidth=function(ie){return Y.getDimension(ie,"border-right-width","borderRightWidth")},Y.getBorderTopWidth=function(ie){return Y.getDimension(ie,"border-top-width","borderTopWidth")},Y.getBorderBottomWidth=function(ie){return Y.getDimension(ie,"border-bottom-width","borderBottomWidth")},Y.getPaddingLeft=function(ie){return Y.getDimension(ie,"padding-left","paddingLeft")},Y.getPaddingRight=function(ie){return Y.getDimension(ie,"padding-right","paddingRight")},Y.getPaddingTop=function(ie){return Y.getDimension(ie,"padding-top","paddingTop")},Y.getPaddingBottom=function(ie){return Y.getDimension(ie,"padding-bottom","paddingBottom")},Y.getMarginLeft=function(ie){return Y.getDimension(ie,"margin-left","marginLeft")},Y.getMarginTop=function(ie){return Y.getDimension(ie,"margin-top","marginTop")},Y.getMarginRight=function(ie){return Y.getDimension(ie,"margin-right","marginRight")},Y.getMarginBottom=function(ie){return Y.getDimension(ie,"margin-bottom","marginBottom")},Y}(),Te=function(){function Y(ie,je){this.width=ie,this.height=je}return Y}();function Ce(Y){for(var ie=Y.offsetParent,je=Y.offsetTop,dt=Y.offsetLeft;(Y=Y.parentNode)!==null&&Y!==document.body&&Y!==document.documentElement;){je-=Y.scrollTop;var Dt=Le(Y)?null:de(Y);Dt&&(dt-=Dt.direction!=="rtl"?Y.scrollLeft:-Y.scrollLeft),Y===ie&&(dt+=Ee.getBorderLeftWidth(Y),je+=Ee.getBorderTopWidth(Y),je+=Y.offsetTop,dt+=Y.offsetLeft,ie=Y.offsetParent)}return{left:dt,top:je}}function fe(Y){var ie=Y.getBoundingClientRect();return{left:ie.left+$.scrollX,top:ie.top+$.scrollY,width:ie.width,height:ie.height}}var $=new(function(){function Y(){}return Object.defineProperty(Y.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),Y}());function S(Y){var ie=Ee.getMarginLeft(Y)+Ee.getMarginRight(Y);return Y.offsetWidth+ie}function z(Y){var ie=Ee.getBorderLeftWidth(Y)+Ee.getBorderRightWidth(Y),je=Ee.getPaddingLeft(Y)+Ee.getPaddingRight(Y);return Y.offsetWidth-ie-je}function ce(Y){var ie=Ee.getBorderTopWidth(Y)+Ee.getBorderBottomWidth(Y),je=Ee.getPaddingTop(Y)+Ee.getPaddingBottom(Y);return Y.offsetHeight-ie-je}function se(Y){var ie=Ee.getMarginTop(Y)+Ee.getMarginBottom(Y);return Y.offsetHeight+ie}function ye(Y,ie){for(;Y;){if(Y===ie)return!0;Y=Y.parentNode}return!1}function Re(Y,ie,je){for(;Y&&Y.nodeType===Y.ELEMENT_NODE;){if(E(Y,ie))return Y;if(je){if(typeof je=="string"){if(E(Y,je))return null}else if(Y===je)return null}Y=Y.parentNode}return null}function Le(Y){return Y&&!!Y.host&&!!Y.mode}function Ue(Y){return!!Je(Y)}function Je(Y){for(;Y.parentNode;){if(Y===document.body)return null;Y=Y.parentNode}return Le(Y)?Y:null}function nt(Y){Y===void 0&&(Y=document.getElementsByTagName("head")[0]);var ie=document.createElement("style");return ie.type="text/css",ie.media="screen",Y.appendChild(ie),ie}var vt=null;function Rt(){return vt||(vt=nt()),vt}function Ot(Y){return Y&&Y.sheet&&Y.sheet.rules?Y.sheet.rules:Y&&Y.sheet&&Y.sheet.cssRules?Y.sheet.cssRules:[]}function Kt(Y,ie,je){if(je===void 0&&(je=Rt()),!je||!ie)return;je.sheet.insertRule(Y+"{"+ie+"}",0)}function ao(Y,ie){if(ie===void 0&&(ie=Rt()),!ie)return;for(var je=Ot(ie),dt=[],Dt=0;Dt<je.length;Dt++){var Qt=je[Dt];Qt.selectorText.indexOf(Y)!==-1&&dt.push(Dt)}for(var Dt=dt.length-1;Dt>=0;Dt--)ie.sheet.deleteRule(dt[Dt])}function lo(Y){return typeof HTMLElement=="object"?Y instanceof HTMLElement:Y&&typeof Y=="object"&&Y.nodeType===1&&typeof Y.nodeName=="string"}var so={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:T.m?"webkitAnimationStart":"animationstart",ANIMATION_END:T.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:T.m?"webkitAnimationIteration":"animationiteration"},jt={stop:function(Y,ie){Y.preventDefault?Y.preventDefault():Y.returnValue=!1,ie&&(Y.stopPropagation?Y.stopPropagation():Y.cancelBubble=!0)}};function pt(Y){for(var ie=[],je=0;Y&&Y.nodeType===Y.ELEMENT_NODE;je++)ie[je]=Y.scrollTop,Y=Y.parentNode;return ie}function gt(Y,ie){for(var je=0;Y&&Y.nodeType===Y.ELEMENT_NODE;je++)Y.scrollTop!==ie[je]&&(Y.scrollTop=ie[je]),Y=Y.parentNode}var Tt=function(Y){m(ie,Y);function ie(je){var dt=Y.call(this)||this;dt._onDidFocus=dt._register(new D.a),dt.onDidFocus=dt._onDidFocus.event,dt._onDidBlur=dt._register(new D.a),dt.onDidBlur=dt._onDidBlur.event;var Dt=ye(document.activeElement,je),Qt=!1,to=function(){Qt=!1,Dt||(Dt=!0,dt._onDidFocus.fire())},fo=function(){Dt&&(Qt=!0,window.setTimeout(function(){Qt&&(Qt=!1,Dt=!1,dt._onDidBlur.fire())},0))};return dt._refreshStateHandler=function(){var ho=ye(document.activeElement,je);ho!==Dt&&(Dt?fo():to())},dt._register(Object(pe.a)(je,so.FOCUS,!0)(to)),dt._register(Object(pe.a)(je,so.BLUR,!0)(fo)),dt}return ie}(U.a);function it(Y){return new Tt(Y)}function et(Y){for(var ie=[],je=1;je<arguments.length;je++)ie[je-1]=arguments[je];return ie.forEach(function(dt){return Y.appendChild(dt)}),ie[ie.length-1]}var ut=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/,Ct;(function(Y){Y.HTML="http://www.w3.org/1999/xhtml",Y.SVG="http://www.w3.org/2000/svg"})(Ct||(Ct={}));function ht(Y,ie,je){for(var dt=[],Dt=3;Dt<arguments.length;Dt++)dt[Dt-3]=arguments[Dt];var Qt=ut.exec(ie);if(!Qt)throw new Error("Bad use of emmet");je=C({},je||{});var to=Qt[1]||"div",fo;return Y!==Ct.HTML?fo=document.createElementNS(Y,to):fo=document.createElement(to),Qt[3]&&(fo.id=Qt[3]),Qt[4]&&(fo.className=Qt[4].replace(/\./g," ").trim()),Object.keys(je).forEach(function(ho){var wo=je[ho];if(typeof wo=="undefined")return;/^on\w+$/.test(ho)?fo[ho]=wo:ho==="selected"?wo&&fo.setAttribute(ho,"true"):fo.setAttribute(ho,wo)}),Object(h.d)(dt).forEach(function(ho){ho instanceof Node?fo.appendChild(ho):fo.appendChild(document.createTextNode(ho))}),fo}function Et(Y,ie){for(var je=[],dt=2;dt<arguments.length;dt++)je[dt-2]=arguments[dt];return ht.apply(void 0,w([Ct.HTML,Y,ie],je))}Et.SVG=function(Y,ie){for(var je=[],dt=2;dt<arguments.length;dt++)je[dt-2]=arguments[dt];return ht.apply(void 0,w([Ct.SVG,Y,ie],je))};function Yt(){for(var Y=[],ie=0;ie<arguments.length;ie++)Y[ie]=arguments[ie];for(var je=0,dt=Y;je<dt.length;je++){var Dt=dt[je];Dt.style.display="",Dt.removeAttribute("aria-hidden")}}function Nt(){for(var Y=[],ie=0;ie<arguments.length;ie++)Y[ie]=arguments[ie];for(var je=0,dt=Y;je<dt.length;je++){var Dt=dt[je];Dt.style.display="none",Dt.setAttribute("aria-hidden","true")}}function bt(Y,ie){for(;Y&&Y.nodeType===Y.ELEMENT_NODE;){if(Y instanceof HTMLElement&&Y.hasAttribute(ie))return Y;Y=Y.parentNode}return null}function $e(Y){if(!Y||!Y.hasAttribute("tabIndex"))return;if(document.activeElement===Y){var ie=bt(Y.parentElement,"tabIndex");ie&&ie.focus()}Y.removeAttribute("tabindex")}function Ye(Y){return Array.prototype.slice.call(document.getElementsByTagName(Y),0)}function Ve(Y){var ie=window.devicePixelRatio*Y;return Math.max(1,Math.floor(ie))/window.devicePixelRatio}function ze(Y){if(j.f||T.g)window.open(Y);else{var ie=window.open();ie&&(ie.opener=null,ie.location.href=Y)}}function me(Y){var ie=function(){Y(),je=q(ie)},je=q(ie);return Object(U.h)(function(){return je.dispose()})}b.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function G(Y){return Y&&(b.b.vscodeRemote===Y.scheme?b.a.rewrite(Y):Y)}function oe(Y){return Y?"url('"+G(Y).toString(!0).replace(/'/g,"%27")+"')":"url('')"}},EzsQ:function(Mt,F,e){},FWmy:function(Mt,F,e){"use strict";e.d(F,"a",function(){return T});function T(pe,J){if(!pe)throw new Error(J?"Assertion failed ("+J+")":"Assertion Failed")}},FvUK:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return e.e(310).then(e.bind(null,"OfHX"))}})},G2kB:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"b",function(){return J});var T=e("Cg/j"),pe=Object(T.c)("modelService");function J(I){return!I.isTooLargeForSyncing()&&!I.isForSimpleWidget}},G300:function(Mt,F,e){"use strict";e.d(F,"a",function(){return D});var T=e("EffR"),pe=e("uDWl"),J=e("XSiN"),I=e("pmY6"),H=e("pg8w"),K=function(){var U=function(j,h){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var m in O)O.hasOwnProperty(m)&&(b[m]=O[m])},U(j,h)};return function(j,h){U(j,h);function b(){this.constructor=j}j.prototype=h===null?Object.create(h):(b.prototype=h.prototype,new b)}}(),D=function(U){K(j,U);function j(){return U!==null&&U.apply(this,arguments)||this}return j.prototype.onclick=function(h,b){this._register(T.j(h,T.d.CLICK,function(O){return b(new J.b(O))}))},j.prototype.onmousedown=function(h,b){this._register(T.j(h,T.d.MOUSE_DOWN,function(O){return b(new J.b(O))}))},j.prototype.onmouseover=function(h,b){this._register(T.j(h,T.d.MOUSE_OVER,function(O){return b(new J.b(O))}))},j.prototype.onnonbubblingmouseout=function(h,b){this._register(T.k(h,function(O){return b(new J.b(O))}))},j.prototype.onkeydown=function(h,b){this._register(T.j(h,T.d.KEY_DOWN,function(O){return b(new pe.a(O))}))},j.prototype.onkeyup=function(h,b){this._register(T.j(h,T.d.KEY_UP,function(O){return b(new pe.a(O))}))},j.prototype.oninput=function(h,b){this._register(T.j(h,T.d.INPUT,b))},j.prototype.onblur=function(h,b){this._register(T.j(h,T.d.BLUR,b))},j.prototype.onfocus=function(h,b){this._register(T.j(h,T.d.FOCUS,b))},j.prototype.ignoreGesture=function(h){H.b.ignoreTarget(h)},j}(I.a)},GJhM:function(Mt,F,e){"use strict";e.d(F,"b",function(){return Pe}),e.d(F,"c",function(){return Be}),e.d(F,"a",function(){return Ke});var T=e("eq1K"),pe=e("D3Dy"),J=e("EffR"),I=e("ZlPH"),H=e("XSiN"),K=e("AKMP"),D=e("G300"),U=e("X+cX"),j=function(){var re=function(ee,ne){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,le){q.__proto__=le}||function(q,le){for(var Z in le)le.hasOwnProperty(Z)&&(q[Z]=le[Z])},re(ee,ne)};return function(ee,ne){re(ee,ne);function q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(q.prototype=ne.prototype,new q)}}(),h=11,b=function(re){j(ee,re);function ee(ne){var q=re.call(this)||this;return q._onActivate=ne.onActivate,q.bgDomNode=document.createElement("div"),q.bgDomNode.className="arrow-background",q.bgDomNode.style.position="absolute",q.bgDomNode.style.width=ne.bgWidth+"px",q.bgDomNode.style.height=ne.bgHeight+"px",typeof ne.top!="undefined"&&(q.bgDomNode.style.top="0px"),typeof ne.left!="undefined"&&(q.bgDomNode.style.left="0px"),typeof ne.bottom!="undefined"&&(q.bgDomNode.style.bottom="0px"),typeof ne.right!="undefined"&&(q.bgDomNode.style.right="0px"),q.domNode=document.createElement("div"),q.domNode.className=ne.className,q.domNode.style.position="absolute",q.domNode.style.width=h+"px",q.domNode.style.height=h+"px",typeof ne.top!="undefined"&&(q.domNode.style.top=ne.top+"px"),typeof ne.left!="undefined"&&(q.domNode.style.left=ne.left+"px"),typeof ne.bottom!="undefined"&&(q.domNode.style.bottom=ne.bottom+"px"),typeof ne.right!="undefined"&&(q.domNode.style.right=ne.right+"px"),q._mouseMoveMonitor=q._register(new K.a),q.onmousedown(q.bgDomNode,function(le){return q._arrowMouseDown(le)}),q.onmousedown(q.domNode,function(le){return q._arrowMouseDown(le)}),q._mousedownRepeatTimer=q._register(new U.c),q._mousedownScheduleRepeatTimer=q._register(new U.e),q}return ee.prototype._arrowMouseDown=function(ne){var q=this,le=function(){q._mousedownRepeatTimer.cancelAndSet(function(){return q._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(le,200),this._mouseMoveMonitor.startMonitoring(ne.target,ne.buttons,K.b,function(Z){},function(){q._mousedownRepeatTimer.cancel(),q._mousedownScheduleRepeatTimer.cancel()}),ne.preventDefault()},ee}(D.a),O=e("pmY6"),m=function(){var re=function(ee,ne){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,le){q.__proto__=le}||function(q,le){for(var Z in le)le.hasOwnProperty(Z)&&(q[Z]=le[Z])},re(ee,ne)};return function(ee,ne){re(ee,ne);function q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(q.prototype=ne.prototype,new q)}}(),C=function(re){m(ee,re);function ee(ne,q,le){var Z=re.call(this)||this;return Z._visibility=ne,Z._visibleClassName=q,Z._invisibleClassName=le,Z._domNode=null,Z._isVisible=!1,Z._isNeeded=!1,Z._shouldBeVisible=!1,Z._revealTimer=Z._register(new U.e),Z}return ee.prototype.applyVisibilitySetting=function(ne){return this._visibility===2?!1:this._visibility===3?!0:ne},ee.prototype.setShouldBeVisible=function(ne){var q=this.applyVisibilitySetting(ne);this._shouldBeVisible!==q&&(this._shouldBeVisible=q,this.ensureVisibility())},ee.prototype.setIsNeeded=function(ne){this._isNeeded!==ne&&(this._isNeeded=ne,this.ensureVisibility())},ee.prototype.setDomNode=function(ne){this._domNode=ne,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},ee.prototype.ensureVisibility=function(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)},ee.prototype._reveal=function(){var ne=this;if(this._isVisible)return;this._isVisible=!0,this._revealTimer.setIfNotSet(function(){ne._domNode&&ne._domNode.setClassName(ne._visibleClassName)},0)},ee.prototype._hide=function(ne){if(this._revealTimer.cancel(),!this._isVisible)return;this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(ne?" fade":""))},ee}(O.a),w=e("MNsG"),v=function(){var re=function(ee,ne){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,le){q.__proto__=le}||function(q,le){for(var Z in le)le.hasOwnProperty(Z)&&(q[Z]=le[Z])},re(ee,ne)};return function(ee,ne){re(ee,ne);function q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(q.prototype=ne.prototype,new q)}}(),p=140,d=function(re){v(ee,re);function ee(ne){var q=re.call(this)||this;return q._lazyRender=ne.lazyRender,q._host=ne.host,q._scrollable=ne.scrollable,q._scrollbarState=ne.scrollbarState,q._visibilityController=q._register(new C(ne.visibility,"visible scrollbar "+ne.extraScrollbarClassName,"invisible scrollbar "+ne.extraScrollbarClassName)),q._visibilityController.setIsNeeded(q._scrollbarState.isNeeded()),q._mouseMoveMonitor=q._register(new K.a),q._shouldRender=!0,q.domNode=Object(I.b)(document.createElement("div")),q.domNode.setAttribute("role","presentation"),q.domNode.setAttribute("aria-hidden","true"),q._visibilityController.setDomNode(q.domNode),q.domNode.setPosition("absolute"),q.onmousedown(q.domNode.domNode,function(le){return q._domNodeMouseDown(le)}),q}return ee.prototype._createArrow=function(ne){var q=this._register(new b(ne));this.domNode.domNode.appendChild(q.bgDomNode),this.domNode.domNode.appendChild(q.domNode)},ee.prototype._createSlider=function(ne,q,le,Z){var ve=this;this.slider=Object(I.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(ne),this.slider.setLeft(q),typeof le=="number"&&this.slider.setWidth(le),typeof Z=="number"&&this.slider.setHeight(Z),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(Ne){Ne.leftButton&&(Ne.preventDefault(),ve._sliderMouseDown(Ne,function(){}))}),this.onclick(this.slider.domNode,function(Ne){Ne.leftButton&&Ne.stopPropagation()})},ee.prototype._onElementSize=function(ne){return this._scrollbarState.setVisibleSize(ne)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},ee.prototype._onElementScrollSize=function(ne){return this._scrollbarState.setScrollSize(ne)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},ee.prototype._onElementScrollPosition=function(ne){return this._scrollbarState.setScrollPosition(ne)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},ee.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},ee.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},ee.prototype.render=function(){if(!this._shouldRender)return;this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition())},ee.prototype._domNodeMouseDown=function(ne){if(ne.target!==this.domNode.domNode)return;this._onMouseDown(ne)},ee.prototype.delegateMouseDown=function(ne){var q=this.domNode.domNode.getClientRects()[0].top,le=q+this._scrollbarState.getSliderPosition(),Z=q+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),ve=this._sliderMousePosition(ne);le<=ve&&ve<=Z?ne.leftButton&&(ne.preventDefault(),this._sliderMouseDown(ne,function(){})):this._onMouseDown(ne)},ee.prototype._onMouseDown=function(ne){var q,le;if(ne.target===this.domNode.domNode&&typeof ne.browserEvent.offsetX=="number"&&typeof ne.browserEvent.offsetY=="number")q=ne.browserEvent.offsetX,le=ne.browserEvent.offsetY;else{var Z=J.C(this.domNode.domNode);q=ne.posx-Z.left,le=ne.posy-Z.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(q,le))),ne.leftButton&&(ne.preventDefault(),this._sliderMouseDown(ne,function(){}))},ee.prototype._sliderMouseDown=function(ne,q){var le=this,Z=this._sliderMousePosition(ne),ve=this._sliderOrthogonalMousePosition(ne),Ne=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(ne.target,ne.buttons,K.b,function(Xe){var de=le._sliderOrthogonalMousePosition(Xe),ge=Math.abs(de-ve);if(w.h&&ge>p){le._setDesiredScrollPositionNow(Ne.getScrollPosition());return}var Ee=le._sliderMousePosition(Xe),Te=Ee-Z;le._setDesiredScrollPositionNow(Ne.getDesiredScrollPositionFromDelta(Te))},function(){le.slider.toggleClassName("active",!1),le._host.onDragEnd(),q()}),this._host.onDragStart()},ee.prototype._setDesiredScrollPositionNow=function(ne){var q={};this.writeScrollPosition(q,ne),this._scrollable.setScrollPositionNow(q)},ee}(D.a),c=20,u=function(){function re(ee,ne,q,le,Z,ve){this._scrollbarSize=Math.round(ne),this._oppositeScrollbarSize=Math.round(q),this._arrowSize=Math.round(ee),this._visibleSize=le,this._scrollSize=Z,this._scrollPosition=ve,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return re.prototype.clone=function(){return new re(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},re.prototype.setVisibleSize=function(ee){var ne=Math.round(ee);return this._visibleSize!==ne?(this._visibleSize=ne,this._refreshComputedValues(),!0):!1},re.prototype.setScrollSize=function(ee){var ne=Math.round(ee);return this._scrollSize!==ne?(this._scrollSize=ne,this._refreshComputedValues(),!0):!1},re.prototype.setScrollPosition=function(ee){var ne=Math.round(ee);return this._scrollPosition!==ne?(this._scrollPosition=ne,this._refreshComputedValues(),!0):!1},re._computeValues=function(ee,ne,q,le,Z){var ve=Math.max(0,q-ee),Ne=Math.max(0,ve-2*ne),Xe=le>0&&le>q;if(!Xe)return{computedAvailableSize:Math.round(ve),computedIsNeeded:Xe,computedSliderSize:Math.round(Ne),computedSliderRatio:0,computedSliderPosition:0};var de=Math.round(Math.max(c,Math.floor(q*Ne/le))),ge=(Ne-de)/(le-q),Ee=Z*ge;return{computedAvailableSize:Math.round(ve),computedIsNeeded:Xe,computedSliderSize:Math.round(de),computedSliderRatio:ge,computedSliderPosition:Math.round(Ee)}},re.prototype._refreshComputedValues=function(){var ee=re._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=ee.computedAvailableSize,this._computedIsNeeded=ee.computedIsNeeded,this._computedSliderSize=ee.computedSliderSize,this._computedSliderRatio=ee.computedSliderRatio,this._computedSliderPosition=ee.computedSliderPosition},re.prototype.getArrowSize=function(){return this._arrowSize},re.prototype.getScrollPosition=function(){return this._scrollPosition},re.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},re.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},re.prototype.isNeeded=function(){return this._computedIsNeeded},re.prototype.getSliderSize=function(){return this._computedSliderSize},re.prototype.getSliderPosition=function(){return this._computedSliderPosition},re.prototype.getDesiredScrollPositionFromOffset=function(ee){if(!this._computedIsNeeded)return 0;var ne=ee-this._arrowSize-this._computedSliderSize/2;return Math.round(ne/this._computedSliderRatio)},re.prototype.getDesiredScrollPositionFromDelta=function(ee){if(!this._computedIsNeeded)return 0;var ne=this._computedSliderPosition+ee;return Math.round(ne/this._computedSliderRatio)},re}(),f=function(){var re=function(ee,ne){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,le){q.__proto__=le}||function(q,le){for(var Z in le)le.hasOwnProperty(Z)&&(q[Z]=le[Z])},re(ee,ne)};return function(ee,ne){re(ee,ne);function q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(q.prototype=ne.prototype,new q)}}(),E=function(re){f(ee,re);function ee(ne,q,le){var Z=this,ve=ne.getScrollDimensions(),Ne=ne.getCurrentScrollPosition();if(Z=re.call(this,{lazyRender:q.lazyRender,host:le,scrollbarState:new u(q.horizontalHasArrows?q.arrowSize:0,q.horizontal===2?0:q.horizontalScrollbarSize,q.vertical===2?0:q.verticalScrollbarSize,ve.width,ve.scrollWidth,Ne.scrollLeft),visibility:q.horizontal,extraScrollbarClassName:"horizontal",scrollable:ne})||this,q.horizontalHasArrows){var Xe=(q.arrowSize-h)/2,de=(q.horizontalScrollbarSize-h)/2;Z._createArrow({className:"left-arrow",top:de,left:Xe,bottom:void 0,right:void 0,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return Z._host.onMouseWheel(new H.c(null,1,0))}}),Z._createArrow({className:"right-arrow",top:de,left:void 0,bottom:void 0,right:Xe,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return Z._host.onMouseWheel(new H.c(null,-1,0))}})}return Z._createSlider(Math.floor((q.horizontalScrollbarSize-q.horizontalSliderSize)/2),0,void 0,q.horizontalSliderSize),Z}return ee.prototype._updateSlider=function(ne,q){this.slider.setWidth(ne),this.slider.setLeft(q)},ee.prototype._renderDomNode=function(ne,q){this.domNode.setWidth(ne),this.domNode.setHeight(q),this.domNode.setLeft(0),this.domNode.setBottom(0)},ee.prototype.onDidScroll=function(ne){return this._shouldRender=this._onElementScrollSize(ne.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ne.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(ne.width)||this._shouldRender,this._shouldRender},ee.prototype._mouseDownRelativePosition=function(ne,q){return ne},ee.prototype._sliderMousePosition=function(ne){return ne.posx},ee.prototype._sliderOrthogonalMousePosition=function(ne){return ne.posy},ee.prototype.writeScrollPosition=function(ne,q){ne.scrollLeft=q},ee}(d),L=function(){var re=function(ee,ne){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,le){q.__proto__=le}||function(q,le){for(var Z in le)le.hasOwnProperty(Z)&&(q[Z]=le[Z])},re(ee,ne)};return function(ee,ne){re(ee,ne);function q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(q.prototype=ne.prototype,new q)}}(),R=function(re){L(ee,re);function ee(ne,q,le){var Z=this,ve=ne.getScrollDimensions(),Ne=ne.getCurrentScrollPosition();if(Z=re.call(this,{lazyRender:q.lazyRender,host:le,scrollbarState:new u(q.verticalHasArrows?q.arrowSize:0,q.vertical===2?0:q.verticalScrollbarSize,0,ve.height,ve.scrollHeight,Ne.scrollTop),visibility:q.vertical,extraScrollbarClassName:"vertical",scrollable:ne})||this,q.verticalHasArrows){var Xe=(q.arrowSize-h)/2,de=(q.verticalScrollbarSize-h)/2;Z._createArrow({className:"up-arrow",top:Xe,left:de,bottom:void 0,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return Z._host.onMouseWheel(new H.c(null,0,1))}}),Z._createArrow({className:"down-arrow",top:void 0,left:de,bottom:Xe,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return Z._host.onMouseWheel(new H.c(null,0,-1))}})}return Z._createSlider(0,Math.floor((q.verticalScrollbarSize-q.verticalSliderSize)/2),q.verticalSliderSize,void 0),Z}return ee.prototype._updateSlider=function(ne,q){this.slider.setHeight(ne),this.slider.setTop(q)},ee.prototype._renderDomNode=function(ne,q){this.domNode.setWidth(q),this.domNode.setHeight(ne),this.domNode.setRight(0),this.domNode.setTop(0)},ee.prototype.onDidScroll=function(ne){return this._shouldRender=this._onElementScrollSize(ne.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ne.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(ne.height)||this._shouldRender,this._shouldRender},ee.prototype._mouseDownRelativePosition=function(ne,q){return q},ee.prototype._sliderMousePosition=function(ne){return ne.posy},ee.prototype._sliderOrthogonalMousePosition=function(ne){return ne.posx},ee.prototype.writeScrollPosition=function(ne,q){ne.scrollTop=q},ee}(d),P=e("MI8n"),x=e("QuOb"),Q=function(){var re=function(ee,ne){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,le){q.__proto__=le}||function(q,le){for(var Z in le)le.hasOwnProperty(Z)&&(q[Z]=le[Z])},re(ee,ne)};return function(ee,ne){re(ee,ne);function q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(q.prototype=ne.prototype,new q)}}(),V=500,W=50,B=!0,ae=function(){function re(ee,ne,q){this.timestamp=ee,this.deltaX=ne,this.deltaY=q,this.score=0}return re}(),we=function(){function re(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return re.prototype.isPhysicalMouseWheel=function(){if(this._front===-1&&this._rear===-1)return!1;var ee=1,ne=0,q=1,le=this._rear;do{var Z=le===this._front?ee:Math.pow(2,-q);if(ee-=Z,ne+=this._memory[le].score*Z,le===this._front)break;le=(this._capacity+le-1)%this._capacity,q++}while(!0);return ne<=.5},re.prototype.accept=function(ee,ne,q){var le=new ae(ee,ne,q);le.score=this._computeScore(le),this._front===-1&&this._rear===-1?(this._memory[0]=le,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=le)},re.prototype._computeScore=function(ee){if(Math.abs(ee.deltaX)>0&&Math.abs(ee.deltaY)>0)return 1;var ne=.5,q=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(Math.abs(ee.deltaX-Math.round(ee.deltaX))>0||Math.abs(ee.deltaY-Math.round(ee.deltaY))>0)&&(ne+=.25),Math.min(Math.max(ne,0),1)},re.INSTANCE=new re,re}(),Me=function(re){Q(ee,re);function ee(ne,q,le){var Z=re.call(this)||this;Z._onScroll=Z._register(new P.a),Z.onScroll=Z._onScroll.event,ne.style.overflow="hidden",Z._options=Fe(q),Z._scrollable=le,Z._register(Z._scrollable.onScroll(function(Ne){Z._onDidScroll(Ne),Z._onScroll.fire(Ne)}));var ve={onMouseWheel:function(Ne){return Z._onMouseWheel(Ne)},onDragStart:function(){return Z._onDragStart()},onDragEnd:function(){return Z._onDragEnd()}};return Z._verticalScrollbar=Z._register(new R(Z._scrollable,Z._options,ve)),Z._horizontalScrollbar=Z._register(new E(Z._scrollable,Z._options,ve)),Z._domNode=document.createElement("div"),Z._domNode.className="monaco-scrollable-element "+Z._options.className,Z._domNode.setAttribute("role","presentation"),Z._domNode.style.position="relative",Z._domNode.style.overflow="hidden",Z._domNode.appendChild(ne),Z._domNode.appendChild(Z._horizontalScrollbar.domNode.domNode),Z._domNode.appendChild(Z._verticalScrollbar.domNode.domNode),Z._options.useShadows?(Z._leftShadowDomNode=Object(I.b)(document.createElement("div")),Z._leftShadowDomNode.setClassName("shadow"),Z._domNode.appendChild(Z._leftShadowDomNode.domNode),Z._topShadowDomNode=Object(I.b)(document.createElement("div")),Z._topShadowDomNode.setClassName("shadow"),Z._domNode.appendChild(Z._topShadowDomNode.domNode),Z._topLeftShadowDomNode=Object(I.b)(document.createElement("div")),Z._topLeftShadowDomNode.setClassName("shadow top-left-corner"),Z._domNode.appendChild(Z._topLeftShadowDomNode.domNode)):(Z._leftShadowDomNode=null,Z._topShadowDomNode=null,Z._topLeftShadowDomNode=null),Z._listenOnDomNode=Z._options.listenOnDomNode||Z._domNode,Z._mouseWheelToDispose=[],Z._setListeningToMouseWheel(Z._options.handleMouseWheel),Z.onmouseover(Z._listenOnDomNode,function(Ne){return Z._onMouseOver(Ne)}),Z.onnonbubblingmouseout(Z._listenOnDomNode,function(Ne){return Z._onMouseOut(Ne)}),Z._hideTimeout=Z._register(new U.e),Z._isDragging=!1,Z._mouseIsOver=!1,Z._shouldRender=!0,Z._revealOnScroll=!0,Z}return ee.prototype.dispose=function(){this._mouseWheelToDispose=Object(O.f)(this._mouseWheelToDispose),re.prototype.dispose.call(this)},ee.prototype.getDomNode=function(){return this._domNode},ee.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},ee.prototype.delegateVerticalScrollbarMouseDown=function(ne){this._verticalScrollbar.delegateMouseDown(ne)},ee.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},ee.prototype.setScrollDimensions=function(ne){this._scrollable.setScrollDimensions(ne)},ee.prototype.updateClassName=function(ne){this._options.className=ne,w.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},ee.prototype.updateOptions=function(ne){var q=Fe(ne);this._options.handleMouseWheel=q.handleMouseWheel,this._options.mouseWheelScrollSensitivity=q.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=q.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},ee.prototype._setListeningToMouseWheel=function(ne){var q=this,le=this._mouseWheelToDispose.length>0;if(le===ne)return;if(this._mouseWheelToDispose=Object(O.f)(this._mouseWheelToDispose),ne){var Z=function(ve){q._onMouseWheel(new H.c(ve))};this._mouseWheelToDispose.push(J.j(this._listenOnDomNode,pe.f?"mousewheel":"wheel",Z,{passive:!1}))}},ee.prototype._onMouseWheel=function(ne){var q,le=we.INSTANCE;if(B&&le.accept(Date.now(),ne.deltaX,ne.deltaY),ne.deltaY||ne.deltaX){var Z=ne.deltaY*this._options.mouseWheelScrollSensitivity,ve=ne.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(q=[ve,Z],Z=q[0],ve=q[1]);var Ne=!w.e&&ne.browserEvent&&ne.browserEvent.shiftKey;(this._options.scrollYToX||Ne)&&!ve&&(ve=Z,Z=0),ne.browserEvent&&ne.browserEvent.altKey&&(ve=ve*this._options.fastScrollSensitivity,Z=Z*this._options.fastScrollSensitivity);var Xe=this._scrollable.getFutureScrollPosition(),de={};if(Z){var ge=Xe.scrollTop-W*Z;this._verticalScrollbar.writeScrollPosition(de,ge)}if(ve){var Ee=Xe.scrollLeft-W*ve;this._horizontalScrollbar.writeScrollPosition(de,Ee)}if(de=this._scrollable.validateScrollPosition(de),Xe.scrollLeft!==de.scrollLeft||Xe.scrollTop!==de.scrollTop){var Te=B&&this._options.mouseWheelSmoothScroll&&le.isPhysicalMouseWheel();Te?this._scrollable.setScrollPositionSmooth(de):this._scrollable.setScrollPositionNow(de),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(ne.preventDefault(),ne.stopPropagation())},ee.prototype._onDidScroll=function(ne){this._shouldRender=this._horizontalScrollbar.onDidScroll(ne)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(ne)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},ee.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},ee.prototype._render=function(){if(!this._shouldRender)return;if(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows){var ne=this._scrollable.getCurrentScrollPosition(),q=ne.scrollTop>0,le=ne.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(le?" left":"")),this._topShadowDomNode.setClassName("shadow"+(q?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(q?" top":"")+(le?" left":""))}},ee.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},ee.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},ee.prototype._onMouseOut=function(ne){this._mouseIsOver=!1,this._hide()},ee.prototype._onMouseOver=function(ne){this._mouseIsOver=!0,this._reveal()},ee.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},ee.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},ee.prototype._scheduleHide=function(){var ne=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return ne._hide()},V)},ee}(D.a),Pe=function(re){Q(ee,re);function ee(ne,q){var le=this;q=q||{},q.mouseWheelSmoothScroll=!1;var Z=new x.a(0,function(ve){return J.W(ve)});return le=re.call(this,ne,q,Z)||this,le._register(Z),le}return ee.prototype.setScrollPosition=function(ne){this._scrollable.setScrollPositionNow(ne)},ee.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},ee}(Me),Be=function(re){Q(ee,re);function ee(ne,q,le){return re.call(this,ne,q,le)||this}return ee}(Me),Ke=function(re){Q(ee,re);function ee(ne,q){var le=re.call(this,ne,q)||this;return le._element=ne,le.onScroll(function(Z){Z.scrollTopChanged&&(le._element.scrollTop=Z.scrollTop),Z.scrollLeftChanged&&(le._element.scrollLeft=Z.scrollLeft)}),le.scanDomNode(),le}return ee.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},ee}(Pe);function Fe(re){var ee={lazyRender:typeof re.lazyRender!="undefined"?re.lazyRender:!1,className:typeof re.className!="undefined"?re.className:"",useShadows:typeof re.useShadows!="undefined"?re.useShadows:!0,handleMouseWheel:typeof re.handleMouseWheel!="undefined"?re.handleMouseWheel:!0,flipAxes:typeof re.flipAxes!="undefined"?re.flipAxes:!1,alwaysConsumeMouseWheel:typeof re.alwaysConsumeMouseWheel!="undefined"?re.alwaysConsumeMouseWheel:!1,scrollYToX:typeof re.scrollYToX!="undefined"?re.scrollYToX:!1,mouseWheelScrollSensitivity:typeof re.mouseWheelScrollSensitivity!="undefined"?re.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof re.fastScrollSensitivity!="undefined"?re.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof re.mouseWheelSmoothScroll!="undefined"?re.mouseWheelSmoothScroll:!0,arrowSize:typeof re.arrowSize!="undefined"?re.arrowSize:11,listenOnDomNode:typeof re.listenOnDomNode!="undefined"?re.listenOnDomNode:null,horizontal:typeof re.horizontal!="undefined"?re.horizontal:1,horizontalScrollbarSize:typeof re.horizontalScrollbarSize!="undefined"?re.horizontalScrollbarSize:10,horizontalSliderSize:typeof re.horizontalSliderSize!="undefined"?re.horizontalSliderSize:0,horizontalHasArrows:typeof re.horizontalHasArrows!="undefined"?re.horizontalHasArrows:!1,vertical:typeof re.vertical!="undefined"?re.vertical:1,verticalScrollbarSize:typeof re.verticalScrollbarSize!="undefined"?re.verticalScrollbarSize:10,verticalHasArrows:typeof re.verticalHasArrows!="undefined"?re.verticalHasArrows:!1,verticalSliderSize:typeof re.verticalSliderSize!="undefined"?re.verticalSliderSize:0};return ee.horizontalSliderSize=typeof re.horizontalSliderSize!="undefined"?re.horizontalSliderSize:ee.horizontalScrollbarSize,ee.verticalSliderSize=typeof re.verticalSliderSize!="undefined"?re.verticalSliderSize:ee.verticalScrollbarSize,w.e&&(ee.className+=" mac"),ee}},"GR/f":function(Mt,F,e){"use strict";e.d(F,"a",function(){return m}),e.d(F,"b",function(){return C});var T=e("/cxE"),pe=e("N0LK"),J=e("LCkn"),I=e("zN7H"),H=e("aokT"),K=e("gCVg"),D=function(){function w(v,p,d){this._range=v,this._charBeforeSelection=p,this._charAfterSelection=d}return w.prototype.getEditOperations=function(v,p){p.addTrackedEditOperation(new H.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),p.addTrackedEditOperation(new H.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},w.prototype.computeCursorState=function(v,p){var d=p.getInverseEditOperations(),c=d[0].range,u=d[1].range;return new K.a(c.endLineNumber,c.endColumn,u.endLineNumber,u.endColumn-this._charAfterSelection.length)},w}(),U=e("Ll0s"),j=e("5v8Y"),h=e("KDc4"),b=e("cMvZ"),O=function(){var w=function(v,p){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var u in c)c.hasOwnProperty(u)&&(d[u]=c[u])},w(v,p)};return function(v,p){w(v,p);function d(){this.constructor=v}v.prototype=p===null?Object.create(p):(d.prototype=p.prototype,new d)}}(),m=function(){function w(){}return w.indent=function(v,p,d){if(p===null||d===null)return[];for(var c=[],u=0,f=d.length;u<f;u++)c[u]=new I.a(d[u],{isUnshift:!1,tabSize:v.tabSize,indentSize:v.indentSize,insertSpaces:v.insertSpaces,useTabStops:v.useTabStops,autoIndent:v.autoIndent});return c},w.outdent=function(v,p,d){for(var c=[],u=0,f=d.length;u<f;u++)c[u]=new I.a(d[u],{isUnshift:!0,tabSize:v.tabSize,indentSize:v.indentSize,insertSpaces:v.insertSpaces,useTabStops:v.useTabStops,autoIndent:v.autoIndent});return c},w.shiftIndent=function(v,p,d){return d=d||1,I.a.shiftIndent(p,p.length+d,v.tabSize,v.indentSize,v.insertSpaces)},w.unshiftIndent=function(v,p,d){return d=d||1,I.a.unshiftIndent(p,p.length+d,v.tabSize,v.indentSize,v.insertSpaces)},w._distributedPaste=function(v,p,d,c){for(var u=[],f=0,E=d.length;f<E;f++)u[f]=new J.a(d[f],c[f]);return new U.e(0,u,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},w._simplePaste=function(v,p,d,c,u){for(var f=[],E=0,L=d.length;E<L;E++){var R=d[E],P=R.getPosition();if(u&&!R.isEmpty()&&(u=!1),u&&c.indexOf(`
`)!==c.length-1&&(u=!1),u){var x=new H.a(P.lineNumber,1,P.lineNumber,1);f[E]=new J.b(x,c,R,!0)}else f[E]=new J.a(R,c)}return new U.e(0,f,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},w._distributePasteToCursors=function(v,p,d,c,u){if(c)return null;if(p.length===1)return null;if(u&&u.length===p.length)return u;if(v.multiCursorPaste==="spread"){d.charCodeAt(d.length-1)===10&&(d=d.substr(0,d.length-1)),d.charCodeAt(d.length-1)===13&&(d=d.substr(0,d.length-1));var f=d.split(/\r\n|\r|\n/);if(f.length===p.length)return f}return null},w.paste=function(v,p,d,c,u,f){var E=this._distributePasteToCursors(v,d,c,u,f);return E?(d=d.sort(H.a.compareRangesUsingStarts),this._distributedPaste(v,p,d,E)):this._simplePaste(v,p,d,c,u)},w._goodIndentForLine=function(v,p,d){var c=null,u="",f=b.a.getInheritIndentForLine(v.autoIndent,p,d,!1);if(f)c=f.action,u=f.indentation;else if(d>1){var E=void 0;for(E=d-1;E>=1;E--){var L=p.getLineContent(E),R=pe.D(L);if(R>=0)break}if(E<1)return null;var P=p.getLineMaxColumn(E),x=b.a.getEnterAction(v.autoIndent,p,new H.a(E,P,E,P));x&&(u=x.indentation+x.appendText)}return c&&(c===h.a.Indent&&(u=w.shiftIndent(v,u)),c===h.a.Outdent&&(u=w.unshiftIndent(v,u)),u=v.normalizeIndentation(u)),u||null},w._replaceJumpToNextIndent=function(v,p,d,c){var u="",f=d.getStartPosition();if(v.insertSpaces)for(var E=U.a.visibleColumnFromColumn2(v,p,f),L=v.indentSize,R=L-E%L,P=0;P<R;P++)u+=" ";else u=" ";return new J.a(d,u,c)},w.tab=function(v,p,d){for(var c=[],u=0,f=d.length;u<f;u++){var E=d[u];if(E.isEmpty()){var L=p.getLineContent(E.startLineNumber);if(/^\s*$/.test(L)&&p.isCheapToTokenize(E.startLineNumber)){var R=this._goodIndentForLine(v,p,E.startLineNumber);R=R||" ";var P=v.normalizeIndentation(R);if(!pe.N(L,P)){c[u]=new J.a(new H.a(E.startLineNumber,1,E.startLineNumber,L.length+1),P,!0);continue}}c[u]=this._replaceJumpToNextIndent(v,p,E,!0)}else{if(E.startLineNumber===E.endLineNumber){var x=p.getLineMaxColumn(E.startLineNumber);if(E.startColumn!==1||E.endColumn!==x){c[u]=this._replaceJumpToNextIndent(v,p,E,!1);continue}}c[u]=new I.a(E,{isUnshift:!1,tabSize:v.tabSize,indentSize:v.indentSize,insertSpaces:v.insertSpaces,useTabStops:v.useTabStops,autoIndent:v.autoIndent})}}return c},w.replacePreviousChar=function(v,p,d,c,u,f){for(var E=[],L=0,R=c.length;L<R;L++){var P=c[L];if(!P.isEmpty()){E[L]=null;continue}var x=P.getPosition(),Q=Math.max(1,x.column-f),V=new H.a(x.lineNumber,Q,x.lineNumber,x.column);E[L]=new J.a(V,u)}return new U.e(1,E,{shouldPushStackElementBefore:v!==1,shouldPushStackElementAfter:!1})},w._typeCommand=function(v,p,d){return d?new J.e(v,p,!0):new J.a(v,p,!0)},w._enter=function(v,p,d,c){if(v.autoIndent===0)return w._typeCommand(c,`
`,d);if(!p.isCheapToTokenize(c.getStartPosition().lineNumber)||v.autoIndent===1){var u=p.getLineContent(c.startLineNumber),f=pe.t(u).substring(0,c.startColumn-1);return w._typeCommand(c,`
`+v.normalizeIndentation(f),d)}var E=b.a.getEnterAction(v.autoIndent,p,c);if(E){if(E.indentAction===h.a.None)return w._typeCommand(c,`
`+v.normalizeIndentation(E.indentation+E.appendText),d);if(E.indentAction===h.a.Indent)return w._typeCommand(c,`
`+v.normalizeIndentation(E.indentation+E.appendText),d);if(E.indentAction===h.a.IndentOutdent){var L=v.normalizeIndentation(E.indentation),R=v.normalizeIndentation(E.indentation+E.appendText),P=`
`+R+`
`+L;return d?new J.e(c,P,!0):new J.d(c,P,-1,R.length-L.length,!0)}else if(E.indentAction===h.a.Outdent){var x=w.unshiftIndent(v,E.indentation);return w._typeCommand(c,`
`+v.normalizeIndentation(x+E.appendText),d)}}var Q=p.getLineContent(c.startLineNumber),V=pe.t(Q).substring(0,c.startColumn-1);if(v.autoIndent>=4){var W=b.a.getIndentForEnter(v.autoIndent,p,c,{unshiftIndent:function(Ke){return w.unshiftIndent(v,Ke)},shiftIndent:function(Ke){return w.shiftIndent(v,Ke)},normalizeIndentation:function(Ke){return v.normalizeIndentation(Ke)}});if(W){var B=U.a.visibleColumnFromColumn2(v,p,c.getEndPosition()),ae=c.endColumn,we=`
`;V!==v.normalizeIndentation(W.beforeEnter)&&(we=v.normalizeIndentation(W.beforeEnter)+Q.substring(V.length,c.startColumn-1)+`
`,c=new H.a(c.startLineNumber,1,c.endLineNumber,c.endColumn));var Me=p.getLineContent(c.endLineNumber),Pe=pe.q(Me);if(Pe>=0?c=c.setEndPosition(c.endLineNumber,Math.max(c.endColumn,Pe+1)):c=c.setEndPosition(c.endLineNumber,p.getLineMaxColumn(c.endLineNumber)),d)return new J.e(c,we+v.normalizeIndentation(W.afterEnter),!0);var Be=0;return ae<=Pe+1&&(v.insertSpaces||(B=Math.ceil(B/v.indentSize)),Be=Math.min(B+1-v.normalizeIndentation(W.afterEnter).length-1,0)),new J.d(c,we+v.normalizeIndentation(W.afterEnter),0,Be,!0)}}return w._typeCommand(c,`
`+v.normalizeIndentation(V),d)},w._isAutoIndentType=function(v,p,d){if(v.autoIndent<4)return!1;for(var c=0,u=d.length;c<u;c++)if(!p.isCheapToTokenize(d[c].getEndPosition().lineNumber))return!1;return!0},w._runAutoIndentType=function(v,p,d,c){var u=b.a.getIndentationAtPosition(p,d.startLineNumber,d.startColumn),f=b.a.getIndentActionForType(v.autoIndent,p,d,c,{shiftIndent:function(L){return w.shiftIndent(v,L)},unshiftIndent:function(L){return w.unshiftIndent(v,L)}});if(f===null)return null;if(f!==v.normalizeIndentation(u)){var E=p.getLineFirstNonWhitespaceColumn(d.startLineNumber);return E===0?w._typeCommand(new H.a(d.startLineNumber,0,d.endLineNumber,d.endColumn),v.normalizeIndentation(f)+c,!1):w._typeCommand(new H.a(d.startLineNumber,0,d.endLineNumber,d.endColumn),v.normalizeIndentation(f)+p.getLineContent(d.startLineNumber).substring(E-1,d.startColumn-1)+c,!1)}return null},w._isAutoClosingOvertype=function(v,p,d,c,u){if(v.autoClosingOvertype==="never")return!1;if(!v.autoClosingPairsClose2.has(u))return!1;for(var f=0,E=d.length;f<E;f++){var L=d[f];if(!L.isEmpty())return!1;var R=L.getPosition(),P=p.getLineContent(R.lineNumber),x=P.charAt(R.column-1);if(x!==u)return!1;var Q=Object(U.g)(u),V=R.column>2?P.charCodeAt(R.column-2):0;if(V===92&&Q)return!1;if(v.autoClosingOvertype==="auto"){for(var W=!1,B=0,ae=c.length;B<ae;B++){var we=c[B];if(R.lineNumber===we.startLineNumber&&R.column===we.startColumn){W=!0;break}}if(!W)return!1}}return!0},w._runAutoClosingOvertype=function(v,p,d,c,u){for(var f=[],E=0,L=c.length;E<L;E++){var R=c[E],P=R.getPosition(),x=new H.a(P.lineNumber,P.column,P.lineNumber,P.column+1);f[E]=new J.a(x,u)}return new U.e(1,f,{shouldPushStackElementBefore:v!==1,shouldPushStackElementAfter:!1})},w._autoClosingPairIsSymmetric=function(v){var p=v.open,d=v.close;return p.indexOf(d)>=0||d.indexOf(p)>=0},w._isBeforeClosingBrace=function(v,p,d){var c=v.autoClosingPairsClose2.get(d);if(!c)return!1;for(var u=w._autoClosingPairIsSymmetric(p),f=0,E=c;f<E.length;f++){var L=E[f],R=w._autoClosingPairIsSymmetric(L);if(!u&&R)continue;return!0}return!1},w._findAutoClosingPairOpen=function(v,p,d,c){var u=v.autoClosingPairsOpen2.get(c);if(!u)return null;for(var f=null,E=0,L=u;E<L.length;E++){var R=L[E];if(f===null||R.open.length>f.open.length){for(var P=!0,x=0,Q=d;x<Q.length;x++){var V=Q[x],W=p.getValueInRange(new H.a(V.lineNumber,V.column-R.open.length+1,V.lineNumber,V.column));if(W+c!==R.open){P=!1;break}}P&&(f=R)}}return f},w._isAutoClosingOpenCharType=function(v,p,d,c,u){var f=Object(U.g)(c),E=f?v.autoClosingQuotes:v.autoClosingBrackets;if(E==="never")return null;var L=this._findAutoClosingPairOpen(v,p,d.map(function(Be){return Be.getPosition()}),c);if(!L)return null;for(var R=f?v.shouldAutoCloseBefore.quote:v.shouldAutoCloseBefore.bracket,P=0,x=d.length;P<x;P++){var Q=d[P];if(!Q.isEmpty())return null;var V=Q.getPosition(),W=p.getLineContent(V.lineNumber);if(W.length>V.column-1){var B=W.charAt(V.column-1),ae=w._isBeforeClosingBrace(v,L,B);if(!ae&&!R(B))return null}if(!p.isCheapToTokenize(V.lineNumber))return null;if(L.open.length===1&&f&&E!=="always"){var we=Object(j.a)(v.wordSeparators);if(u&&V.column>1&&we.get(W.charCodeAt(V.column-2))===0)return null;if(!u&&V.column>2&&we.get(W.charCodeAt(V.column-3))===0)return null}p.forceTokenization(V.lineNumber);var Me=p.getLineTokens(V.lineNumber),Pe=!1;try{Pe=b.a.shouldAutoClosePair(L,Me,u?V.column:V.column-1)}catch(Be){Object(T.e)(Be)}if(!Pe)return null}return L},w._runAutoClosingOpenCharType=function(v,p,d,c,u,f,E){for(var L=[],R=0,P=c.length;R<P;R++){var x=c[R];L[R]=new C(x,u,f,E.close)}return new U.e(1,L,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},w._shouldSurroundChar=function(v,p){return Object(U.g)(p)?v.autoSurround==="quotes"||v.autoSurround==="languageDefined":v.autoSurround==="brackets"||v.autoSurround==="languageDefined"},w._isSurroundSelectionType=function(v,p,d,c){if(!w._shouldSurroundChar(v,c)||!v.surroundingPairs.hasOwnProperty(c))return!1;for(var u=Object(U.g)(c),f=0,E=d.length;f<E;f++){var L=d[f];if(L.isEmpty())return!1;for(var R=!0,P=L.startLineNumber;P<=L.endLineNumber;P++){var x=p.getLineContent(P),Q=P===L.startLineNumber?L.startColumn-1:0,V=P===L.endLineNumber?L.endColumn-1:x.length,W=x.substring(Q,V);if(/[^ \t]/.test(W)){R=!1;break}}if(R)return!1;if(u&&L.startLineNumber===L.endLineNumber&&L.startColumn+1===L.endColumn){var B=p.getValueInRange(L);if(Object(U.g)(B))return!1}}return!0},w._runSurroundSelectionType=function(v,p,d,c,u){for(var f=[],E=0,L=c.length;E<L;E++){var R=c[E],P=p.surroundingPairs[u];f[E]=new D(R,u,P)}return new U.e(0,f,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},w._isTypeInterceptorElectricChar=function(v,p,d){return!!(d.length===1&&p.isCheapToTokenize(d[0].getEndPosition().lineNumber))},w._typeInterceptorElectricChar=function(v,p,d,c,u){if(!p.electricChars.hasOwnProperty(u)||!c.isEmpty())return null;var f=c.getPosition();d.forceTokenization(f.lineNumber);var E=d.getLineTokens(f.lineNumber),L;try{L=b.a.onElectricCharacter(u,E,f.column)}catch(Be){return Object(T.e)(Be),null}if(!L)return null;if(L.matchOpenBracket){var R=(E.getLineContent()+u).lastIndexOf(L.matchOpenBracket)+1,P=d.findMatchingBracketUp(L.matchOpenBracket,{lineNumber:f.lineNumber,column:R});if(P){if(P.startLineNumber===f.lineNumber)return null;var x=d.getLineContent(P.startLineNumber),Q=pe.t(x),V=p.normalizeIndentation(Q),W=d.getLineContent(f.lineNumber),B=d.getLineFirstNonWhitespaceColumn(f.lineNumber)||f.column,ae=W.substring(B-1,f.column-1),we=V+ae+u,Me=new H.a(f.lineNumber,1,f.lineNumber,f.column),Pe=new J.a(Me,we);return new U.e(1,[Pe],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},w.compositionEndWithInterceptors=function(v,p,d,c,u,f){if(!c||K.a.selectionsArrEqual(c,u))return null;for(var E=null,L=0,R=u;L<R.length;L++){var P=R[L];if(!P.isEmpty())return null;var x=P.getPosition(),Q=d.getValueInRange(new H.a(x.lineNumber,x.column-1,x.lineNumber,x.column));if(E===null)E=Q;else if(E!==Q)return null}if(!E)return null;if(this._isAutoClosingOvertype(p,d,u,f,E)){var V=u.map(function(B){return new J.a(new H.a(B.positionLineNumber,B.positionColumn,B.positionLineNumber,B.positionColumn+1),"",!1)});return new U.e(1,V,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var W=this._isAutoClosingOpenCharType(p,d,u,E,!1);return W?this._runAutoClosingOpenCharType(v,p,d,u,E,!1,W):null},w.typeWithInterceptors=function(v,p,d,c,u,f){if(f===`
`){for(var E=[],L=0,R=c.length;L<R;L++)E[L]=w._enter(p,d,!1,c[L]);return new U.e(1,E,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(p,d,c)){for(var P=[],x=!1,L=0,R=c.length;L<R;L++)if(P[L]=this._runAutoIndentType(p,d,c[L],f),!P[L]){x=!0;break}if(!x)return new U.e(1,P,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(p,d,c,u,f))return this._runAutoClosingOvertype(v,p,d,c,f);var Q=this._isAutoClosingOpenCharType(p,d,c,f,!0);if(Q)return this._runAutoClosingOpenCharType(v,p,d,c,f,!0,Q);if(this._isSurroundSelectionType(p,d,c,f))return this._runSurroundSelectionType(v,p,d,c,f);if(this._isTypeInterceptorElectricChar(p,d,c)){var V=this._typeInterceptorElectricChar(v,p,d,c[0],f);if(V)return V}for(var W=[],L=0,R=c.length;L<R;L++)W[L]=new J.a(c[L],f);var B=v!==1;return f===" "&&(B=!0),new U.e(1,W,{shouldPushStackElementBefore:B,shouldPushStackElementAfter:!1})},w.typeWithoutInterceptors=function(v,p,d,c,u){for(var f=[],E=0,L=c.length;E<L;E++)f[E]=new J.a(c[E],u);return new U.e(1,f,{shouldPushStackElementBefore:v!==1,shouldPushStackElementAfter:!1})},w.lineInsertBefore=function(v,p,d){if(p===null||d===null)return[];for(var c=[],u=0,f=d.length;u<f;u++){var E=d[u].positionLineNumber;if(E===1)c[u]=new J.e(new H.a(1,1,1,1),`
`);else{E--;var L=p.getLineMaxColumn(E);c[u]=this._enter(v,p,!1,new H.a(E,L,E,L))}}return c},w.lineInsertAfter=function(v,p,d){if(p===null||d===null)return[];for(var c=[],u=0,f=d.length;u<f;u++){var E=d[u].positionLineNumber,L=p.getLineMaxColumn(E);c[u]=this._enter(v,p,!1,new H.a(E,L,E,L))}return c},w.lineBreakInsert=function(v,p,d){for(var c=[],u=0,f=d.length;u<f;u++)c[u]=this._enter(v,p,!0,d[u]);return c},w}(),C=function(w){O(v,w);function v(p,d,c,u){var f=w.call(this,p,(c?d:"")+u,0,-u.length)||this;return f._openCharacter=d,f._closeCharacter=u,f.closeCharacterRange=null,f.enclosingRange=null,f}return v.prototype.computeCursorState=function(p,d){var c=d.getInverseEditOperations(),u=c[0].range;return this.closeCharacterRange=new H.a(u.startLineNumber,u.endColumn-this._closeCharacter.length,u.endLineNumber,u.endColumn),this.enclosingRange=new H.a(u.startLineNumber,u.endColumn-this._openCharacter.length-this._closeCharacter.length,u.endLineNumber,u.endColumn),w.prototype.computeCursorState.call(this,p,d)},v}(J.d)},GZrW:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return e.e(338).then(e.bind(null,"Csoz"))}})},Gb1F:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return e.e(334).then(e.bind(null,"ynbn"))}})},GvMn:function(Mt,F,e){"use strict";e.r(F);var T=e("3/fG"),pe=e("aokT"),J=e("gCVg"),I=e("wQH0"),H=e("sswD"),K=e("pAvP"),D=function(){function u(f,E,L){this._editRange=f,this._originalSelection=E,this._text=L}return u.prototype.getEditOperations=function(f,E){E.addTrackedEditOperation(this._editRange,this._text)},u.prototype.computeCursorState=function(f,E){var L=E.getInverseEditOperations(),R=L[0].range;return this._originalSelection.isEmpty()?new J.a(R.endLineNumber,Math.min(this._originalSelection.positionColumn,R.endColumn),R.endLineNumber,Math.min(this._originalSelection.positionColumn,R.endColumn)):new J.a(R.endLineNumber,R.endColumn-this._text.length,R.endLineNumber,R.endColumn)},u}(),U=e("vATl"),j=e("t9D7"),h=e("kYye"),b=e("tX9W"),O=e("X+cX"),m=e("/cxE"),C=function(){var u=function(f,E){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,R){L.__proto__=R}||function(L,R){for(var P in R)R.hasOwnProperty(P)&&(L[P]=R[P])},u(f,E)};return function(f,E){u(f,E);function L(){this.constructor=f}f.prototype=E===null?Object.create(E):(L.prototype=E.prototype,new L)}}(),w=function(u,f,E,L){var R=arguments.length,P=R<3?f:L===null?L=Object.getOwnPropertyDescriptor(f,E):L,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(u,f,E,L);else for(var Q=u.length-1;Q>=0;Q--)(x=u[Q])&&(P=(R<3?x(P):R>3?x(f,E,P):x(f,E))||P);return R>3&&P&&Object.defineProperty(f,E,P),P},v=function(u,f){return function(E,L){f(E,L,u)}},p=function(){function u(f,E){this.decorationIds=[],this.editor=f,this.editorWorkerService=E}return u.get=function(f){return f.getContribution(u.ID)},u.prototype.dispose=function(){},u.prototype.run=function(f,E){var L=this;this.currentRequest&&this.currentRequest.cancel();var R=this.editor.getSelection(),P=this.editor.getModel();if(!P||!R)return;var x=R;if(x.startLineNumber!==x.endLineNumber)return;var Q=new U.a(this.editor,1|4),V=P.uri;return this.editorWorkerService.canNavigateValueSet(V)?(this.currentRequest=Object(O.f)(function(W){return L.editorWorkerService.navigateValueSet(V,x,E)}),this.currentRequest.then(function(W){if(!W||!W.range||!W.value)return;if(!Q.validate(L.editor))return;var B=pe.a.lift(W.range),ae=W.range,we=W.value.length-(x.endColumn-x.startColumn);ae={startLineNumber:ae.startLineNumber,startColumn:ae.startColumn,endLineNumber:ae.endLineNumber,endColumn:ae.startColumn+W.value.length},we>1&&(x=new J.a(x.startLineNumber,x.startColumn,x.endLineNumber,x.endColumn+we-1));var Me=new D(B,x,W.value);L.editor.pushUndoStop(),L.editor.executeCommand(f,Me),L.editor.pushUndoStop(),L.decorationIds=L.editor.deltaDecorations(L.decorationIds,[{range:ae,options:u.DECORATION}]),L.decorationRemover&&L.decorationRemover.cancel(),L.decorationRemover=Object(O.l)(350),L.decorationRemover.then(function(){return L.decorationIds=L.editor.deltaDecorations(L.decorationIds,[])}).catch(m.e)}).catch(m.e)):Promise.resolve(void 0)},u.ID="editor.contrib.inPlaceReplaceController",u.DECORATION=b.a.register({className:"valueSetReplacement"}),u=w([v(1,K.a)],u),u}(),d=function(u){C(f,u);function f(){return u.call(this,{id:"editor.action.inPlaceReplace.up",label:T.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|82,weight:100}})||this}return f.prototype.run=function(E,L){var R=p.get(L);return R?R.run(this.id,!0):Promise.resolve(void 0)},f}(H.b),c=function(u){C(f,u);function f(){return u.call(this,{id:"editor.action.inPlaceReplace.down",label:T.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|84,weight:100}})||this}return f.prototype.run=function(E,L){var R=p.get(L);return R?R.run(this.id,!1):Promise.resolve(void 0)},f}(H.b);Object(H.h)(p.ID,p),Object(H.f)(d),Object(H.f)(c),Object(j.e)(function(u,f){var E=u.getColor(h.d);E&&f.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+E+"; }")})},Gw4z:function(Mt,F,e){"use strict";e.d(F,"b",function(){return I}),e.d(F,"a",function(){return U});var T=function(){function j(h,b,O,m){this.originalStart=h,this.originalLength=b,this.modifiedStart=O,this.modifiedLength=m}return j.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},j.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},j}(),pe=e("7afs"),J=function(){function j(h){this.source=h}return j.prototype.getElements=function(){for(var h=this.source,b=new Int32Array(h.length),O=0,m=h.length;O<m;O++)b[O]=h.charCodeAt(O);return b},j}();function I(j,h,b){return new U(new J(j),new J(h)).ComputeDiff(b).changes}var H=function(){function j(){}return j.Assert=function(h,b){if(!h)throw new Error(b)},j}(),K=function(){function j(){}return j.Copy=function(h,b,O,m,C){for(var w=0;w<C;w++)O[m+w]=h[b+w]},j.Copy2=function(h,b,O,m,C){for(var w=0;w<C;w++)O[m+w]=h[b+w]},j}(),D=function(){function j(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return j.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new T(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824},j.prototype.AddOriginalElement=function(h,b){this.m_originalStart=Math.min(this.m_originalStart,h),this.m_modifiedStart=Math.min(this.m_modifiedStart,b),this.m_originalCount++},j.prototype.AddModifiedElement=function(h,b){this.m_originalStart=Math.min(this.m_originalStart,h),this.m_modifiedStart=Math.min(this.m_modifiedStart,b),this.m_modifiedCount++},j.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},j.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},j}(),U=function(){function j(h,b,O){O===void 0&&(O=null),this.ContinueProcessingPredicate=O;var m=j._getElements(h),C=m[0],w=m[1],v=m[2],p=j._getElements(b),d=p[0],c=p[1],u=p[2];this._hasStrings=v&&u,this._originalStringElements=C,this._originalElementsOrHash=w,this._modifiedStringElements=d,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}return j._isStringArray=function(h){return h.length>0&&typeof h[0]=="string"},j._getElements=function(h){var b=h.getElements();if(j._isStringArray(b)){for(var O=new Int32Array(b.length),m=0,C=b.length;m<C;m++)O[m]=Object(pe.b)(b[m],0);return[b,O,!0]}return b instanceof Int32Array?[[],b,!1]:[[],new Int32Array(b),!1]},j.prototype.ElementsAreEqual=function(h,b){return this._originalElementsOrHash[h]!==this._modifiedElementsOrHash[b]?!1:this._hasStrings?this._originalStringElements[h]===this._modifiedStringElements[b]:!0},j.prototype.OriginalElementsAreEqual=function(h,b){return this._originalElementsOrHash[h]!==this._originalElementsOrHash[b]?!1:this._hasStrings?this._originalStringElements[h]===this._originalStringElements[b]:!0},j.prototype.ModifiedElementsAreEqual=function(h,b){return this._modifiedElementsOrHash[h]!==this._modifiedElementsOrHash[b]?!1:this._hasStrings?this._modifiedStringElements[h]===this._modifiedStringElements[b]:!0},j.prototype.ComputeDiff=function(h){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,h)},j.prototype._ComputeDiff=function(h,b,O,m,C){var w=[!1],v=this.ComputeDiffRecursive(h,b,O,m,w);return C&&(v=this.PrettifyChanges(v)),{quitEarly:w[0],changes:v}},j.prototype.ComputeDiffRecursive=function(h,b,O,m,C){for(C[0]=!1;h<=b&&O<=m&&this.ElementsAreEqual(h,O);)h++,O++;for(;b>=h&&m>=O&&this.ElementsAreEqual(b,m);)b--,m--;if(h>b||O>m){var w=void 0;return O<=m?(H.Assert(h===b+1,"originalStart should only be one more than originalEnd"),w=[new T(h,0,O,m-O+1)]):h<=b?(H.Assert(O===m+1,"modifiedStart should only be one more than modifiedEnd"),w=[new T(h,b-h+1,O,0)]):(H.Assert(h===b+1,"originalStart should only be one more than originalEnd"),H.Assert(O===m+1,"modifiedStart should only be one more than modifiedEnd"),w=[]),w}var v=[0],p=[0],d=this.ComputeRecursionPoint(h,b,O,m,v,p,C),c=v[0],u=p[0];if(d!==null)return d;if(!C[0]){var f=this.ComputeDiffRecursive(h,c,O,u,C),E=[];return C[0]?E=[new T(c+1,b-(c+1)+1,u+1,m-(u+1)+1)]:E=this.ComputeDiffRecursive(c+1,b,u+1,m,C),this.ConcatenateChanges(f,E)}return[new T(h,b-h+1,O,m-O+1)]},j.prototype.WALKTRACE=function(h,b,O,m,C,w,v,p,d,c,u,f,E,L,R,P,x,Q){var V=null,W=null,B=new D,ae=b,we=O,Me=E[0]-P[0]-m,Pe=-1073741824,Be=this.m_forwardHistory.length-1;do{var Ke=Me+h;Ke===ae||Ke<we&&d[Ke-1]<d[Ke+1]?(u=d[Ke+1],L=u-Me-m,u<Pe&&B.MarkNextChange(),Pe=u,B.AddModifiedElement(u+1,L),Me=Ke+1-h):(u=d[Ke-1]+1,L=u-Me-m,u<Pe&&B.MarkNextChange(),Pe=u-1,B.AddOriginalElement(u,L+1),Me=Ke-1-h),Be>=0&&(d=this.m_forwardHistory[Be],h=d[0],ae=1,we=d.length-1)}while(--Be>=-1);if(V=B.getReverseChanges(),Q[0]){var Fe=E[0]+1,re=P[0]+1;if(V!==null&&V.length>0){var ee=V[V.length-1];Fe=Math.max(Fe,ee.getOriginalEnd()),re=Math.max(re,ee.getModifiedEnd())}W=[new T(Fe,f-Fe+1,re,R-re+1)]}else{B=new D,ae=w,we=v,Me=E[0]-P[0]-p,Pe=1073741824,Be=x?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var Ke=Me+C;Ke===ae||Ke<we&&c[Ke-1]>=c[Ke+1]?(u=c[Ke+1]-1,L=u-Me-p,u>Pe&&B.MarkNextChange(),Pe=u+1,B.AddOriginalElement(u+1,L+1),Me=Ke+1-C):(u=c[Ke-1],L=u-Me-p,u>Pe&&B.MarkNextChange(),Pe=u,B.AddModifiedElement(u+1,L+1),Me=Ke-1-C),Be>=0&&(c=this.m_reverseHistory[Be],C=c[0],ae=1,we=c.length-1)}while(--Be>=-1);W=B.getChanges()}return this.ConcatenateChanges(V,W)},j.prototype.ComputeRecursionPoint=function(h,b,O,m,C,w,v){var p=0,d=0,c=0,u=0,f=0,E=0;h--,O--,C[0]=0,w[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var L=b-h+(m-O),R=L+1,P=new Int32Array(R),x=new Int32Array(R),Q=m-O,V=b-h,W=h-O,B=b-m,ae=V-Q,we=ae%2===0;P[Q]=h,x[V]=b,v[0]=!1;for(var Me=1;Me<=L/2+1;Me++){var Pe=0,Be=0;c=this.ClipDiagonalBound(Q-Me,Me,Q,R),u=this.ClipDiagonalBound(Q+Me,Me,Q,R);for(var Ke=c;Ke<=u;Ke+=2){Ke===c||Ke<u&&P[Ke-1]<P[Ke+1]?p=P[Ke+1]:p=P[Ke-1]+1,d=p-(Ke-Q)-W;for(var Fe=p;p<b&&d<m&&this.ElementsAreEqual(p+1,d+1);)p++,d++;if(P[Ke]=p,p+d>Pe+Be&&(Pe=p,Be=d),!we&&Math.abs(Ke-V)<=Me-1&&p>=x[Ke])return C[0]=p,w[0]=d,Fe<=x[Ke]&&1447>0&&Me<=1447+1?this.WALKTRACE(Q,c,u,W,V,f,E,B,P,x,p,b,C,d,m,w,we,v):null}var re=(Pe-h+(Be-O)-Me)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Pe,re))return v[0]=!0,C[0]=Pe,w[0]=Be,re>0&&1447>0&&Me<=1447+1?this.WALKTRACE(Q,c,u,W,V,f,E,B,P,x,p,b,C,d,m,w,we,v):(h++,O++,[new T(h,b-h+1,O,m-O+1)]);f=this.ClipDiagonalBound(V-Me,Me,V,R),E=this.ClipDiagonalBound(V+Me,Me,V,R);for(var Ke=f;Ke<=E;Ke+=2){Ke===f||Ke<E&&x[Ke-1]>=x[Ke+1]?p=x[Ke+1]-1:p=x[Ke-1],d=p-(Ke-V)-B;for(var Fe=p;p>h&&d>O&&this.ElementsAreEqual(p,d);)p--,d--;if(x[Ke]=p,we&&Math.abs(Ke-Q)<=Me&&p<=P[Ke])return C[0]=p,w[0]=d,Fe>=P[Ke]&&1447>0&&Me<=1447+1?this.WALKTRACE(Q,c,u,W,V,f,E,B,P,x,p,b,C,d,m,w,we,v):null}if(Me<=1447){var ee=new Int32Array(u-c+2);ee[0]=Q-c+1,K.Copy2(P,c,ee,1,u-c+1),this.m_forwardHistory.push(ee),ee=new Int32Array(E-f+2),ee[0]=V-f+1,K.Copy2(x,f,ee,1,E-f+1),this.m_reverseHistory.push(ee)}}return this.WALKTRACE(Q,c,u,W,V,f,E,B,P,x,p,b,C,d,m,w,we,v)},j.prototype.PrettifyChanges=function(h){for(var b=0;b<h.length;b++){for(var O=h[b],m=b<h.length-1?h[b+1].originalStart:this._originalElementsOrHash.length,C=b<h.length-1?h[b+1].modifiedStart:this._modifiedElementsOrHash.length,w=O.originalLength>0,v=O.modifiedLength>0;O.originalStart+O.originalLength<m&&O.modifiedStart+O.modifiedLength<C&&(!w||this.OriginalElementsAreEqual(O.originalStart,O.originalStart+O.originalLength))&&(!v||this.ModifiedElementsAreEqual(O.modifiedStart,O.modifiedStart+O.modifiedLength));)O.originalStart++,O.modifiedStart++;var p=[null];if(b<h.length-1&&this.ChangesOverlap(h[b],h[b+1],p)){h[b]=p[0],h.splice(b+1,1),b--;continue}}for(var b=h.length-1;b>=0;b--){var O=h[b],m=0,C=0;if(b>0){var d=h[b-1];d.originalLength>0&&(m=d.originalStart+d.originalLength),d.modifiedLength>0&&(C=d.modifiedStart+d.modifiedLength)}for(var w=O.originalLength>0,v=O.modifiedLength>0,c=0,u=this._boundaryScore(O.originalStart,O.originalLength,O.modifiedStart,O.modifiedLength),f=1;;f++){var E=O.originalStart-f,L=O.modifiedStart-f;if(E<m||L<C)break;if(w&&!this.OriginalElementsAreEqual(E,E+O.originalLength))break;if(v&&!this.ModifiedElementsAreEqual(L,L+O.modifiedLength))break;var R=this._boundaryScore(E,O.originalLength,L,O.modifiedLength);R>u&&(u=R,c=f)}O.originalStart-=c,O.modifiedStart-=c}return h},j.prototype._OriginalIsBoundary=function(h){return h<=0||h>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[h])},j.prototype._OriginalRegionIsBoundary=function(h,b){if(this._OriginalIsBoundary(h)||this._OriginalIsBoundary(h-1))return!0;if(b>0){var O=h+b;if(this._OriginalIsBoundary(O-1)||this._OriginalIsBoundary(O))return!0}return!1},j.prototype._ModifiedIsBoundary=function(h){return h<=0||h>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[h])},j.prototype._ModifiedRegionIsBoundary=function(h,b){if(this._ModifiedIsBoundary(h)||this._ModifiedIsBoundary(h-1))return!0;if(b>0){var O=h+b;if(this._ModifiedIsBoundary(O-1)||this._ModifiedIsBoundary(O))return!0}return!1},j.prototype._boundaryScore=function(h,b,O,m){var C=this._OriginalRegionIsBoundary(h,b)?1:0,w=this._ModifiedRegionIsBoundary(O,m)?1:0;return C+w},j.prototype.ConcatenateChanges=function(h,b){var O=[];if(h.length===0||b.length===0)return b.length>0?b:h;if(this.ChangesOverlap(h[h.length-1],b[0],O)){var m=new Array(h.length+b.length-1);return K.Copy(h,0,m,0,h.length-1),m[h.length-1]=O[0],K.Copy(b,1,m,h.length,b.length-1),m}else{var m=new Array(h.length+b.length);return K.Copy(h,0,m,0,h.length),K.Copy(b,0,m,h.length,b.length),m}},j.prototype.ChangesOverlap=function(h,b,O){if(H.Assert(h.originalStart<=b.originalStart,"Left change is not less than or equal to right change"),H.Assert(h.modifiedStart<=b.modifiedStart,"Left change is not less than or equal to right change"),h.originalStart+h.originalLength>=b.originalStart||h.modifiedStart+h.modifiedLength>=b.modifiedStart){var m=h.originalStart,C=h.originalLength,w=h.modifiedStart,v=h.modifiedLength;return h.originalStart+h.originalLength>=b.originalStart&&(C=b.originalStart+b.originalLength-h.originalStart),h.modifiedStart+h.modifiedLength>=b.modifiedStart&&(v=b.modifiedStart+b.modifiedLength-h.modifiedStart),O[0]=new T(m,C,w,v),!0}else return O[0]=null,!1},j.prototype.ClipDiagonalBound=function(h,b,O,m){if(h>=0&&h<m)return h;var C=O,w=m-O-1,v=b%2===0;if(h<0){var p=C%2===0;return v===p?0:1}else{var d=w%2===0;return v===d?m-1:m-2}},j}()},H4T2:function(Mt,F,e){"use strict";e.r(F),e.d(F,"GotoDefinitionAtPositionEditorContribution",function(){return L});var T=e("62hx"),pe=e.n(T),J=e("3/fG"),I=e("X+cX"),H=e("/cxE"),K=e("eLzo"),D=e("WBhO"),U=e("aokT"),j=e("twdY"),h=e("sswD"),b=e("vRMv"),O=e("pmY6"),m=e("t49l"),C=e("t9D7"),w=e("MD5Z"),v=e("vATl"),p=e("8Ydt"),d=e("aBYw"),c=e("cGHE"),u=e("746U"),f=function(R,P,x,Q){var V=arguments.length,W=V<3?P:Q===null?Q=Object.getOwnPropertyDescriptor(P,x):Q,B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")W=Reflect.decorate(R,P,x,Q);else for(var ae=R.length-1;ae>=0;ae--)(B=R[ae])&&(W=(V<3?B(W):V>3?B(P,x,W):B(P,x))||W);return V>3&&W&&Object.defineProperty(P,x,W),W},E=function(R,P){return function(x,Q){P(x,Q,R)}},L=function(){function R(P,x,Q){var V=this;this.textModelResolverService=x,this.modeService=Q,this.toUnhook=new O.b,this.toUnhookForKeyboard=new O.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=P;var W=new d.a(P);this.toUnhook.add(W),this.toUnhook.add(W.onMouseMoveOrRelevantKeyDown(function(B){var ae=B[0],we=B[1];V.startFindDefinitionFromMouse(ae,Object(u.n)(we))})),this.toUnhook.add(W.onExecute(function(B){V.isEnabled(B)&&V.gotoDefinition(B.target.position,B.hasSideBySideModifier).then(function(){V.removeLinkDecorations()},function(ae){V.removeLinkDecorations(),Object(H.e)(ae)})})),this.toUnhook.add(W.onCancel(function(){V.removeLinkDecorations(),V.currentWordAtPosition=null}))}return R.get=function(P){return P.getContribution(R.ID)},R.prototype.startFindDefinitionFromCursor=function(P){var x=this;return this.startFindDefinition(P).then(function(){x.toUnhookForKeyboard.add(x.editor.onDidChangeCursorPosition(function(){x.currentWordAtPosition=null,x.removeLinkDecorations(),x.toUnhookForKeyboard.clear()})),x.toUnhookForKeyboard.add(x.editor.onKeyDown(function(Q){Q&&(x.currentWordAtPosition=null,x.removeLinkDecorations(),x.toUnhookForKeyboard.clear())}))})},R.prototype.startFindDefinitionFromMouse=function(P,x){if(P.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(P,x)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var Q=P.target.position;this.startFindDefinition(Q)},R.prototype.startFindDefinition=function(P){var x=this,Q;this.toUnhookForKeyboard.clear();var V=P?(Q=this.editor.getModel())===null||Q===void 0?void 0:Q.getWordAtPosition(P):null;if(!V)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===V.startColumn&&this.currentWordAtPosition.endColumn===V.endColumn&&this.currentWordAtPosition.word===V.word)return Promise.resolve(0);this.currentWordAtPosition=V;var W=new v.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(I.f)(function(B){return x.findDefinition(P,B)}),this.previousPromise.then(function(B){if(!B||!B.length||!W.validate(x.editor)){x.removeLinkDecorations();return}if(B.length>1)x.addDecoration(new U.a(P.lineNumber,V.startColumn,P.lineNumber,V.endColumn),new K.a().appendText(J.a("multipleResults","Click to show {0} definitions.",B.length)));else{var ae=B[0];if(!ae.uri)return;x.textModelResolverService.createModelReference(ae.uri).then(function(we){if(!we.object||!we.object.textEditorModel){we.dispose();return}var Me=we.object.textEditorModel,Pe=ae.range.startLineNumber;if(Pe<1||Pe>Me.getLineCount()){we.dispose();return}var Be=x.getPreviewValue(Me,Pe,ae),Ke;ae.originSelectionRange?Ke=U.a.lift(ae.originSelectionRange):Ke=new U.a(P.lineNumber,V.startColumn,P.lineNumber,V.endColumn);var Fe=x.modeService.getModeIdByFilepathOrFirstLine(Me.uri);x.addDecoration(Ke,new K.a().appendCodeblock(Fe||"",Be)),we.dispose()})}}).then(void 0,H.e)},R.prototype.getPreviewValue=function(P,x,Q){var V=Q.targetSelectionRange?Q.range:this.getPreviewRangeBasedOnBrackets(P,x),W=V.endLineNumber-V.startLineNumber;W>=R.MAX_SOURCE_PREVIEW_LINES&&(V=this.getPreviewRangeBasedOnIndentation(P,x));var B=this.stripIndentationFromPreviewRange(P,x,V);return B},R.prototype.stripIndentationFromPreviewRange=function(P,x,Q){for(var V=P.getLineFirstNonWhitespaceColumn(x),W=V,B=x+1;B<Q.endLineNumber;B++){var ae=P.getLineFirstNonWhitespaceColumn(B);W=Math.min(W,ae)}var we=P.getValueInRange(Q).replace(new RegExp("^\\s{"+(W-1)+"}","gm"),"").trim();return we},R.prototype.getPreviewRangeBasedOnIndentation=function(P,x){for(var Q=P.getLineFirstNonWhitespaceColumn(x),V=Math.min(P.getLineCount(),x+R.MAX_SOURCE_PREVIEW_LINES),W=x+1;W<V;W++){var B=P.getLineFirstNonWhitespaceColumn(W);if(Q===B)break}return new U.a(x,1,W+1,1)},R.prototype.getPreviewRangeBasedOnBrackets=function(P,x){for(var Q=Math.min(P.getLineCount(),x+R.MAX_SOURCE_PREVIEW_LINES),V=[],W=!0,B=P.findNextBracket(new c.a(x,1));B!==null;){if(V.length===0)V.push(B);else{var ae=V[V.length-1];if(ae.open[0]===B.open[0]&&ae.isOpen&&!B.isOpen?V.pop():V.push(B),V.length===0)if(W)W=!1;else return new U.a(x,1,B.range.endLineNumber+1,1)}var we=P.getLineMaxColumn(x),Me=B.range.endLineNumber,Pe=B.range.endColumn;if(we===B.range.endColumn&&(Me++,Pe=1),Me>Q)return new U.a(x,1,Q+1,1);B=P.findNextBracket(new c.a(Me,Pe))}return new U.a(x,1,Q+1,1)},R.prototype.addDecoration=function(P,x){var Q={range:P,options:{inlineClassName:"goto-definition-link",hoverMessage:x}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[Q])},R.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},R.prototype.isEnabled=function(P,x){return this.editor.hasModel()&&P.isNoneOrSingleMouseDown&&P.target.type===6&&(P.hasTriggerModifier||(x?x.keyCodeIsTriggerKey:!1))&&j.f.has(this.editor.getModel())},R.prototype.findDefinition=function(P,x){var Q=this.editor.getModel();return Q?Object(b.b)(Q,P,x):Promise.resolve(null)},R.prototype.gotoDefinition=function(P,x){var Q=this;this.editor.setPosition(P);var V=new p.DefinitionAction({openToSide:x,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(W){return V.run(W,Q.editor)})},R.prototype.dispose=function(){this.toUnhook.dispose()},R.ID="editor.contrib.gotodefinitionatposition",R.MAX_SOURCE_PREVIEW_LINES=8,R=f([E(1,m.a),E(2,D.a)],R),R}();Object(h.h)(L.ID,L),Object(C.e)(function(R,P){var x=R.getColor(w.n);x&&P.addRule(".monaco-editor .goto-definition-link { color: "+x+" !important; }")})},H6Gb:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return e.e(321).then(e.bind(null,"lXEz"))}})},HdwC:function(Mt,F,e){"use strict";e.d(F,"b",function(){return C}),e.d(F,"a",function(){return v});var T=e("D3Dy"),pe=e("MI8n"),J=e("pmY6"),I=e("MNsG"),H=function(){function p(d,c){this.chr=d,this.type=c,this.width=0}return p.prototype.fulfill=function(d){this.width=d},p}(),K=function(){function p(d,c){this._bareFontInfo=d,this._requests=c,this._container=null,this._testElements=null}return p.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},p.prototype._createDomElements=function(){var d=document.createElement("div");d.style.position="absolute",d.style.top="-50000px",d.style.width="50000px";var c=document.createElement("div");c.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),c.style.fontWeight=this._bareFontInfo.fontWeight,c.style.fontSize=this._bareFontInfo.fontSize+"px",c.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,c.style.lineHeight=this._bareFontInfo.lineHeight+"px",c.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",d.appendChild(c);var u=document.createElement("div");u.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),u.style.fontWeight="bold",u.style.fontSize=this._bareFontInfo.fontSize+"px",u.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,u.style.lineHeight=this._bareFontInfo.lineHeight+"px",u.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",d.appendChild(u);var f=document.createElement("div");f.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),f.style.fontWeight=this._bareFontInfo.fontWeight,f.style.fontSize=this._bareFontInfo.fontSize+"px",f.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,f.style.lineHeight=this._bareFontInfo.lineHeight+"px",f.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",f.style.fontStyle="italic",d.appendChild(f);for(var E=[],L=0,R=this._requests;L<R.length;L++){var P=R[L],x=void 0;P.type===0&&(x=c),P.type===2&&(x=u),P.type===1&&(x=f),x.appendChild(document.createElement("br"));var Q=document.createElement("span");p._render(Q,P),x.appendChild(Q),E.push(Q)}this._container=d,this._testElements=E},p._render=function(d,c){if(c.chr===" "){for(var u="&#160;",f=0;f<8;f++)u+=u;d.innerHTML=u}else{for(var E=c.chr,f=0;f<8;f++)E+=E;d.textContent=E}},p.prototype._readFromDomElements=function(){for(var d=0,c=this._requests.length;d<c;d++){var u=this._requests[d],f=this._testElements[d];u.fulfill(f.offsetWidth/256)}},p}();function D(p,d){var c=new K(p,d);c.read()}var U=e("o39E"),j=e("iDAx"),h=e("/UlZ"),b=e("+3Gp"),O=function(){var p=function(d,c){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var E in f)f.hasOwnProperty(E)&&(u[E]=f[E])},p(d,c)};return function(d,c){p(d,c);function u(){this.constructor=d}d.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),m=function(){function p(){this._keys=Object.create(null),this._values=Object.create(null)}return p.prototype.has=function(d){var c=d.getId();return!!this._values[c]},p.prototype.get=function(d){var c=d.getId();return this._values[c]},p.prototype.put=function(d,c){var u=d.getId();this._keys[u]=d,this._values[u]=c},p.prototype.remove=function(d){var c=d.getId();delete this._keys[c],delete this._values[c]},p.prototype.getValues=function(){var d=this;return Object.keys(this._keys).map(function(c){return d._values[c]})},p}();function C(){w.INSTANCE.clearCache()}var w=function(p){O(d,p);function d(){var c=p.call(this)||this;return c._onDidChange=c._register(new pe.a),c.onDidChange=c._onDidChange.event,c._cache=new m,c._evictUntrustedReadingsTimeout=-1,c}return d.prototype.dispose=function(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),p.prototype.dispose.call(this)},d.prototype.clearCache=function(){this._cache=new m,this._onDidChange.fire()},d.prototype._writeToCache=function(c,u){var f=this;this._cache.put(c,u),!u.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=setTimeout(function(){f._evictUntrustedReadingsTimeout=-1,f._evictUntrustedReadings()},5e3))},d.prototype._evictUntrustedReadings=function(){for(var c=this._cache.getValues(),u=!1,f=0,E=c.length;f<E;f++){var L=c[f];L.isTrusted||(u=!0,this._cache.remove(L))}u&&this._onDidChange.fire()},d.prototype.readConfiguration=function(c){if(!this._cache.has(c)){var u=d._actualReadConfiguration(c);(u.typicalHalfwidthCharacterWidth<=2||u.typicalFullwidthCharacterWidth<=2||u.spaceWidth<=2||u.maxDigitWidth<=2)&&(u=new b.b({zoomLevel:T.c(),fontFamily:u.fontFamily,fontWeight:u.fontWeight,fontSize:u.fontSize,fontFeatureSettings:u.fontFeatureSettings,lineHeight:u.lineHeight,letterSpacing:u.letterSpacing,isMonospace:u.isMonospace,typicalHalfwidthCharacterWidth:Math.max(u.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(u.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:u.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(u.spaceWidth,5),middotWidth:Math.max(u.middotWidth,5),maxDigitWidth:Math.max(u.maxDigitWidth,5)},!1)),this._writeToCache(c,u)}return this._cache.get(c)},d.createRequest=function(c,u,f,E){var L=new H(c,u);return f.push(L),E&&E.push(L),L},d._actualReadConfiguration=function(c){var u=[],f=[],E=this.createRequest("n",0,u,f),L=this.createRequest("\uFF4D",0,u,null),R=this.createRequest(" ",0,u,f),P=this.createRequest("0",0,u,f),x=this.createRequest("1",0,u,f),Q=this.createRequest("2",0,u,f),V=this.createRequest("3",0,u,f),W=this.createRequest("4",0,u,f),B=this.createRequest("5",0,u,f),ae=this.createRequest("6",0,u,f),we=this.createRequest("7",0,u,f),Me=this.createRequest("8",0,u,f),Pe=this.createRequest("9",0,u,f),Be=this.createRequest("\u2192",0,u,f),Ke=this.createRequest("\uFFEB",0,u,null),Fe=this.createRequest("\xB7",0,u,f);this.createRequest("|",0,u,f),this.createRequest("/",0,u,f),this.createRequest("-",0,u,f),this.createRequest("_",0,u,f),this.createRequest("i",0,u,f),this.createRequest("l",0,u,f),this.createRequest("m",0,u,f),this.createRequest("|",1,u,f),this.createRequest("_",1,u,f),this.createRequest("i",1,u,f),this.createRequest("l",1,u,f),this.createRequest("m",1,u,f),this.createRequest("n",1,u,f),this.createRequest("|",2,u,f),this.createRequest("_",2,u,f),this.createRequest("i",2,u,f),this.createRequest("l",2,u,f),this.createRequest("m",2,u,f),this.createRequest("n",2,u,f),D(c,u);for(var re=Math.max(P.width,x.width,Q.width,V.width,W.width,B.width,ae.width,we.width,Me.width,Pe.width),ee=c.fontFeatureSettings===h.d.OFF,ne=f[0].width,q=1,le=f.length;ee&&q<le;q++){var Z=ne-f[q].width;if(Z<-.001||Z>.001){ee=!1;break}}var ve=!0;ee&&Ke.width!==ne&&(ve=!1),Ke.width>Be.width&&(ve=!1);var Ne=T.b()>2e3;return new b.b({zoomLevel:T.c(),fontFamily:c.fontFamily,fontWeight:c.fontWeight,fontSize:c.fontSize,fontFeatureSettings:c.fontFeatureSettings,lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,isMonospace:ee,typicalHalfwidthCharacterWidth:E.width,typicalFullwidthCharacterWidth:L.width,canUseHalfwidthRightwardsArrow:ve,spaceWidth:R.width,middotWidth:Fe.width,maxDigitWidth:re},Ne)},d.INSTANCE=new d,d}(J.a),v=function(p){O(d,p);function d(c,u,f,E){f===void 0&&(f=null);var L=p.call(this,c,u)||this;return L.accessibilityService=E,L._elementSizeObserver=L._register(new U.a(f,u.dimension,function(){return L._onReferenceDomElementSizeChanged()})),L._register(w.INSTANCE.onDidChange(function(){return L._onCSSBasedConfigurationChanged()})),L._validatedOptions.get(9)&&L._elementSizeObserver.startObserving(),L._register(T.o(function(R){return L._recomputeOptions()})),L._register(L.accessibilityService.onDidChangeScreenReaderOptimized(function(){return L._recomputeOptions()})),L._recomputeOptions(),L}return d.applyFontInfoSlow=function(c,u){c.style.fontFamily=u.getMassagedFontFamily(),c.style.fontWeight=u.fontWeight,c.style.fontSize=u.fontSize+"px",c.style.fontFeatureSettings=u.fontFeatureSettings,c.style.lineHeight=u.lineHeight+"px",c.style.letterSpacing=u.letterSpacing+"px"},d.applyFontInfo=function(c,u){c.setFontFamily(u.getMassagedFontFamily()),c.setFontWeight(u.fontWeight),c.setFontSize(u.fontSize),c.setFontFeatureSettings(u.fontFeatureSettings),c.setLineHeight(u.lineHeight),c.setLetterSpacing(u.letterSpacing)},d.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},d.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},d.prototype.observeReferenceElement=function(c){this._elementSizeObserver.observe(c)},d.prototype.dispose=function(){p.prototype.dispose.call(this)},d.prototype._getExtraEditorClassName=function(){var c="";return!T.k&&!T.n&&(c+="no-user-select "),I.e&&(c+="mac "),c},d.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:T.m||T.h,pixelRatio:T.a(),zoomLevel:T.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},d.prototype.readConfiguration=function(c){return w.INSTANCE.readConfiguration(c)},d}(j.a)},HyZH:function(Mt,F,e){},"I/Lx":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return e.e(302).then(e.bind(null,"yswY"))}})},"J+ZK":function(Mt,F,e){},"JQT/":function(Mt,F,e){"use strict";e.d(F,"a",function(){return J}),e.d(F,"b",function(){return H});var T=e("MI8n"),pe=Object.freeze(function(K,D){var U=setTimeout(K.bind(D),0);return{dispose:function(){clearTimeout(U)}}}),J;(function(K){function D(U){return U===K.None||U===K.Cancelled||U instanceof I?!0:!U||typeof U!="object"?!1:typeof U.isCancellationRequested=="boolean"&&typeof U.onCancellationRequested=="function"}K.isCancellationToken=D,K.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:T.b.None}),K.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:pe})})(J||(J={}));var I=function(){function K(){this._isCancelled=!1,this._emitter=null}return K.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(K.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?pe:(this._emitter||(this._emitter=new T.a),this._emitter.event)},enumerable:!0,configurable:!0}),K.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},K}(),H=function(){function K(D){this._token=void 0,this._parentListener=void 0,this._parentListener=D&&D.onCancellationRequested(this.cancel,this)}return Object.defineProperty(K.prototype,"token",{get:function(){return this._token||(this._token=new I),this._token},enumerable:!0,configurable:!0}),K.prototype.cancel=function(){this._token?this._token instanceof I&&this._token.cancel():this._token=J.Cancelled},K.prototype.dispose=function(D){D===void 0&&(D=!1),D&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof I&&this._token.dispose():this._token=J.None},K}()},JlLP:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return e.e(323).then(e.bind(null,"W1QP"))}})},KDc4:function(Mt,F,e){"use strict";e.d(F,"a",function(){return T}),e.d(F,"b",function(){return pe});var T;(function(J){J[J.None=0]="None",J[J.Indent=1]="Indent",J[J.IndentOutdent=2]="IndentOutdent",J[J.Outdent=3]="Outdent"})(T||(T={}));var pe=function(){function J(I){if(this.open=I.open,this.close=I.close,this._standardTokenMask=0,Array.isArray(I.notIn))for(var H=0,K=I.notIn.length;H<K;H++){var D=I.notIn[H];switch(D){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}return J.prototype.isOK=function(I){return(this._standardTokenMask&I)===0},J}()},KTWA:function(Mt,F,e){"use strict";e.r(F);var T=e("3/fG"),pe=e("sswD"),J=e("wQH0"),I=e("aokT"),H=function(){function h(b,O){this._selection=b,this._isMovingLeft=O,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}return h.prototype.getEditOperations=function(b,O){var m=this._selection;if(this._selectionId=O.trackSelection(m),m.startLineNumber!==m.endLineNumber)return;if(this._isMovingLeft&&m.startColumn===0)return;if(!this._isMovingLeft&&m.endColumn===b.getLineMaxColumn(m.startLineNumber))return;var C=m.selectionStartLineNumber,w=b.getLineContent(C),v,p,d;this._isMovingLeft?(v=w.substring(0,m.startColumn-2),p=w.substring(m.startColumn-1,m.endColumn-1),d=w.substring(m.startColumn-2,m.startColumn-1)+w.substring(m.endColumn-1)):(v=w.substring(0,m.startColumn-1)+w.substring(m.endColumn-1,m.endColumn),p=w.substring(m.startColumn-1,m.endColumn-1),d=w.substring(m.endColumn));var c=v+p+d;O.addEditOperation(new I.a(C,1,C,b.getLineMaxColumn(C)),null),O.addEditOperation(new I.a(C,1,C,1),c),this._cutStartIndex=m.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+m.endColumn-m.startColumn,this._moved=!0},h.prototype.computeCursorState=function(b,O){var m=O.getTrackedSelection(this._selectionId);return this._moved&&(m=m.setStartPosition(m.startLineNumber,this._cutStartIndex),m=m.setEndPosition(m.startLineNumber,this._cutEndIndex)),m},h}(),K=function(){var h=function(b,O){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var w in C)C.hasOwnProperty(w)&&(m[w]=C[w])},h(b,O)};return function(b,O){h(b,O);function m(){this.constructor=b}b.prototype=O===null?Object.create(O):(m.prototype=O.prototype,new m)}}(),D=function(h){K(b,h);function b(O,m){var C=h.call(this,m)||this;return C.left=O,C}return b.prototype.run=function(O,m){if(!m.hasModel())return;for(var C=[],w=m.getSelections(),v=0,p=w;v<p.length;v++){var d=p[v];C.push(new H(d,this.left))}m.pushUndoStop(),m.executeCommands(this.id,C),m.pushUndoStop()},b}(pe.b),U=function(h){K(b,h);function b(){return h.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:T.a("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:J.a.writable})||this}return b}(D),j=function(h){K(b,h);function b(){return h.call(this,!1,{id:"editor.action.moveCarretRightAction",label:T.a("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:J.a.writable})||this}return b}(D);Object(pe.f)(U),Object(pe.f)(j)},KaET:function(Mt,F,e){},KgQ1:function(Mt,F,e){},Krc3:function(Mt,F,e){},LCkn:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"c",function(){return J}),e.d(F,"e",function(){return I}),e.d(F,"d",function(){return H}),e.d(F,"b",function(){return K});var T=e("gCVg"),pe=function(){function D(U,j,h){h===void 0&&(h=!1),this._range=U,this._text=j,this.insertsAutoWhitespace=h}return D.prototype.getEditOperations=function(U,j){j.addTrackedEditOperation(this._range,this._text)},D.prototype.computeCursorState=function(U,j){var h=j.getInverseEditOperations(),b=h[0].range;return new T.a(b.endLineNumber,b.endColumn,b.endLineNumber,b.endColumn)},D}(),J=function(){function D(U,j){this._range=U,this._text=j}return D.prototype.getEditOperations=function(U,j){j.addTrackedEditOperation(this._range,this._text)},D.prototype.computeCursorState=function(U,j){var h=j.getInverseEditOperations(),b=h[0].range;return new T.a(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn)},D}(),I=function(){function D(U,j,h){h===void 0&&(h=!1),this._range=U,this._text=j,this.insertsAutoWhitespace=h}return D.prototype.getEditOperations=function(U,j){j.addTrackedEditOperation(this._range,this._text)},D.prototype.computeCursorState=function(U,j){var h=j.getInverseEditOperations(),b=h[0].range;return new T.a(b.startLineNumber,b.startColumn,b.startLineNumber,b.startColumn)},D}(),H=function(){function D(U,j,h,b,O){O===void 0&&(O=!1),this._range=U,this._text=j,this._columnDeltaOffset=b,this._lineNumberDeltaOffset=h,this.insertsAutoWhitespace=O}return D.prototype.getEditOperations=function(U,j){j.addTrackedEditOperation(this._range,this._text)},D.prototype.computeCursorState=function(U,j){var h=j.getInverseEditOperations(),b=h[0].range;return new T.a(b.endLineNumber+this._lineNumberDeltaOffset,b.endColumn+this._columnDeltaOffset,b.endLineNumber+this._lineNumberDeltaOffset,b.endColumn+this._columnDeltaOffset)},D}(),K=function(){function D(U,j,h,b){b===void 0&&(b=!1),this._range=U,this._text=j,this._initialSelection=h,this._forceMoveMarkers=b,this._selectionId=null}return D.prototype.getEditOperations=function(U,j){j.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=j.trackSelection(this._initialSelection)},D.prototype.computeCursorState=function(U,j){return j.getTrackedSelection(this._selectionId)},D}()},LRks:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return e.e(342).then(e.bind(null,"05+/"))}})},LUcL:function(Mt,F,e){"use strict";e.r(F),e.d(F,"DeleteWordPartLeft",function(){return U}),e.d(F,"DeleteWordPartRight",function(){return j}),e.d(F,"WordPartLeftCommand",function(){return h}),e.d(F,"CursorWordPartLeft",function(){return b}),e.d(F,"CursorWordPartLeftSelect",function(){return O}),e.d(F,"WordPartRightCommand",function(){return m}),e.d(F,"CursorWordPartRight",function(){return C}),e.d(F,"CursorWordPartRightSelect",function(){return w});var T=e("sswD"),pe=e("1I1M"),J=e("aokT"),I=e("wQH0"),H=e("s7Km"),K=e("nnTU"),D=function(){var v=function(p,d){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var f in u)u.hasOwnProperty(f)&&(c[f]=u[f])},v(p,d)};return function(p,d){v(p,d);function c(){this.constructor=p}p.prototype=d===null?Object.create(d):(c.prototype=d.prototype,new c)}}(),U=function(v){D(p,v);function p(){return v.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:I.a.writable,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|1},weight:100}})||this}return p.prototype._delete=function(d,c,u,f,E){var L=pe.b.deleteWordPartLeft(d,c,u,f);return L||new J.a(1,1,1,1)},p}(H.DeleteWordCommand),j=function(v){D(p,v);function p(){return v.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:I.a.writable,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|20},weight:100}})||this}return p.prototype._delete=function(d,c,u,f,E){var L=pe.b.deleteWordPartRight(d,c,u,f);if(L)return L;var R=c.getLineCount(),P=c.getLineMaxColumn(R);return new J.a(R,P,R,P)},p}(H.DeleteWordCommand),h=function(v){D(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p.prototype._move=function(d,c,u,f){return pe.b.moveWordPartLeft(d,c,u)},p}(H.MoveWordCommand),b=function(v){D(p,v);function p(){return v.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|15},weight:100}})||this}return p}(h);K.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var O=function(v){D(p,v);function p(){return v.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|1024|15},weight:100}})||this}return p}(h);K.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var m=function(v){D(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p.prototype._move=function(d,c,u,f){return pe.b.moveWordPartRight(d,c,u)},p}(H.MoveWordCommand),C=function(v){D(p,v);function p(){return v.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|17},weight:100}})||this}return p}(m),w=function(v){D(p,v);function p(){return v.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|1024|17},weight:100}})||this}return p}(m);Object(T.g)(new U),Object(T.g)(new j),Object(T.g)(new b),Object(T.g)(new O),Object(T.g)(new C),Object(T.g)(new w)},"LeU+":function(Mt,F,e){"use strict";e.d(F,"b",function(){return pe}),e.d(F,"a",function(){return J});var T=e("CZ1j"),pe=function(){function I(H,K){this.index=H,this.remainder=K}return I}(),J=function(){function I(H){this.values=H,this.prefixSum=new Uint32Array(H.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return I.prototype.insertValues=function(H,K){H=Object(T.a)(H);var D=this.values,U=this.prefixSum,j=K.length;return j===0?!1:(this.values=new Uint32Array(D.length+j),this.values.set(D.subarray(0,H),0),this.values.set(D.subarray(H),H+j),this.values.set(K,H),H-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=H-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(U.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},I.prototype.changeValue=function(H,K){return H=Object(T.a)(H),K=Object(T.a)(K),this.values[H]===K?!1:(this.values[H]=K,H-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=H-1),!0)},I.prototype.removeValues=function(H,K){H=Object(T.a)(H),K=Object(T.a)(K);var D=this.values,U=this.prefixSum;if(H>=D.length)return!1;var j=D.length-H;return K>=j&&(K=j),K===0?!1:(this.values=new Uint32Array(D.length-K),this.values.set(D.subarray(0,H),0),this.values.set(D.subarray(H+K),H),this.prefixSum=new Uint32Array(this.values.length),H-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=H-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(U.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},I.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},I.prototype.getAccumulatedValue=function(H){return H<0?0:(H=Object(T.a)(H),this._getAccumulatedValue(H))},I.prototype._getAccumulatedValue=function(H){if(H<=this.prefixSumValidIndex[0])return this.prefixSum[H];var K=this.prefixSumValidIndex[0]+1;K===0&&(this.prefixSum[0]=this.values[0],K++),H>=this.values.length&&(H=this.values.length-1);for(var D=K;D<=H;D++)this.prefixSum[D]=this.prefixSum[D-1]+this.values[D];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],H),this.prefixSum[H]},I.prototype.getIndexOf=function(H){H=Math.floor(H),this.getTotalValue();for(var K=0,D=this.values.length-1,U=0,j=0,h=0;K<=D;)if(U=K+(D-K)/2|0,j=this.prefixSum[U],h=j-this.values[U],H<h)D=U-1;else if(H>=j)K=U+1;else break;return new pe(U,H-h)},I}()},LexI:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return e.e(303).then(e.bind(null,"lHAa"))}})},Ll0s:function(Mt,F,e){"use strict";e.d(F,"b",function(){return O}),e.d(F,"f",function(){return m}),e.d(F,"c",function(){return C}),e.d(F,"d",function(){return p}),e.d(F,"e",function(){return d}),e.d(F,"a",function(){return c}),e.d(F,"g",function(){return u});var T=e("/cxE"),pe=e("N0LK"),J=e("cGHE"),I=e("aokT"),H=e("gCVg"),K=e("tX9W"),D=e("cMvZ"),U=function(){return!0},j=function(){return!1},h=function(f){return f===" "||f===" "};function b(f,E,L){f.has(E)?f.get(E).push(L):f.set(E,[L])}var O=function(){function f(E,L,R){this._languageIdentifier=E;var P=R.options,x=P.get(107);this.readOnly=P.get(68),this.tabSize=L.tabSize,this.indentSize=L.indentSize,this.insertSpaces=L.insertSpaces,this.lineHeight=P.get(49),this.pageSize=Math.max(1,Math.floor(x.height/this.lineHeight)-2),this.useTabStops=P.get(95),this.wordSeparators=P.get(96),this.emptySelectionClipboard=P.get(25),this.copyWithSyntaxHighlighting=P.get(15),this.multiCursorMergeOverlapping=P.get(58),this.multiCursorPaste=P.get(60),this.autoClosingBrackets=P.get(5),this.autoClosingQuotes=P.get(7),this.autoClosingOvertype=P.get(6),this.autoSurround=P.get(10),this.autoIndent=P.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:f._getShouldAutoClose(E,this.autoClosingQuotes),bracket:f._getShouldAutoClose(E,this.autoClosingBrackets)};var Q=f._getAutoClosingPairs(E);if(Q)for(var V=0,W=Q;V<W.length;V++){var B=W[V];b(this.autoClosingPairsOpen2,B.open.charAt(B.open.length-1),B),B.close.length===1&&b(this.autoClosingPairsClose2,B.close,B)}var ae=f._getSurroundingPairs(E);if(ae)for(var we=0,Me=ae;we<Me.length;we++){var B=Me[we];this.surroundingPairs[B.open]=B.close}}return f.shouldRecreate=function(E){return E.hasChanged(107)||E.hasChanged(96)||E.hasChanged(25)||E.hasChanged(58)||E.hasChanged(60)||E.hasChanged(5)||E.hasChanged(7)||E.hasChanged(6)||E.hasChanged(10)||E.hasChanged(95)||E.hasChanged(49)||E.hasChanged(68)},Object.defineProperty(f.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var E=f._getElectricCharacters(this._languageIdentifier);if(E)for(var L=0,R=E;L<R.length;L++){var P=R[L];this._electricChars[P]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),f.prototype.normalizeIndentation=function(E){return K.b.normalizeIndentation(E,this.indentSize,this.insertSpaces)},f._getElectricCharacters=function(E){try{return D.a.getElectricCharacters(E.id)}catch(L){return Object(T.e)(L),null}},f._getAutoClosingPairs=function(E){try{return D.a.getAutoClosingPairs(E.id)}catch(L){return Object(T.e)(L),null}},f._getShouldAutoClose=function(E,L){switch(L){case"beforeWhitespace":return h;case"languageDefined":return f._getLanguageDefinedShouldAutoClose(E);case"always":return U;case"never":return j}},f._getLanguageDefinedShouldAutoClose=function(E){try{var L=D.a.getAutoCloseBeforeSet(E.id);return function(R){return L.indexOf(R)!==-1}}catch(R){return Object(T.e)(R),j}},f._getSurroundingPairs=function(E){try{return D.a.getSurroundingPairs(E.id)}catch(L){return Object(T.e)(L),null}},f}(),m=function(){function f(E,L,R,P){this.selectionStart=E,this.selectionStartLeftoverVisibleColumns=L,this.position=R,this.leftoverVisibleColumns=P,this.selection=f._computeSelection(this.selectionStart,this.position)}return f.prototype.equals=function(E){return this.selectionStartLeftoverVisibleColumns===E.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===E.leftoverVisibleColumns&&this.position.equals(E.position)&&this.selectionStart.equalsRange(E.selectionStart)},f.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},f.prototype.move=function(E,L,R,P){return E?new f(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new J.a(L,R),P):new f(new I.a(L,R,L,R),P,new J.a(L,R),P)},f._computeSelection=function(E,L){var R,P,x,Q;return E.isEmpty()?(R=E.startLineNumber,P=E.startColumn,x=L.lineNumber,Q=L.column):L.isBeforeOrEqual(E.getStartPosition())?(R=E.endLineNumber,P=E.endColumn,x=L.lineNumber,Q=L.column):(R=E.startLineNumber,P=E.startColumn,x=L.lineNumber,Q=L.column),new H.a(R,P,x,Q)},f}(),C=function(){function f(E,L,R){this.model=L,this.viewModel=R,this.config=new O(this.model.getLanguageIdentifier(),this.model.getOptions(),E)}return f.prototype.validateViewPosition=function(E,L){return this.viewModel.coordinatesConverter.validateViewPosition(E,L)},f.prototype.validateViewRange=function(E,L){return this.viewModel.coordinatesConverter.validateViewRange(E,L)},f.prototype.convertViewRangeToModelRange=function(E){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(E)},f.prototype.convertViewPositionToModelPosition=function(E,L){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new J.a(E,L))},f.prototype.convertModelPositionToViewPosition=function(E){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(E)},f.prototype.convertModelRangeToViewRange=function(E){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(E)},f.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},f.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},f.prototype.getCompletelyVisibleModelRange=function(){var E=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(E)},f.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(E){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(E)},f.prototype.getVerticalOffsetForViewLine=function(E){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(E)},f}(),w=function(){function f(E){this.modelState=E,this.viewState=null}return f}(),v=function(){function f(E){this.modelState=null,this.viewState=E}return f}(),p=function(){function f(E,L){this.modelState=E,this.viewState=L}return f.fromModelState=function(E){return new w(E)},f.fromViewState=function(E){return new v(E)},f.fromModelSelection=function(E){var L=E.selectionStartLineNumber,R=E.selectionStartColumn,P=E.positionLineNumber,x=E.positionColumn,Q=new m(new I.a(L,R,L,R),0,new J.a(P,x),0);return f.fromModelState(Q)},f.fromModelSelections=function(E){for(var L=[],R=0,P=E.length;R<P;R++)L[R]=this.fromModelSelection(E[R]);return L},f.prototype.equals=function(E){return this.viewState.equals(E.viewState)&&this.modelState.equals(E.modelState)},f}(),d=function(){function f(E,L,R){this.type=E,this.commands=L,this.shouldPushStackElementBefore=R.shouldPushStackElementBefore,this.shouldPushStackElementAfter=R.shouldPushStackElementAfter}return f}(),c=function(){function f(){}return f.visibleColumnFromColumn=function(E,L,R){for(var P=E.length,x=L-1<P?L-1:P,Q=0,V=0;V<x;){var W=pe.u(E,x,V);if(V+=W>=65536?2:1,W===9)Q=f.nextRenderTabStop(Q,R);else{for(var B=pe.s(W);V<x;){var ae=pe.u(E,x,V),we=pe.s(ae);if(pe.b(B,we))break;V+=ae>=65536?2:1,B=we}pe.y(W)||pe.w(W)?Q=Q+2:Q=Q+1}}return Q},f.visibleColumnFromColumn2=function(E,L,R){return this.visibleColumnFromColumn(L.getLineContent(R.lineNumber),R.column,E.tabSize)},f.columnFromVisibleColumn=function(E,L,R){if(L<=0)return 1;for(var P=E.length,x=0,Q=1,V=0;V<P;){var W=pe.u(E,P,V);V+=W>=65536?2:1;var B=void 0;if(W===9)B=f.nextRenderTabStop(x,R);else{for(var ae=pe.s(W);V<P;){var we=pe.u(E,P,V),Me=pe.s(we);if(pe.b(ae,Me))break;V+=we>=65536?2:1,ae=Me}pe.y(W)||pe.w(W)?B=x+2:B=x+1}var Pe=V+1;if(B>=L){var Be=L-x,Ke=B-L;return Ke<Be?Pe:Q}x=B,Q=Pe}return P+1},f.columnFromVisibleColumn2=function(E,L,R,P){var x=this.columnFromVisibleColumn(L.getLineContent(R),P,E.tabSize),Q=L.getLineMinColumn(R);if(x<Q)return Q;var V=L.getLineMaxColumn(R);return x>V?V:x},f.nextRenderTabStop=function(E,L){return E+L-E%L},f.nextIndentTabStop=function(E,L){return E+L-E%L},f.prevRenderTabStop=function(E,L){return E-1-(E-1)%L},f.prevIndentTabStop=function(E,L){return E-1-(E-1)%L},f}();function u(f){return f==="'"||f==='"'||f==="`"}},"M/lh":function(Mt,F,e){self.MonacoEnvironment=function(T){function pe(J){return J.replace(/\/$/,"")}return{getWorkerUrl:function(J,I){var H=e.p,K=(H?pe(H)+"/":"")+T[I];if(/^(http:)|(https:)|(file:)/.test(K)){var D=String(window.location),U=D.substr(0,D.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(K.substring(0,U.length)!==U){var j="/*"+I+'*/importScripts("'+K+'");';return"data:text/javascript;charset=utf-8,"+encodeURIComponent(j)}}return K}}}({editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"}),e("SBYE"),e("bk7F"),e("KTWA"),e("w29/"),e("CxEt"),e("d6R0"),e("kqbb"),e("n01l"),e("fD5p"),e("1YUG"),e("5RaG"),e("/RFl"),e("oQaD"),e("dgXF"),e("bfR1"),e("cIJc"),e("lY/7"),e("AhDq"),e("8Ydt"),e("H4T2"),e("rugR"),e("oiKk"),e("GvMn"),e("gJAb"),e("dH+W"),e("2ESN"),e("8XyJ"),e("WwIK"),e("v+CO"),e("WQDh"),e("4sI4"),e("Q631"),e("10Fh"),e("tXSY"),e("ep4t"),e("vVA1"),e("k7pc"),e("ba9Q"),e("XtJs"),e("s7Km"),e("LUcL"),Mt.exports=e("8z58"),e("CdFp"),e("23p7"),e("OOlL"),e("li8W"),e("kdPm"),e("ApJL"),e("jrbv"),e("gqHg"),e("p3Ex"),e("E+ie"),e("9B1q"),e("9XAT"),e("SvYn"),e("I/Lx"),e("LexI"),e("0oIH"),e("+a1H"),e("hFdI"),e("c2dO"),e("zQEy"),e("k7mE"),e("cldp"),e("p5tG"),e("Dvnd"),e("FvUK"),e("ZvGG"),e("QFiB"),e("ZkA/"),e("/cAr"),e("xYNL"),e("jVwG"),e("6lNC"),e("q8qy"),e("sStQ"),e("oKJv"),e("H6Gb"),e("y3CF"),e("JlLP"),e("j2o1"),e("woZy"),e("iLY9"),e("Msxo"),e("ajgA"),e("QiAa"),e("pI2L"),e("yKqg"),e("ij/i"),e("XQgg"),e("Gb1F"),e("xmOD"),e("c9ML"),e("Mzro"),e("GZrW"),e("1lwE"),e("w9QG"),e("ufhN"),e("LRks"),e("BUKB"),e("n18v"),e("EOst"),e("z3hU"),e("nrBJ"),e("BEdG"),e("E4kL")},M1Kb:function(Mt,F,e){"use strict";e.d(F,"d",function(){return T}),e.d(F,"c",function(){return pe}),e.d(F,"e",function(){return J}),e.d(F,"b",function(){return I}),e.d(F,"a",function(){return H});var T;(function(K){K[K.Left=1]="Left",K[K.Center=2]="Center",K[K.Right=4]="Right",K[K.Full=7]="Full"})(T||(T={}));var pe;(function(K){K[K.Inline=1]="Inline",K[K.Gutter=2]="Gutter"})(pe||(pe={}));var J=function(){function K(D){this.tabSize=Math.max(1,D.tabSize|0),this.indentSize=D.tabSize|0,this.insertSpaces=Boolean(D.insertSpaces),this.defaultEOL=D.defaultEOL|0,this.trimAutoWhitespace=Boolean(D.trimAutoWhitespace)}return K.prototype.equals=function(D){return this.tabSize===D.tabSize&&this.indentSize===D.indentSize&&this.insertSpaces===D.insertSpaces&&this.defaultEOL===D.defaultEOL&&this.trimAutoWhitespace===D.trimAutoWhitespace},K.prototype.createChangeEvent=function(D){return{tabSize:this.tabSize!==D.tabSize,indentSize:this.indentSize!==D.indentSize,insertSpaces:this.insertSpaces!==D.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==D.trimAutoWhitespace}},K}(),I=function(){function K(D,U){this.range=D,this.matches=U}return K}(),H=function(){function K(D,U,j){this.reverseEdits=D,this.changes=U,this.trimAutoWhitespaceLineNumbers=j}return K}()},MD5Z:function(Mt,F,e){"use strict";e.d(F,"a",function(){return D}),e.d(F,"Tb",function(){return h}),e.d(F,"W",function(){return b}),e.d(F,"U",function(){return O}),e.d(F,"V",function(){return m}),e.d(F,"e",function(){return C}),e.d(F,"b",function(){return w}),e.d(F,"ec",function(){return v}),e.d(F,"dc",function(){return p}),e.d(F,"hc",function(){return d}),e.d(F,"Z",function(){return c}),e.d(F,"bb",function(){return u}),e.d(F,"ab",function(){return f}),e.d(F,"Y",function(){return E}),e.d(F,"X",function(){return L}),e.d(F,"fb",function(){return R}),e.d(F,"hb",function(){return P}),e.d(F,"gb",function(){return x}),e.d(F,"ib",function(){return Q}),e.d(F,"kb",function(){return V}),e.d(F,"jb",function(){return W}),e.d(F,"cb",function(){return B}),e.d(F,"eb",function(){return ae}),e.d(F,"db",function(){return we}),e.d(F,"Ob",function(){return Be}),e.d(F,"Nb",function(){return Ke}),e.d(F,"c",function(){return Fe}),e.d(F,"d",function(){return re}),e.d(F,"Vb",function(){return ee}),e.d(F,"Xb",function(){return ne}),e.d(F,"Yb",function(){return q}),e.d(F,"Wb",function(){return le}),e.d(F,"Sb",function(){return Z}),e.d(F,"q",function(){return ve}),e.d(F,"p",function(){return Ne}),e.d(F,"P",function(){return Xe}),e.d(F,"O",function(){return de}),e.d(F,"H",function(){return ge}),e.d(F,"G",function(){return Ee}),e.d(F,"z",function(){return Te}),e.d(F,"y",function(){return Ce}),e.d(F,"o",function(){return fe}),e.d(F,"x",function(){return $}),e.d(F,"Q",function(){return S}),e.d(F,"S",function(){return z}),e.d(F,"R",function(){return ce}),e.d(F,"T",function(){return se}),e.d(F,"K",function(){return ye}),e.d(F,"L",function(){return Re}),e.d(F,"F",function(){return Le}),e.d(F,"M",function(){return Ue}),e.d(F,"N",function(){return Je}),e.d(F,"r",function(){return nt}),e.d(F,"t",function(){return vt}),e.d(F,"v",function(){return Rt}),e.d(F,"s",function(){return Ot}),e.d(F,"u",function(){return Kt}),e.d(F,"w",function(){return ao}),e.d(F,"D",function(){return lo}),e.d(F,"A",function(){return so}),e.d(F,"C",function(){return jt}),e.d(F,"B",function(){return pt}),e.d(F,"E",function(){return gt}),e.d(F,"n",function(){return Tt}),e.d(F,"J",function(){return it}),e.d(F,"I",function(){return et}),e.d(F,"g",function(){return ut}),e.d(F,"h",function(){return Ct}),e.d(F,"j",function(){return ht}),e.d(F,"l",function(){return Et}),e.d(F,"k",function(){return Yt}),e.d(F,"m",function(){return Nt}),e.d(F,"i",function(){return bt}),e.d(F,"rb",function(){return $e}),e.d(F,"sb",function(){return Ye}),e.d(F,"lb",function(){return Ve}),e.d(F,"mb",function(){return ze}),e.d(F,"xb",function(){return me}),e.d(F,"yb",function(){return G}),e.d(F,"wb",function(){return oe}),e.d(F,"ub",function(){return Y}),e.d(F,"vb",function(){return ie}),e.d(F,"nb",function(){return je}),e.d(F,"tb",function(){return dt}),e.d(F,"ob",function(){return Dt}),e.d(F,"qb",function(){return Qt}),e.d(F,"pb",function(){return to}),e.d(F,"gc",function(){return fo}),e.d(F,"Ab",function(){return ho}),e.d(F,"Bb",function(){return wo}),e.d(F,"zb",function(){return Oo}),e.d(F,"Eb",function(){return Ro}),e.d(F,"Cb",function(){return jo}),e.d(F,"Db",function(){return Eo}),e.d(F,"Fb",function(){return Wo}),e.d(F,"bc",function(){return Ho}),e.d(F,"cc",function(){return Fo}),e.d(F,"Zb",function(){return Io}),e.d(F,"ac",function(){return tn}),e.d(F,"Lb",function(){return un}),e.d(F,"Mb",function(){return Vo}),e.d(F,"Hb",function(){return Cn}),e.d(F,"Ib",function(){return pn}),e.d(F,"Gb",function(){return rn}),e.d(F,"Jb",function(){return on}),e.d(F,"Pb",function(){return dn}),e.d(F,"Rb",function(){return Uo}),e.d(F,"Qb",function(){return Bo}),e.d(F,"f",function(){return St}),e.d(F,"fc",function(){return rt}),e.d(F,"Kb",function(){return Lt}),e.d(F,"Ub",function(){return _});var T=e("ic2d"),pe=e("zrhQ"),J=e("MI8n"),I=e("3/fG"),H=e("3Rsk"),K=e("X+cX"),D={ColorContribution:"base.contributions.colors"},U=function(){function xe(){this._onDidChangeSchema=new J.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return xe.prototype.registerColor=function(Ie,lt,ft,At,Ft){At===void 0&&(At=!1);var Ut={id:Ie,description:ft,defaults:lt,needsTransparency:At,deprecationMessage:Ft};this.colorsById[Ie]=Ut;var Vt={type:"string",description:ft,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return Ft&&(Vt.deprecationMessage=Ft),this.colorSchema.properties[Ie]=Vt,this.colorReferenceSchema.enum.push(Ie),this.colorReferenceSchema.enumDescriptions.push(ft),this._onDidChangeSchema.fire(),Ie},xe.prototype.resolveDefaultColor=function(Ie,lt){var ft=this.colorsById[Ie];if(ft&&ft.defaults){var At=ft.defaults[lt.type];return _(At,lt)}return},xe.prototype.getColorSchema=function(){return this.colorSchema},xe.prototype.toString=function(){var Ie=this,lt=function(ft,At){var Ft=ft.indexOf(".")===-1?0:1,Ut=At.indexOf(".")===-1?0:1;return Ft!==Ut?Ft-Ut:ft.localeCompare(At)};return Object.keys(this.colorsById).sort(lt).map(function(ft){return"- `"+ft+"`: "+Ie.colorsById[ft].description}).join(`
`)},xe}(),j=new U;T.a.add(D.ColorContribution,j);function h(xe,Ie,lt,ft,At){return j.registerColor(xe,Ie,lt,ft,At)}var b=h("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},I.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),O=h("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},I.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),m=h("focusBorder",{dark:pe.a.fromHex("#0E639C").transparent(.8),light:pe.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},I.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),C=h("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},I.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),w=h("contrastActiveBorder",{light:null,dark:null,hc:m},I.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),v=h("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},I.a("textLinkForeground","Foreground color for links in text.")),p=h("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:pe.a.black},I.a("textCodeBlockBackground","Background color for code blocks in text.")),d=h("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},I.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),c=h("input.background",{dark:"#3C3C3C",light:pe.a.white,hc:pe.a.black},I.a("inputBoxBackground","Input box background.")),u=h("input.foreground",{dark:b,light:b,hc:b},I.a("inputBoxForeground","Input box foreground.")),f=h("input.border",{dark:null,light:null,hc:C},I.a("inputBoxBorder","Input box border.")),E=h("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:C},I.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),L=h("inputOption.activeBackground",{dark:rt(m,.5),light:rt(m,.3),hc:null},I.a("inputOption.activeBackground","Background color of activated options in input fields.")),R=h("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:pe.a.black},I.a("inputValidationInfoBackground","Input validation background color for information severity.")),P=h("inputValidation.infoForeground",{dark:null,light:null,hc:null},I.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),x=h("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:C},I.a("inputValidationInfoBorder","Input validation border color for information severity.")),Q=h("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:pe.a.black},I.a("inputValidationWarningBackground","Input validation background color for warning severity.")),V=h("inputValidation.warningForeground",{dark:null,light:null,hc:null},I.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),W=h("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:C},I.a("inputValidationWarningBorder","Input validation border color for warning severity.")),B=h("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:pe.a.black},I.a("inputValidationErrorBackground","Input validation background color for error severity.")),ae=h("inputValidation.errorForeground",{dark:null,light:null,hc:null},I.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),we=h("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:C},I.a("inputValidationErrorBorder","Input validation border color for error severity.")),Me=h("dropdown.background",{dark:"#3C3C3C",light:pe.a.white,hc:pe.a.black},I.a("dropdownBackground","Dropdown background.")),Pe=h("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:pe.a.white},I.a("dropdownForeground","Dropdown foreground.")),Be=h("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:pe.a.white},I.a("pickerGroupForeground","Quick picker color for grouping labels.")),Ke=h("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:pe.a.white},I.a("pickerGroupBorder","Quick picker color for grouping borders.")),Fe=h("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:pe.a.black},I.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),re=h("badge.foreground",{dark:pe.a.white,light:"#333",hc:pe.a.white},I.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),ee=h("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},I.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ne=h("scrollbarSlider.background",{dark:pe.a.fromHex("#797979").transparent(.4),light:pe.a.fromHex("#646464").transparent(.4),hc:rt(C,.6)},I.a("scrollbarSliderBackground","Scrollbar slider background color.")),q=h("scrollbarSlider.hoverBackground",{dark:pe.a.fromHex("#646464").transparent(.7),light:pe.a.fromHex("#646464").transparent(.7),hc:rt(C,.8)},I.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),le=h("scrollbarSlider.activeBackground",{dark:pe.a.fromHex("#BFBFBF").transparent(.4),light:pe.a.fromHex("#000000").transparent(.6),hc:C},I.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),Z=h("progressBar.background",{dark:pe.a.fromHex("#0E70C0"),light:pe.a.fromHex("#0E70C0"),hc:C},I.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),ve=h("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},I.a("editorError.foreground","Foreground color of error squigglies in the editor.")),Ne=h("editorError.border",{dark:null,light:null,hc:pe.a.fromHex("#E47777").transparent(.8)},I.a("errorBorder","Border color of error boxes in the editor.")),Xe=h("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},I.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),de=h("editorWarning.border",{dark:null,light:null,hc:pe.a.fromHex("#FFCC00").transparent(.8)},I.a("warningBorder","Border color of warning boxes in the editor.")),ge=h("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},I.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Ee=h("editorInfo.border",{dark:null,light:null,hc:pe.a.fromHex("#75BEFF").transparent(.8)},I.a("infoBorder","Border color of info boxes in the editor.")),Te=h("editorHint.foreground",{dark:pe.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},I.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Ce=h("editorHint.border",{dark:null,light:null,hc:pe.a.fromHex("#eeeeee").transparent(.8)},I.a("hintBorder","Border color of hint boxes in the editor.")),fe=h("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:pe.a.black},I.a("editorBackground","Editor background color.")),$=h("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:pe.a.white},I.a("editorForeground","Editor default foreground color.")),S=h("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},I.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),z=h("editorWidget.foreground",{dark:b,light:b,hc:b},I.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),ce=h("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:C},I.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),se=h("editorWidget.resizeBorder",{light:null,dark:null,hc:null},I.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ye=h("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},I.a("editorSelectionBackground","Color of the editor selection.")),Re=h("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},I.a("editorSelectionForeground","Color of the selected text for high contrast.")),Le=h("editor.inactiveSelectionBackground",{light:rt(ye,.5),dark:rt(ye,.5),hc:rt(ye,.5)},I.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ue=h("editor.selectionHighlightBackground",{light:be(ye,fe,.3,.6),dark:be(ye,fe,.3,.6),hc:null},I.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Je=h("editor.selectionHighlightBorder",{light:null,dark:null,hc:w},I.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),nt=h("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},I.a("editorFindMatch","Color of the current search match.")),vt=h("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},I.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Rt=h("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},I.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Ot=h("editor.findMatchBorder",{light:null,dark:null,hc:w},I.a("editorFindMatchBorder","Border color of the current search match.")),Kt=h("editor.findMatchHighlightBorder",{light:null,dark:null,hc:w},I.a("findMatchHighlightBorder","Border color of the other search matches.")),ao=h("editor.findRangeHighlightBorder",{dark:null,light:null,hc:rt(w,.4)},I.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),lo=h("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},I.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),so=h("editorHoverWidget.background",{light:S,dark:S,hc:S},I.a("hoverBackground","Background color of the editor hover.")),jt=h("editorHoverWidget.foreground",{light:z,dark:z,hc:z},I.a("hoverForeground","Foreground color of the editor hover.")),pt=h("editorHoverWidget.border",{light:ce,dark:ce,hc:ce},I.a("hoverBorder","Border color of the editor hover.")),gt=h("editorHoverWidget.statusBarBackground",{dark:st(so,.2),light:St(so,.05),hc:S},I.a("statusBarBackground","Background color of the editor hover status bar.")),Tt=h("editorLink.activeForeground",{dark:"#4E94CE",light:pe.a.blue,hc:pe.a.cyan},I.a("activeLinkForeground","Color of active links.")),it=h("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},I.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),et=h("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},I.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),ut=new pe.a(new pe.c(155,185,85,.2)),Ct=new pe.a(new pe.c(255,0,0,.2)),ht=h("diffEditor.insertedTextBackground",{dark:ut,light:ut,hc:null},I.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Et=h("diffEditor.removedTextBackground",{dark:Ct,light:Ct,hc:null},I.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Yt=h("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},I.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Nt=h("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},I.a("diffEditorRemovedOutline","Outline color for text that got removed.")),bt=h("diffEditor.border",{dark:null,light:null,hc:C},I.a("diffEditorBorder","Border color between the two text editors.")),$e=h("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},I.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ye=h("list.focusForeground",{dark:null,light:null,hc:null},I.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ve=h("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},I.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ze=h("list.activeSelectionForeground",{dark:pe.a.white,light:pe.a.white,hc:null},I.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),me=h("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},I.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),G=h("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},I.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),oe=h("list.inactiveFocusBackground",{dark:null,light:null,hc:null},I.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Y=h("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},I.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),ie=h("list.hoverForeground",{dark:null,light:null,hc:null},I.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),je=h("list.dropBackground",{dark:$e,light:$e,hc:null},I.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),dt=h("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:m},I.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Dt=h("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:pe.a.black},I.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Qt=h("listFilterWidget.outline",{dark:pe.a.transparent,light:pe.a.transparent,hc:"#f38518"},I.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),to=h("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:C},I.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),fo=h("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},I.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),ho=h("menu.border",{dark:null,light:null,hc:C},I.a("menuBorder","Border color of menus.")),wo=h("menu.foreground",{dark:Pe,light:b,hc:Pe},I.a("menuForeground","Foreground color of menu items.")),Oo=h("menu.background",{dark:Me,light:Me,hc:Me},I.a("menuBackground","Background color of menu items.")),Ro=h("menu.selectionForeground",{dark:ze,light:ze,hc:ze},I.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),jo=h("menu.selectionBackground",{dark:Ve,light:Ve,hc:Ve},I.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Eo=h("menu.selectionBorder",{dark:null,light:null,hc:w},I.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Wo=h("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:C},I.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Ho=h("editor.snippetTabstopHighlightBackground",{dark:new pe.a(new pe.c(124,124,124,.3)),light:new pe.a(new pe.c(10,50,100,.2)),hc:new pe.a(new pe.c(124,124,124,.3))},I.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Fo=h("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},I.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Io=h("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},I.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),tn=h("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new pe.a(new pe.c(10,50,100,.5)),hc:"#525252"},I.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),un=h("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},I.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Vo=h("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},I.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Cn=h("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},I.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),pn=h("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},I.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),rn=h("minimap.errorHighlight",{dark:new pe.a(new pe.c(255,18,18,.7)),light:new pe.a(new pe.c(255,18,18,.7)),hc:new pe.a(new pe.c(255,50,50,1))},I.a("minimapError","Minimap marker color for errors.")),on=h("minimap.warningHighlight",{dark:Xe,light:Xe,hc:de},I.a("overviewRuleWarning","Minimap marker color for warnings.")),dn=h("problemsErrorIcon.foreground",{dark:ve,light:ve,hc:ve},I.a("problemsErrorIconForeground","The color used for the problems error icon.")),Uo=h("problemsWarningIcon.foreground",{dark:Xe,light:Xe,hc:Xe},I.a("problemsWarningIconForeground","The color used for the problems warning icon.")),Bo=h("problemsInfoIcon.foreground",{dark:ge,light:ge,hc:ge},I.a("problemsInfoIconForeground","The color used for the problems info icon."));function St(xe,Ie){return function(lt){var ft=_(xe,lt);return ft?ft.darken(Ie):void 0}}function st(xe,Ie){return function(lt){var ft=_(xe,lt);return ft?ft.lighten(Ie):void 0}}function rt(xe,Ie){return function(lt){var ft=_(xe,lt);return ft?ft.transparent(Ie):void 0}}function Lt(){for(var xe=[],Ie=0;Ie<arguments.length;Ie++)xe[Ie]=arguments[Ie];return function(lt){for(var ft=0,At=xe;ft<At.length;ft++){var Ft=At[ft],Ut=_(Ft,lt);if(Ut)return Ut}return}}function be(xe,Ie,lt,ft){return function(At){var Ft=_(xe,At);if(Ft){var Ut=_(Ie,At);return Ut?Ft.isDarkerThan(Ut)?pe.a.getLighterColor(Ft,Ut,lt).transparent(ft):pe.a.getDarkerColor(Ft,Ut,lt).transparent(ft):Ft.transparent(lt*ft)}return}}function _(xe,Ie){return xe===null?void 0:typeof xe=="string"?xe[0]==="#"?pe.a.fromHex(xe):Ie.getColor(xe):xe instanceof pe.a?xe:typeof xe=="function"?xe(Ie):void 0}var A="vscode://schemas/workbench-colors",X=T.a.as(H.a.JSONContribution);X.registerSchema(A,j.getColorSchema());var De=new K.d(function(){return X.notifySchemaChanged(A)},200);j.onDidChangeSchema(function(){De.isScheduled()||De.schedule()})},MNXI:function(Mt,F,e){},MNsG:function(Mt,F,e){"use strict";(function(T,pe){e.d(F,"h",function(){return c}),e.d(F,"e",function(){return u}),e.d(F,"d",function(){return f}),e.d(F,"f",function(){return E}),e.d(F,"g",function(){return L}),e.d(F,"c",function(){return R}),e.d(F,"b",function(){return x}),e.d(F,"i",function(){return Q}),e.d(F,"a",function(){return V});var J="en",I=!1,H=!1,K=!1,D=!1,U=!1,j=!1,h=void 0,b=J,O=void 0,m=void 0,C=typeof T!="undefined"&&typeof T.versions!="undefined"&&typeof T.versions.electron!="undefined"&&T.type==="renderer";if(typeof navigator=="object"&&!C)m=navigator.userAgent,I=m.indexOf("Windows")>=0,H=m.indexOf("Macintosh")>=0,j=m.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,K=m.indexOf("Linux")>=0,U=!0,h=navigator.language,b=h;else if(typeof T=="object"){I=T.platform==="win32",H=T.platform==="darwin",K=T.platform==="linux",h=J,b=J;var w=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(w)try{var v=JSON.parse(w),p=v.availableLanguages["*"];h=v.locale,b=p||J,O=v._translationsConfigFile}catch(W){}D=!0}var d=0;H?d=1:I?d=3:K&&(d=2);var c=I,u=H,f=K,E=D,L=U,R=j,P=typeof self=="object"?self:typeof pe=="object"?pe:{},x=P,Q=function(){if(x.setImmediate)return x.setImmediate.bind(x);if(typeof x.postMessage=="function"&&!x.importScripts){var B=[];x.addEventListener("message",function(Me){if(Me.data&&Me.data.vscodeSetImmediateId)for(var Pe=0,Be=B.length;Pe<Be;Pe++){var Ke=B[Pe];if(Ke.id===Me.data.vscodeSetImmediateId){B.splice(Pe,1),Ke.callback();return}}});var ae=0;return function(Me){var Pe=++ae;B.push({id:Pe,callback:Me}),x.postMessage({vscodeSetImmediateId:Pe},"*")}}if(typeof T!="undefined"&&typeof T.nextTick=="function")return T.nextTick.bind(T);var we=Promise.resolve();return function(Me){return we.then(Me)}}(),V=H?2:I?1:3}).call(this,e("Q2Ig"),e("IyRk"))},MXAL:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"b",function(){return J});var T=e("CZ1j"),pe=function(){function I(H){var K=Object(T.b)(H);this._defaultValue=K,this._asciiMap=I._createAsciiMap(K),this._map=new Map}return I._createAsciiMap=function(H){for(var K=new Uint8Array(256),D=0;D<256;D++)K[D]=H;return K},I.prototype.set=function(H,K){var D=Object(T.b)(K);H>=0&&H<256?this._asciiMap[H]=D:this._map.set(H,D)},I.prototype.get=function(H){return H>=0&&H<256?this._asciiMap[H]:this._map.get(H)||this._defaultValue},I}(),J=function(){function I(){this._actual=new pe(0)}return I.prototype.add=function(H){this._actual.set(H,1)},I.prototype.has=function(H){return this._actual.get(H)===1},I}()},Md8J:function(Mt,F,e){"use strict";e.d(F,"c",function(){return pe}),e.d(F,"b",function(){return J}),e.d(F,"a",function(){return I});var T=e("EffR");function pe(h,b){b===void 0&&(b={});var O=I(b);return O.textContent=h,O}function J(h,b){b===void 0&&(b={});var O=I(b);return K(O,D(h),b.actionHandler),O}function I(h){var b=h.inline?"span":"div",O=document.createElement(b);return h.className&&(O.className=h.className),O}var H=function(){function h(b){this.source=b,this.index=0}return h.prototype.eos=function(){return this.index>=this.source.length},h.prototype.next=function(){var b=this.peek();return this.advance(),b},h.prototype.peek=function(){return this.source[this.index]},h.prototype.advance=function(){this.index++},h}();function K(h,b,O){var m;if(b.type===2)m=document.createTextNode(b.content||"");else if(b.type===3)m=document.createElement("b");else if(b.type===4)m=document.createElement("i");else if(b.type===5&&O){var C=document.createElement("a");C.href="#",O.disposeables.add(T.o(C,"click",function(w){O.callback(String(b.index),w)})),m=C}else b.type===7?m=document.createElement("br"):b.type===1&&(m=h);m&&h!==m&&h.appendChild(m),m&&Array.isArray(b.children)&&b.children.forEach(function(w){K(m,w,O)})}function D(h){for(var b={type:1,children:[]},O=0,m=b,C=[],w=new H(h);!w.eos();){var v=w.next(),p=v==="\\"&&j(w.peek())!==0;if(p&&(v=w.next()),!p&&U(v)&&v===w.peek()){w.advance(),m.type===2&&(m=C.pop());var d=j(v);if(m.type===d||m.type===5&&d===6)m=C.pop();else{var c={type:d,children:[]};d===5&&(c.index=O,O++),m.children.push(c),C.push(m),m=c}}else if(v===`
`)m.type===2&&(m=C.pop()),m.children.push({type:7});else if(m.type!==2){var u={type:2,content:v};m.children.push(u),C.push(m),m=u}else m.content+=v}return m.type===2&&(m=C.pop()),C.length,b}function U(h){return j(h)!==0}function j(h){switch(h){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},MqQJ:function(Mt,F,e){"use strict";e.d(F,"a",function(){return U}),e.d(F,"c",function(){return j}),e.d(F,"b",function(){return h});var T=e("3/fG"),pe=e("MI8n"),J=e("twdY"),I=e("cMvZ"),H=e("ic2d"),K={ModesRegistry:"editor.modesRegistry"},D=function(){function b(){this._onDidChangeLanguages=new pe.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return b.prototype.registerLanguage=function(O){this._languages.push(O),this._onDidChangeLanguages.fire(void 0)},b.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},b}(),U=new D;H.a.add(K.ModesRegistry,U);var j="plaintext",h=new J.r(j,1);U.registerLanguage({id:j,extensions:[".txt",".gitignore"],aliases:[T.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),I.a.register(h,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},MrjW:function(Mt,F,e){"use strict";e.r(F),e.d(F,"win32",function(){return c}),e.d(F,"posix",function(){return u}),e.d(F,"normalize",function(){return f}),e.d(F,"join",function(){return E}),e.d(F,"relative",function(){return L}),e.d(F,"dirname",function(){return R}),e.d(F,"basename",function(){return P}),e.d(F,"extname",function(){return x}),e.d(F,"sep",function(){return Q});var T=e("wxcJ"),pe=function(){var V=function(W,B){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,we){ae.__proto__=we}||function(ae,we){for(var Me in we)we.hasOwnProperty(Me)&&(ae[Me]=we[Me])},V(W,B)};return function(W,B){V(W,B);function ae(){this.constructor=W}W.prototype=B===null?Object.create(B):(ae.prototype=B.prototype,new ae)}}(),J=65,I=97,H=90,K=122,D=46,U=47,j=92,h=58,b=63,O=function(V){pe(W,V);function W(B,ae,we){var Me=this,Pe;typeof ae=="string"&&ae.indexOf("not ")===0?(Pe="must not be",ae=ae.replace(/^not /,"")):Pe="must be";var Be=B.indexOf(".")!==-1?"property":"argument",Ke='The "'+B+'" '+Be+" "+Pe+" of type "+ae;return Ke+=". Received type "+typeof we,Me=V.call(this,Ke)||this,Me.code="ERR_INVALID_ARG_TYPE",Me}return W}(Error);function m(V,W){if(typeof V!="string")throw new O(W,"string",V)}function C(V){return V===U||V===j}function w(V){return V===U}function v(V){return V>=J&&V<=H||V>=I&&V<=K}function p(V,W,B,ae){for(var we="",Me=0,Pe=-1,Be=0,Ke,Fe=0;Fe<=V.length;++Fe){if(Fe<V.length)Ke=V.charCodeAt(Fe);else{if(ae(Ke))break;Ke=U}if(ae(Ke)){if(!(Pe===Fe-1||Be===1))if(Pe!==Fe-1&&Be===2){if(we.length<2||Me!==2||we.charCodeAt(we.length-1)!==D||we.charCodeAt(we.length-2)!==D){if(we.length>2){var re=we.lastIndexOf(B);re===-1?(we="",Me=0):(we=we.slice(0,re),Me=we.length-1-we.lastIndexOf(B)),Pe=Fe,Be=0;continue}else if(we.length===2||we.length===1){we="",Me=0,Pe=Fe,Be=0;continue}}W&&(we.length>0?we+=B+"..":we="..",Me=2)}else we.length>0?we+=B+V.slice(Pe+1,Fe):we=V.slice(Pe+1,Fe),Me=Fe-Pe-1;Pe=Fe,Be=0}else Ke===D&&Be!==-1?++Be:Be=-1}return we}function d(V,W){var B=W.dir||W.root,ae=W.base||(W.name||"")+(W.ext||"");return B?B===W.root?B+ae:B+V+ae:ae}var c={resolve:function(){for(var V=[],W=0;W<arguments.length;W++)V[W]=arguments[W];for(var B="",ae="",we=!1,Me=V.length-1;Me>=-1;Me--){var Pe=void 0;if(Me>=0?Pe=V[Me]:B?(Pe=T.b["="+B]||T.a(),(Pe===void 0||Pe.slice(0,3).toLowerCase()!==B.toLowerCase()+"\\")&&(Pe=B+"\\")):Pe=T.a(),m(Pe,"path"),Pe.length===0)continue;var Be=Pe.length,Ke=0,Fe="",re=!1,ee=Pe.charCodeAt(0);if(Be>1)if(C(ee))if(re=!0,C(Pe.charCodeAt(1))){for(var ne=2,q=ne;ne<Be&&!C(Pe.charCodeAt(ne));++ne);if(ne<Be&&ne!==q){var le=Pe.slice(q,ne);for(q=ne;ne<Be&&C(Pe.charCodeAt(ne));++ne);if(ne<Be&&ne!==q){for(q=ne;ne<Be&&!C(Pe.charCodeAt(ne));++ne);ne===Be?(Fe="\\\\"+le+"\\"+Pe.slice(q),Ke=ne):ne!==q&&(Fe="\\\\"+le+"\\"+Pe.slice(q,ne),Ke=ne)}}}else Ke=1;else v(ee)&&(Pe.charCodeAt(1)===h&&(Fe=Pe.slice(0,2),Ke=2,Be>2&&(C(Pe.charCodeAt(2))&&(re=!0,Ke=3))));else C(ee)&&(Ke=1,re=!0);if(Fe.length>0&&B.length>0&&Fe.toLowerCase()!==B.toLowerCase())continue;if(B.length===0&&Fe.length>0&&(B=Fe),we||(ae=Pe.slice(Ke)+"\\"+ae,we=re),B.length>0&&we)break}return ae=p(ae,!we,"\\",C),B+(we?"\\":"")+ae||"."},normalize:function(V){m(V,"path");var W=V.length;if(W===0)return".";var B=0,ae,we=!1,Me=V.charCodeAt(0);if(W>1)if(C(Me))if(we=!0,C(V.charCodeAt(1))){for(var Pe=2,Be=Pe;Pe<W&&!C(V.charCodeAt(Pe));++Pe);if(Pe<W&&Pe!==Be){var Ke=V.slice(Be,Pe);for(Be=Pe;Pe<W&&C(V.charCodeAt(Pe));++Pe);if(Pe<W&&Pe!==Be){for(Be=Pe;Pe<W&&!C(V.charCodeAt(Pe));++Pe);if(Pe===W)return"\\\\"+Ke+"\\"+V.slice(Be)+"\\";Pe!==Be&&(ae="\\\\"+Ke+"\\"+V.slice(Be,Pe),B=Pe)}}}else B=1;else v(Me)&&(V.charCodeAt(1)===h&&(ae=V.slice(0,2),B=2,W>2&&(C(V.charCodeAt(2))&&(we=!0,B=3))));else if(C(Me))return"\\";var Fe;return B<W?Fe=p(V.slice(B),!we,"\\",C):Fe="",Fe.length===0&&!we&&(Fe="."),Fe.length>0&&C(V.charCodeAt(W-1))&&(Fe+="\\"),ae===void 0?we?Fe.length>0?"\\"+Fe:"\\":Fe.length>0?Fe:"":we?Fe.length>0?ae+"\\"+Fe:ae+"\\":Fe.length>0?ae+Fe:ae},isAbsolute:function(V){m(V,"path");var W=V.length;if(W===0)return!1;var B=V.charCodeAt(0);return C(B)?!0:!!(v(B)&&(W>2&&V.charCodeAt(1)===h&&C(V.charCodeAt(2))))},join:function(){for(var V=[],W=0;W<arguments.length;W++)V[W]=arguments[W];if(V.length===0)return".";for(var B,ae,we=0;we<V.length;++we){var Me=V[we];m(Me,"path"),Me.length>0&&(B===void 0?B=ae=Me:B+="\\"+Me)}if(B===void 0)return".";var Pe=!0,Be=0;if(typeof ae=="string"&&C(ae.charCodeAt(0))){++Be;var Ke=ae.length;Ke>1&&(C(ae.charCodeAt(1))&&(++Be,Ke>2&&(C(ae.charCodeAt(2))?++Be:Pe=!1)))}if(Pe){for(;Be<B.length&&C(B.charCodeAt(Be));++Be);Be>=2&&(B="\\"+B.slice(Be))}return c.normalize(B)},relative:function(V,W){if(m(V,"from"),m(W,"to"),V===W)return"";var B=c.resolve(V),ae=c.resolve(W);if(B===ae)return"";if(V=B.toLowerCase(),W=ae.toLowerCase(),V===W)return"";for(var we=0;we<V.length&&!(V.charCodeAt(we)!==j);++we);for(var Me=V.length;Me-1>we&&!(V.charCodeAt(Me-1)!==j);--Me);for(var Pe=Me-we,Be=0;Be<W.length&&!(W.charCodeAt(Be)!==j);++Be);for(var Ke=W.length;Ke-1>Be&&!(W.charCodeAt(Ke-1)!==j);--Ke);for(var Fe=Ke-Be,re=Pe<Fe?Pe:Fe,ee=-1,ne=0;ne<=re;++ne){if(ne===re){if(Fe>re){if(W.charCodeAt(Be+ne)===j)return ae.slice(Be+ne+1);if(ne===2)return ae.slice(Be+ne)}Pe>re&&(V.charCodeAt(we+ne)===j?ee=ne:ne===2&&(ee=3));break}var q=V.charCodeAt(we+ne),le=W.charCodeAt(Be+ne);if(q!==le)break;q===j&&(ee=ne)}if(ne!==re&&ee===-1)return ae;var Z="";for(ee===-1&&(ee=0),ne=we+ee+1;ne<=Me;++ne)(ne===Me||V.charCodeAt(ne)===j)&&(Z.length===0?Z+="..":Z+="\\..");return Z.length>0?Z+ae.slice(Be+ee,Ke):(Be+=ee,ae.charCodeAt(Be)===j&&++Be,ae.slice(Be,Ke))},toNamespacedPath:function(V){if(typeof V!="string")return V;if(V.length===0)return"";var W=c.resolve(V);if(W.length>=3){if(W.charCodeAt(0)===j){if(W.charCodeAt(1)===j){var B=W.charCodeAt(2);if(B!==b&&B!==D)return"\\\\?\\UNC\\"+W.slice(2)}}else if(v(W.charCodeAt(0))&&(W.charCodeAt(1)===h&&W.charCodeAt(2)===j))return"\\\\?\\"+W}return V},dirname:function(V){m(V,"path");var W=V.length;if(W===0)return".";var B=-1,ae=-1,we=!0,Me=0,Pe=V.charCodeAt(0);if(W>1)if(C(Pe)){if(B=Me=1,C(V.charCodeAt(1))){for(var Be=2,Ke=Be;Be<W&&!C(V.charCodeAt(Be));++Be);if(Be<W&&Be!==Ke){for(Ke=Be;Be<W&&C(V.charCodeAt(Be));++Be);if(Be<W&&Be!==Ke){for(Ke=Be;Be<W&&!C(V.charCodeAt(Be));++Be);if(Be===W)return V;Be!==Ke&&(B=Me=Be+1)}}}}else v(Pe)&&(V.charCodeAt(1)===h&&(B=Me=2,W>2&&(C(V.charCodeAt(2))&&(B=Me=3))));else if(C(Pe))return V;for(var Fe=W-1;Fe>=Me;--Fe)if(C(V.charCodeAt(Fe))){if(!we){ae=Fe;break}}else we=!1;if(ae===-1){if(B===-1)return".";ae=B}return V.slice(0,ae)},basename:function(V,W){W!==void 0&&m(W,"ext"),m(V,"path");var B=0,ae=-1,we=!0,Me;if(V.length>=2){var Pe=V.charCodeAt(0);v(Pe)&&(V.charCodeAt(1)===h&&(B=2))}if(W!==void 0&&W.length>0&&W.length<=V.length){if(W.length===V.length&&W===V)return"";var Be=W.length-1,Ke=-1;for(Me=V.length-1;Me>=B;--Me){var Fe=V.charCodeAt(Me);if(C(Fe)){if(!we){B=Me+1;break}}else Ke===-1&&(we=!1,Ke=Me+1),Be>=0&&(Fe===W.charCodeAt(Be)?--Be===-1&&(ae=Me):(Be=-1,ae=Ke))}return B===ae?ae=Ke:ae===-1&&(ae=V.length),V.slice(B,ae)}else{for(Me=V.length-1;Me>=B;--Me)if(C(V.charCodeAt(Me))){if(!we){B=Me+1;break}}else ae===-1&&(we=!1,ae=Me+1);return ae===-1?"":V.slice(B,ae)}},extname:function(V){m(V,"path");var W=0,B=-1,ae=0,we=-1,Me=!0,Pe=0;V.length>=2&&V.charCodeAt(1)===h&&v(V.charCodeAt(0))&&(W=ae=2);for(var Be=V.length-1;Be>=W;--Be){var Ke=V.charCodeAt(Be);if(C(Ke)){if(!Me){ae=Be+1;break}continue}we===-1&&(Me=!1,we=Be+1),Ke===D?B===-1?B=Be:Pe!==1&&(Pe=1):B!==-1&&(Pe=-1)}return B===-1||we===-1||Pe===0||Pe===1&&B===we-1&&B===ae+1?"":V.slice(B,we)},format:function(V){if(V===null||typeof V!="object")throw new O("pathObject","Object",V);return d("\\",V)},parse:function(V){m(V,"path");var W={root:"",dir:"",base:"",ext:"",name:""};if(V.length===0)return W;var B=V.length,ae=0,we=V.charCodeAt(0);if(B>1){if(C(we)){if(ae=1,C(V.charCodeAt(1))){for(var Me=2,Pe=Me;Me<B&&!C(V.charCodeAt(Me));++Me);if(Me<B&&Me!==Pe){for(Pe=Me;Me<B&&C(V.charCodeAt(Me));++Me);if(Me<B&&Me!==Pe){for(Pe=Me;Me<B&&!C(V.charCodeAt(Me));++Me);Me===B?ae=Me:Me!==Pe&&(ae=Me+1)}}}}else if(v(we)&&V.charCodeAt(1)===h)if(ae=2,B>2){if(C(V.charCodeAt(2))){if(B===3)return W.root=W.dir=V,W;ae=3}}else return W.root=W.dir=V,W}else if(C(we))return W.root=W.dir=V,W;ae>0&&(W.root=V.slice(0,ae));for(var Be=-1,Ke=ae,Fe=-1,re=!0,ee=V.length-1,ne=0;ee>=ae;--ee){if(we=V.charCodeAt(ee),C(we)){if(!re){Ke=ee+1;break}continue}Fe===-1&&(re=!1,Fe=ee+1),we===D?Be===-1?Be=ee:ne!==1&&(ne=1):Be!==-1&&(ne=-1)}return Be===-1||Fe===-1||ne===0||ne===1&&Be===Fe-1&&Be===Ke+1?Fe!==-1&&(W.base=W.name=V.slice(Ke,Fe)):(W.name=V.slice(Ke,Be),W.base=V.slice(Ke,Fe),W.ext=V.slice(Be,Fe)),Ke>0&&Ke!==ae?W.dir=V.slice(0,Ke-1):W.dir=W.root,W},sep:"\\",delimiter:";",win32:null,posix:null},u={resolve:function(){for(var V=[],W=0;W<arguments.length;W++)V[W]=arguments[W];for(var B="",ae=!1,we=V.length-1;we>=-1&&!ae;we--){var Me=void 0;if(we>=0?Me=V[we]:Me=T.a(),m(Me,"path"),Me.length===0)continue;B=Me+"/"+B,ae=Me.charCodeAt(0)===U}return B=p(B,!ae,"/",w),ae?B.length>0?"/"+B:"/":B.length>0?B:"."},normalize:function(V){if(m(V,"path"),V.length===0)return".";var W=V.charCodeAt(0)===U,B=V.charCodeAt(V.length-1)===U;return V=p(V,!W,"/",w),V.length===0&&!W&&(V="."),V.length>0&&B&&(V+="/"),W?"/"+V:V},isAbsolute:function(V){return m(V,"path"),V.length>0&&V.charCodeAt(0)===U},join:function(){for(var V=[],W=0;W<arguments.length;W++)V[W]=arguments[W];if(V.length===0)return".";for(var B,ae=0;ae<V.length;++ae){var we=arguments[ae];m(we,"path"),we.length>0&&(B===void 0?B=we:B+="/"+we)}return B===void 0?".":u.normalize(B)},relative:function(V,W){if(m(V,"from"),m(W,"to"),V===W)return"";if(V=u.resolve(V),W=u.resolve(W),V===W)return"";for(var B=1;B<V.length&&!(V.charCodeAt(B)!==U);++B);for(var ae=V.length,we=ae-B,Me=1;Me<W.length&&!(W.charCodeAt(Me)!==U);++Me);for(var Pe=W.length,Be=Pe-Me,Ke=we<Be?we:Be,Fe=-1,re=0;re<=Ke;++re){if(re===Ke){if(Be>Ke){if(W.charCodeAt(Me+re)===U)return W.slice(Me+re+1);if(re===0)return W.slice(Me+re)}else we>Ke&&(V.charCodeAt(B+re)===U?Fe=re:re===0&&(Fe=0));break}var ee=V.charCodeAt(B+re),ne=W.charCodeAt(Me+re);if(ee!==ne)break;ee===U&&(Fe=re)}var q="";for(re=B+Fe+1;re<=ae;++re)(re===ae||V.charCodeAt(re)===U)&&(q.length===0?q+="..":q+="/..");return q.length>0?q+W.slice(Me+Fe):(Me+=Fe,W.charCodeAt(Me)===U&&++Me,W.slice(Me))},toNamespacedPath:function(V){return V},dirname:function(V){if(m(V,"path"),V.length===0)return".";for(var W=V.charCodeAt(0)===U,B=-1,ae=!0,we=V.length-1;we>=1;--we)if(V.charCodeAt(we)===U){if(!ae){B=we;break}}else ae=!1;return B===-1?W?"/":".":W&&B===1?"//":V.slice(0,B)},basename:function(V,W){W!==void 0&&m(W,"ext"),m(V,"path");var B=0,ae=-1,we=!0,Me;if(W!==void 0&&W.length>0&&W.length<=V.length){if(W.length===V.length&&W===V)return"";var Pe=W.length-1,Be=-1;for(Me=V.length-1;Me>=0;--Me){var Ke=V.charCodeAt(Me);if(Ke===U){if(!we){B=Me+1;break}}else Be===-1&&(we=!1,Be=Me+1),Pe>=0&&(Ke===W.charCodeAt(Pe)?--Pe===-1&&(ae=Me):(Pe=-1,ae=Be))}return B===ae?ae=Be:ae===-1&&(ae=V.length),V.slice(B,ae)}else{for(Me=V.length-1;Me>=0;--Me)if(V.charCodeAt(Me)===U){if(!we){B=Me+1;break}}else ae===-1&&(we=!1,ae=Me+1);return ae===-1?"":V.slice(B,ae)}},extname:function(V){m(V,"path");for(var W=-1,B=0,ae=-1,we=!0,Me=0,Pe=V.length-1;Pe>=0;--Pe){var Be=V.charCodeAt(Pe);if(Be===U){if(!we){B=Pe+1;break}continue}ae===-1&&(we=!1,ae=Pe+1),Be===D?W===-1?W=Pe:Me!==1&&(Me=1):W!==-1&&(Me=-1)}return W===-1||ae===-1||Me===0||Me===1&&W===ae-1&&W===B+1?"":V.slice(W,ae)},format:function(V){if(V===null||typeof V!="object")throw new O("pathObject","Object",V);return d("/",V)},parse:function(V){m(V,"path");var W={root:"",dir:"",base:"",ext:"",name:""};if(V.length===0)return W;var B=V.charCodeAt(0)===U,ae;B?(W.root="/",ae=1):ae=0;for(var we=-1,Me=0,Pe=-1,Be=!0,Ke=V.length-1,Fe=0;Ke>=ae;--Ke){var re=V.charCodeAt(Ke);if(re===U){if(!Be){Me=Ke+1;break}continue}Pe===-1&&(Be=!1,Pe=Ke+1),re===D?we===-1?we=Ke:Fe!==1&&(Fe=1):we!==-1&&(Fe=-1)}return we===-1||Pe===-1||Fe===0||Fe===1&&we===Pe-1&&we===Me+1?Pe!==-1&&(Me===0&&B?W.base=W.name=V.slice(1,Pe):W.base=W.name=V.slice(Me,Pe)):(Me===0&&B?(W.name=V.slice(1,we),W.base=V.slice(1,Pe)):(W.name=V.slice(Me,we),W.base=V.slice(Me,Pe)),W.ext=V.slice(we,Pe)),Me>0?W.dir=V.slice(0,Me-1):B&&(W.dir="/"),W},sep:"/",delimiter:":",win32:null,posix:null};u.win32=c.win32=c,u.posix=c.posix=u;var f=T.c==="win32"?c.normalize:u.normalize,E=T.c==="win32"?c.join:u.join,L=T.c==="win32"?c.relative:u.relative,R=T.c==="win32"?c.dirname:u.dirname,P=T.c==="win32"?c.basename:u.basename,x=T.c==="win32"?c.extname:u.extname,Q=T.c==="win32"?c.sep:u.sep},Msxo:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return e.e(327).then(e.bind(null,"Qx4d"))}})},MvK1:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"b",function(){return J});var T=function(){function I(H,K,D){this.from=H|0,this.to=K|0,this.colorId=D|0}return I.compare=function(H,K){return H.colorId===K.colorId?H.from===K.from?H.to-K.to:H.from-K.from:H.colorId-K.colorId},I}(),pe=function(){function I(H,K,D){this.startLineNumber=H,this.endLineNumber=K,this.color=D,this._colorZone=null}return I.compare=function(H,K){return H.color===K.color?H.startLineNumber===K.startLineNumber?H.endLineNumber-K.endLineNumber:H.startLineNumber-K.startLineNumber:H.color<K.color?-1:1},I.prototype.setColorZone=function(H){this._colorZone=H},I.prototype.getColorZones=function(){return this._colorZone},I}(),J=function(){function I(H){this._getVerticalOffsetForLine=H,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}return I.prototype.getId2Color=function(){return this._id2Color},I.prototype.setZones=function(H){this._zones=H,this._zones.sort(pe.compare)},I.prototype.setLineHeight=function(H){return this._lineHeight===H?!1:(this._lineHeight=H,this._colorZonesInvalid=!0,!0)},I.prototype.setPixelRatio=function(H){this._pixelRatio=H,this._colorZonesInvalid=!0},I.prototype.getDOMWidth=function(){return this._domWidth},I.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},I.prototype.setDOMWidth=function(H){return this._domWidth===H?!1:(this._domWidth=H,this._colorZonesInvalid=!0,!0)},I.prototype.getDOMHeight=function(){return this._domHeight},I.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},I.prototype.setDOMHeight=function(H){return this._domHeight===H?!1:(this._domHeight=H,this._colorZonesInvalid=!0,!0)},I.prototype.getOuterHeight=function(){return this._outerHeight},I.prototype.setOuterHeight=function(H){return this._outerHeight===H?!1:(this._outerHeight=H,this._colorZonesInvalid=!0,!0)},I.prototype.resolveColorZones=function(){for(var H=this._colorZonesInvalid,K=Math.floor(this._lineHeight),D=Math.floor(this.getCanvasHeight()),U=Math.floor(this._outerHeight),j=D/U,h=Math.floor(4*this._pixelRatio/2),b=[],O=0,m=this._zones.length;O<m;O++){var C=this._zones[O];if(!H){var w=C.getColorZones();if(w){b.push(w);continue}}var v=Math.floor(j*this._getVerticalOffsetForLine(C.startLineNumber)),p=Math.floor(j*(this._getVerticalOffsetForLine(C.endLineNumber)+K)),d=Math.floor((v+p)/2),c=p-d;c<h&&(c=h),d-c<0&&(d=c),d+c>D&&(d=D-c);var u=C.color,f=this._color2Id[u];f||(f=++this._lastAssignedId,this._color2Id[u]=f,this._id2Color[f]=u);var E=new T(d-c,d+c,f);C.setColorZone(E),b.push(E)}return this._colorZonesInvalid=!1,b.sort(T.compare),b},I}()},Mzro:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return e.e(337).then(e.bind(null,"l/4i"))}})},NR8r:function(Mt,F,e){"use strict";e.d(F,"a",function(){return w});var T=e("synD"),pe=e.n(T),J=e("3/fG"),I=e("X+cX"),H=e("pmY6"),K=e("OBOq"),D=e("aokT"),U=e("sswD"),j=e("T8No"),h=e("t9D7"),b=e("MD5Z"),O=function(){var d=function(c,u){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,E){f.__proto__=E}||function(f,E){for(var L in E)E.hasOwnProperty(L)&&(f[L]=E[L])},d(c,u)};return function(c,u){d(c,u);function f(){this.constructor=c}c.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),m=function(d,c,u,f){var E=arguments.length,L=E<3?c:f===null?f=Object.getOwnPropertyDescriptor(c,u):f,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(d,c,u,f);else for(var P=d.length-1;P>=0;P--)(R=d[P])&&(L=(E<3?R(L):E>3?R(c,u,L):R(c,u))||L);return E>3&&L&&Object.defineProperty(c,u,L),L},C=function(d,c){return function(u,f){c(u,f,d)}},w=function(d){O(c,d);function c(u,f){var E=d.call(this)||this;return E.closeTimeout=3e3,E._messageWidget=E._register(new H.d),E._messageListeners=E._register(new H.b),E._editor=u,E._visible=c.MESSAGE_VISIBLE.bindTo(f),E._register(E._editor.onDidAttemptReadOnlyEdit(function(){return E._onDidAttemptReadOnlyEdit()})),E}return c.get=function(u){return u.getContribution(c.ID)},c.prototype.dispose=function(){d.prototype.dispose.call(this),this._visible.reset()},c.prototype.showMessage=function(u,f){var E=this;Object(K.a)(u),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new p(this._editor,f,u),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return E.closeMessage()})),this._messageListeners.add(new I.e(function(){return E.closeMessage()},this.closeTimeout));var L;this._messageListeners.add(this._editor.onMouseMove(function(R){if(!R.target.position)return;L?L.containsPosition(R.target.position)||E.closeMessage():L=new D.a(f.lineNumber-3,1,R.target.position.lineNumber+3,1)}))},c.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(p.fadeOut(this._messageWidget.value))},c.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(J.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},c.ID="editor.contrib.messageController",c.MESSAGE_VISIBLE=new j.d("messageVisible",!1),c=m([C(1,j.c)],c),c}(H.a),v=U.c.bindToContribution(w.get);Object(U.g)(new v({id:"leaveEditorMessage",precondition:w.MESSAGE_VISIBLE,handler:function(d){return d.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var p=function(){function d(c,u,f){var E=u.lineNumber,L=u.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=c,this._editor.revealLinesInCenterIfOutsideViewport(E,E,0),this._position={lineNumber:E,column:L-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var R=document.createElement("div");R.classList.add("message"),R.textContent=f,this._domNode.appendChild(R);var P=document.createElement("div");P.classList.add("anchor"),this._domNode.appendChild(P),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return d.fadeOut=function(c){var u,f=function(){c.dispose(),clearTimeout(u),c.getDomNode().removeEventListener("animationend",f)};return u=setTimeout(f,110),c.getDomNode().addEventListener("animationend",f),c.getDomNode().classList.add("fadeOut"),{dispose:f}},d.prototype.dispose=function(){this._editor.removeContentWidget(this)},d.prototype.getId=function(){return"messageoverlay"},d.prototype.getDomNode=function(){return this._domNode},d.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},d}();Object(U.h)(w.ID,w),Object(h.e)(function(d,c){var u=d.getColor(b.gb);if(u){var f=d.type===h.b?2:1;c.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+u+"; }"),c.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+f+"px solid "+u+"; }")}var E=d.getColor(b.fb);E&&c.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+E+"; }");var L=d.getColor(b.hb);L&&c.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+L+"; }")})},OBOq:function(Mt,F,e){"use strict";e.d(F,"b",function(){return j}),e.d(F,"a",function(){return h}),e.d(F,"c",function(){return b});var T=e("UCkY"),pe=e.n(T),J=e("3/fG"),I=e("MNsG"),H=e("EffR"),K,D,U;function j(w){K=document.createElement("div"),K.className="monaco-aria-container",D=document.createElement("div"),D.className="monaco-alert",D.setAttribute("role","alert"),D.setAttribute("aria-atomic","true"),K.appendChild(D),U=document.createElement("div"),U.className="monaco-status",U.setAttribute("role","status"),U.setAttribute("aria-atomic","true"),K.appendChild(U),w.appendChild(K)}function h(w,v){C(D,w,v)}function b(w,v){I.e?h(w,v):C(U,w,v)}var O=0,m=void 0;function C(w,v,p){if(!K)return;if(!p){m===v?O++:(m=v,O=0);switch(O){case 0:break;case 1:v=J.a("repeated","{0} (occurred again)",v);break;default:v=J.a("repeatedNtimes","{0} (occurred {1} times)",v,O);break}}H.t(w),w.textContent=v,w.style.visibility="hidden",w.style.visibility="visible"}},OKK6:function(Mt,F,e){},OOlL:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return e.e(293).then(e.bind(null,"NlLO"))}})},OhnE:function(Mt,F,e){},PTeM:function(Mt,F,e){"use strict";e.d(F,"c",function(){return J}),e.d(F,"a",function(){return I}),e.d(F,"b",function(){return H});var T=e("N0LK"),pe=e("MrjW");function J(K){return K.replace(/[\\/]/g,pe.posix.sep)}function I(K,D,U,j){if(j===void 0&&(j=pe.sep),K===D)return!0;if(!K||!D)return!1;if(D.length>K.length)return!1;if(U){var h=Object(T.O)(K,D);if(!h)return!1;if(D.length===K.length)return!0;var b=D.length;return D.charAt(D.length-1)===j&&b--,K.charAt(b)===j}return D.charAt(D.length-1)!==j&&(D+=j),K.indexOf(D)===0}function H(K){return K>=65&&K<=90||K>=97&&K<=122}},Q4rV:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("bY76");function pe(I){var H=JSON.parse(I);return H=J(H),H}function J(I,H){if(H===void 0&&(H=0),!I||H>200)return I;if(typeof I=="object"){switch(I.$mid){case 1:return T.a.revive(I);case 2:return new RegExp(I.source,I.flags)}for(var K in I)Object.hasOwnProperty.call(I,K)&&(I[K]=J(I[K],H+1))}return I}},Q631:function(Mt,F,e){"use strict";e.r(F),e.d(F,"rename",function(){return q}),e.d(F,"RenameAction",function(){return Z});var T=e("3/fG"),pe=e("/cxE"),J=e("T8No"),I=e("tTk5"),H=e("sswD"),K=e("wQH0"),D=e("BjKj"),U=e("pmY6"),j=e("cGHE"),h=e("aokT"),b=e("MD5Z"),O=e("t9D7"),m=e("bexQ"),C=e("EffR"),w=function(Ne,Xe,de,ge){var Ee=arguments.length,Te=Ee<3?Xe:ge===null?ge=Object.getOwnPropertyDescriptor(Xe,de):ge,Ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Te=Reflect.decorate(Ne,Xe,de,ge);else for(var fe=Ne.length-1;fe>=0;fe--)(Ce=Ne[fe])&&(Te=(Ee<3?Ce(Te):Ee>3?Ce(Xe,de,Te):Ce(Xe,de))||Te);return Ee>3&&Te&&Object.defineProperty(Xe,de,Te),Te},v=function(Ne,Xe){return function(de,ge){Xe(de,ge,Ne)}},p=new J.d("renameInputVisible",!1),d=function(){function Ne(Xe,de,ge,Ee,Te){var Ce=this;this._editor=Xe,this._acceptKeybindings=de,this._themeService=ge,this._keybindingService=Ee,this._disposables=new U.b,this.allowEditorOverflow=!0,this._visibleContextKey=p.bindTo(Te),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(function(fe){fe.hasChanged(34)&&Ce._updateFont()})),this._disposables.add(ge.onThemeChange(this._updateStyles,this))}return Ne.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},Ne.prototype.getId=function(){return"__renameInputWidget"},Ne.prototype.getDomNode=function(){var Xe=this;if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(T.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);var de=function(){var ge,Ee,Te=Xe._acceptKeybindings,Ce=Te[0],fe=Te[1];Xe._keybindingService.lookupKeybinding(Ce),Xe._label.innerText=Object(T.a)("label","{0} to Rename, {1} to Preview",(ge=Xe._keybindingService.lookupKeybinding(Ce))===null||ge===void 0?void 0:ge.getLabel(),(Ee=Xe._keybindingService.lookupKeybinding(fe))===null||Ee===void 0?void 0:Ee.getLabel())};de(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(de)),this._updateFont(),this._updateStyles(this._themeService.getTheme())}return this._domNode},Ne.prototype._updateStyles=function(Xe){var de,ge,Ee,Te;if(!this._input||!this._domNode)return;var Ce=Xe.getColor(b.hc);this._domNode.style.backgroundColor=String((de=Xe.getColor(b.Q))!==null&&de!==void 0?de:""),this._domNode.style.boxShadow=Ce?" 0 2px 8px "+Ce:"",this._domNode.style.color=String((ge=Xe.getColor(b.bb))!==null&&ge!==void 0?ge:""),this._input.style.backgroundColor=String((Ee=Xe.getColor(b.Z))!==null&&Ee!==void 0?Ee:"");var fe=Xe.getColor(b.ab);this._input.style.borderWidth=fe?"1px":"0px",this._input.style.borderStyle=fe?"solid":"none",this._input.style.borderColor=(Te=fe==null?void 0:fe.toString())!==null&&Te!==void 0?Te:"none"},Ne.prototype._updateFont=function(){if(!this._input||!this._label)return;var Xe=this._editor.getOption(34);this._input.style.fontFamily=Xe.fontFamily,this._input.style.fontWeight=Xe.fontWeight,this._input.style.fontSize=Xe.fontSize+"px",this._label.style.fontSize=Xe.fontSize*.8+"px"},Ne.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},Ne.prototype.acceptInput=function(Xe){this._currentAcceptInput&&this._currentAcceptInput(Xe)},Ne.prototype.cancelInput=function(Xe){this._currentCancelInput&&this._currentCancelInput(Xe)},Ne.prototype.getInput=function(Xe,de,ge,Ee,Te){var Ce=this;Object(C.Y)(this._domNode,"preview",Te),this._position=new j.a(Xe.startLineNumber,Xe.startColumn),this._input.value=de,this._input.setAttribute("selectionStart",ge.toString()),this._input.setAttribute("selectionEnd",Ee.toString()),this._input.size=Math.max((Xe.endColumn-Xe.startColumn)*1.1,20);var fe=new U.b;return new Promise(function($){Ce._currentCancelInput=function(z){return Ce._currentAcceptInput=void 0,Ce._currentCancelInput=void 0,$(z),!0},Ce._currentAcceptInput=function(z){if(Ce._input.value.trim().length===0||Ce._input.value===de){Ce.cancelInput(!0);return}Ce._currentAcceptInput=void 0,Ce._currentCancelInput=void 0,$({newName:Ce._input.value,wantsPreview:Te&&z})};var S=function(){var z=Ce._editor.getPosition();(!z||!h.a.containsPosition(Xe,z))&&Ce.cancelInput(!0)};fe.add(Ce._editor.onDidChangeCursorSelection(S)),fe.add(Ce._editor.onDidBlurEditorWidget(function(){return Ce.cancelInput(!1)})),Ce._show()}).finally(function(){fe.dispose(),Ce._hide()})},Ne.prototype._show=function(){var Xe=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(function(){Xe._input.focus(),Xe._input.setSelectionRange(parseInt(Xe._input.getAttribute("selectionStart")),parseInt(Xe._input.getAttribute("selectionEnd")))},100)},Ne.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},Ne=w([v(2,O.c),v(3,m.a),v(4,J.c)],Ne),Ne}(),c=e("twdY"),u=e("OBOq"),f=e("NR8r"),E=e("vATl"),L=e("sM1p"),R=e("x/UI"),P=e("bY76"),x=e("Vxe3"),Q=e("JQT/"),V=e("X+cX"),W=e("746U"),B=e("09fa"),ae=e("Cg/j"),we=e("ic2d"),Me=e("CRAX"),Pe=e("e0rL"),Be=function(){var Ne=function(Xe,de){return Ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ge,Ee){ge.__proto__=Ee}||function(ge,Ee){for(var Te in Ee)Ee.hasOwnProperty(Te)&&(ge[Te]=Ee[Te])},Ne(Xe,de)};return function(Xe,de){Ne(Xe,de);function ge(){this.constructor=Xe}Xe.prototype=de===null?Object.create(de):(ge.prototype=de.prototype,new ge)}}(),Ke=function(Ne,Xe,de,ge){var Ee=arguments.length,Te=Ee<3?Xe:ge===null?ge=Object.getOwnPropertyDescriptor(Xe,de):ge,Ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Te=Reflect.decorate(Ne,Xe,de,ge);else for(var fe=Ne.length-1;fe>=0;fe--)(Ce=Ne[fe])&&(Te=(Ee<3?Ce(Te):Ee>3?Ce(Xe,de,Te):Ce(Xe,de))||Te);return Ee>3&&Te&&Object.defineProperty(Xe,de,Te),Te},Fe=function(Ne,Xe){return function(de,ge){Xe(de,ge,Ne)}},re=function(Ne,Xe,de,ge){function Ee(Te){return Te instanceof de?Te:new de(function(Ce){Ce(Te)})}return new(de||(de=Promise))(function(Te,Ce){function fe(z){try{S(ge.next(z))}catch(ce){Ce(ce)}}function $(z){try{S(ge.throw(z))}catch(ce){Ce(ce)}}function S(z){z.done?Te(z.value):Ee(z.value).then(fe,$)}S((ge=ge.apply(Ne,Xe||[])).next())})},ee=function(Ne,Xe){var de={label:0,sent:function(){if(Te[0]&1)throw Te[1];return Te[1]},trys:[],ops:[]},ge,Ee,Te,Ce;return Ce={next:fe(0),throw:fe(1),return:fe(2)},typeof Symbol=="function"&&(Ce[Symbol.iterator]=function(){return this}),Ce;function fe(S){return function(z){return $([S,z])}}function $(S){if(ge)throw new TypeError("Generator is already executing.");for(;de;)try{if(ge=1,Ee&&(Te=S[0]&2?Ee.return:S[0]?Ee.throw||((Te=Ee.return)&&Te.call(Ee),0):Ee.next)&&!(Te=Te.call(Ee,S[1])).done)return Te;(Ee=0,Te)&&(S=[S[0]&2,Te.value]);switch(S[0]){case 0:case 1:Te=S;break;case 4:return de.label++,{value:S[1],done:!1};case 5:de.label++,Ee=S[1],S=[0];continue;case 7:S=de.ops.pop(),de.trys.pop();continue;default:if(!(Te=de.trys,Te=Te.length>0&&Te[Te.length-1])&&(S[0]===6||S[0]===2)){de=0;continue}if(S[0]===3&&(!Te||S[1]>Te[0]&&S[1]<Te[3])){de.label=S[1];break}if(S[0]===6&&de.label<Te[1]){de.label=Te[1],Te=S;break}if(Te&&de.label<Te[2]){de.label=Te[2],de.ops.push(S);break}Te[2]&&de.ops.pop(),de.trys.pop();continue}S=Xe.call(Ne,de)}catch(z){S=[6,z],Ee=0}finally{ge=Te=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}},ne=function(){function Ne(Xe,de){this.model=Xe,this.position=de,this._providers=c.v.ordered(Xe)}return Ne.prototype.hasProvider=function(){return this._providers.length>0},Ne.prototype.resolveRenameLocation=function(Xe){return re(this,void 0,void 0,function(){var de,ge,Ee,Te;return ee(this,function(Ce){switch(Ce.label){case 0:return de=this._providers[0],de?de.resolveRenameLocation?(Ee=W.n,[4,de.resolveRenameLocation(this.model,this.position,Xe)]):[3,2]:[2,void 0];case 1:ge=Ee.apply(void 0,[Ce.sent()]),Ce.label=2;case 2:return!ge&&(Te=this.model.getWordAtPosition(this.position),Te)?[2,{range:new h.a(this.position.lineNumber,Te.startColumn,this.position.lineNumber,Te.endColumn),text:Te.word}]:[2,ge]}})})},Ne.prototype.provideRenameEdits=function(Xe,de,ge,Ee){return re(this,void 0,void 0,function(){var Te,Ce;return ee(this,function(fe){switch(fe.label){case 0:return Te=this._providers[de],Te?[4,Te.provideRenameEdits(this.model,this.position,Xe,Ee)]:[2,{edits:[],rejectReason:ge.join(`
`)}];case 1:if(Ce=fe.sent(),Ce){if(Ce.rejectReason)return[2,this.provideRenameEdits(Xe,de+1,ge.concat(Ce.rejectReason),Ee)]}else return[2,this.provideRenameEdits(Xe,de+1,ge.concat(T.a("no result","No result.")),Ee)];return[2,Ce]}})})},Ne}();function q(Ne,Xe,de){return re(this,void 0,void 0,function(){return ee(this,function(ge){return[2,new ne(Ne,Xe).provideRenameEdits(de,0,[],Q.a.None)]})})}var le=function(){function Ne(Xe,de,ge,Ee,Te,Ce,fe){var $=this;this.editor=Xe,this._instaService=de,this._notificationService=ge,this._bulkEditService=Ee,this._progressService=Te,this._logService=Ce,this._configService=fe,this._dispoableStore=new U.b,this._cts=new Q.b,this._renameInputField=this._dispoableStore.add(new V.b(function(){return $._dispoableStore.add($._instaService.createInstance(d,$.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}))}return Ne.get=function(Xe){return Xe.getContribution(Ne.ID)},Ne.prototype.dispose=function(){this._dispoableStore.dispose(),this._cts.dispose(!0)},Ne.prototype.run=function(){return re(this,void 0,void 0,function(){var Xe,de,ge,Ee,Te,Ce,fe,$,S,z,ce,se=this;return ee(this,function(ye){switch(ye.label){case 0:if(this._cts.dispose(!0),!this.editor.hasModel())return[2,void 0];if(Xe=this.editor.getPosition(),de=new ne(this.editor.getModel(),Xe),!de.hasProvider())return[2,void 0];this._cts=new E.b(this.editor,4|1),ye.label=1;case 1:return ye.trys.push([1,3,,4]),Ee=de.resolveRenameLocation(this._cts.token),this._progressService.showWhile(Ee,250),[4,Ee];case 2:return ge=ye.sent(),[3,4];case 3:return Te=ye.sent(),f.a.get(this.editor).showMessage(Te||T.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),Xe),[2,void 0];case 4:return ge?ge.rejectReason?(f.a.get(this.editor).showMessage(ge.rejectReason,Xe),[2,void 0]):this._cts.token.isCancellationRequested?[2,void 0]:(Ce=this.editor.getSelection(),fe=0,$=ge.text.length,!h.a.isEmpty(Ce)&&!h.a.spansMultipleLines(Ce)&&h.a.containsRange(ge.range,Ce)&&(fe=Math.max(0,Ce.startColumn-ge.range.startColumn),$=Math.min(ge.range.endColumn,Ce.endColumn)-ge.range.startColumn),S=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),[4,this._renameInputField.getValue().getInput(ge.range,ge.text,fe,$,S)]):[2,void 0];case 5:return z=ye.sent(),typeof z=="boolean"?(z&&this.editor.focus(),[2,void 0]):(this.editor.focus(),ce=Object(V.j)(de.provideRenameEdits(z.newName,0,[],this._cts.token),this._cts.token).then(function(Re){return re(se,void 0,void 0,function(){var Le=this;return ee(this,function(Ue){return!Re||!this.editor.hasModel()?[2]:Re.rejectReason?(this._notificationService.info(Re.rejectReason),[2]):(this._bulkEditService.apply(Re,{editor:this.editor,showPreview:z.wantsPreview,label:T.a("label","Renaming '{0}'",ge==null?void 0:ge.text)}).then(function(Je){Je.ariaSummary&&Object(u.a)(T.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",ge.text,z.newName,Je.ariaSummary))}).catch(function(Je){Le._notificationService.error(T.a("rename.failedApply","Rename failed to apply edits")),Le._logService.error(Je)}),[2])})})},function(Re){se._notificationService.error(T.a("rename.failed","Rename failed to compute edits")),se._logService.error(Re)}),this._progressService.showWhile(ce,250),[2,ce])}})})},Ne.prototype.acceptRenameInput=function(Xe){this._renameInputField.getValue().acceptInput(Xe)},Ne.prototype.cancelRenameInput=function(){this._renameInputField.getValue().cancelInput(!0)},Ne.ID="editor.contrib.renameController",Ne=Ke([Fe(1,ae.a),Fe(2,L.a),Fe(3,R.a),Fe(4,I.a),Fe(5,B.a),Fe(6,Pe.a)],Ne),Ne}(),Z=function(Ne){Be(Xe,Ne);function Xe(){return Ne.call(this,{id:"editor.action.rename",label:T.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:J.a.and(K.a.writable,K.a.hasRenameProvider),kbOpts:{kbExpr:K.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})||this}return Xe.prototype.runCommand=function(de,ge){var Ee=this,Te=de.get(x.a),Ce=Array.isArray(ge)&&ge||[void 0,void 0],fe=Ce[0],$=Ce[1];return P.a.isUri(fe)&&j.a.isIPosition($)?Te.openCodeEditor({resource:fe},Te.getActiveCodeEditor()).then(function(S){if(!S)return;S.setPosition($),S.invokeWithinContext(function(z){return Ee.reportTelemetry(z,S),Ee.run(z,S)})},pe.e):Ne.prototype.runCommand.call(this,de,ge)},Xe.prototype.run=function(de,ge){var Ee=le.get(ge);return Ee?Ee.run():Promise.resolve()},Xe}(H.b);Object(H.h)(le.ID,le),Object(H.f)(Z);var ve=H.c.bindToContribution(le.get);Object(H.g)(new ve({id:"acceptRenameInput",precondition:p,handler:function(Ne){return Ne.acceptRenameInput(!1)},kbOpts:{weight:100+99,kbExpr:K.a.focus,primary:3}})),Object(H.g)(new ve({id:"acceptRenameInputWithPreview",precondition:J.a.and(p,J.a.has("config.editor.rename.enablePreview")),handler:function(Ne){return Ne.acceptRenameInput(!0)},kbOpts:{weight:100+99,kbExpr:K.a.focus,primary:1024+3}})),Object(H.g)(new ve({id:"cancelRenameInput",precondition:p,handler:function(Ne){return Ne.cancelRenameInput()},kbOpts:{weight:100+99,kbExpr:K.a.focus,primary:9,secondary:[1024|9]}})),Object(H.e)("_executeDocumentRenameProvider",function(Ne,Xe,de){var ge=de.newName;if(typeof ge!="string")throw Object(pe.b)("newName");return q(Ne,Xe,ge)}),we.a.as(Me.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:T.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},QFiB:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return e.e(312).then(e.bind(null,"PhST"))}})},QRHv:function(Mt,F,e){"use strict";e.d(F,"f",function(){return H}),e.d(F,"b",function(){return U}),e.d(F,"c",function(){return j}),e.d(F,"a",function(){return b}),e.d(F,"e",function(){return C}),e.d(F,"d",function(){return w});var T=e("6OMU"),pe=e("4bUh"),J=e("cGHE"),I=e("twdY");function H(v){for(var p=0,d=0,c=0,u=0,f=v.length;u<f;u++){var E=v.charCodeAt(u);E===13?(p===0&&(d=u),p++,u+1<f&&v.charCodeAt(u+1)===10&&u++,c=u+1):E===10&&(p===0&&(d=u),p++,c=u+1)}return p===0&&(d=v.length),[p,d,v.length-c]}function K(v){return(v<<0|0<<8|0<<11|1<<14|2<<23)>>>0}var D=new Uint32Array(0).buffer,U=function(){function v(){this.tokens=[]}return v.prototype.add=function(p,d){if(this.tokens.length>0){var c=this.tokens[this.tokens.length-1],u=c.startLineNumber+c.tokens.length-1;if(u+1===p){c.tokens.push(d);return}}this.tokens.push(new O(p,[d]))},v}(),j=function(){function v(p){this._tokens=p,this._tokenCount=p.length/4}return v.prototype.getMaxDeltaLine=function(){var p=this.getTokenCount();return p===0?-1:this.getDeltaLine(p-1)},v.prototype.getTokenCount=function(){return this._tokenCount},v.prototype.getDeltaLine=function(p){return this._tokens[4*p]},v.prototype.getStartCharacter=function(p){return this._tokens[4*p+1]},v.prototype.getEndCharacter=function(p){return this._tokens[4*p+2]},v.prototype.getMetadata=function(p){return this._tokens[4*p+3]},v.prototype.clear=function(){this._tokenCount=0},v.prototype.acceptDeleteRange=function(p,d,c,u,f){for(var E=this._tokens,L=this._tokenCount,R=u-d,P=0,x=!1,Q=0;Q<L;Q++){var V=4*Q,W=E[V],B=E[V+1],ae=E[V+2],we=E[V+3];if(W<d||W===d&&ae<=c){P++;continue}else if(W===d&&B<c)W===u&&ae>f?ae-=f-c:ae=c;else if(W===d&&B===c)if(W===u&&ae>f)ae-=f-c;else{x=!0;continue}else if(W<u||W===u&&B<f)if(W===u&&ae>f)W===d?(B=c,ae=B+(ae-f)):(B=0,ae=B+(ae-f));else{x=!0;continue}else if(W>u){if(R===0&&!x){P=L;break}W-=R}else if(W===u&&B>=f)p&&W===0&&(B+=p,ae+=p),W-=R,B-=f-c,ae-=f-c;else throw new Error("Not possible!");var Me=4*P;E[Me]=W,E[Me+1]=B,E[Me+2]=ae,E[Me+3]=we,P++}this._tokenCount=P},v.prototype.acceptInsertText=function(p,d,c,u,f,E){for(var L=c===0&&u===1&&(E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122),R=this._tokens,P=this._tokenCount,x=0;x<P;x++){var Q=4*x,V=R[Q],W=R[Q+1],B=R[Q+2];if(V<p||V===p&&B<d)continue;if(V===p&&B===d)if(L)B+=1;else continue;else if(V===p&&W<d&&d<B)c===0?B+=u:B=d;else{if(V===p&&W===d&&L)continue;if(V===p)if(V+=c,c===0)W+=u,B+=u;else{var ae=B-W;W=f+(W-d),B=W+ae}else V+=c}R[Q]=V,R[Q+1]=W,R[Q+2]=B}},v}(),h=function(){function v(p,d,c){this._actual=p,this._startTokenIndex=d,this._endTokenIndex=c}return v.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},v.prototype.getStartCharacter=function(p){return this._actual.getStartCharacter(this._startTokenIndex+p)},v.prototype.getEndCharacter=function(p){return this._actual.getEndCharacter(this._startTokenIndex+p)},v.prototype.getMetadata=function(p){return this._actual.getMetadata(this._startTokenIndex+p)},v}(),b=function(){function v(p,d){this.startLineNumber=p,this.tokens=d,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}return v.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},v.prototype.getLineTokens=function(p){if(this.startLineNumber<=p&&p<=this.endLineNumber){var d=v._findTokensWithLine(this.tokens,p-this.startLineNumber);if(d){var c=d[0],u=d[1];return new h(this.tokens,c,u)}}return null},v._findTokensWithLine=function(p,d){for(var c=0,u=p.getTokenCount()-1;c<u;){var f=c+Math.floor((u-c)/2),E=p.getDeltaLine(f);if(E<d)c=f+1;else if(E>d)u=f-1;else{for(var L=f;L>c&&p.getDeltaLine(L-1)===d;)L--;for(var R=f;R<u&&p.getDeltaLine(R+1)===d;)R++;return[L,R]}}return p.getDeltaLine(c)===d?[c,c]:null},v.prototype.applyEdit=function(p,d){var c=H(d),u=c[0],f=c[1],E=c[2];this.acceptEdit(p,u,f,E,d.length>0?d.charCodeAt(0):0)},v.prototype.acceptEdit=function(p,d,c,u,f){this._acceptDeleteRange(p),this._acceptInsertText(new J.a(p.startLineNumber,p.startColumn),d,c,u,f),this._updateEndLineNumber()},v.prototype._acceptDeleteRange=function(p){if(p.startLineNumber===p.endLineNumber&&p.startColumn===p.endColumn)return;var d=p.startLineNumber-this.startLineNumber,c=p.endLineNumber-this.startLineNumber;if(c<0){var u=c-d;this.startLineNumber-=u;return}var f=this.tokens.getMaxDeltaLine();if(d>=f+1)return;if(d<0&&c>=f+1){this.startLineNumber=0,this.tokens.clear();return}if(d<0){var E=-d;this.startLineNumber-=E,this.tokens.acceptDeleteRange(p.startColumn-1,0,0,c,p.endColumn-1)}else this.tokens.acceptDeleteRange(0,d,p.startColumn-1,c,p.endColumn-1)},v.prototype._acceptInsertText=function(p,d,c,u,f){if(d===0&&c===0)return;var E=p.lineNumber-this.startLineNumber;if(E<0){this.startLineNumber+=d;return}var L=this.tokens.getMaxDeltaLine();if(E>=L+1)return;this.tokens.acceptInsertText(E,p.column-1,d,c,u,f)},v}(),O=function(){function v(p,d){this.startLineNumber=p,this.tokens=d}return v}();function m(v){return v instanceof Uint32Array?v:new Uint32Array(v)}var C=function(){function v(){this._pieces=[]}return v.prototype.flush=function(){this._pieces=[]},v.prototype.set=function(p){this._pieces=p||[]},v.prototype.addSemanticTokens=function(p,d){var c=this._pieces;if(c.length===0)return d;var u=v._findFirstPieceWithLine(c,p),f=this._pieces[u].getLineTokens(p);if(!f)return d;for(var E=d.getCount(),L=f.getCount(),R=0,P=[],x=0,Q=0;Q<L;Q++){for(var V=f.getStartCharacter(Q),W=f.getEndCharacter(Q),B=f.getMetadata(Q),ae=((B&1?2048:0)|(B&2?4096:0)|(B&4?8192:0)|(B&8?8372224:0)|(B&16?4286578688:0))>>>0,we=~ae>>>0;R<E&&d.getEndOffset(R)<=V;)P[x++]=d.getEndOffset(R),P[x++]=d.getMetadata(R),R++;for(R<E&&d.getStartOffset(R)<V&&(P[x++]=V,P[x++]=d.getMetadata(R));R<E&&d.getEndOffset(R)<W;)P[x++]=d.getEndOffset(R),P[x++]=d.getMetadata(R)&we|B&ae,R++;if(R<E&&d.getEndOffset(R)===W)P[x++]=d.getEndOffset(R),P[x++]=d.getMetadata(R)&we|B&ae,R++;else{var Me=Math.min(Math.max(0,R-1),E-1);P[x++]=W,P[x++]=d.getMetadata(Me)&we|B&ae}}for(;R<E;)P[x++]=d.getEndOffset(R),P[x++]=d.getMetadata(R),R++;return new pe.a(new Uint32Array(P),d.getLineContent())},v._findFirstPieceWithLine=function(p,d){for(var c=0,u=p.length-1;c<u;){var f=c+Math.floor((u-c)/2);if(p[f].endLineNumber<d)c=f+1;else if(p[f].startLineNumber>d)u=f-1;else{for(;f>c&&p[f-1].startLineNumber<=d&&d<=p[f-1].endLineNumber;)f--;return f}}return c},v.prototype.acceptEdit=function(p,d,c,u,f){for(var E=0,L=this._pieces;E<L.length;E++){var R=L[E];R.acceptEdit(p,d,c,u,f)}},v}(),w=function(){function v(){this._lineTokens=[],this._len=0}return v.prototype.flush=function(){this._lineTokens=[],this._len=0},v.prototype.getTokens=function(p,d,c){var u=null;if(d<this._len&&(u=this._lineTokens[d]),u!==null&&u!==D)return new pe.a(m(u),c);var f=new Uint32Array(2);return f[0]=c.length,f[1]=K(p),new pe.a(f,c)},v._massageTokens=function(p,d,c){var u=c?m(c):null;if(d===0){var f=!1;if(u&&u.length>1&&(f=I.A.getLanguageId(u[1])!==p),!f)return D}if(!u||u.length===0){var E=new Uint32Array(2);return E[0]=d,E[1]=K(p),E.buffer}return u[u.length-2]=d,u.byteOffset===0&&u.byteLength===u.buffer.byteLength?u.buffer:u},v.prototype._ensureLine=function(p){for(;p>=this._len;)this._lineTokens[this._len]=null,this._len++},v.prototype._deleteLines=function(p,d){if(d===0)return;p+d>this._len&&(d=this._len-p),this._lineTokens.splice(p,d),this._len-=d},v.prototype._insertLines=function(p,d){if(d===0)return;for(var c=[],u=0;u<d;u++)c[u]=null;this._lineTokens=T.a(this._lineTokens,p,c),this._len+=d},v.prototype.setTokens=function(p,d,c,u){var f=v._massageTokens(p,c,u);this._ensureLine(d),this._lineTokens[d]=f},v.prototype.acceptEdit=function(p,d,c){this._acceptDeleteRange(p),this._acceptInsertText(new J.a(p.startLineNumber,p.startColumn),d,c)},v.prototype._acceptDeleteRange=function(p){var d=p.startLineNumber-1;if(d>=this._len)return;if(p.startLineNumber===p.endLineNumber){if(p.startColumn===p.endColumn)return;this._lineTokens[d]=v._delete(this._lineTokens[d],p.startColumn-1,p.endColumn-1);return}this._lineTokens[d]=v._deleteEnding(this._lineTokens[d],p.startColumn-1);var c=p.endLineNumber-1,u=null;c<this._len&&(u=v._deleteBeginning(this._lineTokens[c],p.endColumn-1)),this._lineTokens[d]=v._append(this._lineTokens[d],u),this._deleteLines(p.startLineNumber,p.endLineNumber-p.startLineNumber)},v.prototype._acceptInsertText=function(p,d,c){if(d===0&&c===0)return;var u=p.lineNumber-1;if(u>=this._len)return;if(d===0){this._lineTokens[u]=v._insert(this._lineTokens[u],p.column-1,c);return}this._lineTokens[u]=v._deleteEnding(this._lineTokens[u],p.column-1),this._lineTokens[u]=v._insert(this._lineTokens[u],p.column-1,c),this._insertLines(p.lineNumber,d)},v._deleteBeginning=function(p,d){return p===null||p===D?p:v._delete(p,0,d)},v._deleteEnding=function(p,d){if(p===null||p===D)return p;var c=m(p),u=c[c.length-2];return v._delete(p,d,u)},v._delete=function(p,d,c){if(p===null||p===D||d===c)return p;var u=m(p),f=u.length>>>1;if(d===0&&u[u.length-2]===c)return D;var E=pe.a.findIndexInTokensArray(u,d),L=E>0?u[E-1<<1]:0,R=u[E<<1];if(c<R){for(var P=c-d,x=E;x<f;x++)u[x<<1]-=P;return p}var Q,V;L!==d?(u[E<<1]=d,Q=E+1<<1,V=d):(Q=E<<1,V=L);for(var W=c-d,B=E+1;B<f;B++){var ae=u[B<<1]-W;ae>V&&(u[Q++]=ae,u[Q++]=u[(B<<1)+1],V=ae)}if(Q===u.length)return p;var we=new Uint32Array(Q);return we.set(u.subarray(0,Q),0),we.buffer},v._append=function(p,d){if(d===D)return p;if(p===D)return d;if(p===null)return p;if(d===null)return null;var c=m(p),u=m(d),f=u.length>>>1,E=new Uint32Array(c.length+u.length);E.set(c,0);for(var L=c.length,R=c[c.length-2],P=0;P<f;P++)E[L++]=u[P<<1]+R,E[L++]=u[(P<<1)+1];return E.buffer},v._insert=function(p,d,c){if(p===null||p===D)return p;var u=m(p),f=u.length>>>1,E=pe.a.findIndexInTokensArray(u,d);if(E>0){var L=u[E-1<<1];L===d&&E--}for(var R=E;R<f;R++)u[R<<1]+=c;return p},v}()},QVNv:function(Mt,F,e){"use strict";e.d(F,"b",function(){return C}),e.d(F,"a",function(){return v}),e.d(F,"c",function(){return d}),e.d(F,"e",function(){return c}),e.d(F,"d",function(){return R}),e.d(F,"f",function(){return x});var T=e("X+cX"),pe=e("qj0h"),J=e("/cxE"),I=e("sswD"),H=e("twdY"),K=e("cGHE"),D=e("T8No"),U=e("JQT/"),j=e("aokT"),h=e("fpMC"),b=e("pmY6"),O=function(Q,V,W,B){function ae(we){return we instanceof W?we:new W(function(Me){Me(we)})}return new(W||(W=Promise))(function(we,Me){function Pe(Fe){try{Ke(B.next(Fe))}catch(re){Me(re)}}function Be(Fe){try{Ke(B.throw(Fe))}catch(re){Me(re)}}function Ke(Fe){Fe.done?we(Fe.value):ae(Fe.value).then(Pe,Be)}Ke((B=B.apply(Q,V||[])).next())})},m=function(Q,V){var W={label:0,sent:function(){if(we[0]&1)throw we[1];return we[1]},trys:[],ops:[]},B,ae,we,Me;return Me={next:Pe(0),throw:Pe(1),return:Pe(2)},typeof Symbol=="function"&&(Me[Symbol.iterator]=function(){return this}),Me;function Pe(Ke){return function(Fe){return Be([Ke,Fe])}}function Be(Ke){if(B)throw new TypeError("Generator is already executing.");for(;W;)try{if(B=1,ae&&(we=Ke[0]&2?ae.return:Ke[0]?ae.throw||((we=ae.return)&&we.call(ae),0):ae.next)&&!(we=we.call(ae,Ke[1])).done)return we;(ae=0,we)&&(Ke=[Ke[0]&2,we.value]);switch(Ke[0]){case 0:case 1:we=Ke;break;case 4:return W.label++,{value:Ke[1],done:!1};case 5:W.label++,ae=Ke[1],Ke=[0];continue;case 7:Ke=W.ops.pop(),W.trys.pop();continue;default:if(!(we=W.trys,we=we.length>0&&we[we.length-1])&&(Ke[0]===6||Ke[0]===2)){W=0;continue}if(Ke[0]===3&&(!we||Ke[1]>we[0]&&Ke[1]<we[3])){W.label=Ke[1];break}if(Ke[0]===6&&W.label<we[1]){W.label=we[1],we=Ke;break}if(we&&W.label<we[2]){W.label=we[2],W.ops.push(Ke);break}we[2]&&W.ops.pop(),W.trys.pop();continue}Ke=V.call(Q,W)}catch(Fe){Ke=[6,Fe],ae=0}finally{B=we=0}if(Ke[0]&5)throw Ke[1];return{value:Ke[0]?Ke[1]:void 0,done:!0}}},C={Visible:new D.d("suggestWidgetVisible",!1),MultipleSuggestions:new D.d("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new D.d("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new D.d("acceptSuggestionOnEnter",!0)},w=function(){function Q(V,W,B,ae,we){var Me=this;this.position=V,this.completion=W,this.container=B,this.provider=ae,this.isResolved=!1,this.score=h.a.Default,this.distance=0,this.textLabel=typeof W.label=="string"?W.label:W.label.name,this.labelLow=this.textLabel.toLowerCase(),this.sortTextLow=W.sortText&&W.sortText.toLowerCase(),this.filterTextLow=W.filterText&&W.filterText.toLowerCase(),j.a.isIRange(W.range)?(this.editStart=new K.a(W.range.startLineNumber,W.range.startColumn),this.editInsertEnd=new K.a(W.range.endLineNumber,W.range.endColumn),this.editReplaceEnd=new K.a(W.range.endLineNumber,W.range.endColumn)):(this.editStart=new K.a(W.range.insert.startLineNumber,W.range.insert.startColumn),this.editInsertEnd=new K.a(W.range.insert.endLineNumber,W.range.insert.endColumn),this.editReplaceEnd=new K.a(W.range.replace.endLineNumber,W.range.replace.endColumn));var Pe=ae.resolveCompletionItem;if(typeof Pe!="function")this.resolve=function(){return Promise.resolve()},this.isResolved=!0;else{var Be;this.resolve=function(Ke){return Be||(Be=Promise.resolve(Pe.call(ae,we,V,W,Ke)).then(function(Fe){Object(pe.a)(W,Fe),Me.isResolved=!0},function(Fe){Object(J.d)(Fe)&&(Be=void 0)}),Ke.onCancellationRequested(function(){Me.isResolved||(Be=void 0)})),Be}}}return Q}(),v=function(){function Q(V,W,B){V===void 0&&(V=2),W===void 0&&(W=new Set),B===void 0&&(B=new Set),this.snippetSortOrder=V,this.kindFilter=W,this.providerFilter=B}return Q.default=new Q,Q}(),p;function d(){return p}function c(Q,V,W,B,ae){W===void 0&&(W=v.default),B===void 0&&(B={triggerKind:0}),ae===void 0&&(ae=U.a.None);var we=Q.getWordAtPosition(V),Me=we?new j.a(V.lineNumber,we.startColumn,V.lineNumber,we.endColumn):j.a.fromPositions(V),Pe=Me.setEndPosition(V.lineNumber,V.column);V=V.clone();var Be=H.d.orderedGroups(Q);!W.kindFilter.has(25)&&p&&Be.unshift([p]);var Ke=[],Fe=new b.b,re=!1,ee=Be.map(function(q){return function(){return Promise.all(q.map(function(le){return W.providerFilter.size>0&&!W.providerFilter.has(le)?void 0:Promise.resolve(le.provideCompletionItems(Q,V,B,ae)).then(function(Z){var ve=Ke.length;if(Z){for(var Ne=0,Xe=Z.suggestions||[];Ne<Xe.length;Ne++){var de=Xe[Ne];W.kindFilter.has(de.kind)||(de.range||(de.range={insert:Pe,replace:Me}),de.sortText||(de.sortText=typeof de.label=="string"?de.label:de.label.name),Ke.push(new w(V,de,Z,le,Q)))}Object(b.g)(Z)&&Fe.add(Z)}ve!==Ke.length&&le!==p&&(re=!0)},J.f)}))}}),ne=Object(T.h)(ee,function(){return re||ae.isCancellationRequested}).then(function(){return ae.isCancellationRequested?(Fe.dispose(),Promise.reject(Object(J.a)())):Ke.sort(R(W.snippetSortOrder))});return ne}function u(Q,V){if(Q.sortTextLow&&V.sortTextLow){if(Q.sortTextLow<V.sortTextLow)return-1;if(Q.sortTextLow>V.sortTextLow)return 1}return Q.completion.label<V.completion.label?-1:Q.completion.label>V.completion.label?1:Q.completion.kind-V.completion.kind}function f(Q,V){if(Q.completion.kind!==V.completion.kind){if(Q.completion.kind===25)return-1;if(V.completion.kind===25)return 1}return u(Q,V)}function E(Q,V){if(Q.completion.kind!==V.completion.kind){if(Q.completion.kind===25)return 1;if(V.completion.kind===25)return-1}return u(Q,V)}var L=new Map;L.set(0,f),L.set(2,E),L.set(1,u);function R(Q){return L.get(Q)}Object(I.e)("_executeCompletionItemProvider",function(Q,V,W){return O(void 0,void 0,void 0,function(){var B,ae,we,Me,Pe,Be,Ke,Fe;return m(this,function(re){switch(re.label){case 0:return B={incomplete:!1,suggestions:[]},ae=new b.b,we=[],Me=W.maxItemsToResolve||0,[4,c(Q,V)];case 1:for(Pe=re.sent(),Be=0,Ke=Pe;Be<Ke.length;Be++)Fe=Ke[Be],we.length<Me&&we.push(Fe.resolve(U.a.None)),B.incomplete=B.incomplete||Fe.container.incomplete,B.suggestions.push(Fe.completion),Object(b.g)(Fe.container)&&ae.add(Fe.container);re.label=2;case 2:return re.trys.push([2,,4,5]),[4,Promise.all(we)];case 3:return re.sent(),[2,B];case 4:return setTimeout(function(){return ae.dispose()},100),[7];case 5:return[2]}})})});var P=new(function(){function Q(){this.onlyOnceSuggestions=[]}return Q.prototype.provideCompletionItems=function(){var V=this.onlyOnceSuggestions.slice(0),W={suggestions:V};return this.onlyOnceSuggestions.length=0,W},Q}());H.d.register("*",P);function x(Q,V){setTimeout(function(){var W;(W=P.onlyOnceSuggestions).push.apply(W,V),Q.getContribution("editor.contrib.suggestController").triggerSuggest(new Set().add(P))},0)}},QY8A:function(Mt,F,e){"use strict";e.d(F,"a",function(){return Nt});var T=e("3/fG"),pe=e("/cxE"),J=e("pmY6"),I=e("Vxe3"),H=e("Cg/j"),K=e("T8No"),D=e("+7oY"),U=e("A+jI"),j=e("9o5J"),h=e("KaET"),b=e("EffR"),O=e("zrhQ"),m=e("MI8n"),C=e("tYmi"),w=e("gslv"),v=e("03kh"),p=e("aokT"),d=e("tX9W"),c=e("t49l"),u=e("xONI"),f=e("VPJY"),E=e("N0LK"),L=e("qj0h"),R={badgeBackground:O.a.fromHex("#4D4D4D"),badgeForeground:O.a.fromHex("#FFFFFF")},P=function(){function $e(Ye,Ve){this.count=0,this.options=Ve||Object.create(null),Object(L.g)(this.options,R,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(b.q)(Ye,Object(b.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return $e.prototype.setCount=function(Ye){this.count=Ye,this.render()},$e.prototype.setTitleFormat=function(Ye){this.titleFormat=Ye,this.render()},$e.prototype.render=function(){this.element.textContent=Object(E.r)(this.countFormat,this.count),this.element.title=Object(E.r)(this.titleFormat,this.count),this.applyStyles()},$e.prototype.style=function(Ye){this.badgeBackground=Ye.badgeBackground,this.badgeForeground=Ye.badgeForeground,this.badgeBorder=Ye.badgeBorder,this.applyStyles()},$e.prototype.applyStyles=function(){if(this.element){var Ye=this.badgeBackground?this.badgeBackground.toString():"",Ve=this.badgeForeground?this.badgeForeground.toString():"",ze=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=Ye,this.element.style.color=Ve,this.element.style.borderWidth=ze?"1px":"",this.element.style.borderStyle=ze?"solid":"",this.element.style.borderColor=ze}},$e}(),x=e("R8sh"),Q=e("t9D7"),V=e("ptcw"),W=e("3rx1"),B=e("bexQ"),ae=e("fpMC"),we=e("7lZ/"),Me=function(){var $e=function(Ye,Ve){return $e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,me){ze.__proto__=me}||function(ze,me){for(var G in me)me.hasOwnProperty(G)&&(ze[G]=me[G])},$e(Ye,Ve)};return function(Ye,Ve){$e(Ye,Ve);function ze(){this.constructor=Ye}Ye.prototype=Ve===null?Object.create(Ve):(ze.prototype=Ve.prototype,new ze)}}(),Pe=function($e,Ye,Ve,ze){var me=arguments.length,G=me<3?Ye:ze===null?ze=Object.getOwnPropertyDescriptor(Ye,Ve):ze,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate($e,Ye,Ve,ze);else for(var Y=$e.length-1;Y>=0;Y--)(oe=$e[Y])&&(G=(me<3?oe(G):me>3?oe(Ye,Ve,G):oe(Ye,Ve))||G);return me>3&&G&&Object.defineProperty(Ye,Ve,G),G},Be=function($e,Ye){return function(Ve,ze){Ye(Ve,ze,$e)}},Ke=function(){function $e(Ye){this._resolverService=Ye}return $e.prototype.hasChildren=function(Ye){return Ye instanceof j.c?!0:Ye instanceof j.a&&!Ye.failure},$e.prototype.getChildren=function(Ye){if(Ye instanceof j.c)return Ye.groups;if(Ye instanceof j.a)return Ye.resolve(this._resolverService).then(function(Ve){return Ve.children});throw new Error("bad tree")},$e=Pe([Be(0,c.a)],$e),$e}(),Fe=function(){function $e(){}return $e.prototype.getHeight=function(){return 23},$e.prototype.getTemplateId=function(Ye){return Ye instanceof j.a?q.id:Z.id},$e}(),re=function(){function $e(Ye){this._keybindingService=Ye}return $e.prototype.getKeyboardNavigationLabel=function(Ye){if(Ye instanceof j.b){var Ve=Ye.parent.preview,ze=Ve&&Ve.preview(Ye.range);if(ze)return ze.value}return Object(w.b)(Ye.uri)},$e=Pe([Be(0,B.a)],$e),$e}(),ee=function(){function $e(){}return $e.prototype.getId=function(Ye){return Ye instanceof j.b?Ye.id:Ye.uri},$e}(),ne=function($e){Me(Ye,$e);function Ye(Ve,ze,me){var G=$e.call(this)||this;G._uriLabel=ze;var oe=document.createElement("div");return b.f(oe,"reference-file"),G.file=G._register(new u.a(oe,{supportHighlights:!0})),G.badge=new P(b.q(oe,b.a(".count"))),G._register(Object(V.a)(G.badge,me)),Ve.appendChild(oe),G}return Ye.prototype.set=function(Ve,ze){var me=Object(w.d)(Ve.uri);this.file.setLabel(Object(W.a)(Ve.uri),this._uriLabel.getUriLabel(me,{relative:!0}),{title:this._uriLabel.getUriLabel(Ve.uri),matches:ze});var G=Ve.children.length;this.badge.setCount(G),Ve.failure?this.badge.setTitleFormat(Object(T.a)("referencesFailre","Failed to resolve file.")):G>1?this.badge.setTitleFormat(Object(T.a)("referencesCount","{0} references",G)):this.badge.setTitleFormat(Object(T.a)("referenceCount","{0} reference",G))},Ye=Pe([Be(1,x.a),Be(2,Q.c)],Ye),Ye}(J.a),q=function(){function $e(Ye){this._instantiationService=Ye,this.templateId=$e.id}return $e.prototype.renderTemplate=function(Ye){return this._instantiationService.createInstance(ne,Ye)},$e.prototype.renderElement=function(Ye,Ve,ze){ze.set(Ye.element,Object(ae.c)(Ye.filterData))},$e.prototype.disposeTemplate=function(Ye){Ye.dispose()},$e.id="FileReferencesRenderer",$e=Pe([Be(0,H.a)],$e),$e}(),le=function(){function $e(Ye){this.label=new we.a(Ye,!1)}return $e.prototype.set=function(Ye,Ve){var ze=Ye.parent.preview,me=ze&&ze.preview(Ye.range);if(!me)this.label.set(Object(w.b)(Ye.uri)+":"+(Ye.range.startLineNumber+1)+":"+(Ye.range.startColumn+1));else{var G=me.value,oe=me.highlight;Ve&&!ae.a.isDefault(Ve)?(b.Y(this.label.element,"referenceMatch",!1),this.label.set(G,Object(ae.c)(Ve))):(b.Y(this.label.element,"referenceMatch",!0),this.label.set(G,[oe]))}},$e}(),Z=function(){function $e(){this.templateId=$e.id}return $e.prototype.renderTemplate=function(Ye){return new le(Ye)},$e.prototype.renderElement=function(Ye,Ve,ze){ze.set(Ye.element,Ye.filterData)},$e.prototype.disposeTemplate=function(){},$e.id="OneReferenceRenderer",$e}(),ve=function(){function $e(){}return $e.prototype.getAriaLabel=function(Ye){return Ye.ariaMessage},$e}(),Ne=e("k9mg"),Xe=e("MD5Z"),de=e("iNS8"),ge=e("51B1"),Ee=e("746U"),Te=e("Sdnv"),Ce=e("6OMU"),fe=e("cMOf"),$=e("4y0V"),S=function(){var $e=function(Ye,Ve){return $e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,me){ze.__proto__=me}||function(ze,me){for(var G in me)me.hasOwnProperty(G)&&(ze[G]=me[G])},$e(Ye,Ve)};return function(Ye,Ve){$e(Ye,Ve);function ze(){this.constructor=Ye}Ye.prototype=Ve===null?Object.create(Ve):(ze.prototype=Ve.prototype,new ze)}}(),z=function(){for(var $e=0,Ye=0,Ve=arguments.length;Ye<Ve;Ye++)$e+=arguments[Ye].length;for(var ze=Array($e),me=0,Ye=0;Ye<Ve;Ye++)for(var G=arguments[Ye],oe=0,Y=G.length;oe<Y;oe++,me++)ze[me]=G[oe];return ze},ce={separatorBorder:O.a.transparent},se=function(){function $e(Ye,Ve,ze,me){this.container=Ye,this.view=Ve,this.disposable=me,this._cachedVisibleSize=void 0,typeof ze=="number"?(this._size=ze,this._cachedVisibleSize=void 0,b.f(Ye,"visible")):(this._size=0,this._cachedVisibleSize=ze.cachedVisibleSize)}return Object.defineProperty($e.prototype,"size",{get:function(){return this._size},set:function(Ye){this._size=Ye},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"visible",{get:function(){return typeof this._cachedVisibleSize=="undefined"},enumerable:!0,configurable:!0}),$e.prototype.setVisible=function(Ye,Ve){if(Ye===this.visible)return;Ye?(this.size=Object(Te.a)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof Ve=="number"?Ve:this.size,this.size=0),b.Y(this.container,"visible",Ye),this.view.setVisible&&this.view.setVisible(Ye)},Object.defineProperty($e.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"enabled",{set:function(Ye){this.container.style.pointerEvents=Ye?null:"none"},enumerable:!0,configurable:!0}),$e.prototype.layout=function(Ye,Ve){this.layoutContainer(Ye),this.view.layout(this.size,Ye,Ve)},$e.prototype.dispose=function(){return this.disposable.dispose(),this.view},$e}(),ye=function($e){S(Ye,$e);function Ye(){return $e!==null&&$e.apply(this,arguments)||this}return Ye.prototype.layoutContainer=function(Ve){this.container.style.top=Ve+"px",this.container.style.height=this.size+"px"},Ye}(se),Re=function($e){S(Ye,$e);function Ye(){return $e!==null&&$e.apply(this,arguments)||this}return Ye.prototype.layoutContainer=function(Ve){this.container.style.left=Ve+"px",this.container.style.width=this.size+"px"},Ye}(se),Le;(function($e){$e[$e.Idle=0]="Idle",$e[$e.Busy=1]="Busy"})(Le||(Le={}));var Ue;(function($e){$e.Distribute={type:"distribute"};function Ye(ze){return{type:"split",index:ze}}$e.Split=Ye;function Ve(ze){return{type:"invisible",cachedVisibleSize:ze}}$e.Invisible=Ve})(Ue||(Ue={}));var Je=function($e){S(Ye,$e);function Ye(Ve,ze){ze===void 0&&(ze={});var me=$e.call(this)||this;return me.size=0,me.contentSize=0,me.proportions=void 0,me.viewItems=[],me.sashItems=[],me.state=Le.Idle,me._onDidSashChange=me._register(new m.a),me.onDidSashChange=me._onDidSashChange.event,me._onDidSashReset=me._register(new m.a),me._startSnappingEnabled=!0,me._endSnappingEnabled=!0,me.orientation=Ee.k(ze.orientation)?0:ze.orientation,me.inverseAltBehavior=!!ze.inverseAltBehavior,me.proportionalLayout=Ee.k(ze.proportionalLayout)?!0:!!ze.proportionalLayout,me.el=document.createElement("div"),b.f(me.el,"monaco-split-view2"),b.f(me.el,me.orientation===0?"vertical":"horizontal"),Ve.appendChild(me.el),me.sashContainer=b.q(me.el,b.a(".sash-container")),me.viewContainer=b.q(me.el,b.a(".split-view-container")),me.style(ze.styles||ce),ze.descriptor&&(me.size=ze.descriptor.size,ze.descriptor.views.forEach(function(G,oe){var Y=Ee.k(G.visible)||G.visible?G.size:{type:"invisible",cachedVisibleSize:G.size},ie=G.view;me.doAddView(ie,Y,oe,!0)}),me.contentSize=me.viewItems.reduce(function(G,oe){return G+oe.size},0),me.saveProportions()),me}return Object.defineProperty(Ye.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(Ve){for(var ze=0,me=this.sashItems;ze<me.length;ze++){var G=me[ze];G.sash.orthogonalStartSash=Ve}this._orthogonalStartSash=Ve},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(Ve){for(var ze=0,me=this.sashItems;ze<me.length;ze++){var G=me[ze];G.sash.orthogonalEndSash=Ve}this._orthogonalEndSash=Ve},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(Ve){if(this._startSnappingEnabled===Ve)return;this._startSnappingEnabled=Ve,this.updateSashEnablement()},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(Ve){if(this._endSnappingEnabled===Ve)return;this._endSnappingEnabled=Ve,this.updateSashEnablement()},enumerable:!0,configurable:!0}),Ye.prototype.style=function(Ve){Ve.separatorBorder.isTransparent()?(b.P(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(b.f(this.el,"separator-border"),this.el.style.setProperty("--separator-border",Ve.separatorBorder.toString()))},Ye.prototype.addView=function(Ve,ze,me){me===void 0&&(me=this.viewItems.length),this.doAddView(Ve,ze,me,!1)},Ye.prototype.layout=function(Ve,ze){var me=this,G=Math.max(this.size,this.contentSize);if(this.size=Ve,this.layoutContext=ze,this.proportions)for(var je=0;je<this.viewItems.length;je++){var dt=this.viewItems[je];dt.size=Object(Te.a)(Math.round(this.proportions[je]*Ve),dt.minimumSize,dt.maximumSize)}else{var oe=Object(Ce.u)(this.viewItems.length),Y=oe.filter(function(Dt){return me.viewItems[Dt].priority===1}),ie=oe.filter(function(Dt){return me.viewItems[Dt].priority===2});this.resize(this.viewItems.length-1,Ve-G,void 0,Y,ie)}this.distributeEmptySpace(),this.layoutViews()},Ye.prototype.saveProportions=function(){var Ve=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(function(ze){return ze.size/Ve.contentSize}))},Ye.prototype.onSashStart=function(Ve){for(var ze=this,me=Ve.sash,G=Ve.start,oe=Ve.alt,Y=0,ie=this.viewItems;Y<ie.length;Y++){var je=ie[Y];je.enabled=!1}var dt=Object(Ce.k)(this.sashItems,function(to){return to.sash===me}),Dt=Object(J.e)(Object($.a)(document.body,"keydown")(function(to){return Qt(ze.sashDragState.current,to.altKey)}),Object($.a)(document.body,"keyup")(function(){return Qt(ze.sashDragState.current,!1)})),Qt=function(to,fo){var ho=ze.viewItems.map(function(Uo){return Uo.size}),wo=Number.NEGATIVE_INFINITY,Oo=Number.POSITIVE_INFINITY;if(ze.inverseAltBehavior&&(fo=!fo),fo){var Ro=dt===ze.sashItems.length-1;if(Ro){var jo=ze.viewItems[dt];wo=(jo.minimumSize-jo.size)/2,Oo=(jo.maximumSize-jo.size)/2}else{var jo=ze.viewItems[dt+1];wo=(jo.size-jo.maximumSize)/2,Oo=(jo.size-jo.minimumSize)/2}}var Eo,Wo;if(!fo){var Ho=Object(Ce.u)(dt,-1),Fo=Object(Ce.u)(dt+1,ze.viewItems.length),Io=Ho.reduce(function(Uo,Bo){return Uo+(ze.viewItems[Bo].minimumSize-ho[Bo])},0),tn=Ho.reduce(function(Uo,Bo){return Uo+(ze.viewItems[Bo].viewMaximumSize-ho[Bo])},0),un=Fo.length===0?Number.POSITIVE_INFINITY:Fo.reduce(function(Uo,Bo){return Uo+(ho[Bo]-ze.viewItems[Bo].minimumSize)},0),Vo=Fo.length===0?Number.NEGATIVE_INFINITY:Fo.reduce(function(Uo,Bo){return Uo+(ho[Bo]-ze.viewItems[Bo].viewMaximumSize)},0),Cn=Math.max(Io,Vo),pn=Math.min(un,tn),rn=ze.findFirstSnapIndex(Ho),on=ze.findFirstSnapIndex(Fo);if(typeof rn=="number"){var jo=ze.viewItems[rn],dn=Math.floor(jo.viewMinimumSize/2);Eo={index:rn,limitDelta:jo.visible?Cn-dn:Cn+dn,size:jo.size}}if(typeof on=="number"){var jo=ze.viewItems[on],dn=Math.floor(jo.viewMinimumSize/2);Wo={index:on,limitDelta:jo.visible?pn+dn:pn-dn,size:jo.size}}}ze.sashDragState={start:to,current:to,index:dt,sizes:ho,minDelta:wo,maxDelta:Oo,alt:fo,snapBefore:Eo,snapAfter:Wo,disposable:Dt}};Qt(G,oe)},Ye.prototype.onSashChange=function(Ve){var ze=Ve.current,me=this.sashDragState,G=me.index,oe=me.start,Y=me.sizes,ie=me.alt,je=me.minDelta,dt=me.maxDelta,Dt=me.snapBefore,Qt=me.snapAfter;this.sashDragState.current=ze;var to=ze-oe,fo=this.resize(G,to,Y,void 0,void 0,je,dt,Dt,Qt);if(ie){var ho=G===this.sashItems.length-1,wo=this.viewItems.map(function(Ho){return Ho.size}),Oo=ho?G:G+1,Ro=this.viewItems[Oo],jo=Ro.size-Ro.maximumSize,Eo=Ro.size-Ro.minimumSize,Wo=ho?G-1:G+1;this.resize(Wo,-fo,wo,void 0,void 0,jo,Eo)}this.distributeEmptySpace(),this.layoutViews()},Ye.prototype.onSashEnd=function(Ve){this._onDidSashChange.fire(Ve),this.sashDragState.disposable.dispose(),this.saveProportions();for(var ze=0,me=this.viewItems;ze<me.length;ze++){var G=me[ze];G.enabled=!0}},Ye.prototype.onViewChange=function(Ve,ze){var me=this.viewItems.indexOf(Ve);if(me<0||me>=this.viewItems.length)return;ze=typeof ze=="number"?ze:Ve.size,ze=Object(Te.a)(ze,Ve.minimumSize,Ve.maximumSize),this.inverseAltBehavior&&me>0?(this.resize(me-1,Math.floor((Ve.size-ze)/2)),this.distributeEmptySpace(),this.layoutViews()):(Ve.size=ze,this.relayout([me],void 0))},Ye.prototype.resizeView=function(Ve,ze){var me=this;if(this.state!==Le.Idle)throw new Error("Cant modify splitview");if(this.state=Le.Busy,Ve<0||Ve>=this.viewItems.length)return;var G=Object(Ce.u)(this.viewItems.length).filter(function(je){return je!==Ve}),oe=z(G.filter(function(je){return me.viewItems[je].priority===1}),[Ve]),Y=G.filter(function(je){return me.viewItems[je].priority===2}),ie=this.viewItems[Ve];ze=Math.round(ze),ze=Object(Te.a)(ze,ie.minimumSize,Math.min(ie.maximumSize,this.size)),ie.size=ze,this.relayout(oe,Y),this.state=Le.Idle},Ye.prototype.distributeViewSizes=function(){for(var Ve=this,ze=[],me=0,G=0,oe=this.viewItems;G<oe.length;G++){var Y=oe[G];Y.maximumSize-Y.minimumSize>0&&(ze.push(Y),me+=Y.size)}for(var ie=Math.floor(me/ze.length),je=0,dt=ze;je<dt.length;je++){var Y=dt[je];Y.size=Object(Te.a)(ie,Y.minimumSize,Y.maximumSize)}var Dt=Object(Ce.u)(this.viewItems.length),Qt=Dt.filter(function(fo){return Ve.viewItems[fo].priority===1}),to=Dt.filter(function(fo){return Ve.viewItems[fo].priority===2});this.relayout(Qt,to)},Ye.prototype.getViewSize=function(Ve){return Ve<0||Ve>=this.viewItems.length?-1:this.viewItems[Ve].size},Ye.prototype.doAddView=function(Ve,ze,me,G){var oe=this;if(me===void 0&&(me=this.viewItems.length),this.state!==Le.Idle)throw new Error("Cant modify splitview");this.state=Le.Busy;var Y=b.a(".split-view-view");me===this.viewItems.length?this.viewContainer.appendChild(Y):this.viewContainer.insertBefore(Y,this.viewContainer.children.item(me));var ie=Ve.onDidChange(function(Vo){return oe.onViewChange(Qt,Vo)}),je=Object(J.h)(function(){return oe.viewContainer.removeChild(Y)}),dt=Object(J.e)(ie,je),Dt;typeof ze=="number"?Dt=ze:ze.type==="split"?Dt=this.getViewSize(ze.index)/2:ze.type==="invisible"?Dt={cachedVisibleSize:ze.cachedVisibleSize}:Dt=Ve.minimumSize;var Qt=this.orientation===0?new ye(Y,Ve,Dt,dt):new Re(Y,Ve,Dt,dt);if(this.viewItems.splice(me,0,Qt),this.viewItems.length>1){var to=this.orientation===0?1:0,fo=this.orientation===0?{getHorizontalSashTop:function(Vo){return oe.getSashPosition(Vo)}}:{getVerticalSashLeft:function(Vo){return oe.getSashPosition(Vo)}},ho=new fe.a(this.sashContainer,fo,{orientation:to,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),wo=this.orientation===0?function(Vo){return{sash:ho,start:Vo.startY,current:Vo.currentY,alt:Vo.altKey}}:function(Vo){return{sash:ho,start:Vo.startX,current:Vo.currentX,alt:Vo.altKey}},Oo=m.b.map(ho.onDidStart,wo),Ro=Oo(this.onSashStart,this),jo=m.b.map(ho.onDidChange,wo),Eo=jo(this.onSashChange,this),Wo=m.b.map(ho.onDidEnd,function(){return Object(Ce.k)(oe.sashItems,function(Vo){return Vo.sash===ho})}),Ho=Wo(this.onSashEnd,this),Fo=ho.onDidReset(function(){var Vo=Object(Ce.k)(oe.sashItems,function(dn){return dn.sash===ho}),Cn=Object(Ce.u)(Vo,-1),pn=Object(Ce.u)(Vo+1,oe.viewItems.length),rn=oe.findFirstSnapIndex(Cn),on=oe.findFirstSnapIndex(pn);if(typeof rn=="number"&&!oe.viewItems[rn].visible)return;if(typeof on=="number"&&!oe.viewItems[on].visible)return;oe._onDidSashReset.fire(Vo)}),Io=Object(J.e)(Ro,Eo,Ho,Fo,ho),tn={sash:ho,disposable:Io};this.sashItems.splice(me-1,0,tn)}Y.appendChild(Ve.element);var un;typeof ze!="number"&&ze.type==="split"&&(un=[ze.index]),G||this.relayout([me],un),this.state=Le.Idle,!G&&typeof ze!="number"&&ze.type==="distribute"&&this.distributeViewSizes()},Ye.prototype.relayout=function(Ve,ze){var me=this.viewItems.reduce(function(G,oe){return G+oe.size},0);this.resize(this.viewItems.length-1,this.size-me,void 0,Ve,ze),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},Ye.prototype.resize=function(Ve,ze,me,G,oe,Y,ie,je,dt){var Dt=this;if(me===void 0&&(me=this.viewItems.map(function(be){return be.size})),Y===void 0&&(Y=Number.NEGATIVE_INFINITY),ie===void 0&&(ie=Number.POSITIVE_INFINITY),Ve<0||Ve>=this.viewItems.length)return 0;var Qt=Object(Ce.u)(Ve,-1),to=Object(Ce.u)(Ve+1,this.viewItems.length);if(oe)for(var fo=0,ho=oe;fo<ho.length;fo++){var wo=ho[fo];Object(Ce.t)(Qt,wo),Object(Ce.t)(to,wo)}if(G)for(var Oo=0,Ro=G;Oo<Ro.length;Oo++){var jo=Ro[Oo];Object(Ce.s)(Qt,jo),Object(Ce.s)(to,jo)}var Eo=Qt.map(function(be){return Dt.viewItems[be]}),Wo=Qt.map(function(be){return me[be]}),Ho=to.map(function(be){return Dt.viewItems[be]}),Fo=to.map(function(be){return me[be]}),Io=Qt.reduce(function(be,_){return be+(Dt.viewItems[_].minimumSize-me[_])},0),tn=Qt.reduce(function(be,_){return be+(Dt.viewItems[_].maximumSize-me[_])},0),un=to.length===0?Number.POSITIVE_INFINITY:to.reduce(function(be,_){return be+(me[_]-Dt.viewItems[_].minimumSize)},0),Vo=to.length===0?Number.NEGATIVE_INFINITY:to.reduce(function(be,_){return be+(me[_]-Dt.viewItems[_].maximumSize)},0),Cn=Math.max(Io,Vo,Y),pn=Math.min(un,tn,ie),rn=!1;if(je){var on=this.viewItems[je.index],dn=ze>=je.limitDelta;rn=dn!==on.visible,on.setVisible(dn,je.size)}if(!rn&&dt){var on=this.viewItems[dt.index],dn=ze<dt.limitDelta;rn=dn!==on.visible,on.setVisible(dn,dt.size)}if(rn)return this.resize(Ve,ze,me,G,oe,Y,ie);ze=Object(Te.a)(ze,Cn,pn);for(var Uo=0,Bo=ze;Uo<Eo.length;Uo++){var St=Eo[Uo],st=Object(Te.a)(Wo[Uo]+Bo,St.minimumSize,St.maximumSize),rt=st-Wo[Uo];Bo-=rt,St.size=st}for(var Uo=0,Lt=ze;Uo<Ho.length;Uo++){var St=Ho[Uo],st=Object(Te.a)(Fo[Uo]-Lt,St.minimumSize,St.maximumSize),rt=st-Fo[Uo];Lt+=rt,St.size=st}return ze},Ye.prototype.distributeEmptySpace=function(Ve){for(var ze=this,me=this.viewItems.reduce(function(Ro,jo){return Ro+jo.size},0),G=this.size-me,oe=Object(Ce.u)(this.viewItems.length-1,-1),Y=oe.filter(function(Ro){return ze.viewItems[Ro].priority===1}),ie=oe.filter(function(Ro){return ze.viewItems[Ro].priority===2}),je=0,dt=ie;je<dt.length;je++){var Dt=dt[je];Object(Ce.t)(oe,Dt)}for(var Qt=0,to=Y;Qt<to.length;Qt++){var Dt=to[Qt];Object(Ce.s)(oe,Dt)}typeof Ve=="number"&&Object(Ce.s)(oe,Ve);for(var fo=0;G!==0&&fo<oe.length;fo++){var ho=this.viewItems[oe[fo]],wo=Object(Te.a)(ho.size+G,ho.minimumSize,ho.maximumSize),Oo=wo-ho.size;G-=Oo,ho.size=wo}},Ye.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce(function(oe,Y){return oe+Y.size},0);for(var Ve=0,ze=0,me=this.viewItems;ze<me.length;ze++){var G=me[ze];G.layout(Ve,this.layoutContext),Ve+=G.size}this.sashItems.forEach(function(oe){return oe.sash.layout()}),this.updateSashEnablement()},Ye.prototype.updateSashEnablement=function(){var Ve=!1,ze=this.viewItems.map(function(Eo){return Ve=Eo.size-Eo.minimumSize>0||Ve});Ve=!1;var me=this.viewItems.map(function(Eo){return Ve=Eo.maximumSize-Eo.size>0||Ve}),G=z(this.viewItems).reverse();Ve=!1;var oe=G.map(function(Eo){return Ve=Eo.size-Eo.minimumSize>0||Ve}).reverse();Ve=!1;for(var Y=G.map(function(Eo){return Ve=Eo.maximumSize-Eo.size>0||Ve}).reverse(),ie=0,je=0;je<this.sashItems.length;je++){var dt=this.sashItems[je].sash,Dt=this.viewItems[je];ie+=Dt.size;var Qt=!(ze[je]&&Y[je+1]),to=!(me[je]&&oe[je+1]);if(Qt&&to){var fo=Object(Ce.u)(je,-1),ho=Object(Ce.u)(je+1,this.viewItems.length),wo=this.findFirstSnapIndex(fo),Oo=this.findFirstSnapIndex(ho),Ro=typeof wo=="number"&&!this.viewItems[wo].visible,jo=typeof Oo=="number"&&!this.viewItems[Oo].visible;Ro&&oe[je]&&(ie>0||this.startSnappingEnabled)?dt.state=1:jo&&ze[je]&&(ie<this.contentSize||this.endSnappingEnabled)?dt.state=2:dt.state=0}else Qt&&!to?dt.state=1:!Qt&&to?dt.state=2:dt.state=3}},Ye.prototype.getSashPosition=function(Ve){for(var ze=0,me=0;me<this.sashItems.length;me++)if(ze+=this.viewItems[me].size,this.sashItems[me].sash===Ve)return Math.min(ze,this.contentSize-2);return 0},Ye.prototype.findFirstSnapIndex=function(Ve){for(var ze=0,me=Ve;ze<me.length;ze++){var G=me[ze],oe=this.viewItems[G];if(!oe.visible)continue;if(oe.snap)return G}for(var Y=0,ie=Ve;Y<ie.length;Y++){var G=ie[Y],oe=this.viewItems[G];if(oe.visible&&oe.maximumSize-oe.minimumSize>0)return;if(!oe.visible&&oe.snap)return G}return},Ye.prototype.dispose=function(){$e.prototype.dispose.call(this),this.viewItems.forEach(function(Ve){return Ve.dispose()}),this.viewItems=[],this.sashItems.forEach(function(Ve){return Ve.disposable.dispose()}),this.sashItems=[]},Ye}(J.a),nt=function(){var $e=function(Ye,Ve){return $e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,me){ze.__proto__=me}||function(ze,me){for(var G in me)me.hasOwnProperty(G)&&(ze[G]=me[G])},$e(Ye,Ve)};return function(Ye,Ve){$e(Ye,Ve);function ze(){this.constructor=Ye}Ye.prototype=Ve===null?Object.create(Ve):(ze.prototype=Ve.prototype,new ze)}}(),vt=function($e,Ye,Ve,ze){var me=arguments.length,G=me<3?Ye:ze===null?ze=Object.getOwnPropertyDescriptor(Ye,Ve):ze,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate($e,Ye,Ve,ze);else for(var Y=$e.length-1;Y>=0;Y--)(oe=$e[Y])&&(G=(me<3?oe(G):me>3?oe(Ye,Ve,G):oe(Ye,Ve))||G);return me>3&&G&&Object.defineProperty(Ye,Ve,G),G},Rt=function($e,Ye){return function(Ve,ze){Ye(Ve,ze,$e)}},Ot=function($e,Ye,Ve,ze){function me(G){return G instanceof Ve?G:new Ve(function(oe){oe(G)})}return new(Ve||(Ve=Promise))(function(G,oe){function Y(dt){try{je(ze.next(dt))}catch(Dt){oe(Dt)}}function ie(dt){try{je(ze.throw(dt))}catch(Dt){oe(Dt)}}function je(dt){dt.done?G(dt.value):me(dt.value).then(Y,ie)}je((ze=ze.apply($e,Ye||[])).next())})},Kt=function($e,Ye){var Ve={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},ze,me,G,oe;return oe={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Y(je){return function(dt){return ie([je,dt])}}function ie(je){if(ze)throw new TypeError("Generator is already executing.");for(;Ve;)try{if(ze=1,me&&(G=je[0]&2?me.return:je[0]?me.throw||((G=me.return)&&G.call(me),0):me.next)&&!(G=G.call(me,je[1])).done)return G;(me=0,G)&&(je=[je[0]&2,G.value]);switch(je[0]){case 0:case 1:G=je;break;case 4:return Ve.label++,{value:je[1],done:!1};case 5:Ve.label++,me=je[1],je=[0];continue;case 7:je=Ve.ops.pop(),Ve.trys.pop();continue;default:if(!(G=Ve.trys,G=G.length>0&&G[G.length-1])&&(je[0]===6||je[0]===2)){Ve=0;continue}if(je[0]===3&&(!G||je[1]>G[0]&&je[1]<G[3])){Ve.label=je[1];break}if(je[0]===6&&Ve.label<G[1]){Ve.label=G[1],G=je;break}if(G&&Ve.label<G[2]){Ve.label=G[2],Ve.ops.push(je);break}G[2]&&Ve.ops.pop(),Ve.trys.pop();continue}je=Ye.call($e,Ve)}catch(dt){je=[6,dt],me=0}finally{ze=G=0}if(je[0]&5)throw je[1];return{value:je[0]?je[1]:void 0,done:!0}}},ao=function(){function $e(Ye,Ve){var ze=this;this._editor=Ye,this._model=Ve,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new J.b,this._callOnModelChange=new J.b,this._callOnDispose.add(this._editor.onDidChangeModel(function(){return ze._onModelChanged()})),this._onModelChanged()}return $e.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},$e.prototype._onModelChanged=function(){this._callOnModelChange.clear();var Ye=this._editor.getModel();if(Ye)for(var Ve=0,ze=this._model.groups;Ve<ze.length;Ve++){var me=ze[Ve];if(Object(w.e)(me.uri,Ye.uri)){this._addDecorations(me);return}}},$e.prototype._addDecorations=function(Ye){var Ve=this;if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(function(je){return Ve._onDecorationChanged()}));for(var ze=[],me=[],G=0,oe=Ye.children.length;G<oe;G++){var Y=Ye.children[G];if(this._decorationIgnoreSet.has(Y.id))continue;ze.push({range:Y.range,options:$e.DecorationOptions}),me.push(G)}for(var ie=this._editor.deltaDecorations([],ze),G=0;G<ie.length;G++)this._decorations.set(ie[G],Ye.children[me[G]])},$e.prototype._onDecorationChanged=function(){var Ye=this,Ve=[],ze=this._editor.getModel();if(!ze)return;this._decorations.forEach(function(oe,Y){var ie=ze.getDecorationRange(Y);if(!ie)return;var je=!1;if(p.a.equalsRange(ie,oe.range))return;if(p.a.spansMultipleLines(ie))je=!0;else{var dt=oe.range.endColumn-oe.range.startColumn,Dt=ie.endColumn-ie.startColumn;dt!==Dt&&(je=!0)}je?(Ye._decorationIgnoreSet.add(oe.id),Ve.push(Y)):oe.range=ie});for(var me=0,G=Ve.length;me<G;me++)this._decorations.delete(Ve[me]);this._editor.deltaDecorations(Ve,[])},$e.prototype.removeDecorations=function(){var Ye=[];this._decorations.forEach(function(Ve,ze){Ye.push(ze)}),this._editor.deltaDecorations(Ye,[]),this._decorations.clear()},$e.DecorationOptions=d.a.register({stickiness:1,className:"reference-decoration"}),$e}(),lo=function(){function $e(){this.ratio=.7,this.heightInLines=18}return $e.fromJSON=function(Ye){var Ve,ze;try{var me=JSON.parse(Ye);Ve=me.ratio,ze=me.heightInLines}catch(G){}return{ratio:Ve||.7,heightInLines:ze||18}},$e}(),so=function($e){nt(Ye,$e);function Ye(Ve,ze,me,G,oe,Y,ie,je){var dt=$e.call(this,Ve,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return dt._defaultTreeKeyboardSupport=ze,dt.layoutData=me,dt._textModelResolverService=oe,dt._instantiationService=Y,dt._peekViewService=ie,dt._uriLabel=je,dt._disposeOnNewModel=new J.b,dt._callOnDispose=new J.b,dt._onDidSelectReference=new m.a,dt.onDidSelectReference=dt._onDidSelectReference.event,dt._dim={height:0,width:0},dt._applyTheme(G.getTheme()),dt._callOnDispose.add(G.onThemeChange(dt._applyTheme.bind(dt))),dt._peekViewService.addExclusiveWidget(Ve,dt),dt.create(),dt}return Ye.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(J.f)(this._preview),Object(J.f)(this._previewNotAvailableMessage),Object(J.f)(this._tree),Object(J.f)(this._previewModelReference),this._splitView.dispose(),$e.prototype.dispose.call(this)},Ye.prototype._applyTheme=function(Ve){var ze=Ve.getColor(de.e)||O.a.transparent;this.style({arrowColor:ze,frameColor:ze,headerBackgroundColor:Ve.getColor(de.p)||O.a.transparent,primaryHeadingColor:Ve.getColor(de.q),secondaryHeadingColor:Ve.getColor(de.r)})},Ye.prototype.show=function(Ve){this.editor.revealRangeInCenterIfOutsideViewport(Ve,0),$e.prototype.show.call(this,Ve,this.layoutData.heightInLines||18)},Ye.prototype.focusOnReferenceTree=function(){this._tree.domFocus()},Ye.prototype.focusOnPreviewEditor=function(){this._preview.focus()},Ye.prototype.isPreviewEditorFocused=function(){return this._preview.hasTextFocus()},Ye.prototype._onTitleClick=function(Ve){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:Ve.ctrlKey||Ve.metaKey||Ve.altKey?"side":"open",source:"title"})},Ye.prototype._fillBody=function(Ve){var ze=this;this.setCssClass("reference-zone-widget"),this._messageContainer=b.q(Ve,b.a("div.messages")),b.J(this._messageContainer),this._splitView=new Je(Ve,{orientation:1}),this._previewContainer=b.q(Ve,b.a("div.preview.inline"));var me={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(v.a,this._previewContainer,me,this.editor),b.J(this._previewContainer),this._previewNotAvailableMessage=d.b.createFromString(T.a("missingPreviewMessage","no preview available")),this._treeContainer=b.q(Ve,b.a("div.ref-tree.inline"));var G={ariaLabel:T.a("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new ve,keyboardNavigationLabelProvider:this._instantiationService.createInstance(re),identityProvider:new ee,overrideStyles:{listBackground:de.j}};this._tree=this._instantiationService.createInstance(Ne.c,"ReferencesWidget",this._treeContainer,new Fe,[this._instantiationService.createInstance(q),this._instantiationService.createInstance(Z)],this._instantiationService.createInstance(Ke),G),this._splitView.addView({onDidChange:m.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(Y){ze._preview.layout({height:ze._dim.height,width:Y})}},Ue.Distribute),this._splitView.addView({onDidChange:m.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(Y){ze._treeContainer.style.height=ze._dim.height+"px",ze._treeContainer.style.width=Y+"px",ze._tree.layout(ze._dim.height,Y)}},Ue.Distribute),this._disposables.add(this._splitView.onDidSashChange(function(){ze._dim.width&&(ze.layoutData.ratio=ze._splitView.getViewSize(0)/ze._dim.width)},void 0));var oe=function(Y,ie){Y instanceof j.b&&(ie==="show"&&ze._revealReference(Y,!1),ze._onDidSelectReference.fire({element:Y,kind:ie,source:"tree"}))};this._tree.onDidChangeFocus(function(Y){oe(Y.elements[0],"show")}),this._tree.onDidOpen(function(Y){Y.browserEvent instanceof MouseEvent&&(Y.browserEvent.ctrlKey||Y.browserEvent.metaKey||Y.browserEvent.altKey)?oe(Y.elements[0],"side"):Y.browserEvent instanceof KeyboardEvent||Y.browserEvent instanceof MouseEvent&&Y.browserEvent.detail===2||Y.browserEvent.tapCount===2?oe(Y.elements[0],"goto"):oe(Y.elements[0],"show")}),b.J(this._treeContainer)},Ye.prototype._onWidth=function(Ve){this._dim&&this._doLayoutBody(this._dim.height,Ve)},Ye.prototype._doLayoutBody=function(Ve,ze){$e.prototype._doLayoutBody.call(this,Ve,ze),this._dim={height:Ve,width:ze},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(ze),this._splitView.resizeView(0,ze*this.layoutData.ratio)},Ye.prototype.setSelection=function(Ve){var ze=this;return this._revealReference(Ve,!0).then(function(){if(!ze._model)return;ze._tree.setSelection([Ve]),ze._tree.setFocus([Ve])})},Ye.prototype.setModel=function(Ve){return this._disposeOnNewModel.clear(),this._model=Ve,this._model?this._onNewModel():Promise.resolve()},Ye.prototype._onNewModel=function(){var Ve=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=T.a("noResults","No results"),b.X(this._messageContainer),Promise.resolve(void 0)):(b.J(this._messageContainer),this._decorationsManager=new ao(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(function(ze){return Ve._tree.rerender(ze)})),this._disposeOnNewModel.add(this._preview.onMouseDown(function(ze){var me=ze.event,G=ze.target;if(me.detail!==2)return;var oe=Ve._getFocusedReference();if(!oe)return;Ve._onDidSelectReference.fire({element:{uri:oe.uri,range:G.range},kind:me.ctrlKey||me.metaKey||me.altKey?"side":"open",source:"editor"})})),b.f(this.container,"results-loaded"),b.X(this._treeContainer),b.X(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)},Ye.prototype._getFocusedReference=function(){var Ve=this._tree.getFocus()[0];return Ve instanceof j.b?Ve:Ve instanceof j.a&&Ve.children.length>0?Ve.children[0]:void 0},Ye.prototype._revealReference=function(Ve,ze){return Ot(this,void 0,void 0,function(){var me,G,oe,Y,ie;return Kt(this,function(je){switch(je.label){case 0:return this._revealedReference===Ve?[2]:(this._revealedReference=Ve,Ve.uri.scheme!==C.b.inMemory?this.setTitle(Object(w.c)(Ve.uri),this._uriLabel.getUriLabel(Object(w.d)(Ve.uri))):this.setTitle(T.a("peekView.alternateTitle","References")),me=this._textModelResolverService.createModelReference(Ve.uri),this._tree.getInput()===Ve.parent?(this._tree.reveal(Ve),[3,3]):[3,1]);case 1:return ze&&this._tree.reveal(Ve.parent),[4,this._tree.expand(Ve.parent)];case 2:je.sent(),this._tree.reveal(Ve),je.label=3;case 3:return[4,me];case 4:return G=je.sent(),this._model?(Object(J.f)(this._previewModelReference),oe=G.object,oe?(Y=this._preview.getModel()===oe.textEditorModel?0:1,ie=p.a.lift(Ve.range).collapseToStart(),this._previewModelReference=G,this._preview.setModel(oe.textEditorModel),this._preview.setSelection(ie),this._preview.revealRangeInCenter(ie,Y)):(this._preview.setModel(this._previewNotAvailableMessage),G.dispose()),[2]):(G.dispose(),[2])}})})},Ye=vt([Rt(3,Q.c),Rt(4,c.a),Rt(5,H.a),Rt(6,de.a),Rt(7,x.a)],Ye),Ye}(de.c);Object(Q.e)(function($e,Ye){var Ve=$e.getColor(de.m);Ve&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+Ve+"; }");var ze=$e.getColor(de.h);ze&&Ye.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+ze+"; }");var me=$e.getColor(de.i);me&&Ye.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+me+"; box-sizing: border-box; }");var G=$e.getColor(Xe.b);G&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+G+"; box-sizing: border-box; }");var oe=$e.getColor(de.j);oe&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+oe+"; }");var Y=$e.getColor(de.l);Y&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+Y+"; }");var ie=$e.getColor(de.k);ie&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+ie+"; }");var je=$e.getColor(de.n);je&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+je+"; }");var dt=$e.getColor(de.o);dt&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+dt+" !important; }");var Dt=$e.getColor(de.f);Dt&&Ye.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {"+(" background-color: "+Dt+";")+"}");var Qt=$e.getColor(de.g);Qt&&Ye.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+Qt+";")+"}")});var jt=e("cGHE"),pt=e("sM1p"),gt=e("X+cX"),Tt=e("nrhi"),it=e("/kV6"),et=e("nnTU"),ut=function($e,Ye,Ve,ze){var me=arguments.length,G=me<3?Ye:ze===null?ze=Object.getOwnPropertyDescriptor(Ye,Ve):ze,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate($e,Ye,Ve,ze);else for(var Y=$e.length-1;Y>=0;Y--)(oe=$e[Y])&&(G=(me<3?oe(G):me>3?oe(Ye,Ve,G):oe(Ye,Ve))||G);return me>3&&G&&Object.defineProperty(Ye,Ve,G),G},Ct=function($e,Ye){return function(Ve,ze){Ye(Ve,ze,$e)}},ht=function($e,Ye,Ve,ze){function me(G){return G instanceof Ve?G:new Ve(function(oe){oe(G)})}return new(Ve||(Ve=Promise))(function(G,oe){function Y(dt){try{je(ze.next(dt))}catch(Dt){oe(Dt)}}function ie(dt){try{je(ze.throw(dt))}catch(Dt){oe(Dt)}}function je(dt){dt.done?G(dt.value):me(dt.value).then(Y,ie)}je((ze=ze.apply($e,Ye||[])).next())})},Et=function($e,Ye){var Ve={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},ze,me,G,oe;return oe={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Y(je){return function(dt){return ie([je,dt])}}function ie(je){if(ze)throw new TypeError("Generator is already executing.");for(;Ve;)try{if(ze=1,me&&(G=je[0]&2?me.return:je[0]?me.throw||((G=me.return)&&G.call(me),0):me.next)&&!(G=G.call(me,je[1])).done)return G;(me=0,G)&&(je=[je[0]&2,G.value]);switch(je[0]){case 0:case 1:G=je;break;case 4:return Ve.label++,{value:je[1],done:!1};case 5:Ve.label++,me=je[1],je=[0];continue;case 7:je=Ve.ops.pop(),Ve.trys.pop();continue;default:if(!(G=Ve.trys,G=G.length>0&&G[G.length-1])&&(je[0]===6||je[0]===2)){Ve=0;continue}if(je[0]===3&&(!G||je[1]>G[0]&&je[1]<G[3])){Ve.label=je[1];break}if(je[0]===6&&Ve.label<G[1]){Ve.label=G[1],G=je;break}if(G&&Ve.label<G[2]){Ve.label=G[2],Ve.ops.push(je);break}G[2]&&Ve.ops.pop(),Ve.trys.pop();continue}je=Ye.call($e,Ve)}catch(dt){je=[6,dt],me=0}finally{ze=G=0}if(je[0]&5)throw je[1];return{value:je[0]?je[1]:void 0,done:!0}}},Yt=new K.d("referenceSearchVisible",!1),Nt=function(){function $e(Ye,Ve,ze,me,G,oe,Y,ie){this._defaultTreeKeyboardSupport=Ye,this._editor=Ve,this._editorService=me,this._notificationService=G,this._instantiationService=oe,this._storageService=Y,this._configurationService=ie,this._disposables=new J.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Yt.bindTo(ze)}return $e.get=function(Ye){return Ye.getContribution($e.ID)},$e.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(J.f)(this._widget),Object(J.f)(this._model),this._widget=void 0,this._model=void 0},$e.prototype.toggleWidget=function(Ye,Ve,ze){var me=this,G;if(this._widget&&(G=this._widget.position),this.closeWidget(),!!G&&Ye.containsPosition(G))return;this._peekMode=ze,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(function(){me.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(function(){me._ignoreModelChangeEvent||me.closeWidget()}));var oe="peekViewLayout",Y=lo.fromJSON(this._storageService.get(oe,0,"{}"));this._widget=this._instantiationService.createInstance(so,this._editor,this._defaultTreeKeyboardSupport,Y),this._widget.setTitle(T.a("labelLoading","Loading...")),this._widget.show(Ye),this._disposables.add(this._widget.onDidClose(function(){Ve.cancel(),me._widget&&(me._storageService.store(oe,JSON.stringify(me._widget.layoutData),0),me._widget=void 0),me.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(function(je){var dt=je.element,Dt=je.kind;if(!dt)return;switch(Dt){case"open":(je.source!=="editor"||!me._configurationService.getValue("editor.stablePeek"))&&me.openReference(dt,!1);break;case"side":me.openReference(dt,!0);break;case"goto":ze?me._gotoReference(dt):me.openReference(dt,!1);break}}));var ie=++this._requestIdPool;Ve.then(function(je){return ie!==me._requestIdPool||!me._widget?void 0:(me._model&&me._model.dispose(),me._model=je,me._widget.setModel(me._model).then(function(){if(me._widget&&me._model&&me._editor.hasModel()){me._model.isEmpty?me._widget.setMetaTitle(""):me._widget.setMetaTitle(T.a("metaTitle.N","{0} ({1})",me._model.title,me._model.references.length));var dt=me._editor.getModel().uri,Dt=new jt.a(Ye.startLineNumber,Ye.startColumn),Qt=me._model.nearestReference(dt,Dt);if(Qt)return me._widget.setSelection(Qt).then(function(){me._widget&&me._editor.getOption(65)==="editor"&&me._widget.focusOnPreviewEditor()})}return}))},function(je){me._notificationService.error(je)})},$e.prototype.changeFocusBetweenPreviewAndReferences=function(){if(!this._widget)return;this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor()},$e.prototype.goToNextOrPreviousReference=function(Ye){return ht(this,void 0,void 0,function(){var Ve,ze,me,G,oe;return Et(this,function(Y){switch(Y.label){case 0:return!this._editor.hasModel()||!this._model||!this._widget?[2]:(Ve=this._widget.position,Ve?(ze=this._model.nearestReference(this._editor.getModel().uri,Ve),ze?(me=this._model.nextOrPreviousReference(ze,Ye),G=this._editor.hasTextFocus(),oe=this._widget.isPreviewEditorFocused(),[4,this._widget.setSelection(me)]):[2]):[2]);case 1:return Y.sent(),[4,this._gotoReference(me)];case 2:return Y.sent(),G?this._editor.focus():this._widget&&oe&&this._widget.focusOnPreviewEditor(),[2]}})})},$e.prototype.closeWidget=function(Ye){Ye===void 0&&(Ye=!0),this._referenceSearchVisible.reset(),this._disposables.clear(),Object(J.f)(this._widget),Object(J.f)(this._model),this._widget=void 0,this._model=void 0,Ye&&this._editor.focus(),this._requestIdPool+=1},$e.prototype._gotoReference=function(Ye){var Ve=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var ze=p.a.lift(Ye.range).collapseToStart();return this._editorService.openCodeEditor({resource:Ye.uri,options:{selection:ze}},this._editor).then(function(me){var G;if(Ve._ignoreModelChangeEvent=!1,!me||!Ve._widget){Ve.closeWidget();return}if(Ve._editor===me)Ve._widget.show(ze),Ve._widget.focusOnReferenceTree();else{var oe=$e.get(me),Y=Ve._model.clone();Ve.closeWidget(),me.focus(),oe.toggleWidget(ze,Object(gt.f)(function(ie){return Promise.resolve(Y)}),(G=Ve._peekMode)!==null&&G!==void 0?G:!1)}},function(me){Ve._ignoreModelChangeEvent=!1,Object(pe.e)(me)})},$e.prototype.openReference=function(Ye,Ve){Ve||this.closeWidget();var ze=Ye.uri,me=Ye.range;this._editorService.openCodeEditor({resource:ze,options:{selection:me}},this._editor,Ve)},$e.ID="editor.contrib.referencesController",$e=ut([Ct(2,K.c),Ct(3,I.a),Ct(4,pt.a),Ct(5,H.a),Ct(6,U.a),Ct(7,D.a)],$e),$e}();function bt($e,Ye){var Ve=Object(de.d)($e);if(!Ve)return;var ze=Nt.get(Ve);ze&&Ye(ze)}Tt.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(it.a)(2048|41,60),when:K.a.or(Yt,de.b.inPeekEditor),handler:function($e){bt($e,function(Ye){Ye.changeFocusBetweenPreviewAndReferences()})}}),Tt.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:K.a.or(Yt,de.b.inPeekEditor),handler:function($e){bt($e,function(Ye){Ye.goToNextOrPreviousReference(!0)})}}),Tt.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1024|62,secondary:[1024|70],when:K.a.or(Yt,de.b.inPeekEditor),handler:function($e){bt($e,function(Ye){Ye.goToNextOrPreviousReference(!1)})}}),et.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),et.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),et.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),et.a.registerCommand("closeReferenceSearch",function($e){return bt($e,function(Ye){return Ye.closeWidget()})}),Tt.a.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1024|9],when:K.a.and(de.b.inPeekEditor,K.a.not("config.editor.stablePeek"))}),Tt.a.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1024|9],when:K.a.and(Yt,K.a.not("config.editor.stablePeek"))}),Tt.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2048|3,mac:{primary:256|3},when:K.a.and(Yt,Ne.d),handler:function($e){var Ye,Ve=$e.get(Ne.a),ze=(Ye=Ve.lastFocusedList)===null||Ye===void 0?void 0:Ye.getFocus();Array.isArray(ze)&&ze[0]instanceof j.b&&bt($e,function(me){return me.openReference(ze[0],!0)})}}),et.a.registerCommand("openReference",function($e){var Ye,Ve=$e.get(Ne.a),ze=(Ye=Ve.lastFocusedList)===null||Ye===void 0?void 0:Ye.getFocus();Array.isArray(ze)&&ze[0]instanceof j.b&&bt($e,function(me){return me.openReference(ze[0],!1)})})},QaAZ:function(Mt,F,e){},QiAa:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return e.e(329).then(e.bind(null,"j6Xs"))}})},QuOb:function(Mt,F,e){"use strict";e.d(F,"a",function(){return H});var T=e("MI8n"),pe=e("pmY6"),J=function(){var O=function(m,C){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,v){w.__proto__=v}||function(w,v){for(var p in v)v.hasOwnProperty(p)&&(w[p]=v[p])},O(m,C)};return function(m,C){O(m,C);function w(){this.constructor=m}m.prototype=C===null?Object.create(C):(w.prototype=C.prototype,new w)}}(),I=function(){function O(m,C,w,v,p,d){m=m|0,C=C|0,w=w|0,v=v|0,p=p|0,d=d|0,m<0&&(m=0),w+m>C&&(w=C-m),w<0&&(w=0),v<0&&(v=0),d+v>p&&(d=p-v),d<0&&(d=0),this.width=m,this.scrollWidth=C,this.scrollLeft=w,this.height=v,this.scrollHeight=p,this.scrollTop=d}return O.prototype.equals=function(m){return this.width===m.width&&this.scrollWidth===m.scrollWidth&&this.scrollLeft===m.scrollLeft&&this.height===m.height&&this.scrollHeight===m.scrollHeight&&this.scrollTop===m.scrollTop},O.prototype.withScrollDimensions=function(m){return new O(typeof m.width!="undefined"?m.width:this.width,typeof m.scrollWidth!="undefined"?m.scrollWidth:this.scrollWidth,this.scrollLeft,typeof m.height!="undefined"?m.height:this.height,typeof m.scrollHeight!="undefined"?m.scrollHeight:this.scrollHeight,this.scrollTop)},O.prototype.withScrollPosition=function(m){return new O(this.width,this.scrollWidth,typeof m.scrollLeft!="undefined"?m.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof m.scrollTop!="undefined"?m.scrollTop:this.scrollTop)},O.prototype.createScrollEvent=function(m){var C=this.width!==m.width,w=this.scrollWidth!==m.scrollWidth,v=this.scrollLeft!==m.scrollLeft,p=this.height!==m.height,d=this.scrollHeight!==m.scrollHeight,c=this.scrollTop!==m.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:C,scrollWidthChanged:w,scrollLeftChanged:v,heightChanged:p,scrollHeightChanged:d,scrollTopChanged:c}},O}(),H=function(O){J(m,O);function m(C,w){var v=O.call(this)||this;return v._onScroll=v._register(new T.a),v.onScroll=v._onScroll.event,v._smoothScrollDuration=C,v._scheduleAtNextAnimationFrame=w,v._state=new I(0,0,0,0,0,0),v._smoothScrolling=null,v}return m.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),O.prototype.dispose.call(this)},m.prototype.setSmoothScrollDuration=function(C){this._smoothScrollDuration=C},m.prototype.validateScrollPosition=function(C){return this._state.withScrollPosition(C)},m.prototype.getScrollDimensions=function(){return this._state},m.prototype.setScrollDimensions=function(C){var w=this._state.withScrollDimensions(C);this._setState(w),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},m.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},m.prototype.getCurrentScrollPosition=function(){return this._state},m.prototype.setScrollPositionNow=function(C){var w=this._state.withScrollPosition(C);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(w)},m.prototype.setScrollPositionSmooth=function(C){var w=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(C);if(this._smoothScrolling){C={scrollLeft:typeof C.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:C.scrollLeft,scrollTop:typeof C.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:C.scrollTop};var v=this._state.withScrollPosition(C);if(this._smoothScrolling.to.scrollLeft===v.scrollLeft&&this._smoothScrolling.to.scrollTop===v.scrollTop)return;var p=this._smoothScrolling.combine(this._state,v,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=p}else{var v=this._state.withScrollPosition(C);this._smoothScrolling=j.start(this._state,v,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!w._smoothScrolling)return;w._smoothScrolling.animationFrameDisposable=null,w._performSmoothScrolling()})},m.prototype._performSmoothScrolling=function(){var C=this;if(!this._smoothScrolling)return;var w=this._smoothScrolling.tick(),v=this._state.withScrollPosition(w);if(this._setState(v),w.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!C._smoothScrolling)return;C._smoothScrolling.animationFrameDisposable=null,C._performSmoothScrolling()})},m.prototype._setState=function(C){var w=this._state;if(w.equals(C))return;this._state=C,this._onScroll.fire(this._state.createScrollEvent(w))},m}(pe.a),K=function(){function O(m,C,w){this.scrollLeft=m,this.scrollTop=C,this.isDone=w}return O}();function D(O,m){var C=m-O;return function(w){return O+C*b(w)}}function U(O,m,C){return function(w){return w<C?O(w/C):m((w-C)/(1-C))}}var j=function(){function O(m,C,w,v){this.from=m,this.to=C,this.duration=v,this._startTime=w,this.animationFrameDisposable=null,this._initAnimations()}return O.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},O.prototype._initAnimation=function(m,C,w){var v=Math.abs(m-C);if(v>2.5*w){var p=void 0,d=void 0;return m<C?(p=m+.75*w,d=C-.75*w):(p=m-.75*w,d=C+.75*w),U(D(m,p),D(d,C),.33)}return D(m,C)},O.prototype.dispose=function(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},O.prototype.acceptScrollDimensions=function(m){this.to=m.withScrollPosition(this.to),this._initAnimations()},O.prototype.tick=function(){return this._tick(Date.now())},O.prototype._tick=function(m){var C=(m-this._startTime)/this.duration;if(C<1){var w=this.scrollLeft(C),v=this.scrollTop(C);return new K(w,v,!1)}return new K(this.to.scrollLeft,this.to.scrollTop,!0)},O.prototype.combine=function(m,C,w){return O.start(m,C,w)},O.start=function(m,C,w){w=w+10;var v=Date.now()-10;return new O(m,C,v,w)},O}();function h(O){return Math.pow(O,3)}function b(O){return 1-h(1-O)}},QvA3:function(Mt,F,e){},R3nR:function(Mt,F,e){"use strict";e.d(F,"b",function(){return J}),e.d(F,"a",function(){return I});var T=e("Cg/j"),pe=e("T8No"),J=Object(T.c)("accessibilityService"),I=new pe.d("accessibilityModeEnabled",!1)},R8sh:function(Mt,F,e){"use strict";e.d(F,"a",function(){return J});var T=e("Cg/j"),pe="label",J=Object(T.c)(pe)},RMfO:function(Mt,F,e){},Rpxm:function(Mt,F,e){"use strict";e.d(F,"a",function(){return v}),e.d(F,"b",function(){return p}),e.d(F,"c",function(){return E});var T=e("3/fG"),pe=e("746U"),J=e("xONI"),I=e("WqXY"),H=e("7lZ/"),K=e("EffR"),D=e("q/I2"),U=e("qj0h"),j=e("i04g"),h=K.a,b=function(){function L(R,P,x){this.os=P,this.options=x,this.domNode=K.q(R,h(".monaco-keybinding")),this.didEverRender=!1,R.appendChild(this.domNode)}return L.prototype.set=function(R,P){if(this.didEverRender&&this.keybinding===R&&L.areSame(this.matches,P))return;this.keybinding=R,this.matches=P,this.render()},L.prototype.render=function(){if(K.t(this.domNode),this.keybinding){var R=this.keybinding.getParts(),P=R[0],x=R[1];P&&this.renderPart(this.domNode,P,this.matches?this.matches.firstPart:null),x&&(K.q(this.domNode,h("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,x,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0},L.prototype.renderPart=function(R,P,x){var Q=j.b.modifierLabels[this.os];P.ctrlKey&&this.renderKey(R,Q.ctrlKey,Boolean(x==null?void 0:x.ctrlKey),Q.separator),P.shiftKey&&this.renderKey(R,Q.shiftKey,Boolean(x==null?void 0:x.shiftKey),Q.separator),P.altKey&&this.renderKey(R,Q.altKey,Boolean(x==null?void 0:x.altKey),Q.separator),P.metaKey&&this.renderKey(R,Q.metaKey,Boolean(x==null?void 0:x.metaKey),Q.separator);var V=P.keyLabel;V&&this.renderKey(R,V,Boolean(x==null?void 0:x.keyCode),"")},L.prototype.renderKey=function(R,P,x,Q){K.q(R,h("span.monaco-keybinding-key"+(x?".highlight":""),void 0,P)),Q&&K.q(R,h("span.monaco-keybinding-key-separator",void 0,Q))},L.prototype.renderUnbound=function(R){K.q(R,h("span.monaco-keybinding-key",void 0,Object(T.a)("unbound","Unbound")))},L.areSame=function(R,P){return R===P||!R&&!P?!0:!!R&&!!P&&Object(U.e)(R.firstPart,P.firstPart)&&Object(U.e)(R.chordPart,P.chordPart)},L}(),O=e("MNsG"),m=e("6OMU"),C=function(){var L=function(R,P){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,Q){x.__proto__=Q}||function(x,Q){for(var V in Q)Q.hasOwnProperty(V)&&(x[V]=Q[V])},L(R,P)};return function(R,P){L(R,P);function x(){this.constructor=R}R.prototype=P===null?Object.create(P):(x.prototype=P.prototype,new x)}}(),w=0,v=function(){function L(R){R===void 0&&(R=[]),this.id=(w++).toString(),this.labelHighlights=R,this.descriptionHighlights=[]}return L.prototype.getId=function(){return this.id},L.prototype.getLabel=function(){return},L.prototype.getLabelOptions=function(){return},L.prototype.getAriaLabel=function(){return Object(m.d)([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},L.prototype.getDetail=function(){return},L.prototype.getIcon=function(){return},L.prototype.getDescription=function(){return},L.prototype.getTooltip=function(){return},L.prototype.getDescriptionTooltip=function(){return},L.prototype.getKeybinding=function(){return},L.prototype.isHidden=function(){return!!this.hidden},L.prototype.setHighlights=function(R,P,x){this.labelHighlights=R,this.descriptionHighlights=P,this.detailHighlights=x},L.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},L.prototype.run=function(R,P){return!1},L}(),p=function(L){C(R,L);function R(P,x,Q){var V=L.call(this)||this;return V.entry=P,V.groupLabel=x,V.withBorder=Q,V}return R.prototype.getGroupLabel=function(){return this.groupLabel},R.prototype.setGroupLabel=function(P){this.groupLabel=P},R.prototype.showBorder=function(){return!!this.withBorder},R.prototype.setShowBorder=function(P){this.withBorder=P},R.prototype.getLabel=function(){return this.entry?this.entry.getLabel():L.prototype.getLabel.call(this)},R.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():L.prototype.getLabelOptions.call(this)},R.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():L.prototype.getAriaLabel.call(this)},R.prototype.getDetail=function(){return this.entry?this.entry.getDetail():L.prototype.getDetail.call(this)},R.prototype.getIcon=function(){return this.entry?this.entry.getIcon():L.prototype.getIcon.call(this)},R.prototype.getDescription=function(){return this.entry?this.entry.getDescription():L.prototype.getDescription.call(this)},R.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():L.prototype.getHighlights.call(this)},R.prototype.isHidden=function(){return this.entry?this.entry.isHidden():L.prototype.isHidden.call(this)},R.prototype.setHighlights=function(P,x,Q){this.entry?this.entry.setHighlights(P,x,Q):L.prototype.setHighlights.call(this,P,x,Q)},R.prototype.run=function(P,x){return this.entry?this.entry.run(P,x):L.prototype.run.call(this,P,x)},R}(v),d=function(){function L(){}return L.prototype.hasActions=function(R,P){return!1},L.prototype.getActions=function(R,P){return null},L}(),c="quickOpenEntry",u="quickOpenEntryGroup",f=function(){function L(R,P){R===void 0&&(R=new d),this.actionProvider=R,this.actionRunner=P}return L.prototype.getHeight=function(R){return R.getDetail()?44:22},L.prototype.getTemplateId=function(R){return R instanceof p?u:c},L.prototype.renderTemplate=function(R,P,x){var Q=document.createElement("div");K.f(Q,"sub-content"),P.appendChild(Q);var V=K.a(".quick-open-row"),W=K.a(".quick-open-row"),B=K.a(".quick-open-entry",void 0,V,W);Q.appendChild(B);var ae=document.createElement("span");V.appendChild(ae);var we=new J.a(V,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0}),Me=document.createElement("span");V.appendChild(Me),K.f(Me,"quick-open-entry-keybinding");var Pe=new b(Me,O.a),Be=document.createElement("div");W.appendChild(Be),K.f(Be,"quick-open-entry-meta");var Ke=new H.a(Be,!0),Fe;R===u&&(Fe=document.createElement("div"),K.f(Fe,"results-group"),P.appendChild(Fe)),K.f(P,"actions");var re=document.createElement("div");K.f(re,"primary-action-bar"),P.appendChild(re);var ee=new I.a(re,{actionRunner:this.actionRunner});return{container:P,entry:B,icon:ae,label:we,detail:Ke,keybinding:Pe,group:Fe,actionBar:ee}},L.prototype.renderElement=function(R,P,x,Q){this.actionProvider.hasActions(null,R)?K.f(x.container,"has-actions"):K.P(x.container,"has-actions"),x.actionBar.context=R;var V=this.actionProvider.getActions(null,R);if(x.actionBar.isEmpty()&&V&&V.length>0?x.actionBar.push(V,{icon:!0,label:!1}):!x.actionBar.isEmpty()&&(!V||V.length===0)&&x.actionBar.clear(),R instanceof p&&R.getGroupLabel()?K.f(x.container,"has-group-label"):K.P(x.container,"has-group-label"),R instanceof p){var W=R,B=x;W.showBorder()?(K.f(B.container,"results-group-separator"),Q.pickerGroupBorder&&(B.container.style.borderTopColor=Q.pickerGroupBorder.toString())):(K.P(B.container,"results-group-separator"),B.container.style.borderTopColor="");var ae=W.getGroupLabel()||"";B.group&&(B.group.textContent=ae,Q.pickerGroupForeground&&(B.group.style.color=Q.pickerGroupForeground.toString()))}if(R instanceof v){var we=R.getHighlights(),Me=we[0],Pe=we[1],Be=we[2],Ke=R.getIcon()?"quick-open-entry-icon "+R.getIcon():"";x.icon.className=Ke;var Fe=R.getLabelOptions()||Object.create(null);Fe.matches=Me||[],Fe.title=R.getTooltip(),Fe.descriptionTitle=R.getDescriptionTooltip()||R.getDescription(),Fe.descriptionMatches=Pe||[],x.label.setLabel(R.getLabel()||"",R.getDescription(),Fe),x.detail.set(R.getDetail(),Be),x.keybinding.set(R.getKeybinding())}},L.prototype.disposeTemplate=function(R,P){P.actionBar.dispose(),P.actionBar=null,P.container=null,P.entry=null,P.keybinding=null,P.detail=null,P.group=null,P.icon=null,P.label.dispose(),P.label=null},L}(),E=function(){function L(R,P){R===void 0&&(R=[]),P===void 0&&(P=new d),this._entries=R,this._dataSource=this,this._renderer=new f(P),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(L.prototype,"entries",{get:function(){return this._entries},set:function(R){this._entries=R},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),L.prototype.getId=function(R){return R.getId()},L.prototype.getLabel=function(R){return pe.o(R.getLabel())},L.prototype.getAriaLabel=function(R){var P=R.getAriaLabel();return P?T.a("quickOpenAriaLabelEntry","{0}, picker",R.getAriaLabel()):T.a("quickOpenAriaLabel","picker")},L.prototype.isVisible=function(R){return!R.isHidden()},L.prototype.run=function(R,P,x){return R.run(P,x)},L}()},S3by:function(Mt,F,e){"use strict";var T=e("3/fG"),pe=e("N0LK"),J;(function(I){I[I.Ignore=0]="Ignore",I[I.Info=1]="Info",I[I.Warning=2]="Warning",I[I.Error=3]="Error"})(J||(J={})),function(I){var H="error",K="warning",D="warn",U="info",j=Object.create(null);j[I.Error]=T.a("sev.error","Error"),j[I.Warning]=T.a("sev.warning","Warning"),j[I.Info]=T.a("sev.info","Info");function h(b){return b?pe.n(H,b)?I.Error:pe.n(K,b)||pe.n(D,b)?I.Warning:pe.n(U,b)?I.Info:I.Ignore:I.Ignore}I.fromValue=h}(J||(J={})),F.a=J},SBYE:function(Mt,F,e){"use strict";e.r(F);var T=e("QaAZ"),pe=e.n(T),J=e("D3Dy"),I=e("EffR"),H=e("ZlPH"),K=e("Md8J"),D=e("OBOq"),U=e("G300"),j=e("pmY6"),h=e("MNsG"),b=e("N0LK"),O=e("bY76"),m=e("sswD"),C=e("wQH0"),w=e("k7pc"),v=e("T8No"),p=e("Cg/j"),d=e("bexQ"),c=e("W9cx"),u=e("MD5Z"),f=e("t9D7"),E=e("A9l+"),L=function(){var we=function(Me,Pe){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Be,Ke){Be.__proto__=Ke}||function(Be,Ke){for(var Fe in Ke)Ke.hasOwnProperty(Fe)&&(Be[Fe]=Ke[Fe])},we(Me,Pe)};return function(Me,Pe){we(Me,Pe);function Be(){this.constructor=Me}Me.prototype=Pe===null?Object.create(Pe):(Be.prototype=Pe.prototype,new Be)}}(),R=function(we,Me,Pe,Be){var Ke=arguments.length,Fe=Ke<3?Me:Be===null?Be=Object.getOwnPropertyDescriptor(Me,Pe):Be,re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Fe=Reflect.decorate(we,Me,Pe,Be);else for(var ee=we.length-1;ee>=0;ee--)(re=we[ee])&&(Fe=(Ke<3?re(Fe):Ke>3?re(Me,Pe,Fe):re(Me,Pe))||Fe);return Ke>3&&Fe&&Object.defineProperty(Me,Pe,Fe),Fe},P=function(we,Me){return function(Pe,Be){Me(Pe,Be,we)}},x=new v.d("accessibilityHelpWidgetVisible",!1),Q=function(we){L(Me,we);function Me(Pe,Be){var Ke=we.call(this)||this;return Ke._editor=Pe,Ke._widget=Ke._register(Be.createInstance(W,Ke._editor)),Ke}return Me.get=function(Pe){return Pe.getContribution(Me.ID)},Me.prototype.show=function(){this._widget.show()},Me.prototype.hide=function(){this._widget.hide()},Me.ID="editor.contrib.accessibilityHelpController",Me=R([P(1,p.a)],Me),Me}(j.a);function V(we,Me){return!we||we.length===0?E.a.noSelection:we.length===1?Me?b.r(E.a.singleSelectionRange,we[0].positionLineNumber,we[0].positionColumn,Me):b.r(E.a.singleSelection,we[0].positionLineNumber,we[0].positionColumn):Me?b.r(E.a.multiSelectionRange,we.length,Me):we.length>0?b.r(E.a.multiSelection,we.length):""}var W=function(we){L(Me,we);function Me(Pe,Be,Ke,Fe){var re=we.call(this)||this;return re._contextKeyService=Be,re._keybindingService=Ke,re._openerService=Fe,re._editor=Pe,re._isVisibleKey=x.bindTo(re._contextKeyService),re._domNode=Object(H.b)(document.createElement("div")),re._domNode.setClassName("accessibilityHelpWidget"),re._domNode.setDisplay("none"),re._domNode.setAttribute("role","dialog"),re._domNode.setAttribute("aria-hidden","true"),re._contentDomNode=Object(H.b)(document.createElement("div")),re._contentDomNode.setAttribute("role","document"),re._domNode.appendChild(re._contentDomNode),re._isVisible=!1,re._register(re._editor.onDidLayoutChange(function(){re._isVisible&&re._layout()})),re._register(I.o(re._contentDomNode.domNode,"keydown",function(ee){if(!re._isVisible)return;if(ee.equals(2048|35)&&(Object(D.a)(E.a.emergencyConfOn),re._editor.updateOptions({accessibilitySupport:"on"}),I.t(re._contentDomNode.domNode),re._buildContent(),re._contentDomNode.domNode.focus(),ee.preventDefault(),ee.stopPropagation()),ee.equals(2048|38)){Object(D.a)(E.a.openingDocs);var ne=re._editor.getRawOptions().accessibilityHelpUrl;typeof ne=="undefined"&&(ne="https://go.microsoft.com/fwlink/?linkid=852450"),re._openerService.open(O.a.parse(ne)),ee.preventDefault(),ee.stopPropagation()}})),re.onblur(re._contentDomNode.domNode,function(){re.hide()}),re._editor.addOverlayWidget(re),re}return Me.prototype.dispose=function(){this._editor.removeOverlayWidget(this),we.prototype.dispose.call(this)},Me.prototype.getId=function(){return Me.ID},Me.prototype.getDomNode=function(){return this._domNode.domNode},Me.prototype.getPosition=function(){return{preference:null}},Me.prototype.show=function(){if(this._isVisible)return;this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus()},Me.prototype._descriptionForCommand=function(Pe,Be,Ke){var Fe=this._keybindingService.lookupKeybinding(Pe);return Fe?b.r(Be,Fe.getAriaLabel()):b.r(Ke,Pe)},Me.prototype._buildContent=function(){var Pe=this._editor.getOptions(),Be=this._editor.getSelections(),Ke=0;if(Be){var Fe=this._editor.getModel();Fe&&Be.forEach(function(q){Ke+=Fe.getValueLengthInRange(q)})}var re=V(Be,Ke);Pe.get(45)?Pe.get(68)?re+=E.a.readonlyDiffEditor:re+=E.a.editableDiffEditor:Pe.get(68)?re+=E.a.readonlyEditor:re+=E.a.editableEditor;var ee=h.e?E.a.changeConfigToOnMac:E.a.changeConfigToOnWinLinux;switch(Pe.get(2)){case 0:re+=`
- `+ee;break;case 2:re+=`
- `+E.a.auto_on;break;case 1:re+=`
- `+E.a.auto_off,re+=" "+ee;break}Pe.get(106)?re+=`
- `+this._descriptionForCommand(w.ToggleTabFocusModeAction.ID,E.a.tabFocusModeOnMsg,E.a.tabFocusModeOnMsgNoKb):re+=`
- `+this._descriptionForCommand(w.ToggleTabFocusModeAction.ID,E.a.tabFocusModeOffMsg,E.a.tabFocusModeOffMsgNoKb);var ne=h.e?E.a.openDocMac:E.a.openDocWinLinux;re+=`
- `+ne,re+=`
`+E.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(K.b)(re)),this._contentDomNode.domNode.setAttribute("aria-label",re)},Me.prototype.hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,I.t(this._contentDomNode.domNode),this._editor.focus()},Me.prototype._layout=function(){var Pe=this._editor.getLayoutInfo(),Be=Math.max(5,Math.min(Me.WIDTH,Pe.width-40)),Ke=Math.max(5,Math.min(Me.HEIGHT,Pe.height-40));this._domNode.setWidth(Be),this._domNode.setHeight(Ke);var Fe=Math.round((Pe.height-Ke)/2);this._domNode.setTop(Fe);var re=Math.round((Pe.width-Be)/2);this._domNode.setLeft(re)},Me.ID="editor.contrib.accessibilityHelpWidget",Me.WIDTH=500,Me.HEIGHT=300,Me=R([P(1,v.c),P(2,d.a),P(3,c.a)],Me),Me}(U.a),B=function(we){L(Me,we);function Me(){return we.call(this,{id:"editor.action.showAccessibilityHelp",label:E.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:C.a.focus,primary:J.i?2048|59:512|59,weight:100}})||this}return Me.prototype.run=function(Pe,Be){var Ke=Q.get(Be);Ke&&Ke.show()},Me}(m.b);Object(m.h)(Q.ID,Q),Object(m.f)(B);var ae=m.c.bindToContribution(Q.get);Object(m.g)(new ae({id:"closeAccessibilityHelp",precondition:x,handler:function(we){return we.hide()},kbOpts:{weight:100+100,kbExpr:C.a.focus,primary:9,secondary:[1024|9]}})),Object(f.e)(function(we,Me){var Pe=we.getColor(u.Q);Pe&&Me.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+Pe+"; }");var Be=we.getColor(u.S);Be&&Me.addRule(".monaco-editor .accessibilityHelpWidget { color: "+Be+"; }");var Ke=we.getColor(u.hc);Ke&&Me.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+Ke+"; }");var Fe=we.getColor(u.e);Fe&&Me.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+Fe+"; }")})},Sdnv:function(Mt,F,e){"use strict";e.d(F,"a",function(){return T});function T(pe,J,I){return Math.min(Math.max(pe,J),I)}},SvYn:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return e.e(301).then(e.bind(null,"Dsrv"))}})},TQUy:function(Mt,F,e){"use strict";e.d(F,"b",function(){return H}),e.d(F,"a",function(){return K});var T=e("N0LK"),pe=e("4bUh"),J=e("i/Ef"),I={getInitialState:function(){return J.c},tokenize2:function(U,j,h){return Object(J.e)(0,U,j,h)}};function H(U,j){return j===void 0&&(j=I),D(U,j||I)}function K(U,j,h,b,O,m,C){for(var w="<div>",v=b,p=0,d=0,c=j.getCount();d<c;d++){var u=j.getEndOffset(d);if(u<=b)continue;for(var f="";v<u&&v<O;v++){var E=U.charCodeAt(v);switch(E){case 9:var L=m-(v+p)%m;for(p+=L-1;L>0;)f+=C?"&#160;":" ",L--;break;case 60:f+="&lt;";break;case 62:f+="&gt;";break;case 38:f+="&amp;";break;case 0:f+="&#00;";break;case 65279:case 8232:f+="\uFFFD";break;case 13:f+="&#8203";break;case 32:f+=C?"&#160;":" ";break;default:f+=String.fromCharCode(E)}}if(w+='<span style="'+j.getInlineStyle(d,h)+'">'+f+"</span>",u>O||v>=O)break}return w+="</div>",w}function D(U,j){for(var h='<div class="monaco-tokenized-source">',b=U.split(/\r\n|\r|\n/),O=j.getInitialState(),m=0,C=b.length;m<C;m++){var w=b[m];m>0&&(h+="<br/>");var v=j.tokenize2(w,O,0);pe.a.convertToEndOffset(v.tokens,w.length);for(var p=new pe.a(v.tokens,w),d=p.inflate(),c=0,u=0,f=d.getCount();u<f;u++){var E=d.getClassName(u),L=d.getEndOffset(u);h+='<span class="'+E+'">'+T.o(w.substring(c,L))+"</span>",c=L}O=v.endState}return h+="</div>",h}},TT2d:function(Mt,F,e){},Tcc1:function(Mt,F,e){"use strict";e.d(F,"a",function(){return T}),e.d(F,"b",function(){return pe}),e.d(F,"c",function(){return J});var T=function(){function I(H,K,D){this.offset=H|0,this.type=K,this.language=D}return I.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},I}(),pe=function(){function I(H,K){this.tokens=H,this.endState=K}return I}(),J=function(){function I(H,K){this.tokens=H,this.endState=K}return I}()},UCkY:function(Mt,F,e){},URDS:function(Mt,F,e){(function(T){/*!
Copyright (c) 2014 Taylor Hakes
Copyright (c) 2014 Forbes Lindesay
*/(function(pe,J){J()})(this,function(){"use strict";function pe(C){var w=this.constructor;return this.then(function(v){return w.resolve(C()).then(function(){return v})},function(v){return w.resolve(C()).then(function(){return w.reject(v)})})}var J=setTimeout;function I(){}function H(C,w){return function(){C.apply(w,arguments)}}function K(C){if(!(this instanceof K))throw new TypeError("Promises must be constructed via new");if(typeof C!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],O(C,this)}function D(C,w){for(;C._state===3;)C=C._value;if(C._state===0){C._deferreds.push(w);return}C._handled=!0,K._immediateFn(function(){var v=C._state===1?w.onFulfilled:w.onRejected;if(v===null){(C._state===1?U:j)(w.promise,C._value);return}var p;try{p=v(C._value)}catch(d){j(w.promise,d);return}U(w.promise,p)})}function U(C,w){try{if(w===C)throw new TypeError("A promise cannot be resolved with itself.");if(w&&(typeof w=="object"||typeof w=="function")){var v=w.then;if(w instanceof K){C._state=3,C._value=w,h(C);return}else if(typeof v=="function"){O(H(v,w),C);return}}C._state=1,C._value=w,h(C)}catch(p){j(C,p)}}function j(C,w){C._state=2,C._value=w,h(C)}function h(C){C._state===2&&C._deferreds.length===0&&K._immediateFn(function(){C._handled||K._unhandledRejectionFn(C._value)});for(var w=0,v=C._deferreds.length;w<v;w++)D(C,C._deferreds[w]);C._deferreds=null}function b(C,w,v){this.onFulfilled=typeof C=="function"?C:null,this.onRejected=typeof w=="function"?w:null,this.promise=v}function O(C,w){var v=!1;try{C(function(p){if(v)return;v=!0,U(w,p)},function(p){if(v)return;v=!0,j(w,p)})}catch(p){if(v)return;v=!0,j(w,p)}}K.prototype.catch=function(C){return this.then(null,C)},K.prototype.then=function(C,w){var v=new this.constructor(I);return D(this,new b(C,w,v)),v},K.prototype.finally=pe,K.all=function(C){return new K(function(w,v){if(!C||typeof C.length=="undefined")throw new TypeError("Promise.all accepts an array");var p=Array.prototype.slice.call(C);if(p.length===0)return w([]);var d=p.length;function c(f,E){try{if(E&&(typeof E=="object"||typeof E=="function")){var L=E.then;if(typeof L=="function"){L.call(E,function(R){c(f,R)},v);return}}p[f]=E,--d===0&&w(p)}catch(R){v(R)}}for(var u=0;u<p.length;u++)c(u,p[u])})},K.resolve=function(C){return C&&typeof C=="object"&&C.constructor===K?C:new K(function(w){w(C)})},K.reject=function(C){return new K(function(w,v){v(C)})},K.race=function(C){return new K(function(w,v){for(var p=0,d=C.length;p<d;p++)C[p].then(w,v)})},K._immediateFn=typeof setImmediate=="function"&&function(C){setImmediate(C)}||function(C){J(C,0)},K._unhandledRejectionFn=function(w){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",w)};var m=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof T!="undefined")return T;throw new Error("unable to locate global object")}();"Promise"in m?m.Promise.prototype.finally||(m.Promise.prototype.finally=pe):m.Promise=K})}).call(this,e("IyRk"))},UsjR:function(Mt,F,e){},Uzvx:function(Mt,F,e){"use strict";e.d(F,"b",function(){return pe}),e.d(F,"a",function(){return J});var T=e("Cg/j"),pe=Object(T.c)("contextViewService"),J=Object(T.c)("contextMenuService")},VPJY:function(Mt,F,e){},Vhoy:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"b",function(){return I}),e.d(F,"c",function(){return K});var T=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function pe(D){return D.replace(T,function(U,j){return j?U:"\\"+U})}var J=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function I(D){return D.replace(J,function(U){return"\\"+U})}var H=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function K(D){return D.replace(H,function(U,j,h,b,O){return j?"$("+h+")":'<span class="codicon codicon-'+b+(O?" codicon-animation-"+O:"")+'"></span>'})}},Vtyv:function(Mt,F,e){},VvMK:function(Mt,F,e){},Vxe3:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("Cg/j"),pe=Object(T.c)("codeEditorService")},W9cx:function(Mt,F,e){"use strict";e.d(F,"a",function(){return D}),e.d(F,"b",function(){return U}),e.d(F,"c",function(){return j});var T=e("bY76"),pe=e("Cg/j"),J=e("pmY6"),I=e("N0LK"),H=function(h,b,O,m){function C(w){return w instanceof O?w:new O(function(v){v(w)})}return new(O||(O=Promise))(function(w,v){function p(u){try{c(m.next(u))}catch(f){v(f)}}function d(u){try{c(m.throw(u))}catch(f){v(f)}}function c(u){u.done?w(u.value):C(u.value).then(p,d)}c((m=m.apply(h,b||[])).next())})},K=function(h,b){var O={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},m,C,w,v;return v={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function p(c){return function(u){return d([c,u])}}function d(c){if(m)throw new TypeError("Generator is already executing.");for(;O;)try{if(m=1,C&&(w=c[0]&2?C.return:c[0]?C.throw||((w=C.return)&&w.call(C),0):C.next)&&!(w=w.call(C,c[1])).done)return w;(C=0,w)&&(c=[c[0]&2,w.value]);switch(c[0]){case 0:case 1:w=c;break;case 4:return O.label++,{value:c[1],done:!1};case 5:O.label++,C=c[1],c=[0];continue;case 7:c=O.ops.pop(),O.trys.pop();continue;default:if(!(w=O.trys,w=w.length>0&&w[w.length-1])&&(c[0]===6||c[0]===2)){O=0;continue}if(c[0]===3&&(!w||c[1]>w[0]&&c[1]<w[3])){O.label=c[1];break}if(c[0]===6&&O.label<w[1]){O.label=w[1],w=c;break}if(w&&O.label<w[2]){O.label=w[2],O.ops.push(c);break}w[2]&&O.ops.pop(),O.trys.pop();continue}c=b.call(h,O)}catch(u){c=[6,u],C=0}finally{m=w=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},D=Object(pe.c)("openerService"),U=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return J.a.None},registerValidator:function(){return J.a.None},registerExternalUriResolver:function(){return J.a.None},setExternalOpener:function(){},open:function(){return H(this,void 0,void 0,function(){return K(this,function(h){return[2,!1]})})},resolveExternalUri:function(h){return H(this,void 0,void 0,function(){return K(this,function(b){return[2,{resolved:h,dispose:function(){}}]})})}});function j(h,b){return T.a.isUri(h)?Object(I.n)(h.scheme,b):Object(I.O)(h,b+":")}},WBhO:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("Cg/j"),pe=Object(T.c)("modeService")},WQDh:function(Mt,F,e){"use strict";e.r(F),e.d(F,"SymbolEntry",function(){return Ke}),e.d(F,"QuickOutlineAction",function(){return Fe});var T=e("QvA3"),pe=e("k76M"),J=e("jqj9"),I=e("JQT/"),H=e("fpMC"),K=e("N0LK"),D=e("Rpxm"),U=e("sswD"),j=e("aokT"),h=e("wQH0"),b=e("twdY"),O=e("bY76"),m=e("G2kB"),C=e("t49l"),w=e("6OMU"),v=e("vl9R"),p=e("/cxE"),d=e("QDVR"),c=function(){var re=function(ee,ne){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,le){q.__proto__=le}||function(q,le){for(var Z in le)le.hasOwnProperty(Z)&&(q[Z]=le[Z])},re(ee,ne)};return function(ee,ne){re(ee,ne);function q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(q.prototype=ne.prototype,new q)}}(),u=function(){function re(){}return re.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},re.findId=function(ee,ne){var q;typeof ee=="string"?q=ne.id+"/"+ee:(q=ne.id+"/"+ee.name,ne.children[q]!==void 0&&(q=ne.id+"/"+ee.name+"_"+ee.range.startLineNumber+"_"+ee.range.startColumn));for(var le=q,Z=0;ne.children[le]!==void 0;Z++)le=q+"_"+Z;return le},re.empty=function(ee){for(var ne in ee.children)return!1;return!0},re}(),f=function(re){c(ee,re);function ee(ne,q,le){var Z=re.call(this)||this;return Z.id=ne,Z.parent=q,Z.symbol=le,Z.children=Object.create(null),Z}return ee}(u),E=function(re){c(ee,re);function ee(ne,q,le,Z){var ve=re.call(this)||this;return ve.id=ne,ve.parent=q,ve.provider=le,ve.providerIndex=Z,ve.children=Object.create(null),ve}return ee}(u),L=function(){function re(){this._n=1,this._val=0}return re.prototype.update=function(ee){return this._val=this._val+(ee-this._val)/this._n,this._n+=1,this},re}(),R=function(re){c(ee,re);function ee(ne){var q=re.call(this)||this;return q.textModel=ne,q.id="root",q.parent=void 0,q._groups=Object.create(null),q.children=Object.create(null),q.id="root",q.parent=void 0,q}return ee.create=function(ne,q){var le=this,Z=this._keys.for(ne,!0),ve=ee._requests.get(Z);if(!ve){var Ne=new I.b;ve={promiseCnt:0,source:Ne,promise:ee._create(ne,Ne.token),model:void 0},ee._requests.set(Z,ve);var Xe=Date.now();ve.promise.then(function(){var de=le._keys.for(ne,!1),ge=le._requestDurations.get(de);ge||(ge=new L,le._requestDurations.set(de,ge)),ge.update(Date.now()-Xe)})}return ve.model?Promise.resolve(ve.model):(ve.promiseCnt+=1,q.onCancellationRequested(function(){--ve.promiseCnt===0&&(ve.source.cancel(),ee._requests.delete(Z))}),new Promise(function(de,ge){ve.promise.then(function(Ee){ve.model=Ee,de(Ee)},function(Ee){ee._requests.delete(Z),ge(Ee)})}))},ee._create=function(ne,q){var le=new I.b(q),Z=new ee(ne),ve=b.m.ordered(ne),Ne=ve.map(function(de,ge){var Ee=u.findId("provider_"+ge,Z),Te=new E(Ee,Z,de,ge);return Promise.resolve(de.provideDocumentSymbols(Z.textModel,le.token)).then(function(Ce){for(var fe=0,$=Ce||[];fe<$.length;fe++){var S=$[fe];ee._makeOutlineElement(S,Te)}return Te},function(Ce){return Object(p.f)(Ce),Te}).then(function(Ce){u.empty(Ce)?Ce.remove():Z._groups[Ee]=Ce})}),Xe=b.m.onDidChange(function(){var de=b.m.ordered(ne);Object(w.g)(de,ve)||le.cancel()});return Promise.all(Ne).then(function(){return le.token.isCancellationRequested&&!q.isCancellationRequested?ee._create(ne,q):Z._compact()}).finally(function(){Xe.dispose()})},ee._makeOutlineElement=function(ne,q){var le=u.findId(ne,q),Z=new f(le,q,ne);if(ne.children)for(var ve=0,Ne=ne.children;ve<Ne.length;ve++){var Xe=Ne[ve];ee._makeOutlineElement(Xe,Z)}q.children[Z.id]=Z},ee.prototype._compact=function(){var ne=0;for(var q in this._groups){var le=this._groups[q];Object(v.b)(le.children)===void 0?delete this._groups[q]:ne+=1}if(ne!==1)this.children=this._groups;else{var le=Object(v.b)(this._groups);for(var q in le.children){var Z=le.children[q];Z.parent=this,this.children[Z.id]=Z}}return this},ee._requestDurations=new d.a(50,.7),ee._requests=new d.a(9,.75),ee._keys=new(function(){function ne(){this._counter=1,this._data=new WeakMap}return ne.prototype.for=function(q,le){return q.id+"/"+(le?q.getVersionId():"")+"/"+this._hash(b.m.all(q))},ne.prototype._hash=function(q){for(var le="",Z=0,ve=q;Z<ve.length;Z++){var Ne=ve[Z],Xe=this._data.get(Ne);typeof Xe=="undefined"&&(Xe=this._counter++,this._data.set(Ne,Xe)),le+=Xe}return le},ne}()),ee}(u),P=e("nnTU"),x=e("746U"),Q=function(re,ee,ne,q){function le(Z){return Z instanceof ne?Z:new ne(function(ve){ve(Z)})}return new(ne||(ne=Promise))(function(Z,ve){function Ne(ge){try{de(q.next(ge))}catch(Ee){ve(Ee)}}function Xe(ge){try{de(q.throw(ge))}catch(Ee){ve(Ee)}}function de(ge){ge.done?Z(ge.value):le(ge.value).then(Ne,Xe)}de((q=q.apply(re,ee||[])).next())})},V=function(re,ee){var ne={label:0,sent:function(){if(Z[0]&1)throw Z[1];return Z[1]},trys:[],ops:[]},q,le,Z,ve;return ve={next:Ne(0),throw:Ne(1),return:Ne(2)},typeof Symbol=="function"&&(ve[Symbol.iterator]=function(){return this}),ve;function Ne(de){return function(ge){return Xe([de,ge])}}function Xe(de){if(q)throw new TypeError("Generator is already executing.");for(;ne;)try{if(q=1,le&&(Z=de[0]&2?le.return:de[0]?le.throw||((Z=le.return)&&Z.call(le),0):le.next)&&!(Z=Z.call(le,de[1])).done)return Z;(le=0,Z)&&(de=[de[0]&2,Z.value]);switch(de[0]){case 0:case 1:Z=de;break;case 4:return ne.label++,{value:de[1],done:!1};case 5:ne.label++,le=de[1],de=[0];continue;case 7:de=ne.ops.pop(),ne.trys.pop();continue;default:if(!(Z=ne.trys,Z=Z.length>0&&Z[Z.length-1])&&(de[0]===6||de[0]===2)){ne=0;continue}if(de[0]===3&&(!Z||de[1]>Z[0]&&de[1]<Z[3])){ne.label=de[1];break}if(de[0]===6&&ne.label<Z[1]){ne.label=Z[1],Z=de;break}if(Z&&ne.label<Z[2]){ne.label=Z[2],ne.ops.push(de);break}Z[2]&&ne.ops.pop(),ne.trys.pop();continue}de=ee.call(re,ne)}catch(ge){de=[6,ge],le=0}finally{q=Z=0}if(de[0]&5)throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}};function W(re,ee,ne){return Q(this,void 0,void 0,function(){var q,le,Z,ve,Ne,Xe;return V(this,function(de){switch(de.label){case 0:return[4,R.create(re,ne)];case 1:for(q=de.sent(),le=[],Z=0,ve=Object(v.d)(q.children);Z<ve.length;Z++)Ne=ve[Z],Ne instanceof f?le.push(Ne.symbol):le.push.apply(le,Object(v.d)(Ne.children).map(function(ge){return ge.symbol}));return Xe=[],ne.isCancellationRequested?[2,Xe]:(ee?ae(Xe,le,""):Xe=le,[2,Xe.sort(B)])}})})}function B(re,ee){return j.a.compareRangesUsingStarts(re.range,ee.range)}function ae(re,ee,ne){for(var q=0,le=ee;q<le.length;q++){var Z=le[q];re.push({kind:Z.kind,tags:Z.tags,name:Z.name,detail:Z.detail,containerName:Z.containerName||ne,range:Z.range,selectionRange:Z.selectionRange,children:void 0}),Z.children&&ae(re,Z.children,Z.name)}}P.a.registerCommand("_executeDocumentSymbolProvider",function(re){for(var ee=[],ne=1;ne<arguments.length;ne++)ee[ne-1]=arguments[ne];return Q(this,void 0,void 0,function(){var q,le,Z;return V(this,function(ve){switch(ve.label){case 0:return q=ee[0],Object(x.a)(O.a.isUri(q)),le=re.get(m.a).getModel(q),le?[2,W(le,!1,I.a.None)]:[4,re.get(C.a).createModelReference(q)];case 1:Z=ve.sent(),ve.label=2;case 2:return ve.trys.push([2,,4,5]),[4,W(Z.object.textEditorModel,!1,I.a.None)];case 3:return[2,ve.sent()];case 4:return Z.dispose(),[7];case 5:return[2]}})})});var we=e("rzPn"),Me=e("A9l+"),Pe=function(){var re=function(ee,ne){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,le){q.__proto__=le}||function(q,le){for(var Z in le)le.hasOwnProperty(Z)&&(q[Z]=le[Z])},re(ee,ne)};return function(ee,ne){re(ee,ne);function q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(q.prototype=ne.prototype,new q)}}(),Be=":",Ke=function(re){Pe(ee,re);function ee(ne,q,le,Z,ve,Ne,Xe){var de=re.call(this)||this;return de.name=ne,de.type=q,de.description=le,de.range=Z,de.setHighlights(ve),de.editor=Ne,de.decorator=Xe,de}return ee.prototype.getLabel=function(){return this.name},ee.prototype.getAriaLabel=function(){return K.r(Me.e.entryAriaLabel,this.name)},ee.prototype.getIcon=function(){return this.type},ee.prototype.getDescription=function(){return this.description},ee.prototype.getType=function(){return this.type},ee.prototype.getRange=function(){return this.range},ee.prototype.run=function(ne,q){return ne===1?this.runOpen(q):this.runPreview()},ee.prototype.runOpen=function(ne){var q=this.toSelection();return this.editor.setSelection(q),this.editor.revealRangeInCenter(q,0),this.editor.focus(),!0},ee.prototype.runPreview=function(){var ne=this.toSelection();return this.editor.revealRangeInCenter(ne,0),this.decorator.decorateLine(this.range,this.editor),!1},ee.prototype.toSelection=function(){return new j.a(this.range.startLineNumber,this.range.startColumn||1,this.range.startLineNumber,this.range.startColumn||1)},ee}(D.b),Fe=function(re){Pe(ee,re);function ee(){return re.call(this,Me.e.quickOutlineActionInput,{id:"editor.action.quickOutline",label:Me.e.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:h.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:h.a.focus,primary:2048|1024|45,weight:100},contextMenuOpts:{group:"navigation",order:3}})||this}return ee.prototype.run=function(ne,q){var le=this;if(!q.hasModel())return;var Z=q.getModel();return b.m.has(Z)?W(Z,!0,I.a.None).then(function(ve){if(ve.length===0)return;le._run(q,ve)}):void 0},ee.prototype._run=function(ne,q){var le=this;this._show(this.getController(ne),{getModel:function(Z){return new D.c(le.toQuickOpenEntries(ne,q,Z))},getAutoFocus:function(Z){return Z.indexOf(Be)===0&&(Z=Z.substr(Be.length)),{autoFocusPrefixMatch:Z,autoFocusFirstEntry:!!Z}}})},ee.prototype.symbolEntry=function(ne,q,le,Z,ve,Ne,Xe){return new Ke(ne,q,le,j.a.lift(Z),ve,Ne,Xe)},ee.prototype.toQuickOpenEntries=function(ne,q,le){var Z=this.getController(ne),ve=[],Ne=le;le.indexOf(Be)===0&&(Ne=Ne.substr(Be.length));for(var Xe=0,de=q;Xe<de.length;Xe++){var ge=de[Xe],Ee=K.Q(ge.name),Te=Object(H.f)(Ne,Ee);if(Te){var Ce=void 0;ge.containerName&&(Ce=ge.containerName),ve.push(this.symbolEntry(Ee,b.z.toCssClassName(ge.kind),Ce,ge.range,Te,ne,Z))}}if(le&&(le.indexOf(Be)===0?ve=ve.sort(this.sortScoped.bind(this,le.toLowerCase())):ve=ve.sort(this.sortNormal.bind(this,le.toLowerCase()))),ve.length>0&&le.indexOf(Be)===0){for(var fe=null,$=null,S=0,z=0;z<ve.length;z++){var ce=ve[z];fe!==ce.getType()?($&&$.setGroupLabel(this.typeToLabel(fe||"",S)),fe=ce.getType(),$=ce,S=1,ce.setShowBorder(z>0)):S++}$&&$.setGroupLabel(this.typeToLabel(fe||"",S))}else ve.length>0&&ve[0].setGroupLabel(K.r(Me.e._symbols_,ve.length));return ve},ee.prototype.typeToLabel=function(ne,q){switch(ne){case"module":return K.r(Me.e._modules_,q);case"class":return K.r(Me.e._class_,q);case"interface":return K.r(Me.e._interface_,q);case"method":return K.r(Me.e._method_,q);case"function":return K.r(Me.e._function_,q);case"property":return K.r(Me.e._property_,q);case"variable":return K.r(Me.e._variable_,q);case"var":return K.r(Me.e._variable2_,q);case"constructor":return K.r(Me.e._constructor_,q);case"call":return K.r(Me.e._call_,q)}return ne},ee.prototype.sortNormal=function(ne,q,le){var Z=q.getLabel().toLowerCase(),ve=le.getLabel().toLowerCase(),Ne=Z.localeCompare(ve);if(Ne!==0)return Ne;var Xe=q.getRange(),de=le.getRange();return Xe.startLineNumber-de.startLineNumber},ee.prototype.sortScoped=function(ne,q,le){ne=ne.substr(Be.length);var Z=q.getType(),ve=le.getType(),Ne=Z.localeCompare(ve);if(Ne!==0)return Ne;if(ne){var Xe=q.getLabel().toLowerCase(),de=le.getLabel().toLowerCase(),ge=Xe.localeCompare(de);if(ge!==0)return ge}var Ee=q.getRange(),Te=le.getRange();return Ee.startLineNumber-Te.startLineNumber},ee}(we.a);Object(U.f)(Fe)},WqXY:function(Mt,F,e){"use strict";e.d(F,"c",function(){return w}),e.d(F,"d",function(){return v}),e.d(F,"b",function(){return p}),e.d(F,"a",function(){return c});var T=e("yEoX"),pe=e.n(T),J=e("MNsG"),I=e("3/fG"),H=e("pmY6"),K=e("8HAY"),D=e("EffR"),U=e("746U"),j=e("pg8w"),h=e("uDWl"),b=e("MI8n"),O=e("ZQ78"),m=e("D3Dy"),C=function(){var u=function(f,E){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,R){L.__proto__=R}||function(L,R){for(var P in R)R.hasOwnProperty(P)&&(L[P]=R[P])},u(f,E)};return function(f,E){u(f,E);function L(){this.constructor=f}f.prototype=E===null?Object.create(E):(L.prototype=E.prototype,new L)}}(),w=function(u){C(f,u);function f(E,L,R){var P=u.call(this)||this;return P.options=R,P._context=E||P,P._action=L,L instanceof K.a&&P._register(L.onDidChange(function(x){if(!P.element)return;P.handleActionChangeEvent(x)})),P}return f.prototype.handleActionChangeEvent=function(E){E.enabled!==void 0&&this.updateEnabled(),E.checked!==void 0&&this.updateChecked(),E.class!==void 0&&this.updateClass(),E.label!==void 0&&(this.updateLabel(),this.updateTooltip()),E.tooltip!==void 0&&this.updateTooltip()},Object.defineProperty(f.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new K.b)),this._actionRunner},set:function(E){this._actionRunner=E},enumerable:!0,configurable:!0}),f.prototype.getAction=function(){return this._action},f.prototype.isEnabled=function(){return this._action.enabled},f.prototype.setActionContext=function(E){this._context=E},f.prototype.render=function(E){var L=this,R=this.element=E;this._register(j.b.addTarget(E));var P=this.options&&this.options.draggable;P&&(E.draggable=!0,m.h&&this._register(D.j(E,D.d.DRAG_START,function(x){var Q;return(Q=x.dataTransfer)===null||Q===void 0?void 0:Q.setData(O.a.TEXT,L._action.label)}))),this._register(D.j(R,j.a.Tap,function(x){return L.onClick(x)})),this._register(D.j(R,D.d.MOUSE_DOWN,function(x){P||D.c.stop(x,!0),L._action.enabled&&x.button===0&&D.f(R,"active")})),this._register(D.j(R,D.d.CLICK,function(x){D.c.stop(x,!0),L.options&&L.options.isMenu?L.onClick(x):J.i(function(){return L.onClick(x)})})),this._register(D.j(R,D.d.DBLCLICK,function(x){D.c.stop(x,!0)})),[D.d.MOUSE_UP,D.d.MOUSE_OUT].forEach(function(x){L._register(D.j(R,x,function(Q){D.c.stop(Q),D.P(R,"active")}))})},f.prototype.onClick=function(E){D.c.stop(E,!0);var L;U.l(this._context)?L=E:(L=this._context,U.i(L)&&(L.event=E)),this.actionRunner.run(this._action,L)},f.prototype.focus=function(){this.element&&(this.element.focus(),D.f(this.element,"focused"))},f.prototype.blur=function(){this.element&&(this.element.blur(),D.P(this.element,"focused"))},f.prototype.updateEnabled=function(){},f.prototype.updateLabel=function(){},f.prototype.updateTooltip=function(){},f.prototype.updateClass=function(){},f.prototype.updateChecked=function(){},f.prototype.dispose=function(){this.element&&(D.R(this.element),this.element=void 0),u.prototype.dispose.call(this)},f}(H.a),v=function(u){C(f,u);function f(E){var L=u.call(this,f.ID,E,E?"separator text":"separator")||this;return L.checked=!1,L.enabled=!1,L}return f.ID="vs.actions.separator",f}(K.a),p=function(u){C(f,u);function f(E,L,R){R===void 0&&(R={});var P=u.call(this,E,L,R)||this;return P.options=R,P.options.icon=R.icon!==void 0?R.icon:!1,P.options.label=R.label!==void 0?R.label:!0,P.cssClass="",P}return f.prototype.render=function(E){u.prototype.render.call(this,E),this.element&&(this.label=D.q(this.element,D.a("a.action-label"))),this.label&&(this._action.id===v.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(D.q(this.element,D.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},f.prototype.focus=function(){u.prototype.focus.call(this),this.label&&this.label.focus()},f.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},f.prototype.updateTooltip=function(){var E=null;this.getAction().tooltip?E=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(E=this.getAction().label,this.options.keybinding&&(E=I.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",E,this.options.keybinding))),E&&this.label&&(this.label.title=E)},f.prototype.updateClass=function(){this.cssClass&&this.label&&D.Q(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(D.f(this.label,"codicon"),this.cssClass&&D.g(this.label,this.cssClass)),this.updateEnabled()):this.label&&D.P(this.label,"codicon")},f.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),D.P(this.label,"disabled"),this.label.tabIndex=0),this.element&&D.P(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),D.f(this.label,"disabled"),D.S(this.label)),this.element&&D.f(this.element,"disabled"))},f.prototype.updateChecked=function(){this.label&&(this.getAction().checked?D.f(this.label,"checked"):D.P(this.label,"checked"))},f}(w),d={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},c=function(u){C(f,u);function f(E,L){L===void 0&&(L=d);var R=u.call(this)||this;R._onDidBlur=R._register(new b.a),R.onDidBlur=R._onDidBlur.event,R._onDidCancel=R._register(new b.a),R.onDidCancel=R._onDidCancel.event,R._onDidRun=R._register(new b.a),R.onDidRun=R._onDidRun.event,R._onDidBeforeRun=R._register(new b.a),R.onDidBeforeRun=R._onDidBeforeRun.event,R.options=L,R._context=L.context,R.options.triggerKeys||(R.options.triggerKeys=d.triggerKeys),R.options.actionRunner?R._actionRunner=R.options.actionRunner:(R._actionRunner=new K.b,R._register(R._actionRunner)),R._register(R._actionRunner.onDidRun(function(Q){return R._onDidRun.fire(Q)})),R._register(R._actionRunner.onDidBeforeRun(function(Q){return R._onDidBeforeRun.fire(Q)})),R.viewItems=[],R.focusedItem=void 0,R.domNode=document.createElement("div"),R.domNode.className="monaco-action-bar",L.animated!==!1&&D.f(R.domNode,"animated");var P,x;switch(R.options.orientation){case 0:P=15,x=17;break;case 1:P=17,x=15,R.domNode.className+=" reverse";break;case 2:P=16,x=18,R.domNode.className+=" vertical";break;case 3:P=18,x=16,R.domNode.className+=" vertical reverse";break}return R._register(D.j(R.domNode,D.d.KEY_DOWN,function(Q){var V=new h.a(Q),W=!0;V.equals(P)?R.focusPrevious():V.equals(x)?R.focusNext():V.equals(9)?R.cancel():R.isTriggerKeyEvent(V)?R.options.triggerKeys&&R.options.triggerKeys.keyDown&&R.doTrigger(V):W=!1,W&&(V.preventDefault(),V.stopPropagation())})),R._register(D.j(R.domNode,D.d.KEY_UP,function(Q){var V=new h.a(Q);R.isTriggerKeyEvent(V)?(R.options.triggerKeys&&!R.options.triggerKeys.keyDown&&R.doTrigger(V),V.preventDefault(),V.stopPropagation()):(V.equals(2)||V.equals(1024|2))&&R.updateFocusedItem()})),R.focusTracker=R._register(D.Z(R.domNode)),R._register(R.focusTracker.onDidBlur(function(){(document.activeElement===R.domNode||!D.K(document.activeElement,R.domNode))&&(R._onDidBlur.fire(),R.focusedItem=void 0)})),R._register(R.focusTracker.onDidFocus(function(){return R.updateFocusedItem()})),R.actionsList=document.createElement("ul"),R.actionsList.className="actions-container",R.actionsList.setAttribute("role","toolbar"),R.options.ariaLabel&&R.actionsList.setAttribute("aria-label",R.options.ariaLabel),R.domNode.appendChild(R.actionsList),E.appendChild(R.domNode),R}return f.prototype.isTriggerKeyEvent=function(E){var L=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(R){L=L||E.equals(R)}),L},f.prototype.updateFocusedItem=function(){for(var E=0;E<this.actionsList.children.length;E++){var L=this.actionsList.children[E];if(D.K(document.activeElement,L)){this.focusedItem=E;break}}},Object.defineProperty(f.prototype,"context",{get:function(){return this._context},set:function(E){this._context=E,this.viewItems.forEach(function(L){return L.setActionContext(E)})},enumerable:!0,configurable:!0}),f.prototype.getContainer=function(){return this.domNode},f.prototype.push=function(E,L){var R=this;L===void 0&&(L={});var P=Array.isArray(E)?E:[E],x=U.h(L.index)?L.index:null;P.forEach(function(Q){var V=document.createElement("li");V.className="action-item",V.setAttribute("role","presentation"),R._register(D.j(V,D.d.CONTEXT_MENU,function(B){B.preventDefault(),B.stopPropagation()}));var W;R.options.actionViewItemProvider&&(W=R.options.actionViewItemProvider(Q)),W||(W=new p(R.context,Q,L)),W.actionRunner=R._actionRunner,W.setActionContext(R.context),W.render(V),x===null||x<0||x>=R.actionsList.children.length?(R.actionsList.appendChild(V),R.viewItems.push(W)):(R.actionsList.insertBefore(V,R.actionsList.children[x]),R.viewItems.splice(x,0,W),x++)})},f.prototype.clear=function(){this.viewItems=Object(H.f)(this.viewItems),D.t(this.actionsList)},f.prototype.isEmpty=function(){return this.viewItems.length===0},f.prototype.focus=function(E){var L=!1,R=void 0;E===void 0?L=!0:typeof E=="number"?R=E:typeof E=="boolean"&&(L=E),L&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(R!==void 0&&(this.focusedItem=R),this.updateFocus())},f.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var E=this.focusedItem,L;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,L=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!L.isEnabled());this.focusedItem===E&&!L.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},f.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var E=this.focusedItem,L;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),L=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!L.isEnabled());this.focusedItem===E&&!L.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},f.prototype.updateFocus=function(E,L){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:L});for(var R=0;R<this.viewItems.length;R++){var P=this.viewItems[R],x=P;R===this.focusedItem?U.g(x.isEnabled)&&(x.isEnabled()&&U.g(x.focus)?x.focus(E):this.actionsList.focus({preventScroll:L})):U.g(x.blur)&&x.blur()}},f.prototype.doTrigger=function(E){if(typeof this.focusedItem=="undefined")return;var L=this.viewItems[this.focusedItem];if(L instanceof w){var R=L._context===null||L._context===void 0?E:L._context;this.run(L._action,R)}},f.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},f.prototype.run=function(E,L){return this._actionRunner.run(E,L)},f.prototype.dispose=function(){Object(H.f)(this.viewItems),this.viewItems=[],D.R(this.getContainer()),u.prototype.dispose.call(this)},f}(H.a)},WwIK:function(Mt,F,e){"use strict";e.r(F),e.d(F,"TriggerParameterHintsAction",function(){return ve});var T=e("3/fG"),pe=e("pmY6"),J=e("Cg/j"),I=e("wQH0"),H=e("T8No"),K=e("sswD"),D=e("EffR"),U=e("4y0V"),j=e("OBOq"),h=e("GJhM"),b=e("MI8n"),O=e("yrU1"),m=e("WBhO"),C=e("3qCu"),w=e("X+cX"),v=e("/cxE"),p=e("twdY"),d=e("JQT/"),c=function(de,ge,Ee,Te){function Ce(fe){return fe instanceof Ee?fe:new Ee(function($){$(fe)})}return new(Ee||(Ee=Promise))(function(fe,$){function S(se){try{ce(Te.next(se))}catch(ye){$(ye)}}function z(se){try{ce(Te.throw(se))}catch(ye){$(ye)}}function ce(se){se.done?fe(se.value):Ce(se.value).then(S,z)}ce((Te=Te.apply(de,ge||[])).next())})},u=function(de,ge){var Ee={label:0,sent:function(){if(fe[0]&1)throw fe[1];return fe[1]},trys:[],ops:[]},Te,Ce,fe,$;return $={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function S(ce){return function(se){return z([ce,se])}}function z(ce){if(Te)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(Te=1,Ce&&(fe=ce[0]&2?Ce.return:ce[0]?Ce.throw||((fe=Ce.return)&&fe.call(Ce),0):Ce.next)&&!(fe=fe.call(Ce,ce[1])).done)return fe;(Ce=0,fe)&&(ce=[ce[0]&2,fe.value]);switch(ce[0]){case 0:case 1:fe=ce;break;case 4:return Ee.label++,{value:ce[1],done:!1};case 5:Ee.label++,Ce=ce[1],ce=[0];continue;case 7:ce=Ee.ops.pop(),Ee.trys.pop();continue;default:if(!(fe=Ee.trys,fe=fe.length>0&&fe[fe.length-1])&&(ce[0]===6||ce[0]===2)){Ee=0;continue}if(ce[0]===3&&(!fe||ce[1]>fe[0]&&ce[1]<fe[3])){Ee.label=ce[1];break}if(ce[0]===6&&Ee.label<fe[1]){Ee.label=fe[1],fe=ce;break}if(fe&&Ee.label<fe[2]){Ee.label=fe[2],Ee.ops.push(ce);break}fe[2]&&Ee.ops.pop(),Ee.trys.pop();continue}ce=ge.call(de,Ee)}catch(se){ce=[6,se],Ce=0}finally{Te=fe=0}if(ce[0]&5)throw ce[1];return{value:ce[0]?ce[1]:void 0,done:!0}}},f={Visible:new H.d("parameterHintsVisible",!1),MultipleSignatures:new H.d("parameterHintsMultipleSignatures",!1)};function E(de,ge,Ee,Te){var Ce=p.x.ordered(de);return Object(w.h)(Ce.map(function(fe){return function(){return Promise.resolve(fe.provideSignatureHelp(de,ge,Te,Ee)).catch(function($){return Object(v.f)($)})}}))}Object(K.e)("_executeSignatureHelpProvider",function(de,ge,Ee){return c(void 0,void 0,void 0,function(){var Te;return u(this,function(Ce){switch(Ce.label){case 0:return[4,E(de,ge,{triggerKind:p.y.Invoke,isRetrigger:!1,triggerCharacter:Ee.triggerCharacter},d.a.None)];case 1:return Te=Ce.sent(),Te?(setTimeout(function(){return Te.dispose()},0),[2,Te.value]):[2,void 0]}})})});var L=e("W9cx"),R=e("MD5Z"),P=e("t9D7"),x=e("MXAL"),Q=function(){var de=function(ge,Ee){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Te,Ce){Te.__proto__=Ce}||function(Te,Ce){for(var fe in Ce)Ce.hasOwnProperty(fe)&&(Te[fe]=Ce[fe])},de(ge,Ee)};return function(ge,Ee){de(ge,Ee);function Te(){this.constructor=ge}ge.prototype=Ee===null?Object.create(Ee):(Te.prototype=Ee.prototype,new Te)}}(),V=function(){return V=Object.assign||function(de){for(var ge,Ee=1,Te=arguments.length;Ee<Te;Ee++){ge=arguments[Ee];for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&(de[Ce]=ge[Ce])}return de},V.apply(this,arguments)},W=function(de,ge,Ee,Te){function Ce(fe){return fe instanceof Ee?fe:new Ee(function($){$(fe)})}return new(Ee||(Ee=Promise))(function(fe,$){function S(se){try{ce(Te.next(se))}catch(ye){$(ye)}}function z(se){try{ce(Te.throw(se))}catch(ye){$(ye)}}function ce(se){se.done?fe(se.value):Ce(se.value).then(S,z)}ce((Te=Te.apply(de,ge||[])).next())})},B=function(de,ge){var Ee={label:0,sent:function(){if(fe[0]&1)throw fe[1];return fe[1]},trys:[],ops:[]},Te,Ce,fe,$;return $={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function S(ce){return function(se){return z([ce,se])}}function z(ce){if(Te)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(Te=1,Ce&&(fe=ce[0]&2?Ce.return:ce[0]?Ce.throw||((fe=Ce.return)&&fe.call(Ce),0):Ce.next)&&!(fe=fe.call(Ce,ce[1])).done)return fe;(Ce=0,fe)&&(ce=[ce[0]&2,fe.value]);switch(ce[0]){case 0:case 1:fe=ce;break;case 4:return Ee.label++,{value:ce[1],done:!1};case 5:Ee.label++,Ce=ce[1],ce=[0];continue;case 7:ce=Ee.ops.pop(),Ee.trys.pop();continue;default:if(!(fe=Ee.trys,fe=fe.length>0&&fe[fe.length-1])&&(ce[0]===6||ce[0]===2)){Ee=0;continue}if(ce[0]===3&&(!fe||ce[1]>fe[0]&&ce[1]<fe[3])){Ee.label=ce[1];break}if(ce[0]===6&&Ee.label<fe[1]){Ee.label=fe[1],fe=ce;break}if(fe&&Ee.label<fe[2]){Ee.label=fe[2],Ee.ops.push(ce);break}fe[2]&&Ee.ops.pop(),Ee.trys.pop();continue}ce=ge.call(de,Ee)}catch(se){ce=[6,se],Ce=0}finally{Te=fe=0}if(ce[0]&5)throw ce[1];return{value:ce[0]?ce[1]:void 0,done:!0}}},ae;(function(de){de.Default={type:0};var ge=function(){function Te(Ce){this.request=Ce,this.type=2}return Te}();de.Pending=ge;var Ee=function(){function Te(Ce){this.hints=Ce,this.type=1}return Te}();de.Active=Ee})(ae||(ae={}));var we=function(de){Q(ge,de);function ge(Ee,Te){Te===void 0&&(Te=ge.DEFAULT_DELAY);var Ce=de.call(this)||this;return Ce._onChangedHints=Ce._register(new b.a),Ce.onChangedHints=Ce._onChangedHints.event,Ce.triggerOnType=!1,Ce._state=ae.Default,Ce._pendingTriggers=[],Ce._lastSignatureHelpResult=Ce._register(new pe.d),Ce.triggerChars=new x.b,Ce.retriggerChars=new x.b,Ce.triggerId=0,Ce.editor=Ee,Ce.throttledDelayer=new w.a(Te),Ce._register(Ce.editor.onDidChangeConfiguration(function(){return Ce.onEditorConfigurationChange()})),Ce._register(Ce.editor.onDidChangeModel(function(fe){return Ce.onModelChanged()})),Ce._register(Ce.editor.onDidChangeModelLanguage(function(fe){return Ce.onModelChanged()})),Ce._register(Ce.editor.onDidChangeCursorSelection(function(fe){return Ce.onCursorChange(fe)})),Ce._register(Ce.editor.onDidChangeModelContent(function(fe){return Ce.onModelContentChange()})),Ce._register(p.x.onDidChange(Ce.onModelChanged,Ce)),Ce._register(Ce.editor.onDidType(function(fe){return Ce.onDidType(fe)})),Ce.onEditorConfigurationChange(),Ce.onModelChanged(),Ce}return Object.defineProperty(ge.prototype,"state",{get:function(){return this._state},set:function(Ee){this._state.type===2&&this._state.request.cancel(),this._state=Ee},enumerable:!0,configurable:!0}),ge.prototype.cancel=function(Ee){Ee===void 0&&(Ee=!1),this.state=ae.Default,this.throttledDelayer.cancel(),Ee||this._onChangedHints.fire(void 0)},ge.prototype.trigger=function(Ee,Te){var Ce=this,fe=this.editor.getModel();if(!fe||!p.x.has(fe))return;var $=++this.triggerId;this._pendingTriggers.push(Ee),this.throttledDelayer.trigger(function(){return Ce.doTrigger($)},Te).catch(v.e)},ge.prototype.next=function(){if(this.state.type!==1)return;var Ee=this.state.hints.signatures.length,Te=this.state.hints.activeSignature,Ce=Te%Ee===Ee-1,fe=this.editor.getOption(64).cycle;if((Ee<2||Ce)&&!fe){this.cancel();return}this.updateActiveSignature(Ce&&fe?0:Te+1)},ge.prototype.previous=function(){if(this.state.type!==1)return;var Ee=this.state.hints.signatures.length,Te=this.state.hints.activeSignature,Ce=Te===0,fe=this.editor.getOption(64).cycle;if((Ee<2||Ce)&&!fe){this.cancel();return}this.updateActiveSignature(Ce&&fe?Ee-1:Te-1)},ge.prototype.updateActiveSignature=function(Ee){if(this.state.type!==1)return;this.state=new ae.Active(V(V({},this.state.hints),{activeSignature:Ee})),this._onChangedHints.fire(this.state.hints)},ge.prototype.doTrigger=function(Ee){return W(this,void 0,void 0,function(){var Te,Ce,fe,$,S,z,ce,se;return B(this,function(ye){switch(ye.label){case 0:if(Te=this.state.type===1||this.state.type===2,Ce=this.state.type===1?this.state.hints:void 0,this.cancel(!0),this._pendingTriggers.length===0)return[2,!1];if(fe=this._pendingTriggers.reduce(Me),this._pendingTriggers=[],$={triggerKind:fe.triggerKind,triggerCharacter:fe.triggerCharacter,isRetrigger:Te,activeSignatureHelp:Ce},!this.editor.hasModel())return[2,!1];S=this.editor.getModel(),z=this.editor.getPosition(),this.state=new ae.Pending(Object(w.f)(function(Re){return E(S,z,$,Re)})),ye.label=1;case 1:return ye.trys.push([1,3,,4]),[4,this.state.request];case 2:if(ce=ye.sent(),Ee!==this.triggerId)return ce==null||ce.dispose(),[2,!1];if(!ce||!ce.value.signatures||ce.value.signatures.length===0)return ce==null||ce.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),[2,!1];return this.state=new ae.Active(ce.value),this._lastSignatureHelpResult.value=ce,this._onChangedHints.fire(this.state.hints),[2,!0];return[3,4];case 3:return se=ye.sent(),Ee===this.triggerId&&(this.state=ae.Default),Object(v.e)(se),[2,!1];case 4:return[2]}})})},Object.defineProperty(ge.prototype,"isTriggered",{get:function(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()},enumerable:!0,configurable:!0}),ge.prototype.onModelChanged=function(){this.cancel(),this.triggerChars=new x.b,this.retriggerChars=new x.b;var Ee=this.editor.getModel();if(!Ee)return;for(var Te=0,Ce=p.x.ordered(Ee);Te<Ce.length;Te++){for(var fe=Ce[Te],$=0,S=fe.signatureHelpTriggerCharacters||[];$<S.length;$++){var z=S[$];this.triggerChars.add(z.charCodeAt(0)),this.retriggerChars.add(z.charCodeAt(0))}for(var ce=0,se=fe.signatureHelpRetriggerCharacters||[];ce<se.length;ce++){var z=se[ce];this.retriggerChars.add(z.charCodeAt(0))}}},ge.prototype.onDidType=function(Ee){if(!this.triggerOnType)return;var Te=Ee.length-1,Ce=Ee.charCodeAt(Te);(this.triggerChars.has(Ce)||this.isTriggered&&this.retriggerChars.has(Ce))&&this.trigger({triggerKind:p.y.TriggerCharacter,triggerCharacter:Ee.charAt(Te)})},ge.prototype.onCursorChange=function(Ee){Ee.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:p.y.ContentChange})},ge.prototype.onModelContentChange=function(){this.isTriggered&&this.trigger({triggerKind:p.y.ContentChange})},ge.prototype.onEditorConfigurationChange=function(){this.triggerOnType=this.editor.getOption(64).enabled,this.triggerOnType||this.cancel()},ge.prototype.dispose=function(){this.cancel(!0),de.prototype.dispose.call(this)},ge.DEFAULT_DELAY=120,ge}(pe.a);function Me(de,ge){switch(ge.triggerKind){case p.y.Invoke:return ge;case p.y.ContentChange:return de;case p.y.TriggerCharacter:default:return ge}}var Pe=e("N0LK"),Be=function(){var de=function(ge,Ee){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Te,Ce){Te.__proto__=Ce}||function(Te,Ce){for(var fe in Ce)Ce.hasOwnProperty(fe)&&(Te[fe]=Ce[fe])},de(ge,Ee)};return function(ge,Ee){de(ge,Ee);function Te(){this.constructor=ge}ge.prototype=Ee===null?Object.create(Ee):(Te.prototype=Ee.prototype,new Te)}}(),Ke=function(de,ge,Ee,Te){var Ce=arguments.length,fe=Ce<3?ge:Te===null?Te=Object.getOwnPropertyDescriptor(ge,Ee):Te,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")fe=Reflect.decorate(de,ge,Ee,Te);else for(var S=de.length-1;S>=0;S--)($=de[S])&&(fe=(Ce<3?$(fe):Ce>3?$(ge,Ee,fe):$(ge,Ee))||fe);return Ce>3&&fe&&Object.defineProperty(ge,Ee,fe),fe},Fe=function(de,ge){return function(Ee,Te){ge(Ee,Te,de)}},re=D.a,ee=function(de){Be(ge,de);function ge(Ee,Te,Ce,fe){var $=de.call(this)||this;return $.editor=Ee,$.renderDisposeables=$._register(new pe.b),$.visible=!1,$.announcedLabel=null,$.allowEditorOverflow=!0,$.markdownRenderer=$._register(new C.a(Ee,fe,Ce)),$.model=$._register(new we(Ee)),$.keyVisible=f.Visible.bindTo(Te),$.keyMultipleSignatures=f.MultipleSignatures.bindTo(Te),$._register($.model.onChangedHints(function(S){S?($.show(),$.render(S)):$.hide()})),$}return ge.prototype.createParamaterHintDOMNodes=function(){var Ee=this,Te=re(".editor-widget.parameter-hints-widget"),Ce=D.q(Te,re(".wrapper"));Ce.tabIndex=-1;var fe=D.q(Ce,re(".controls")),$=D.q(fe,re(".button.codicon.codicon-chevron-up")),S=D.q(fe,re(".overloads")),z=D.q(fe,re(".button.codicon.codicon-chevron-down")),ce=Object(U.b)(Object(U.a)($,"click"));this._register(ce(this.previous,this));var se=Object(U.b)(Object(U.a)(z,"click"));this._register(se(this.next,this));var ye=re(".body"),Re=new h.a(ye,{});this._register(Re),Ce.appendChild(Re.getDomNode());var Le=D.q(ye,re(".signature")),Ue=D.q(ye,re(".docs"));Te.style.userSelect="text",this.domNodes={element:Te,signature:Le,overloads:S,docs:Ue,scrollbar:Re},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(function(nt){Ee.visible&&Ee.editor.layoutContentWidget(Ee)}));var Je=function(){if(!Ee.domNodes)return;var nt=Ee.editor.getOption(34);Ee.domNodes.element.style.fontSize=nt.fontSize+"px"};Je(),this._register(b.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(nt){return nt.hasChanged(34)}).on(Je,null)),this._register(this.editor.onDidLayoutChange(function(nt){return Ee.updateMaxHeight()})),this.updateMaxHeight()},ge.prototype.show=function(){var Ee=this;if(this.visible)return;this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(function(){Ee.domNodes&&D.f(Ee.domNodes.element,"visible")},100),this.editor.layoutContentWidget(this)},ge.prototype.hide=function(){if(!this.visible)return;this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&D.P(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this)},ge.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},ge.prototype.render=function(Ee){if(!this.domNodes)return;var Te=Ee.signatures.length>1;D.Y(this.domNodes.element,"multiple",Te),this.keyMultipleSignatures.set(Te),this.domNodes.signature.innerHTML="",this.domNodes.docs.innerHTML="";var Ce=Ee.signatures[Ee.activeSignature];if(!Ce)return;var fe=D.q(this.domNodes.signature,re(".code")),$=Ce.parameters.length>0,S=this.editor.getOption(34);if(fe.style.fontSize=S.fontSize+"px",fe.style.fontFamily=S.fontFamily,$)this.renderParameters(fe,Ce,Ee.activeParameter);else{var z=D.q(fe,re("span"));z.textContent=Ce.label}this.renderDisposeables.clear();var ce=Ce.parameters[Ee.activeParameter];if(ce&&ce.documentation){var se=re("span.documentation");if(typeof ce.documentation=="string")se.textContent=ce.documentation;else{var ye=this.markdownRenderer.render(ce.documentation);D.f(ye.element,"markdown-docs"),this.renderDisposeables.add(ye),se.appendChild(ye.element)}D.q(this.domNodes.docs,re("p",{},se))}if(!(Ce.documentation===void 0))if(typeof Ce.documentation=="string")D.q(this.domNodes.docs,re("p",{},Ce.documentation));else{var ye=this.markdownRenderer.render(Ce.documentation);D.f(ye.element,"markdown-docs"),this.renderDisposeables.add(ye),D.q(this.domNodes.docs,ye.element)}var Re=this.hasDocs(Ce,ce);if(D.Y(this.domNodes.signature,"has-docs",Re),D.Y(this.domNodes.docs,"empty",!Re),this.domNodes.overloads.textContent=Object(Pe.F)(Ee.activeSignature+1,Ee.signatures.length.toString().length)+"/"+Ee.signatures.length,ce){var Le=this.getParameterLabel(Ce,Ee.activeParameter);this.announcedLabel!==Le&&(j.a(T.a("hint","{0}, hint",Le)),this.announcedLabel=Le)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()},ge.prototype.hasDocs=function(Ee,Te){return Te&&typeof Te.documentation=="string"&&Te.documentation.length>0||(Te&&typeof Te.documentation=="object"&&Te.documentation.value.length>0||typeof Ee.documentation=="string"&&Ee.documentation.length>0)?!0:typeof Ee.documentation=="object"&&Ee.documentation.value.length>0},ge.prototype.renderParameters=function(Ee,Te,Ce){var fe=this.getParameterLabelOffsets(Te,Ce),$=fe[0],S=fe[1],z=document.createElement("span");z.textContent=Te.label.substring(0,$);var ce=document.createElement("span");ce.textContent=Te.label.substring($,S),ce.className="parameter active";var se=document.createElement("span");se.textContent=Te.label.substring(S),D.q(Ee,z,ce,se)},ge.prototype.getParameterLabel=function(Ee,Te){var Ce=Ee.parameters[Te];return typeof Ce.label=="string"?Ce.label:Ee.label.substring(Ce.label[0],Ce.label[1])},ge.prototype.getParameterLabelOffsets=function(Ee,Te){var Ce=Ee.parameters[Te];if(Ce){if(Array.isArray(Ce.label))return Ce.label;var fe=Ee.label.lastIndexOf(Ce.label);return fe>=0?[fe,fe+Ce.label.length]:[0,0]}else return[0,0]},ge.prototype.next=function(){this.editor.focus(),this.model.next()},ge.prototype.previous=function(){this.editor.focus(),this.model.previous()},ge.prototype.cancel=function(){this.model.cancel()},ge.prototype.getDomNode=function(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element},ge.prototype.getId=function(){return ge.ID},ge.prototype.trigger=function(Ee){this.model.trigger(Ee,0)},ge.prototype.updateMaxHeight=function(){if(!this.domNodes)return;var Ee=Math.max(this.editor.getLayoutInfo().height/4,250),Te=Ee+"px";this.domNodes.element.style.maxHeight=Te;var Ce=this.domNodes.element.getElementsByClassName("wrapper");Ce.length&&(Ce[0].style.maxHeight=Te)},ge.ID="editor.widget.parameterHintsWidget",ge=Ke([Fe(1,H.c),Fe(2,L.a),Fe(3,m.a)],ge),ge}(pe.a);Object(P.e)(function(de,ge){var Ee=de.getColor(R.B);if(Ee){var Te=de.type===P.b?2:1;ge.addRule(".monaco-editor .parameter-hints-widget { border: "+Te+"px solid "+Ee+"; }"),ge.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+Ee.transparent(.5)+"; }"),ge.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+Ee.transparent(.5)+"; }")}var Ce=de.getColor(R.A);Ce&&ge.addRule(".monaco-editor .parameter-hints-widget { background-color: "+Ce+"; }");var fe=de.getColor(R.ec);fe&&ge.addRule(".monaco-editor .parameter-hints-widget a { color: "+fe+"; }");var $=de.getColor(R.C);$&&ge.addRule(".monaco-editor .parameter-hints-widget { color: "+$+"; }");var S=de.getColor(R.dc);S&&ge.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+S+"; }")});var ne=function(){var de=function(ge,Ee){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Te,Ce){Te.__proto__=Ce}||function(Te,Ce){for(var fe in Ce)Ce.hasOwnProperty(fe)&&(Te[fe]=Ce[fe])},de(ge,Ee)};return function(ge,Ee){de(ge,Ee);function Te(){this.constructor=ge}ge.prototype=Ee===null?Object.create(Ee):(Te.prototype=Ee.prototype,new Te)}}(),q=function(de,ge,Ee,Te){var Ce=arguments.length,fe=Ce<3?ge:Te===null?Te=Object.getOwnPropertyDescriptor(ge,Ee):Te,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")fe=Reflect.decorate(de,ge,Ee,Te);else for(var S=de.length-1;S>=0;S--)($=de[S])&&(fe=(Ce<3?$(fe):Ce>3?$(ge,Ee,fe):$(ge,Ee))||fe);return Ce>3&&fe&&Object.defineProperty(ge,Ee,fe),fe},le=function(de,ge){return function(Ee,Te){ge(Ee,Te,de)}},Z=function(de){ne(ge,de);function ge(Ee,Te){var Ce=de.call(this)||this;return Ce.editor=Ee,Ce.widget=Ce._register(Te.createInstance(ee,Ce.editor)),Ce}return ge.get=function(Ee){return Ee.getContribution(ge.ID)},ge.prototype.cancel=function(){this.widget.cancel()},ge.prototype.previous=function(){this.widget.previous()},ge.prototype.next=function(){this.widget.next()},ge.prototype.trigger=function(Ee){this.widget.trigger(Ee)},ge.ID="editor.controller.parameterHints",ge=q([le(1,J.a)],ge),ge}(pe.a),ve=function(de){ne(ge,de);function ge(){return de.call(this,{id:"editor.action.triggerParameterHints",label:T.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:I.a.hasSignatureHelpProvider,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|10,weight:100}})||this}return ge.prototype.run=function(Ee,Te){var Ce=Z.get(Te);Ce&&Ce.trigger({triggerKind:p.y.Invoke})},ge}(K.b);Object(K.h)(Z.ID,Z),Object(K.f)(ve);var Ne=100+75,Xe=K.c.bindToContribution(Z.get);Object(K.g)(new Xe({id:"closeParameterHints",precondition:f.Visible,handler:function(de){return de.cancel()},kbOpts:{weight:Ne,kbExpr:I.a.focus,primary:9,secondary:[1024|9]}})),Object(K.g)(new Xe({id:"showPrevParameterHint",precondition:H.a.and(f.Visible,f.MultipleSignatures),handler:function(de){return de.previous()},kbOpts:{weight:Ne,kbExpr:I.a.focus,primary:16,secondary:[512|16],mac:{primary:16,secondary:[512|16,256|46]}}})),Object(K.g)(new Xe({id:"showNextParameterHint",precondition:H.a.and(f.Visible,f.MultipleSignatures),handler:function(de){return de.next()},kbOpts:{weight:Ne,kbExpr:I.a.focus,primary:18,secondary:[512|18],mac:{primary:18,secondary:[512|18,256|44]}}}))},"X+cX":function(Mt,F,e){"use strict";e.d(F,"i",function(){return I}),e.d(F,"f",function(){return H}),e.d(F,"j",function(){return K}),e.d(F,"a",function(){return D}),e.d(F,"l",function(){return U}),e.d(F,"g",function(){return j}),e.d(F,"h",function(){return h}),e.d(F,"e",function(){return b}),e.d(F,"c",function(){return O}),e.d(F,"d",function(){return m}),e.d(F,"k",function(){return C}),e.d(F,"b",function(){return w});var T=e("JQT/"),pe=e("/cxE"),J=e("pmY6");function I(v){return v&&typeof v.then=="function"}function H(v){var p=new T.b,d=v(p.token),c=new Promise(function(u,f){p.token.onCancellationRequested(function(){f(pe.a())}),Promise.resolve(d).then(function(E){p.dispose(),u(E)},function(E){p.dispose(),f(E)})});return new(function(){function u(){}return u.prototype.cancel=function(){p.cancel()},u.prototype.then=function(f,E){return c.then(f,E)},u.prototype.catch=function(f){return this.then(void 0,f)},u.prototype.finally=function(f){return c.finally(f)},u}())}function K(v,p,d){return Promise.race([v,new Promise(function(c){return p.onCancellationRequested(function(){return c(d)})})])}var D=function(){function v(p){this.defaultDelay=p,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return v.prototype.trigger=function(p,d){var c=this;return d===void 0&&(d=this.defaultDelay),this.task=p,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(u,f){c.doResolve=u,c.doReject=f}).then(function(){if(c.completionPromise=null,c.doResolve=null,c.task){var u=c.task;return c.task=null,u()}return})),this.timeout=setTimeout(function(){c.timeout=null,c.doResolve&&c.doResolve(null)},d),this.completionPromise},v.prototype.isTriggered=function(){return this.timeout!==null},v.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(pe.a()),this.completionPromise=null)},v.prototype.cancelTimeout=function(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)},v.prototype.dispose=function(){this.cancelTimeout()},v}();function U(v,p){return p?new Promise(function(d,c){var u=setTimeout(d,v);p.onCancellationRequested(function(){clearTimeout(u),c(pe.a())})}):H(function(d){return U(v,d)})}function j(v,p){p===void 0&&(p=0);var d=setTimeout(v,p);return Object(J.h)(function(){return clearTimeout(d)})}function h(v,p,d){p===void 0&&(p=function(E){return!!E}),d===void 0&&(d=null);var c=0,u=v.length,f=function(){if(c>=u)return Promise.resolve(d);var E=v[c++],L=Promise.resolve(E());return L.then(function(R){return p(R)?Promise.resolve(R):f()})};return f()}var b=function(){function v(p,d){this._token=-1,typeof p=="function"&&typeof d=="number"&&this.setIfNotSet(p,d)}return v.prototype.dispose=function(){this.cancel()},v.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},v.prototype.cancelAndSet=function(p,d){var c=this;this.cancel(),this._token=setTimeout(function(){c._token=-1,p()},d)},v.prototype.setIfNotSet=function(p,d){var c=this;if(this._token!==-1)return;this._token=setTimeout(function(){c._token=-1,p()},d)},v}(),O=function(){function v(){this._token=-1}return v.prototype.dispose=function(){this.cancel()},v.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},v.prototype.cancelAndSet=function(p,d){this.cancel(),this._token=setInterval(function(){p()},d)},v}(),m=function(){function v(p,d){this.timeoutToken=-1,this.runner=p,this.timeout=d,this.timeoutHandler=this.onTimeout.bind(this)}return v.prototype.dispose=function(){this.cancel(),this.runner=null},v.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},v.prototype.schedule=function(p){p===void 0&&(p=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,p)},v.prototype.isScheduled=function(){return this.timeoutToken!==-1},v.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},v.prototype.doRun=function(){this.runner&&this.runner()},v}(),C;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var v=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});C=function(p){var d=setTimeout(function(){return p(v)}),c=!1;return{dispose:function(){if(c)return;c=!0,clearTimeout(d)}}}}else C=function(p,d){var c=requestIdleCallback(p,typeof d=="number"?{timeout:d}:void 0),u=!1;return{dispose:function(){if(u)return;u=!0,cancelIdleCallback(c)}}}})();var w=function(){function v(p){var d=this;this._didRun=!1,this._executor=function(){try{d._value=p()}catch(c){d._error=c}finally{d._didRun=!0}},this._handle=C(function(){return d._executor()})}return v.prototype.dispose=function(){this._handle.dispose()},v.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},v}()},XNtB:function(Mt,F,e){},XQgg:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return e.e(333).then(e.bind(null,"/0xJ"))}})},XSiN:function(Mt,F,e){"use strict";e.d(F,"b",function(){return H}),e.d(F,"a",function(){return K}),e.d(F,"c",function(){return D});var T=e("D3Dy"),pe=e("51f4"),J=e("MNsG"),I=function(){var U=function(j,h){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var m in O)O.hasOwnProperty(m)&&(b[m]=O[m])},U(j,h)};return function(j,h){U(j,h);function b(){this.constructor=j}j.prototype=h===null?Object.create(h):(b.prototype=h.prototype,new b)}}(),H=function(){function U(j){this.timestamp=Date.now(),this.browserEvent=j,this.leftButton=j.button===0,this.middleButton=j.button===1,this.rightButton=j.button===2,this.buttons=j.buttons,this.target=j.target,this.detail=j.detail||1,j.type==="dblclick"&&(this.detail=2),this.ctrlKey=j.ctrlKey,this.shiftKey=j.shiftKey,this.altKey=j.altKey,this.metaKey=j.metaKey,typeof j.pageX=="number"?(this.posx=j.pageX,this.posy=j.pageY):(this.posx=j.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=j.clientY+document.body.scrollTop+document.documentElement.scrollTop);var h=pe.a.getPositionOfChildWindowRelativeToAncestorWindow(self,j.view);this.posx-=h.left,this.posy-=h.top}return U.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},U.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},U}(),K=function(U){I(j,U);function j(h){var b=U.call(this,h)||this;return b.dataTransfer=h.dataTransfer,b}return j}(H),D=function(){function U(j,h,b){if(h===void 0&&(h=0),b===void 0&&(b=0),this.browserEvent=j||null,this.target=j?j.target||j.targetNode||j.srcElement:null,this.deltaY=b,this.deltaX=h,j){var O=j,m=j;if(typeof O.wheelDeltaY!="undefined")this.deltaY=O.wheelDeltaY/120;else if(typeof m.VERTICAL_AXIS!="undefined"&&m.axis===m.VERTICAL_AXIS)this.deltaY=-m.detail/3;else if(j.type==="wheel"){var C=j;C.deltaMode===C.DOM_DELTA_LINE?this.deltaY=-j.deltaY:this.deltaY=-j.deltaY/40}if(typeof O.wheelDeltaX!="undefined")T.k&&J.h?this.deltaX=-(O.wheelDeltaX/120):this.deltaX=O.wheelDeltaX/120;else if(typeof m.HORIZONTAL_AXIS!="undefined"&&m.axis===m.HORIZONTAL_AXIS)this.deltaX=-j.detail/3;else if(j.type==="wheel"){var C=j;C.deltaMode===C.DOM_DELTA_LINE?this.deltaX=-j.deltaX:this.deltaX=-j.deltaX/40}this.deltaY===0&&this.deltaX===0&&j.wheelDelta&&(this.deltaY=j.wheelDelta/120)}}return U.prototype.preventDefault=function(){this.browserEvent&&(this.browserEvent.preventDefault&&this.browserEvent.preventDefault())},U.prototype.stopPropagation=function(){this.browserEvent&&(this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation())},U}()},XXBq:function(Mt,F,e){},XXUj:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("Cg/j"),pe=Object(T.c)("telemetryService")},XtJs:function(Mt,F,e){"use strict";e.r(F),e.d(F,"getOccurrencesAtPosition",function(){return x});var T=e("3/fG"),pe=e("6OMU"),J=e("X+cX"),I=e("JQT/"),H=e("/cxE"),K=e("pmY6"),D=e("sswD"),U=e("aokT"),j=e("wQH0"),h=e("M1Kb"),b=e("tX9W"),O=e("twdY"),m=e("T8No"),C=e("MD5Z"),w=e("t9D7"),v=function(){var Fe=function(re,ee){return Fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,q){ne.__proto__=q}||function(ne,q){for(var le in q)q.hasOwnProperty(le)&&(ne[le]=q[le])},Fe(re,ee)};return function(re,ee){Fe(re,ee);function ne(){this.constructor=re}re.prototype=ee===null?Object.create(ee):(ne.prototype=ee.prototype,new ne)}}(),p=function(Fe,re,ee,ne){var q=arguments.length,le=q<3?re:ne===null?ne=Object.getOwnPropertyDescriptor(re,ee):ne,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(Fe,re,ee,ne);else for(var ve=Fe.length-1;ve>=0;ve--)(Z=Fe[ve])&&(le=(q<3?Z(le):q>3?Z(re,ee,le):Z(re,ee))||le);return q>3&&le&&Object.defineProperty(re,ee,le),le},d=function(Fe,re){return function(ee,ne){re(ee,ne,Fe)}},c=Object(C.Tb)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},T.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),u=Object(C.Tb)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},T.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),f=Object(C.Tb)("editor.wordHighlightBorder",{light:null,dark:null,hc:C.b},T.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),E=Object(C.Tb)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:C.b},T.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),L=Object(C.Tb)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},T.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),R=Object(C.Tb)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},T.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),P=new m.d("hasWordHighlights",!1);function x(Fe,re,ee){var ne=O.i.ordered(Fe);return Object(J.h)(ne.map(function(q){return function(){return Promise.resolve(q.provideDocumentHighlights(Fe,re,ee)).then(void 0,H.f)}}),pe.q)}var Q=function(){function Fe(re,ee,ne){var q=this;this._wordRange=this._getCurrentWordRange(re,ee),this.result=Object(J.f)(function(le){return q._compute(re,ee,ne,le)})}return Fe.prototype._getCurrentWordRange=function(re,ee){var ne=re.getWordAtPosition(ee.getPosition());return ne?new U.a(ee.startLineNumber,ne.startColumn,ee.startLineNumber,ne.endColumn):null},Fe.prototype.isValid=function(re,ee,ne){for(var q=ee.startLineNumber,le=ee.startColumn,Z=ee.endColumn,ve=this._getCurrentWordRange(re,ee),Ne=Boolean(this._wordRange&&this._wordRange.equalsRange(ve)),Xe=0,de=ne.length;!Ne&&Xe<de;Xe++){var ge=re.getDecorationRange(ne[Xe]);ge&&ge.startLineNumber===q&&(ge.startColumn<=le&&ge.endColumn>=Z&&(Ne=!0))}return Ne},Fe.prototype.cancel=function(){this.result.cancel()},Fe}(),V=function(Fe){v(re,Fe);function re(){return Fe!==null&&Fe.apply(this,arguments)||this}return re.prototype._compute=function(ee,ne,q,le){return x(ee,ne.getPosition(),le).then(function(Z){return Z||[]})},re}(Q),W=function(Fe){v(re,Fe);function re(ee,ne,q){var le=Fe.call(this,ee,ne,q)||this;return le._selectionIsEmpty=ne.isEmpty(),le}return re.prototype._compute=function(ee,ne,q,le){return Object(J.l)(250,le).then(function(){if(!ne.isEmpty())return[];var Z=ee.getWordAtPosition(ne.getPosition());if(!Z)return[];var ve=ee.findMatches(Z.word,!0,!1,!0,q,!1);return ve.map(function(Ne){return{range:Ne.range,kind:O.h.Text}})})},re.prototype.isValid=function(ee,ne,q){var le=ne.isEmpty();return this._selectionIsEmpty!==le?!1:Fe.prototype.isValid.call(this,ee,ne,q)},re}(Q);function B(Fe,re,ee){return O.i.has(Fe)?new V(Fe,re,ee):new W(Fe,re,ee)}Object(D.k)("_executeDocumentHighlights",function(Fe,re){return x(Fe,re,I.a.None)});var ae=function(){function Fe(re,ee){var ne=this;this.toUnhook=new K.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=re,this._hasWordHighlights=P.bindTo(ee),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(61),this.model=this.editor.getModel(),this.toUnhook.add(re.onDidChangeCursorPosition(function(q){if(ne._ignorePositionChangeEvent)return;if(!ne.occurrencesHighlight)return;ne._onPositionChanged(q)})),this.toUnhook.add(re.onDidChangeModelContent(function(q){ne._stopAll()})),this.toUnhook.add(re.onDidChangeConfiguration(function(q){var le=ne.editor.getOption(61);ne.occurrencesHighlight!==le&&(ne.occurrencesHighlight=le,ne._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return Fe.prototype.hasDecorations=function(){return this._decorationIds.length>0},Fe.prototype.restore=function(){if(!this.occurrencesHighlight)return;this._run()},Fe.prototype._getSortedHighlights=function(){var re=this;return pe.d(this._decorationIds.map(function(ee){return re.model.getDecorationRange(ee)}).sort(U.a.compareRangesUsingStarts))},Fe.prototype.moveNext=function(){var re=this,ee=this._getSortedHighlights(),ne=pe.k(ee,function(Z){return Z.containsPosition(re.editor.getPosition())}),q=(ne+1)%ee.length,le=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(le.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(le)}finally{this._ignorePositionChangeEvent=!1}},Fe.prototype.moveBack=function(){var re=this,ee=this._getSortedHighlights(),ne=pe.k(ee,function(Z){return Z.containsPosition(re.editor.getPosition())}),q=(ne-1+ee.length)%ee.length,le=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(le.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(le)}finally{this._ignorePositionChangeEvent=!1}},Fe.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},Fe.prototype._stopAll=function(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)},Fe.prototype._onPositionChanged=function(re){if(!this.occurrencesHighlight){this._stopAll();return}if(re.reason!==3){this._stopAll();return}this._run()},Fe.prototype._run=function(){var re=this,ee=this.editor.getSelection();if(ee.startLineNumber!==ee.endLineNumber){this._stopAll();return}var ne=ee.startLineNumber,q=ee.startColumn,le=ee.endColumn,Z=this.model.getWordAtPosition({lineNumber:ne,column:q});if(!Z||Z.startColumn>q||Z.endColumn<le){this._stopAll();return}var ve=this.workerRequest&&this.workerRequest.isValid(this.model,ee,this._decorationIds);if(this.lastCursorPositionChangeTime=new Date().getTime(),ve)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var Ne=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=B(this.model,this.editor.getSelection(),this.editor.getOption(96)),this.workerRequest.result.then(function(Xe){Ne===re.workerRequestTokenId&&(re.workerRequestCompleted=!0,re.workerRequestValue=Xe||[],re._beginRenderDecorations())},H.e)}},Fe.prototype._beginRenderDecorations=function(){var re=this,ee=new Date().getTime(),ne=this.lastCursorPositionChangeTime+250;ee>=ne?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(function(){re.renderDecorations()},ne-ee)},Fe.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var re=[],ee=0,ne=this.workerRequestValue.length;ee<ne;ee++){var q=this.workerRequestValue[ee];re.push({range:q.range,options:Fe._getDecorationOptions(q.kind)})}this._decorationIds=this.editor.deltaDecorations(this._decorationIds,re),this._hasWordHighlights.set(this.hasDecorations())},Fe._getDecorationOptions=function(re){return re===O.h.Write?this._WRITE_OPTIONS:re===O.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS},Fe.prototype.dispose=function(){this._stopAll(),this.toUnhook.dispose()},Fe._WRITE_OPTIONS=b.a.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(w.f)(R),position:h.d.Center}}),Fe._TEXT_OPTIONS=b.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(w.f)(C.Mb),position:h.d.Center}}),Fe._REGULAR_OPTIONS=b.a.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(w.f)(L),position:h.d.Center}}),Fe}(),we=function(Fe){v(re,Fe);function re(ee,ne){var q=Fe.call(this)||this;q.wordHighligher=null;var le=function(){ee.hasModel()&&(q.wordHighligher=new ae(ee,ne))};return q._register(ee.onDidChangeModel(function(Z){q.wordHighligher&&(q.wordHighligher.dispose(),q.wordHighligher=null),le()})),le(),q}return re.get=function(ee){return ee.getContribution(re.ID)},re.prototype.saveViewState=function(){return!!(this.wordHighligher&&this.wordHighligher.hasDecorations())},re.prototype.moveNext=function(){this.wordHighligher&&this.wordHighligher.moveNext()},re.prototype.moveBack=function(){this.wordHighligher&&this.wordHighligher.moveBack()},re.prototype.restoreViewState=function(ee){this.wordHighligher&&ee&&this.wordHighligher.restore()},re.prototype.dispose=function(){this.wordHighligher&&(this.wordHighligher.dispose(),this.wordHighligher=null),Fe.prototype.dispose.call(this)},re.ID="editor.contrib.wordHighlighter",re=p([d(1,m.c)],re),re}(K.a),Me=function(Fe){v(re,Fe);function re(ee,ne){var q=Fe.call(this,ne)||this;return q._isNext=ee,q}return re.prototype.run=function(ee,ne){var q=we.get(ne);if(!q)return;this._isNext?q.moveNext():q.moveBack()},re}(D.b),Pe=function(Fe){v(re,Fe);function re(){return Fe.call(this,!0,{id:"editor.action.wordHighlight.next",label:T.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:P,kbOpts:{kbExpr:j.a.editorTextFocus,primary:65,weight:100}})||this}return re}(Me),Be=function(Fe){v(re,Fe);function re(){return Fe.call(this,!1,{id:"editor.action.wordHighlight.prev",label:T.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:P,kbOpts:{kbExpr:j.a.editorTextFocus,primary:1024|65,weight:100}})||this}return re}(Me),Ke=function(Fe){v(re,Fe);function re(){return Fe.call(this,{id:"editor.action.wordHighlight.trigger",label:T.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:P.toNegated(),kbOpts:{kbExpr:j.a.editorTextFocus,primary:0,weight:100}})||this}return re.prototype.run=function(ee,ne,q){var le=we.get(ne);if(!le)return;le.restoreViewState(!0)},re}(D.b);Object(D.h)(we.ID,we),Object(D.f)(Pe),Object(D.f)(Be),Object(D.f)(Ke),Object(w.e)(function(Fe,re){var ee=Fe.getColor(C.M);ee&&(re.addRule(".monaco-editor .focused .selectionHighlight { background-color: "+ee+"; }"),re.addRule(".monaco-editor .selectionHighlight { background-color: "+ee.transparent(.5)+"; }"));var ne=Fe.getColor(c);ne&&re.addRule(".monaco-editor .wordHighlight { background-color: "+ne+"; }");var q=Fe.getColor(u);q&&re.addRule(".monaco-editor .wordHighlightStrong { background-color: "+q+"; }");var le=Fe.getColor(C.N);le&&re.addRule(".monaco-editor .selectionHighlight { border: 1px "+(Fe.type==="hc"?"dotted":"solid")+" "+le+"; box-sizing: border-box; }");var Z=Fe.getColor(f);Z&&re.addRule(".monaco-editor .wordHighlight { border: 1px "+(Fe.type==="hc"?"dashed":"solid")+" "+Z+"; box-sizing: border-box; }");var ve=Fe.getColor(E);ve&&re.addRule(".monaco-editor .wordHighlightStrong { border: 1px "+(Fe.type==="hc"?"dashed":"solid")+" "+ve+"; box-sizing: border-box; }")})},YHy6:function(Mt,F,e){},Yr1X:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("MI8n"),pe=new(function(){function J(){this._zoomLevel=0,this._onDidChangeZoomLevel=new T.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return J.prototype.getZoomLevel=function(){return this._zoomLevel},J.prototype.setZoomLevel=function(I){if(I=Math.min(Math.max(-5,I),20),this._zoomLevel===I)return;this._zoomLevel=I,this._onDidChangeZoomLevel.fire(this._zoomLevel)},J}())},Z7SF:function(Mt,F,e){"use strict";e.d(F,"a",function(){return K});var T=e("cGHE"),pe=e("aokT"),J=e("24hK"),I=function(D,U,j,h){function b(O){return O instanceof j?O:new j(function(m){m(O)})}return new(j||(j=Promise))(function(O,m){function C(p){try{v(h.next(p))}catch(d){m(d)}}function w(p){try{v(h.throw(p))}catch(d){m(d)}}function v(p){p.done?O(p.value):b(p.value).then(C,w)}v((h=h.apply(D,U||[])).next())})},H=function(D,U){var j={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},h,b,O,m;return m={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function C(v){return function(p){return w([v,p])}}function w(v){if(h)throw new TypeError("Generator is already executing.");for(;j;)try{if(h=1,b&&(O=v[0]&2?b.return:v[0]?b.throw||((O=b.return)&&O.call(b),0):b.next)&&!(O=O.call(b,v[1])).done)return O;(b=0,O)&&(v=[v[0]&2,O.value]);switch(v[0]){case 0:case 1:O=v;break;case 4:return j.label++,{value:v[1],done:!1};case 5:j.label++,b=v[1],v=[0];continue;case 7:v=j.ops.pop(),j.trys.pop();continue;default:if(!(O=j.trys,O=O.length>0&&O[O.length-1])&&(v[0]===6||v[0]===2)){j=0;continue}if(v[0]===3&&(!O||v[1]>O[0]&&v[1]<O[3])){j.label=v[1];break}if(v[0]===6&&j.label<O[1]){j.label=O[1],O=v;break}if(O&&j.label<O[2]){j.label=O[2],j.ops.push(v);break}O[2]&&j.ops.pop(),j.trys.pop();continue}v=U.call(D,j)}catch(p){v=[6,p],b=0}finally{h=O=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},K=function(){function D(){}return D.prototype.provideSelectionRanges=function(U,j){return I(this,void 0,void 0,function(){var h,b,O,m,C;return H(this,function(w){switch(w.label){case 0:h=[],b=function(v){var p,d;return H(this,function(c){switch(c.label){case 0:return p=[],h.push(p),d=new Map,[4,new Promise(function(u){return D._bracketsRightYield(u,0,U,v,d)})];case 1:return c.sent(),[4,new Promise(function(u){return D._bracketsLeftYield(u,0,U,v,d,p)})];case 2:return c.sent(),[2]}})},O=0,m=j,w.label=1;case 1:return O<m.length?(C=m[O],[5,b(C)]):[3,4];case 2:w.sent(),w.label=3;case 3:return O++,[3,1];case 4:return[2,h]}})})},D._bracketsRightYield=function(U,j,h,b,O){for(var m=new Map,C=Date.now();;){if(j>=D._maxRounds){U();break}if(!b){U();break}var w=h.findNextBracket(b);if(!w){U();break}var v=Date.now()-C;if(v>D._maxDuration){setTimeout(function(){return D._bracketsRightYield(U,j+1,h,b,O)});break}var p=w.close[0];if(w.isOpen){var d=m.has(p)?m.get(p):0;m.set(p,d+1)}else{var d=m.has(p)?m.get(p):0;if(d-=1,m.set(p,Math.max(0,d)),d<0){var c=O.get(p);c||(c=new J.a,O.set(p,c)),c.push(w.range)}}b=w.range.getEndPosition()}},D._bracketsLeftYield=function(U,j,h,b,O,m){for(var C=new Map,w=Date.now();;){if(j>=D._maxRounds&&O.size===0){U();break}if(!b){U();break}var v=h.findPrevBracket(b);if(!v){U();break}var p=Date.now()-w;if(p>D._maxDuration){setTimeout(function(){return D._bracketsLeftYield(U,j+1,h,b,O,m)});break}var d=v.close[0];if(v.isOpen){var c=C.has(d)?C.get(d):0;if(c-=1,C.set(d,Math.max(0,c)),c<0){var u=O.get(d);if(u){var f=u.shift();u.size===0&&O.delete(d);var E=pe.a.fromPositions(v.range.getEndPosition(),f.getStartPosition()),L=pe.a.fromPositions(v.range.getStartPosition(),f.getEndPosition());m.push({range:E}),m.push({range:L}),D._addBracketLeading(h,L,m)}}}else{var c=C.has(d)?C.get(d):0;C.set(d,c+1)}b=v.range.getStartPosition()}},D._addBracketLeading=function(U,j,h){if(j.startLineNumber===j.endLineNumber)return;var b=j.startLineNumber,O=U.getLineFirstNonWhitespaceColumn(b);O!==0&&O!==j.startColumn&&(h.push({range:pe.a.fromPositions(new T.a(b,O),j.getEndPosition())}),h.push({range:pe.a.fromPositions(new T.a(b,1),j.getEndPosition())}));var m=b-1;if(m>0){var C=U.getLineFirstNonWhitespaceColumn(m);C===j.startColumn&&C!==U.getLineLastNonWhitespaceColumn(m)&&(h.push({range:pe.a.fromPositions(new T.a(m,C),j.getEndPosition())}),h.push({range:pe.a.fromPositions(new T.a(m,1),j.getEndPosition())}))}},D._maxDuration=30,D._maxRounds=2,D}()},ZCR3:function(Mt,F,e){"use strict";e.d(F,"a",function(){return J});var T=0;function pe(){var I="$memoize"+T++,H=void 0,K=function(U,j,h){var b=null,O=null;if(typeof h.value=="function"?(b="value",O=h.value,O.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof h.get=="function"&&(b="get",O=h.get),!O)throw new Error("not supported");var m=I+":"+j;h[b]=function(){for(var C=[],w=0;w<arguments.length;w++)C[w]=arguments[w];return H=this,this.hasOwnProperty(m)||Object.defineProperty(this,m,{configurable:!0,enumerable:!1,writable:!0,value:O.apply(this,C)}),this[m]}};return K.clear=function(){if(typeof H=="undefined")return;Object.getOwnPropertyNames(H).forEach(function(D){D.indexOf(I)===0&&delete H[D]})},K}function J(I,H,K){return pe()(I,H,K)}},ZIMw:function(Mt,F,e){"use strict";e.d(F,"b",function(){return U}),e.d(F,"a",function(){return j});var T=e("JQT/"),pe=e("/cxE"),J=e("bY76"),I=e("sswD"),H=e("aokT"),K=e("twdY"),D=e("G2kB");function U(h,b){var O=[],m=K.c.ordered(h).reverse(),C=m.map(function(w){return Promise.resolve(w.provideDocumentColors(h,b)).then(function(v){if(Array.isArray(v))for(var p=0,d=v;p<d.length;p++){var c=d[p];O.push({colorInfo:c,provider:w})}})});return Promise.all(C).then(function(){return O})}function j(h,b,O,m){return Promise.resolve(O.provideColorPresentations(h,b,m))}Object(I.j)("_executeDocumentColorProvider",function(h,b){var O=b.resource;if(!(O instanceof J.a))throw Object(pe.b)();var m=h.get(D.a).getModel(O);if(!m)throw Object(pe.b)();var C=[],w=K.c.ordered(m).reverse(),v=w.map(function(p){return Promise.resolve(p.provideDocumentColors(m,T.a.None)).then(function(d){if(Array.isArray(d))for(var c=0,u=d;c<u.length;c++){var f=u[c];C.push({range:f.range,color:[f.color.red,f.color.green,f.color.blue,f.color.alpha]})}})});return Promise.all(v).then(function(){return C})}),Object(I.j)("_executeColorPresentationProvider",function(h,b){var O=b.resource,m=b.color,C=b.range;if(!(O instanceof J.a)||!Array.isArray(m)||m.length!==4||!H.a.isIRange(C))throw Object(pe.b)();var w=m[0],v=m[1],p=m[2],d=m[3],c=h.get(D.a).getModel(O);if(!c)throw Object(pe.b)();var u={range:C,color:{red:w,green:v,blue:p,alpha:d}},f=[],E=K.c.ordered(c).reverse(),L=E.map(function(R){return Promise.resolve(R.provideColorPresentations(c,u,T.a.None)).then(function(P){Array.isArray(P)&&f.push.apply(f,P)})});return Promise.all(L).then(function(){return f})})},ZQ78:function(Mt,F,e){"use strict";e.d(F,"a",function(){return T}),e.d(F,"b",function(){return pe}),e.d(F,"c",function(){return J});var T={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},pe=function(){function I(H){this.data=H}return I.prototype.update=function(){},I.prototype.getData=function(){return this.data},I}(),J={CurrentDragAndDropData:void 0}},"ZkA/":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return e.e(313).then(e.bind(null,"DTUS"))}})},ZlPH:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"b",function(){return J});var T=e("EffR"),pe=function(){function I(H){this.domNode=H,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none"}return I.prototype.setMaxWidth=function(H){if(this._maxWidth===H)return;this._maxWidth=H,this.domNode.style.maxWidth=this._maxWidth+"px"},I.prototype.setWidth=function(H){if(this._width===H)return;this._width=H,this.domNode.style.width=this._width+"px"},I.prototype.setHeight=function(H){if(this._height===H)return;this._height=H,this.domNode.style.height=this._height+"px"},I.prototype.setTop=function(H){if(this._top===H)return;this._top=H,this.domNode.style.top=this._top+"px"},I.prototype.unsetTop=function(){if(this._top===-1)return;this._top=-1,this.domNode.style.top=""},I.prototype.setLeft=function(H){if(this._left===H)return;this._left=H,this.domNode.style.left=this._left+"px"},I.prototype.setBottom=function(H){if(this._bottom===H)return;this._bottom=H,this.domNode.style.bottom=this._bottom+"px"},I.prototype.setRight=function(H){if(this._right===H)return;this._right=H,this.domNode.style.right=this._right+"px"},I.prototype.setFontFamily=function(H){if(this._fontFamily===H)return;this._fontFamily=H,this.domNode.style.fontFamily=this._fontFamily},I.prototype.setFontWeight=function(H){if(this._fontWeight===H)return;this._fontWeight=H,this.domNode.style.fontWeight=this._fontWeight},I.prototype.setFontSize=function(H){if(this._fontSize===H)return;this._fontSize=H,this.domNode.style.fontSize=this._fontSize+"px"},I.prototype.setFontFeatureSettings=function(H){if(this._fontFeatureSettings===H)return;this._fontFeatureSettings=H,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings},I.prototype.setLineHeight=function(H){if(this._lineHeight===H)return;this._lineHeight=H,this.domNode.style.lineHeight=this._lineHeight+"px"},I.prototype.setLetterSpacing=function(H){if(this._letterSpacing===H)return;this._letterSpacing=H,this.domNode.style.letterSpacing=this._letterSpacing+"px"},I.prototype.setClassName=function(H){if(this._className===H)return;this._className=H,this.domNode.className=this._className},I.prototype.toggleClassName=function(H,K){T.Y(this.domNode,H,K),this._className=this.domNode.className},I.prototype.setDisplay=function(H){if(this._display===H)return;this._display=H,this.domNode.style.display=this._display},I.prototype.setPosition=function(H){if(this._position===H)return;this._position=H,this.domNode.style.position=this._position},I.prototype.setVisibility=function(H){if(this._visibility===H)return;this._visibility=H,this.domNode.style.visibility=this._visibility},I.prototype.setBackgroundColor=function(H){if(this._backgroundColor===H)return;this._backgroundColor=H,this.domNode.style.backgroundColor=this._backgroundColor},I.prototype.setLayerHinting=function(H){if(this._layerHint===H)return;this._layerHint=H,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":""},I.prototype.setContain=function(H){if(this._contain===H)return;this._contain=H,this.domNode.style.contain=this._contain},I.prototype.setAttribute=function(H,K){this.domNode.setAttribute(H,K)},I.prototype.removeAttribute=function(H){this.domNode.removeAttribute(H)},I.prototype.appendChild=function(H){this.domNode.appendChild(H.domNode)},I.prototype.removeChild=function(H){this.domNode.removeChild(H.domNode)},I}();function J(I){return new pe(I)}},ZvGG:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return e.e(311).then(e.bind(null,"yUwd"))}})},aBYw:function(Mt,F,e){"use strict";e.d(F,"a",function(){return b});var T=e("D3Dy"),pe=e("pmY6"),J=e("MI8n"),I=e("MNsG"),H=function(){var O=function(m,C){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,v){w.__proto__=v}||function(w,v){for(var p in v)v.hasOwnProperty(p)&&(w[p]=v[p])},O(m,C)};return function(m,C){O(m,C);function w(){this.constructor=m}m.prototype=C===null?Object.create(C):(w.prototype=C.prototype,new w)}}();function K(O,m){return!!O[m]}var D=function(){function O(m,C){this.target=m.target,this.hasTriggerModifier=K(m.event,C.triggerModifier),this.hasSideBySideModifier=K(m.event,C.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=T.i||m.event.detail<=1}return O}(),U=function(){function O(m,C){this.keyCodeIsTriggerKey=m.keyCode===C.triggerKey,this.keyCodeIsSideBySideKey=m.keyCode===C.triggerSideBySideKey,this.hasTriggerModifier=K(m,C.triggerModifier)}return O}(),j=function(){function O(m,C,w,v){this.triggerKey=m,this.triggerModifier=C,this.triggerSideBySideKey=w,this.triggerSideBySideModifier=v}return O.prototype.equals=function(m){return this.triggerKey===m.triggerKey&&this.triggerModifier===m.triggerModifier&&this.triggerSideBySideKey===m.triggerSideBySideKey&&this.triggerSideBySideModifier===m.triggerSideBySideModifier},O}();function h(O){return O==="altKey"?I.e?new j(57,"metaKey",6,"altKey"):new j(5,"ctrlKey",6,"altKey"):I.e?new j(6,"altKey",57,"metaKey"):new j(6,"altKey",5,"ctrlKey")}var b=function(O){H(m,O);function m(C){var w=O.call(this)||this;return w._onMouseMoveOrRelevantKeyDown=w._register(new J.a),w.onMouseMoveOrRelevantKeyDown=w._onMouseMoveOrRelevantKeyDown.event,w._onExecute=w._register(new J.a),w.onExecute=w._onExecute.event,w._onCancel=w._register(new J.a),w.onCancel=w._onCancel.event,w._editor=C,w._opts=h(w._editor.getOption(59)),w.lastMouseMoveEvent=null,w.hasTriggerKeyOnMouseDown=!1,w._register(w._editor.onDidChangeConfiguration(function(v){if(v.hasChanged(59)){var p=h(w._editor.getOption(59));if(w._opts.equals(p))return;w._opts=p,w.lastMouseMoveEvent=null,w.hasTriggerKeyOnMouseDown=!1,w._onCancel.fire()}})),w._register(w._editor.onMouseMove(function(v){return w.onEditorMouseMove(new D(v,w._opts))})),w._register(w._editor.onMouseDown(function(v){return w.onEditorMouseDown(new D(v,w._opts))})),w._register(w._editor.onMouseUp(function(v){return w.onEditorMouseUp(new D(v,w._opts))})),w._register(w._editor.onKeyDown(function(v){return w.onEditorKeyDown(new U(v,w._opts))})),w._register(w._editor.onKeyUp(function(v){return w.onEditorKeyUp(new U(v,w._opts))})),w._register(w._editor.onMouseDrag(function(){return w.resetHandler()})),w._register(w._editor.onDidChangeCursorSelection(function(v){return w.onDidChangeCursorSelection(v)})),w._register(w._editor.onDidChangeModel(function(v){return w.resetHandler()})),w._register(w._editor.onDidChangeModelContent(function(){return w.resetHandler()})),w._register(w._editor.onDidScrollChange(function(v){(v.scrollTopChanged||v.scrollLeftChanged)&&w.resetHandler()})),w}return m.prototype.onDidChangeCursorSelection=function(C){C.selection&&C.selection.startColumn!==C.selection.endColumn&&this.resetHandler()},m.prototype.onEditorMouseMove=function(C){this.lastMouseMoveEvent=C,this._onMouseMoveOrRelevantKeyDown.fire([C,null])},m.prototype.onEditorMouseDown=function(C){this.hasTriggerKeyOnMouseDown=C.hasTriggerModifier},m.prototype.onEditorMouseUp=function(C){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(C)},m.prototype.onEditorKeyDown=function(C){this.lastMouseMoveEvent&&(C.keyCodeIsTriggerKey||C.keyCodeIsSideBySideKey&&C.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,C]):C.hasTriggerModifier&&this._onCancel.fire()},m.prototype.onEditorKeyUp=function(C){C.keyCodeIsTriggerKey&&this._onCancel.fire()},m.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},m}(pe.a)},ajgA:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return e.e(328).then(e.bind(null,"Fzfo"))}})},aokT:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("cGHE"),pe=function(){function J(I,H,K,D){I>K||I===K&&H>D?(this.startLineNumber=K,this.startColumn=D,this.endLineNumber=I,this.endColumn=H):(this.startLineNumber=I,this.startColumn=H,this.endLineNumber=K,this.endColumn=D)}return J.prototype.isEmpty=function(){return J.isEmpty(this)},J.isEmpty=function(I){return I.startLineNumber===I.endLineNumber&&I.startColumn===I.endColumn},J.prototype.containsPosition=function(I){return J.containsPosition(this,I)},J.containsPosition=function(I,H){return H.lineNumber<I.startLineNumber||H.lineNumber>I.endLineNumber||H.lineNumber===I.startLineNumber&&H.column<I.startColumn?!1:!(H.lineNumber===I.endLineNumber&&H.column>I.endColumn)},J.prototype.containsRange=function(I){return J.containsRange(this,I)},J.containsRange=function(I,H){return H.startLineNumber<I.startLineNumber||H.endLineNumber<I.startLineNumber||(H.startLineNumber>I.endLineNumber||H.endLineNumber>I.endLineNumber||H.startLineNumber===I.startLineNumber&&H.startColumn<I.startColumn)?!1:!(H.endLineNumber===I.endLineNumber&&H.endColumn>I.endColumn)},J.prototype.strictContainsRange=function(I){return J.strictContainsRange(this,I)},J.strictContainsRange=function(I,H){return H.startLineNumber<I.startLineNumber||H.endLineNumber<I.startLineNumber||(H.startLineNumber>I.endLineNumber||H.endLineNumber>I.endLineNumber||H.startLineNumber===I.startLineNumber&&H.startColumn<=I.startColumn)?!1:!(H.endLineNumber===I.endLineNumber&&H.endColumn>=I.endColumn)},J.prototype.plusRange=function(I){return J.plusRange(this,I)},J.plusRange=function(I,H){var K,D,U,j;return H.startLineNumber<I.startLineNumber?(K=H.startLineNumber,D=H.startColumn):H.startLineNumber===I.startLineNumber?(K=H.startLineNumber,D=Math.min(H.startColumn,I.startColumn)):(K=I.startLineNumber,D=I.startColumn),H.endLineNumber>I.endLineNumber?(U=H.endLineNumber,j=H.endColumn):H.endLineNumber===I.endLineNumber?(U=H.endLineNumber,j=Math.max(H.endColumn,I.endColumn)):(U=I.endLineNumber,j=I.endColumn),new J(K,D,U,j)},J.prototype.intersectRanges=function(I){return J.intersectRanges(this,I)},J.intersectRanges=function(I,H){var K=I.startLineNumber,D=I.startColumn,U=I.endLineNumber,j=I.endColumn,h=H.startLineNumber,b=H.startColumn,O=H.endLineNumber,m=H.endColumn;return K<h?(K=h,D=b):K===h&&(D=Math.max(D,b)),U>O?(U=O,j=m):U===O&&(j=Math.min(j,m)),K>U||K===U&&D>j?null:new J(K,D,U,j)},J.prototype.equalsRange=function(I){return J.equalsRange(this,I)},J.equalsRange=function(I,H){return!!I&&!!H&&I.startLineNumber===H.startLineNumber&&I.startColumn===H.startColumn&&I.endLineNumber===H.endLineNumber&&I.endColumn===H.endColumn},J.prototype.getEndPosition=function(){return new T.a(this.endLineNumber,this.endColumn)},J.prototype.getStartPosition=function(){return new T.a(this.startLineNumber,this.startColumn)},J.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},J.prototype.setEndPosition=function(I,H){return new J(this.startLineNumber,this.startColumn,I,H)},J.prototype.setStartPosition=function(I,H){return new J(I,H,this.endLineNumber,this.endColumn)},J.prototype.collapseToStart=function(){return J.collapseToStart(this)},J.collapseToStart=function(I){return new J(I.startLineNumber,I.startColumn,I.startLineNumber,I.startColumn)},J.fromPositions=function(I,H){return H===void 0&&(H=I),new J(I.lineNumber,I.column,H.lineNumber,H.column)},J.lift=function(I){return I?new J(I.startLineNumber,I.startColumn,I.endLineNumber,I.endColumn):null},J.isIRange=function(I){return I&&typeof I.startLineNumber=="number"&&typeof I.startColumn=="number"&&typeof I.endLineNumber=="number"&&typeof I.endColumn=="number"},J.areIntersectingOrTouching=function(I,H){return I.endLineNumber<H.startLineNumber||I.endLineNumber===H.startLineNumber&&I.endColumn<H.startColumn?!1:!(H.endLineNumber<I.startLineNumber||H.endLineNumber===I.startLineNumber&&H.endColumn<I.startColumn)},J.areIntersecting=function(I,H){return I.endLineNumber<H.startLineNumber||I.endLineNumber===H.startLineNumber&&I.endColumn<=H.startColumn?!1:!(H.endLineNumber<I.startLineNumber||H.endLineNumber===I.startLineNumber&&H.endColumn<=I.startColumn)},J.compareRangesUsingStarts=function(I,H){if(I&&H){var K=I.startLineNumber|0,D=H.startLineNumber|0;if(K===D){var U=I.startColumn|0,j=H.startColumn|0;if(U===j){var h=I.endLineNumber|0,b=H.endLineNumber|0;if(h===b){var O=I.endColumn|0,m=H.endColumn|0;return O-m}return h-b}return U-j}return K-D}var C=I?1:0,w=H?1:0;return C-w},J.compareRangesUsingEnds=function(I,H){return I.endLineNumber===H.endLineNumber?I.endColumn===H.endColumn?I.startLineNumber===H.startLineNumber?I.startColumn-H.startColumn:I.startLineNumber-H.startLineNumber:I.endColumn-H.endColumn:I.endLineNumber-H.endLineNumber},J.spansMultipleLines=function(I){return I.endLineNumber>I.startLineNumber},J}()},bY76:function(Mt,F,e){"use strict";e.d(F,"a",function(){return m});var T=e("MNsG"),pe=function(){var R=function(P,x){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,V){Q.__proto__=V}||function(Q,V){for(var W in V)V.hasOwnProperty(W)&&(Q[W]=V[W])},R(P,x)};return function(P,x){R(P,x);function Q(){this.constructor=P}P.prototype=x===null?Object.create(x):(Q.prototype=x.prototype,new Q)}}(),J,I=/^\w[\w\d+.-]*$/,H=/^\//,K=/^\/\//;function D(R,P){if(!R.scheme&&P)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+R.authority+'", path: "'+R.path+'", query: "'+R.query+'", fragment: "'+R.fragment+'"}');if(R.scheme&&!I.test(R.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(R.path){if(R.authority){if(!H.test(R.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(K.test(R.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function U(R,P){return!R&&!P?"file":R}function j(R,P){switch(R){case"https":case"http":case"file":P?P[0]!==b&&(P=b+P):P=b;break}return P}var h="",b="/",O=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,m=function(){function R(P,x,Q,V,W,B){B===void 0&&(B=!1),typeof P=="object"?(this.scheme=P.scheme||h,this.authority=P.authority||h,this.path=P.path||h,this.query=P.query||h,this.fragment=P.fragment||h):(this.scheme=U(P,B),this.authority=x||h,this.path=j(this.scheme,Q||h),this.query=V||h,this.fragment=W||h,D(this,B))}return R.isUri=function(P){return P instanceof R?!0:P?typeof P.authority=="string"&&typeof P.fragment=="string"&&typeof P.path=="string"&&typeof P.query=="string"&&typeof P.scheme=="string"&&typeof P.fsPath=="function"&&typeof P.with=="function"&&typeof P.toString=="function":!1},Object.defineProperty(R.prototype,"fsPath",{get:function(){return c(this)},enumerable:!0,configurable:!0}),R.prototype.with=function(P){if(!P)return this;var x=P.scheme,Q=P.authority,V=P.path,W=P.query,B=P.fragment;return x===void 0?x=this.scheme:x===null&&(x=h),Q===void 0?Q=this.authority:Q===null&&(Q=h),V===void 0?V=this.path:V===null&&(V=h),W===void 0?W=this.query:W===null&&(W=h),B===void 0?B=this.fragment:B===null&&(B=h),x===this.scheme&&Q===this.authority&&V===this.path&&W===this.query&&B===this.fragment?this:new w(x,Q,V,W,B)},R.parse=function(P,x){x===void 0&&(x=!1);var Q=O.exec(P);return Q?new w(Q[2]||h,L(Q[4]||h),L(Q[5]||h),L(Q[7]||h),L(Q[9]||h),x):new w(h,h,h,h,h)},R.file=function(P){var x=h;if(T.h&&(P=P.replace(/\\/g,b)),P[0]===b&&P[1]===b){var Q=P.indexOf(b,2);Q===-1?(x=P.substring(2),P=b):(x=P.substring(2,Q),P=P.substring(Q)||b)}return new w("file",x,P,h,h)},R.from=function(P){return new w(P.scheme,P.authority,P.path,P.query,P.fragment)},R.prototype.toString=function(P){return P===void 0&&(P=!1),u(this,P)},R.prototype.toJSON=function(){return this},R.revive=function(P){if(P){if(P instanceof R)return P;var x=new w(P);return x._formatted=P.external,x._fsPath=P._sep===C?P.fsPath:null,x}else return P},R}(),C=T.h?1:void 0,w=function(R){pe(P,R);function P(){var x=R!==null&&R.apply(this,arguments)||this;return x._formatted=null,x._fsPath=null,x}return Object.defineProperty(P.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=c(this)),this._fsPath},enumerable:!0,configurable:!0}),P.prototype.toString=function(x){return x===void 0&&(x=!1),x?u(this,!0):(this._formatted||(this._formatted=u(this,!1)),this._formatted)},P.prototype.toJSON=function(){var x={$mid:1};return this._fsPath&&(x.fsPath=this._fsPath,x._sep=C),this._formatted&&(x.external=this._formatted),this.path&&(x.path=this.path),this.scheme&&(x.scheme=this.scheme),this.authority&&(x.authority=this.authority),this.query&&(x.query=this.query),this.fragment&&(x.fragment=this.fragment),x},P}(m),v=(J={},J[58]="%3A",J[47]="%2F",J[63]="%3F",J[35]="%23",J[91]="%5B",J[93]="%5D",J[64]="%40",J[33]="%21",J[36]="%24",J[38]="%26",J[39]="%27",J[40]="%28",J[41]="%29",J[42]="%2A",J[43]="%2B",J[44]="%2C",J[59]="%3B",J[61]="%3D",J[32]="%20",J);function p(R,P){for(var x=void 0,Q=-1,V=0;V<R.length;V++){var W=R.charCodeAt(V);if(W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===45||W===46||W===95||W===126||P&&W===47)Q!==-1&&(x+=encodeURIComponent(R.substring(Q,V)),Q=-1),x!==void 0&&(x+=R.charAt(V));else{x===void 0&&(x=R.substr(0,V));var B=v[W];B!==void 0?(Q!==-1&&(x+=encodeURIComponent(R.substring(Q,V)),Q=-1),x+=B):Q===-1&&(Q=V)}}return Q!==-1&&(x+=encodeURIComponent(R.substring(Q))),x!==void 0?x:R}function d(R){for(var P=void 0,x=0;x<R.length;x++){var Q=R.charCodeAt(x);Q===35||Q===63?(P===void 0&&(P=R.substr(0,x)),P+=v[Q]):P!==void 0&&(P+=R[x])}return P!==void 0?P:R}function c(R){var P;return R.authority&&R.path.length>1&&R.scheme==="file"?P="//"+R.authority+R.path:R.path.charCodeAt(0)===47&&(R.path.charCodeAt(1)>=65&&R.path.charCodeAt(1)<=90||R.path.charCodeAt(1)>=97&&R.path.charCodeAt(1)<=122)&&R.path.charCodeAt(2)===58?P=R.path[1].toLowerCase()+R.path.substr(2):P=R.path,T.h&&(P=P.replace(/\//g,"\\")),P}function u(R,P){var x=P?d:p,Q="",V=R.scheme,W=R.authority,B=R.path,ae=R.query,we=R.fragment;if(V&&(Q+=V,Q+=":"),(W||V==="file")&&(Q+=b,Q+=b),W){var Me=W.indexOf("@");if(Me!==-1){var Pe=W.substr(0,Me);W=W.substr(Me+1),Me=Pe.indexOf(":"),Me===-1?Q+=x(Pe,!1):(Q+=x(Pe.substr(0,Me),!1),Q+=":",Q+=x(Pe.substr(Me+1),!1)),Q+="@"}W=W.toLowerCase(),Me=W.indexOf(":"),Me===-1?Q+=x(W,!1):(Q+=x(W.substr(0,Me),!1),Q+=W.substr(Me))}if(B){if(B.length>=3&&B.charCodeAt(0)===47&&B.charCodeAt(2)===58){var Be=B.charCodeAt(1);Be>=65&&Be<=90&&(B="/"+String.fromCharCode(Be+32)+":"+B.substr(3))}else if(B.length>=2&&B.charCodeAt(1)===58){var Be=B.charCodeAt(0);Be>=65&&Be<=90&&(B=String.fromCharCode(Be+32)+":"+B.substr(2))}Q+=x(B,!0)}return ae&&(Q+="?",Q+=x(ae,!1)),we&&(Q+="#",Q+=P?we:p(we,!1)),Q}function f(R){try{return decodeURIComponent(R)}catch(P){return R.length>3?R.substr(0,3)+f(R.substr(3)):R}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(R){return R.match(E)?R.replace(E,function(P){return f(P)}):R}},ba9Q:function(Mt,F,e){"use strict";e.r(F);var T=e("3/fG"),pe=e("sswD"),J=e("LCkn"),I=e("aokT"),H=e("wQH0"),K=e("+Fos"),D=function(){var j=function(h,b){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,m){O.__proto__=m}||function(O,m){for(var C in m)m.hasOwnProperty(C)&&(O[C]=m[C])},j(h,b)};return function(h,b){j(h,b);function O(){this.constructor=h}h.prototype=b===null?Object.create(b):(O.prototype=b.prototype,new O)}}(),U=function(j){D(h,j);function h(){return j.call(this,{id:"editor.action.transposeLetters",label:T.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:H.a.writable,kbOpts:{kbExpr:H.a.textInputFocus,primary:0,mac:{primary:256|50},weight:100}})||this}return h.prototype.run=function(b,O){if(!O.hasModel())return;for(var m=O.getModel(),C=[],w=O.getSelections(),v=0,p=w;v<p.length;v++){var d=p[v];if(!d.isEmpty())continue;var c=d.startLineNumber,u=d.startColumn,f=m.getLineMaxColumn(c);if(c===1&&(u===1||u===2&&f===2))continue;var E=u===f?d.getPosition():K.a.rightPosition(m,d.getPosition().lineNumber,d.getPosition().column),L=K.a.leftPosition(m,E.lineNumber,E.column),R=K.a.leftPosition(m,L.lineNumber,L.column),P=m.getValueInRange(I.a.fromPositions(R,L)),x=m.getValueInRange(I.a.fromPositions(L,E)),Q=I.a.fromPositions(R,E);C.push(new J.a(Q,x+P))}C.length>0&&(O.pushUndoStop(),O.executeCommands(this.id,C),O.pushUndoStop())},h}(pe.b);Object(pe.f)(U)},baJR:function(Mt,F,e){"use strict";e.d(F,"b",function(){return H}),e.d(F,"c",function(){return K}),e.d(F,"a",function(){return D}),e.d(F,"d",function(){return j}),e.d(F,"e",function(){return b});var T=e("N0LK"),pe=e("erNZ"),J=e("dBaI"),I=function(){function c(u,f){this.endIndex=u,this.type=f}return c}(),H=function(){function c(u,f){this.startOffset=u,this.endOffset=f}return c.prototype.equals=function(u){return this.startOffset===u.startOffset&&this.endOffset===u.endOffset},c}(),K=function(){function c(u,f,E,L,R,P,x,Q,V,W,B,ae,we,Me,Pe,Be,Ke,Fe){this.useMonospaceOptimizations=u,this.canUseHalfwidthRightwardsArrow=f,this.lineContent=E,this.continuesWithWrappedLine=L,this.isBasicASCII=R,this.containsRTL=P,this.fauxIndentLength=x,this.lineTokens=Q,this.lineDecorations=V,this.tabSize=W,this.startVisibleColumn=B,this.spaceWidth=ae,this.middotWidth=we,this.stopRenderingLineAfter=Me,this.renderWhitespace=Pe==="all"?3:Pe==="boundary"?1:Pe==="selection"?2:0,this.renderControlCharacters=Be,this.fontLigatures=Ke,this.selectionsOnLine=Fe&&Fe.sort(function(re,ee){return re.startOffset<ee.startOffset?-1:1})}return c.prototype.sameSelection=function(u){if(this.selectionsOnLine===null)return u===null;if(u===null)return!1;if(u.length!==this.selectionsOnLine.length)return!1;for(var f=0;f<this.selectionsOnLine.length;f++)if(!this.selectionsOnLine[f].equals(u[f]))return!1;return!0},c.prototype.equals=function(u){return this.useMonospaceOptimizations===u.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===u.canUseHalfwidthRightwardsArrow&&this.lineContent===u.lineContent&&this.continuesWithWrappedLine===u.continuesWithWrappedLine&&this.isBasicASCII===u.isBasicASCII&&this.containsRTL===u.containsRTL&&this.fauxIndentLength===u.fauxIndentLength&&this.tabSize===u.tabSize&&this.startVisibleColumn===u.startVisibleColumn&&this.spaceWidth===u.spaceWidth&&this.stopRenderingLineAfter===u.stopRenderingLineAfter&&this.renderWhitespace===u.renderWhitespace&&this.renderControlCharacters===u.renderControlCharacters&&this.fontLigatures===u.fontLigatures&&J.a.equalsArr(this.lineDecorations,u.lineDecorations)&&this.lineTokens.equals(u.lineTokens)&&this.sameSelection(u.selectionsOnLine)},c}(),D=function(){function c(u,f){this.length=u,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return c.getPartIndex=function(u){return(u&4294901760)>>>16},c.getCharIndex=function(u){return(u&65535)>>>0},c.prototype.setPartData=function(u,f,E,L){var R=(f<<16|E<<0)>>>0;this._data[u]=R,this._absoluteOffsets[u]=L+E},c.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},c.prototype.charOffsetToPartData=function(u){return this.length===0?0:u<0?this._data[0]:u>=this.length?this._data[this.length-1]:this._data[u]},c.prototype.partDataToCharOffset=function(u,f,E){if(this.length===0)return 0;for(var L=(u<<16|E<<0)>>>0,R=0,P=this.length-1;R+1<P;){var x=R+P>>>1,Q=this._data[x];if(Q===L)return x;Q>L?P=x:R=x}if(R===P)return R;var V=this._data[R],W=this._data[P];if(V===L)return R;if(W===L)return P;var B=c.getPartIndex(V),ae=c.getCharIndex(V),we=c.getPartIndex(W),Me;B!==we?Me=f:Me=c.getCharIndex(W);var Pe=E-ae,Be=Me-E;return Pe<=Be?R:P},c}(),U=function(){function c(u,f,E){this.characterMapping=u,this.containsRTL=f,this.containsForeignElements=E}return c}();function j(c,u){if(c.lineContent.length===0){var f=0,E="<span><span>\xA0</span></span>";if(c.lineDecorations.length>0){for(var L=[],R=[],P=0,x=c.lineDecorations.length;P<x;P++){var Q=c.lineDecorations[P];Q.type===1&&(L.push(c.lineDecorations[P].className),f|=1),Q.type===2&&(R.push(c.lineDecorations[P].className),f|=2)}if(f!==0){var V=L.length>0?'<span class="'+L.join(" ")+'"></span>':"",W=R.length>0?'<span class="'+R.join(" ")+'"></span>':"";E="<span>"+V+W+"</span>"}}return u.appendASCIIString(E),new U(new D(0,0),!1,f)}return d(m(c),u)}var h=function(){function c(u,f,E,L){this.characterMapping=u,this.html=f,this.containsRTL=E,this.containsForeignElements=L}return c}();function b(c){var u=Object(pe.a)(1e4),f=j(c,u);return new h(f.characterMapping,u.build(),f.containsRTL,f.containsForeignElements)}var O=function(){function c(u,f,E,L,R,P,x,Q,V,W,B,ae,we,Me,Pe){this.fontIsMonospace=u,this.canUseHalfwidthRightwardsArrow=f,this.lineContent=E,this.len=L,this.isOverflowing=R,this.parts=P,this.containsForeignElements=x,this.fauxIndentLength=Q,this.tabSize=V,this.startVisibleColumn=W,this.containsRTL=B,this.spaceWidth=ae,this.middotWidth=we,this.renderWhitespace=Me,this.renderControlCharacters=Pe}return c}();function m(c){var u=c.useMonospaceOptimizations,f=c.lineContent,E,L;c.stopRenderingLineAfter!==-1&&c.stopRenderingLineAfter<f.length?(E=!0,L=c.stopRenderingLineAfter):(E=!1,L=f.length);var R=C(c.lineTokens,c.fauxIndentLength,L);(c.renderWhitespace===3||c.renderWhitespace===1||c.renderWhitespace===2&&!!c.selectionsOnLine)&&(R=v(f,L,c.continuesWithWrappedLine,R,c.fauxIndentLength,c.tabSize,c.startVisibleColumn,u,c.selectionsOnLine,c.renderWhitespace===1));var P=0;if(c.lineDecorations.length>0){for(var x=0,Q=c.lineDecorations.length;x<Q;x++){var V=c.lineDecorations[x];V.type===3||V.type===1?P|=1:V.type===2&&(P|=2)}R=p(f,L,R,c.lineDecorations)}return c.containsRTL||(R=w(f,R,!c.isBasicASCII||c.fontLigatures)),new O(u,c.canUseHalfwidthRightwardsArrow,f,L,E,R,P,c.fauxIndentLength,c.tabSize,c.startVisibleColumn,c.containsRTL,c.spaceWidth,c.middotWidth,c.renderWhitespace,c.renderControlCharacters)}function C(c,u,f){var E=[],L=0;u>0&&(E[L++]=new I(u,""));for(var R=0,P=c.getCount();R<P;R++){var x=c.getEndOffset(R);if(x<=u)continue;var Q=c.getClassName(R);if(x>=f){E[L++]=new I(f,Q);break}E[L++]=new I(x,Q)}return E}function w(c,u,f){var E=0,L=[],R=0;if(f)for(var P=0,x=u.length;P<x;P++){var Q=u[P],V=Q.endIndex;if(E+50<V){for(var W=Q.type,B=-1,ae=E,we=E;we<V;we++)c.charCodeAt(we)===32&&(B=we),B!==-1&&we-ae>=50&&(L[R++]=new I(B+1,W),ae=B+1,B=-1);ae!==V&&(L[R++]=new I(V,W))}else L[R++]=Q;E=V}else for(var P=0,x=u.length;P<x;P++){var Q=u[P],V=Q.endIndex,Me=V-E;if(Me>50){for(var W=Q.type,Pe=Math.ceil(Me/50),we=1;we<Pe;we++){var Be=E+we*50;L[R++]=new I(Be,W)}L[R++]=new I(V,W)}else L[R++]=Q;E=V}return L}function v(c,u,f,E,L,R,P,x,Q,V){var W=[],B=0,ae=0,we=E[ae].type,Me=E[ae].endIndex,Pe=E.length,Be=T.q(c),Ke;Be===-1?(Be=u,Ke=u):Ke=T.D(c);for(var Fe=!1,re=0,ee=Q&&Q[re],ne=P%R,q=L;q<u;q++){var le=c.charCodeAt(q);ee&&q>=ee.endOffset&&(re++,ee=Q&&Q[re]);var Z=void 0;if(q<Be||q>Ke)Z=!0;else if(le===9)Z=!0;else if(le===32)if(V)if(Fe)Z=!0;else{var ve=q+1<u?c.charCodeAt(q+1):0;Z=ve===32||ve===9}else Z=!0;else Z=!1;Z&&Q&&(Z=!!ee&&ee.startOffset<=q&&ee.endOffset>q),Fe?(!Z||!x&&ne>=R)&&(W[B++]=new I(q,"vs-whitespace"),ne=ne%R):(q===Me||Z&&q>L)&&(W[B++]=new I(q,we),ne=ne%R),le===9?ne=R:T.y(le)?ne+=2:ne++,Fe=Z,q===Me&&(ae++,ae<Pe&&(we=E[ae].type,Me=E[ae].endIndex))}var Ne=!1;if(Fe)if(f&&V){var Xe=u>0?c.charCodeAt(u-1):0,de=u>1?c.charCodeAt(u-2):0,ge=Xe===32&&de!==32&&de!==9;ge||(Ne=!0)}else Ne=!0;return W[B++]=new I(u,Ne?"vs-whitespace":we),W}function p(c,u,f,E){E.sort(J.a.compare);for(var L=J.b.normalize(c,E),R=L.length,P=0,x=[],Q=0,V=0,W=0,B=f.length;W<B;W++){for(var ae=f[W],we=ae.endIndex,Me=ae.type;P<R&&L[P].startOffset<we;){var Pe=L[P];if(Pe.startOffset>V&&(V=Pe.startOffset,x[Q++]=new I(V,Me)),Pe.endOffset+1<=we)V=Pe.endOffset+1,x[Q++]=new I(V,Me+" "+Pe.className),P++;else{V=we,x[Q++]=new I(V,Me+" "+Pe.className);break}}we>V&&(V=we,x[Q++]=new I(V,Me))}var Be=f[f.length-1].endIndex;if(P<R&&L[P].startOffset===Be){for(var Ke=[];P<R&&L[P].startOffset===Be;)Ke.push(L[P].className),P++;x[Q++]=new I(V,Ke.join(" "))}return x}function d(c,u){var f=c.fontIsMonospace,E=c.canUseHalfwidthRightwardsArrow,L=c.containsForeignElements,R=c.lineContent,P=c.len,x=c.isOverflowing,Q=c.parts,V=c.fauxIndentLength,W=c.tabSize,B=c.startVisibleColumn,ae=c.containsRTL,we=c.spaceWidth,Me=c.middotWidth,Pe=c.renderWhitespace,Be=c.renderControlCharacters,Ke=Me>we?11825:183,Fe=new D(P+1,Q.length),re=0,ee=B,ne=0,q=0,le=0;u.appendASCIIString("<span>");for(var Z=0,ve=Q.length;Z<ve;Z++){le+=q;var Ne=Q[Z],Xe=Ne.endIndex,de=Ne.type,ge=Pe!==0&&de.indexOf("vs-whitespace")>=0;if(ne=0,u.appendASCIIString('<span class="'),u.appendASCIIString(de),u.appendASCII(34),ge){for(var Ee=0,Te=re,Ce=ee;Te<Xe;Te++){var fe=R.charCodeAt(Te),$=(fe===9?W-Ce%W:1)|0;Ee+=$,Te>=V&&(Ce+=$)}if(!f){var S=de==="vs-whitespace";(S||!L)&&(u.appendASCIIString(' style="display:inline-block;width:'),u.appendASCIIString(String(we*Ee)),u.appendASCIIString('px"'))}for(u.appendASCII(62);re<Xe;re++){Fe.setPartData(re,Z,ne,le);var fe=R.charCodeAt(re),$=void 0;if(fe===9){$=W-ee%W|0,!E||$>1?u.write1(8594):u.write1(65515);for(var z=2;z<=$;z++)u.write1(160)}else $=1,u.write1(Ke);ne+=$,re>=V&&(ee+=$)}q=Ee}else{var Ee=0;for(ae&&u.appendASCIIString(' dir="ltr"'),u.appendASCII(62);re<Xe;re++){Fe.setPartData(re,Z,ne,le);var fe=R.charCodeAt(re),ce=1,$=1;switch(fe){case 9:ce=W-ee%W,$=ce;for(var z=1;z<=ce;z++)u.write1(160);break;case 32:u.write1(160);break;case 60:u.appendASCIIString("&lt;");break;case 62:u.appendASCIIString("&gt;");break;case 38:u.appendASCIIString("&amp;");break;case 0:u.appendASCIIString("&#00;");break;case 65279:case 8232:u.write1(65533);break;default:T.y(fe)&&$++,Be&&fe<32?u.write1(9216+fe):u.write1(fe)}ne+=ce,Ee+=ce,re>=V&&(ee+=$)}q=Ee}u.appendASCIIString("</span>")}return Fe.setPartData(P,Q.length-1,ne,le),x&&u.appendASCIIString("<span>&hellip;</span>"),u.appendASCIIString("</span>"),new U(Fe,ae,L)}},bexQ:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("Cg/j"),pe=Object(T.c)("keybindingService")},bfR1:function(Mt,F,e){"use strict";e.r(F);var T=e("3/fG"),pe=e("sswD"),J=e("Yr1X"),I=function(){var U=function(j,h){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var m in O)O.hasOwnProperty(m)&&(b[m]=O[m])},U(j,h)};return function(j,h){U(j,h);function b(){this.constructor=j}j.prototype=h===null?Object.create(h):(b.prototype=h.prototype,new b)}}(),H=function(U){I(j,U);function j(){return U.call(this,{id:"editor.action.fontZoomIn",label:T.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})||this}return j.prototype.run=function(h,b){J.a.setZoomLevel(J.a.getZoomLevel()+1)},j}(pe.b),K=function(U){I(j,U);function j(){return U.call(this,{id:"editor.action.fontZoomOut",label:T.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})||this}return j.prototype.run=function(h,b){J.a.setZoomLevel(J.a.getZoomLevel()-1)},j}(pe.b),D=function(U){I(j,U);function j(){return U.call(this,{id:"editor.action.fontZoomReset",label:T.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})||this}return j.prototype.run=function(h,b){J.a.setZoomLevel(0)},j}(pe.b);Object(pe.f)(H),Object(pe.f)(K),Object(pe.f)(D)},bk7F:function(Mt,F,e){"use strict";e.r(F),e.d(F,"BracketMatchingController",function(){return E});var T=e("8ATB"),pe=e.n(T),J=e("3/fG"),I=e("X+cX"),H=e("pmY6"),K=e("sswD"),D=e("cGHE"),U=e("aokT"),j=e("gCVg"),h=e("wQH0"),b=e("M1Kb"),O=e("tX9W"),m=e("kYye"),C=e("MD5Z"),w=e("t9D7"),v=e("fjLI"),p=function(){var L=function(R,P){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,Q){x.__proto__=Q}||function(x,Q){for(var V in Q)Q.hasOwnProperty(V)&&(x[V]=Q[V])},L(R,P)};return function(R,P){L(R,P);function x(){this.constructor=R}R.prototype=P===null?Object.create(P):(x.prototype=P.prototype,new x)}}(),d=Object(C.Tb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},J.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),c=function(L){p(R,L);function R(){return L.call(this,{id:"editor.action.jumpToBracket",label:J.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:h.a.editorTextFocus,primary:2048|1024|88,weight:100}})||this}return R.prototype.run=function(P,x){var Q=E.get(x);if(!Q)return;Q.jumpToBracket()},R}(K.b),u=function(L){p(R,L);function R(){return L.call(this,{id:"editor.action.selectToBracket",label:J.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})||this}return R.prototype.run=function(P,x,Q){var V=E.get(x);if(!V)return;var W=!0;Q&&Q.selectBrackets===!1&&(W=!1),V.selectToBracket(W)},R}(K.b),f=function(){function L(R,P,x){this.position=R,this.brackets=P,this.options=x}return L}(),E=function(L){p(R,L);function R(P){var x=L.call(this)||this;return x._editor=P,x._lastBracketsData=[],x._lastVersionId=0,x._decorations=[],x._updateBracketsSoon=x._register(new I.d(function(){return x._updateBrackets()},50)),x._matchBrackets=x._editor.getOption(53),x._updateBracketsSoon.schedule(),x._register(P.onDidChangeCursorPosition(function(Q){if(x._matchBrackets==="never")return;x._updateBracketsSoon.schedule()})),x._register(P.onDidChangeModelContent(function(Q){x._updateBracketsSoon.schedule()})),x._register(P.onDidChangeModel(function(Q){x._lastBracketsData=[],x._decorations=[],x._updateBracketsSoon.schedule()})),x._register(P.onDidChangeModelLanguageConfiguration(function(Q){x._lastBracketsData=[],x._updateBracketsSoon.schedule()})),x._register(P.onDidChangeConfiguration(function(Q){Q.hasChanged(53)&&(x._matchBrackets=x._editor.getOption(53),x._decorations=x._editor.deltaDecorations(x._decorations,[]),x._lastBracketsData=[],x._lastVersionId=0,x._updateBracketsSoon.schedule())})),x}return R.get=function(P){return P.getContribution(R.ID)},R.prototype.jumpToBracket=function(){if(!this._editor.hasModel())return;var P=this._editor.getModel(),x=this._editor.getSelections().map(function(Q){var V=Q.getStartPosition(),W=P.matchBracket(V),B=null;if(W)W[0].containsPosition(V)?B=W[1].getStartPosition():W[1].containsPosition(V)&&(B=W[0].getStartPosition());else{var ae=P.findEnclosingBrackets(V);if(ae)B=ae[0].getStartPosition();else{var we=P.findNextBracket(V);we&&we.range&&(B=we.range.getStartPosition())}}return B?new j.a(B.lineNumber,B.column,B.lineNumber,B.column):new j.a(V.lineNumber,V.column,V.lineNumber,V.column)});this._editor.setSelections(x),this._editor.revealRange(x[0])},R.prototype.selectToBracket=function(P){if(!this._editor.hasModel())return;var x=this._editor.getModel(),Q=[];this._editor.getSelections().forEach(function(V){var W=V.getStartPosition(),B=x.matchBracket(W);if(!B&&(B=x.findEnclosingBrackets(W),!B)){var ae=x.findNextBracket(W);ae&&ae.range&&(B=x.matchBracket(ae.range.getStartPosition()))}var we=null,Me=null;if(B){B.sort(U.a.compareRangesUsingStarts);var Pe=B[0],Be=B[1];we=P?Pe.getStartPosition():Pe.getEndPosition(),Me=P?Be.getEndPosition():Be.getStartPosition()}we&&Me&&Q.push(new j.a(we.lineNumber,we.column,Me.lineNumber,Me.column))}),Q.length>0&&(this._editor.setSelections(Q),this._editor.revealRange(Q[0]))},R.prototype._updateBrackets=function(){if(this._matchBrackets==="never")return;this._recomputeBrackets();for(var P=[],x=0,Q=0,V=this._lastBracketsData;Q<V.length;Q++){var W=V[Q],B=W.brackets;B&&(P[x++]={range:B[0],options:W.options},P[x++]={range:B[1],options:W.options})}this._decorations=this._editor.deltaDecorations(this._decorations,P)},R.prototype._recomputeBrackets=function(){if(!this._editor.hasModel()){this._lastBracketsData=[],this._lastVersionId=0;return}var P=this._editor.getSelections();if(P.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}var x=this._editor.getModel(),Q=x.getVersionId(),V=[];this._lastVersionId===Q&&(V=this._lastBracketsData);for(var W=[],B=0,ae=0,we=P.length;ae<we;ae++){var Me=P[ae];Me.isEmpty()&&(W[B++]=Me.getStartPosition())}W.length>1&&W.sort(D.a.compare);for(var Pe=[],Be=0,Ke=0,Fe=V.length,ae=0,we=W.length;ae<we;ae++){for(var re=W[ae];Ke<Fe&&V[Ke].position.isBefore(re);)Ke++;if(Ke<Fe&&V[Ke].position.equals(re))Pe[Be++]=V[Ke];else{var ee=x.matchBracket(re),ne=R._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!ee&&this._matchBrackets==="always"&&(ee=x.findEnclosingBrackets(re,20),ne=R._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),Pe[Be++]=new f(re,ee,ne)}}this._lastBracketsData=Pe,this._lastVersionId=Q},R.ID="editor.contrib.bracketMatchingController",R._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=O.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(w.f)(d),position:b.d.Center}}),R._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=O.a.register({stickiness:1,className:"bracket-match"}),R}(H.a);Object(K.h)(E.ID,E),Object(K.f)(u),Object(K.f)(c),Object(w.e)(function(L,R){var P=L.getColor(m.c);P&&R.addRule(".monaco-editor .bracket-match { background-color: "+P+"; }");var x=L.getColor(m.d);x&&R.addRule(".monaco-editor .bracket-match { border: 1px solid "+x+"; }")}),v.c.appendMenuItem(19,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:J.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},c2dO:function(Mt,F,e){"use strict";e.r(F),e.d(F,"LanguageServiceDefaultsImpl",function(){return I});var T=e("M/lh"),pe=e.n(T);"use strict";var J=monaco.Emitter,I=function(){function d(c,u,f){this._onDidChange=new J,this._languageId=c,this.setOptions(u),this.setModeConfiguration(f)}return Object.defineProperty(d.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),d.prototype.setOptions=function(c){this._options=c||Object.create(null),this._onDidChange.fire(this)},d.prototype.setModeConfiguration=function(c){this._modeConfiguration=c||Object.create(null),this._onDidChange.fire(this)},d}(),H={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},K={format:H,suggest:{html5:!0,angular1:!0,ionic:!0}},D={format:H,suggest:{html5:!0}},U={format:H,suggest:{html5:!0,razor:!0}};function j(d){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:d===h,documentFormattingEdits:d===h,documentRangeFormattingEdits:d===h}}var h="html",b="handlebars",O="razor",m=new I(h,K,j(h)),C=new I(b,D,j(b)),w=new I(O,U,j(O));function v(){return{htmlDefaults:m,razorDefaults:w,handlebarDefaults:C}}monaco.languages.html=v();function p(){return e.e(289).then(e.bind(null,"+lu7"))}monaco.languages.onLanguage(h,function(){p().then(function(d){return d.setupMode(m)})}),monaco.languages.onLanguage(b,function(){p().then(function(d){return d.setupMode(C)})}),monaco.languages.onLanguage(O,function(){p().then(function(d){return d.setupMode(w)})})},c9ML:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return e.e(336).then(e.bind(null,"QJnQ"))}})},cGHE:function(Mt,F,e){"use strict";e.d(F,"a",function(){return T});var T=function(){function pe(J,I){this.lineNumber=J,this.column=I}return pe.prototype.with=function(J,I){return J===void 0&&(J=this.lineNumber),I===void 0&&(I=this.column),J===this.lineNumber&&I===this.column?this:new pe(J,I)},pe.prototype.delta=function(J,I){return J===void 0&&(J=0),I===void 0&&(I=0),this.with(this.lineNumber+J,this.column+I)},pe.prototype.equals=function(J){return pe.equals(this,J)},pe.equals=function(J,I){return!J&&!I?!0:!!J&&!!I&&J.lineNumber===I.lineNumber&&J.column===I.column},pe.prototype.isBefore=function(J){return pe.isBefore(this,J)},pe.isBefore=function(J,I){return J.lineNumber<I.lineNumber?!0:I.lineNumber<J.lineNumber?!1:J.column<I.column},pe.prototype.isBeforeOrEqual=function(J){return pe.isBeforeOrEqual(this,J)},pe.isBeforeOrEqual=function(J,I){return J.lineNumber<I.lineNumber?!0:I.lineNumber<J.lineNumber?!1:J.column<=I.column},pe.compare=function(J,I){var H=J.lineNumber|0,K=I.lineNumber|0;if(H===K){var D=J.column|0,U=I.column|0;return D-U}return H-K},pe.prototype.clone=function(){return new pe(this.lineNumber,this.column)},pe.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},pe.lift=function(J){return new pe(J.lineNumber,J.column)},pe.isIPosition=function(J){return J&&typeof J.lineNumber=="number"&&typeof J.column=="number"},pe}()},cIJc:function(Mt,F,e){"use strict";e.r(F);var T=e("6OMU"),pe=e("JQT/"),J=e("/kV6"),I=e("pmY6"),H=e("sswD"),K=e("Vxe3"),D=e("MXAL"),U=e("aokT"),j=e("wQH0"),h=e("twdY"),b=e("pAvP"),O=e("OBOq"),m=e("/cxE"),C=e("bY76"),w=e("vATl"),v=e("sFUC"),p=e("cGHE"),d=e("gCVg"),c=e("G2kB"),u=e("0/Sa"),f=function(){function Te(){}return Te._handleEolEdits=function(Ce,fe){for(var $=void 0,S=[],z=0,ce=fe;z<ce.length;z++){var se=ce[z];typeof se.eol=="number"&&($=se.eol),se.range&&typeof se.text=="string"&&S.push(se)}return typeof $=="number"&&(Ce.hasModel()&&Ce.getModel().pushEOL($)),S},Te._isFullModelReplaceEdit=function(Ce,fe){if(!Ce.hasModel())return!1;var $=Ce.getModel(),S=$.validateRange(fe.range),z=$.getFullModelRange();return z.equalsRange(S)},Te.execute=function(Ce,fe){Ce.pushUndoStop();var $=Te._handleEolEdits(Ce,fe);$.length===1&&Te._isFullModelReplaceEdit(Ce,$[0])?Ce.executeEdits("formatEditsCommand",$.map(function(S){return u.a.replace(U.a.lift(S.range),S.text)})):Ce.executeEdits("formatEditsCommand",$.map(function(S){return u.a.replaceMove(U.a.lift(S.range),S.text)})),Ce.pushUndoStop()},Te}(),E=e("3/fG"),L=function(){function Te(Ce){this.value=Ce,this._lower=Ce.toLowerCase()}return Te.toKey=function(Ce){return typeof Ce=="string"?Ce.toLowerCase():Ce._lower},Te}(),R=e("Cg/j"),P=e("24hK"),x=e("nnTU"),Q=e("746U"),V=function(Te,Ce,fe,$){function S(z){return z instanceof fe?z:new fe(function(ce){ce(z)})}return new(fe||(fe=Promise))(function(z,ce){function se(Le){try{Re($.next(Le))}catch(Ue){ce(Ue)}}function ye(Le){try{Re($.throw(Le))}catch(Ue){ce(Ue)}}function Re(Le){Le.done?z(Le.value):S(Le.value).then(se,ye)}Re(($=$.apply(Te,Ce||[])).next())})},W=function(Te,Ce){var fe={label:0,sent:function(){if(z[0]&1)throw z[1];return z[1]},trys:[],ops:[]},$,S,z,ce;return ce={next:se(0),throw:se(1),return:se(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function se(Re){return function(Le){return ye([Re,Le])}}function ye(Re){if($)throw new TypeError("Generator is already executing.");for(;fe;)try{if($=1,S&&(z=Re[0]&2?S.return:Re[0]?S.throw||((z=S.return)&&z.call(S),0):S.next)&&!(z=z.call(S,Re[1])).done)return z;(S=0,z)&&(Re=[Re[0]&2,z.value]);switch(Re[0]){case 0:case 1:z=Re;break;case 4:return fe.label++,{value:Re[1],done:!1};case 5:fe.label++,S=Re[1],Re=[0];continue;case 7:Re=fe.ops.pop(),fe.trys.pop();continue;default:if(!(z=fe.trys,z=z.length>0&&z[z.length-1])&&(Re[0]===6||Re[0]===2)){fe=0;continue}if(Re[0]===3&&(!z||Re[1]>z[0]&&Re[1]<z[3])){fe.label=Re[1];break}if(Re[0]===6&&fe.label<z[1]){fe.label=z[1],z=Re;break}if(z&&fe.label<z[2]){fe.label=z[2],fe.ops.push(Re);break}z[2]&&fe.ops.pop(),fe.trys.pop();continue}Re=Ce.call(Te,fe)}catch(Le){Re=[6,Le],S=0}finally{$=z=0}if(Re[0]&5)throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}};function B(Te){if(Te=Te.filter(function(z){return z.range}),!Te.length)return;for(var Ce=Te[0].range,fe=1;fe<Te.length;fe++)Ce=U.a.plusRange(Ce,Te[fe].range);var $=Ce.startLineNumber,S=Ce.endLineNumber;$===S?Te.length===1?Object(O.a)(E.a("hint11","Made 1 formatting edit on line {0}",$)):Object(O.a)(E.a("hintn1","Made {0} formatting edits on line {1}",Te.length,$)):Te.length===1?Object(O.a)(E.a("hint1n","Made 1 formatting edit between lines {0} and {1}",$,S)):Object(O.a)(E.a("hintnn","Made {0} formatting edits between lines {1} and {2}",Te.length,$,S))}function ae(Te){for(var Ce=[],fe=new Set,$=h.g.ordered(Te),S=0,z=$;S<z.length;S++){var ce=z[S];Ce.push(ce),ce.extensionId&&fe.add(L.toKey(ce.extensionId))}for(var se=h.j.ordered(Te),ye=function(Ue){if(Ue.extensionId){if(fe.has(L.toKey(Ue.extensionId)))return"continue";fe.add(L.toKey(Ue.extensionId))}Ce.push({displayName:Ue.displayName,extensionId:Ue.extensionId,provideDocumentFormattingEdits:function(Je,nt,vt){return Ue.provideDocumentRangeFormattingEdits(Je,Je.getFullModelRange(),nt,vt)}})},Re=0,Le=se;Re<Le.length;Re++){var ce=Le[Re];ye(ce)}return Ce}var we=function(){function Te(){}return Te.select=function(Ce,fe,$){return V(this,void 0,void 0,function(){var S;return W(this,function(z){switch(z.label){case 0:return Ce.length===0?[2,void 0]:(S=Te._selectors.iterator().next().value,S?[4,S(Ce,fe,$)]:[3,2]);case 1:return[2,z.sent()];case 2:return[2,Ce[0]]}})})},Te._selectors=new P.a,Te}();function Me(Te,Ce,fe,$,S){return V(this,void 0,void 0,function(){var z,ce,se,ye;return W(this,function(Re){switch(Re.label){case 0:return z=Te.get(R.a),ce=Object(v.a)(Ce)?Ce.getModel():Ce,se=h.j.ordered(ce),[4,we.select(se,ce,$)];case 1:return ye=Re.sent(),ye?[4,z.invokeFunction(Pe,ye,Ce,fe,S)]:[3,3];case 2:Re.sent(),Re.label=3;case 3:return[2]}})})}function Pe(Te,Ce,fe,$,S){return V(this,void 0,void 0,function(){var z,ce,se,ye,Re,Le,Ue;return W(this,function(Je){switch(Je.label){case 0:z=Te.get(b.a),Object(v.a)(fe)?(ce=fe.getModel(),se=new w.b(fe,1|4,S)):(ce=fe,se=new w.d(fe,S)),Je.label=1;case 1:return Je.trys.push([1,,4,5]),[4,Ce.provideDocumentRangeFormattingEdits(ce,$,ce.getFormattingOptions(),se.token)];case 2:return Re=Je.sent(),[4,z.computeMoreMinimalEdits(ce.uri,Re)];case 3:return ye=Je.sent(),se.token.isCancellationRequested?[2,!0]:[3,5];case 4:return se.dispose(),[7];case 5:return!ye||ye.length===0?[2,!1]:(Object(v.a)(fe)?(f.execute(fe,ye),B(ye),fe.pushUndoStop(),fe.revealPositionInCenterIfOutsideViewport(fe.getPosition(),1)):(Le=ye[0].range,Ue=new d.a(Le.startLineNumber,Le.startColumn,Le.endLineNumber,Le.endColumn),ce.pushEditOperations([Ue],ye.map(function(nt){return{text:nt.text,range:U.a.lift(nt.range),forceMoveMarkers:!0}}),function(nt){for(var vt=0,Rt=nt;vt<Rt.length;vt++){var Ot=Rt[vt].range;if(U.a.areIntersectingOrTouching(Ot,Ue))return[new d.a(Ot.startLineNumber,Ot.startColumn,Ot.endLineNumber,Ot.endColumn)]}return null})),[2,!0])}})})}function Be(Te,Ce,fe,$){return V(this,void 0,void 0,function(){var S,z,ce,se;return W(this,function(ye){switch(ye.label){case 0:return S=Te.get(R.a),z=Object(v.a)(Ce)?Ce.getModel():Ce,ce=ae(z),[4,we.select(ce,z,fe)];case 1:return se=ye.sent(),se?[4,S.invokeFunction(Ke,se,Ce,fe,$)]:[3,3];case 2:ye.sent(),ye.label=3;case 3:return[2]}})})}function Ke(Te,Ce,fe,$,S){return V(this,void 0,void 0,function(){var z,ce,se,ye,Re,Le,Ue;return W(this,function(Je){switch(Je.label){case 0:z=Te.get(b.a),Object(v.a)(fe)?(ce=fe.getModel(),se=new w.b(fe,1|4,S)):(ce=fe,se=new w.d(fe,S)),Je.label=1;case 1:return Je.trys.push([1,,4,5]),[4,Ce.provideDocumentFormattingEdits(ce,ce.getFormattingOptions(),se.token)];case 2:return Re=Je.sent(),[4,z.computeMoreMinimalEdits(ce.uri,Re)];case 3:return ye=Je.sent(),se.token.isCancellationRequested?[2,!0]:[3,5];case 4:return se.dispose(),[7];case 5:return!ye||ye.length===0?[2,!1]:(Object(v.a)(fe)?(f.execute(fe,ye),$!==2&&(B(ye),fe.pushUndoStop(),fe.revealPositionInCenterIfOutsideViewport(fe.getPosition(),1))):(Le=ye[0].range,Ue=new d.a(Le.startLineNumber,Le.startColumn,Le.endLineNumber,Le.endColumn),ce.pushEditOperations([Ue],ye.map(function(nt){return{text:nt.text,range:U.a.lift(nt.range),forceMoveMarkers:!0}}),function(nt){for(var vt=0,Rt=nt;vt<Rt.length;vt++){var Ot=Rt[vt].range;if(U.a.areIntersectingOrTouching(Ot,Ue))return[new d.a(Ot.startLineNumber,Ot.startColumn,Ot.endLineNumber,Ot.endColumn)]}return null})),[2,!0])}})})}function Fe(Te,Ce,fe,$,S){return V(this,void 0,void 0,function(){var z,ce,se,ye,Re;return W(this,function(Le){switch(Le.label){case 0:z=h.j.ordered(Ce),ce=0,se=z,Le.label=1;case 1:return ce<se.length?(ye=se[ce],[4,Promise.resolve(ye.provideDocumentRangeFormattingEdits(Ce,fe,$,S)).catch(m.f)]):[3,5];case 2:return Re=Le.sent(),Object(T.q)(Re)?[4,Te.computeMoreMinimalEdits(Ce.uri,Re)]:[3,4];case 3:return[2,Le.sent()];case 4:return ce++,[3,1];case 5:return[2,void 0]}})})}function re(Te,Ce,fe,$){return V(this,void 0,void 0,function(){var S,z,ce,se,ye;return W(this,function(Re){switch(Re.label){case 0:S=ae(Ce),z=0,ce=S,Re.label=1;case 1:return z<ce.length?(se=ce[z],[4,Promise.resolve(se.provideDocumentFormattingEdits(Ce,fe,$)).catch(m.f)]):[3,5];case 2:return ye=Re.sent(),Object(T.q)(ye)?[4,Te.computeMoreMinimalEdits(Ce.uri,ye)]:[3,4];case 3:return[2,Re.sent()];case 4:return z++,[3,1];case 5:return[2,void 0]}})})}function ee(Te,Ce,fe,$,S){var z=h.t.ordered(Ce);return z.length===0||z[0].autoFormatTriggerCharacters.indexOf($)<0?Promise.resolve(void 0):Promise.resolve(z[0].provideOnTypeFormattingEdits(Ce,fe,$,S,pe.a.None)).catch(m.f).then(function(ce){return Te.computeMoreMinimalEdits(Ce.uri,ce)})}x.a.registerCommand("_executeFormatRangeProvider",function(Te){for(var Ce=[],fe=1;fe<arguments.length;fe++)Ce[fe-1]=arguments[fe];var $=Ce[0],S=Ce[1],z=Ce[2];Object(Q.a)(C.a.isUri($)),Object(Q.a)(U.a.isIRange(S));var ce=Te.get(c.a).getModel($);if(!ce)throw Object(m.b)("resource");return Fe(Te.get(b.a),ce,U.a.lift(S),z,pe.a.None)}),x.a.registerCommand("_executeFormatDocumentProvider",function(Te){for(var Ce=[],fe=1;fe<arguments.length;fe++)Ce[fe-1]=arguments[fe];var $=Ce[0],S=Ce[1];Object(Q.a)(C.a.isUri($));var z=Te.get(c.a).getModel($);if(!z)throw Object(m.b)("resource");return re(Te.get(b.a),z,S,pe.a.None)}),x.a.registerCommand("_executeFormatOnTypeProvider",function(Te){for(var Ce=[],fe=1;fe<arguments.length;fe++)Ce[fe-1]=arguments[fe];var $=Ce[0],S=Ce[1],z=Ce[2],ce=Ce[3];Object(Q.a)(C.a.isUri($)),Object(Q.a)(p.a.isIPosition(S)),Object(Q.a)(typeof z=="string");var se=Te.get(c.a).getModel($);if(!se)throw Object(m.b)("resource");return ee(Te.get(b.a),se,p.a.lift(S),z,ce)});var ne=e("T8No"),q=function(){var Te=function(Ce,fe){return Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,S){$.__proto__=S}||function($,S){for(var z in S)S.hasOwnProperty(z)&&($[z]=S[z])},Te(Ce,fe)};return function(Ce,fe){Te(Ce,fe);function $(){this.constructor=Ce}Ce.prototype=fe===null?Object.create(fe):($.prototype=fe.prototype,new $)}}(),le=function(Te,Ce,fe,$){var S=arguments.length,z=S<3?Ce:$===null?$=Object.getOwnPropertyDescriptor(Ce,fe):$,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(Te,Ce,fe,$);else for(var se=Te.length-1;se>=0;se--)(ce=Te[se])&&(z=(S<3?ce(z):S>3?ce(Ce,fe,z):ce(Ce,fe))||z);return S>3&&z&&Object.defineProperty(Ce,fe,z),z},Z=function(Te,Ce){return function(fe,$){Ce(fe,$,Te)}},ve=function(Te,Ce,fe,$){function S(z){return z instanceof fe?z:new fe(function(ce){ce(z)})}return new(fe||(fe=Promise))(function(z,ce){function se(Le){try{Re($.next(Le))}catch(Ue){ce(Ue)}}function ye(Le){try{Re($.throw(Le))}catch(Ue){ce(Ue)}}function Re(Le){Le.done?z(Le.value):S(Le.value).then(se,ye)}Re(($=$.apply(Te,Ce||[])).next())})},Ne=function(Te,Ce){var fe={label:0,sent:function(){if(z[0]&1)throw z[1];return z[1]},trys:[],ops:[]},$,S,z,ce;return ce={next:se(0),throw:se(1),return:se(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function se(Re){return function(Le){return ye([Re,Le])}}function ye(Re){if($)throw new TypeError("Generator is already executing.");for(;fe;)try{if($=1,S&&(z=Re[0]&2?S.return:Re[0]?S.throw||((z=S.return)&&z.call(S),0):S.next)&&!(z=z.call(S,Re[1])).done)return z;(S=0,z)&&(Re=[Re[0]&2,z.value]);switch(Re[0]){case 0:case 1:z=Re;break;case 4:return fe.label++,{value:Re[1],done:!1};case 5:fe.label++,S=Re[1],Re=[0];continue;case 7:Re=fe.ops.pop(),fe.trys.pop();continue;default:if(!(z=fe.trys,z=z.length>0&&z[z.length-1])&&(Re[0]===6||Re[0]===2)){fe=0;continue}if(Re[0]===3&&(!z||Re[1]>z[0]&&Re[1]<z[3])){fe.label=Re[1];break}if(Re[0]===6&&fe.label<z[1]){fe.label=z[1],z=Re;break}if(z&&fe.label<z[2]){fe.label=z[2],fe.ops.push(Re);break}z[2]&&fe.ops.pop(),fe.trys.pop();continue}Re=Ce.call(Te,fe)}catch(Le){Re=[6,Le],S=0}finally{$=z=0}if(Re[0]&5)throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}},Xe=function(){function Te(Ce,fe){var $=this;this._workerService=fe,this._callOnDispose=new I.b,this._callOnModel=new I.b,this._editor=Ce,this._callOnDispose.add(Ce.onDidChangeConfiguration(function(){return $._update()})),this._callOnDispose.add(Ce.onDidChangeModel(function(){return $._update()})),this._callOnDispose.add(Ce.onDidChangeModelLanguage(function(){return $._update()})),this._callOnDispose.add(h.t.onDidChange(this._update,this))}return Te.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Te.prototype._update=function(){var Ce=this;if(this._callOnModel.clear(),!this._editor.getOption(39))return;if(!this._editor.hasModel())return;var fe=this._editor.getModel(),$=h.t.ordered(fe)[0];if(!$||!$.autoFormatTriggerCharacters)return;for(var S=new D.b,z=0,ce=$.autoFormatTriggerCharacters;z<ce.length;z++){var se=ce[z];S.add(se.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType(function(ye){var Re=ye.charCodeAt(ye.length-1);S.has(Re)&&Ce._trigger(String.fromCharCode(Re))}))},Te.prototype._trigger=function(Ce){var fe=this;if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1)return;var $=this._editor.getModel(),S=this._editor.getPosition(),z=!1,ce=this._editor.onDidChangeModelContent(function(se){if(se.isFlush){z=!0,ce.dispose();return}for(var ye=0,Re=se.changes.length;ye<Re;ye++){var Le=se.changes[ye];if(Le.range.endLineNumber<=S.lineNumber){z=!0,ce.dispose();return}}});ee(this._workerService,$,S,Ce,$.getFormattingOptions()).then(function(se){if(ce.dispose(),z)return;Object(T.q)(se)&&(f.execute(fe._editor,se),B(se))},function(se){throw ce.dispose(),se})},Te.ID="editor.contrib.autoFormat",Te=le([Z(1,b.a)],Te),Te}(),de=function(){function Te(Ce,fe){var $=this;this.editor=Ce,this._instantiationService=fe,this._callOnDispose=new I.b,this._callOnModel=new I.b,this._callOnDispose.add(Ce.onDidChangeConfiguration(function(){return $._update()})),this._callOnDispose.add(Ce.onDidChangeModel(function(){return $._update()})),this._callOnDispose.add(Ce.onDidChangeModelLanguage(function(){return $._update()})),this._callOnDispose.add(h.j.onDidChange(this._update,this))}return Te.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Te.prototype._update=function(){var Ce=this;if(this._callOnModel.clear(),!this.editor.getOption(38))return;if(!this.editor.hasModel())return;if(!h.j.has(this.editor.getModel()))return;this._callOnModel.add(this.editor.onDidPaste(function(fe){var $=fe.range;return Ce._trigger($)}))},Te.prototype._trigger=function(Ce){if(!this.editor.hasModel())return;if(this.editor.getSelections().length>1)return;this._instantiationService.invokeFunction(Me,this.editor,Ce,2,pe.a.None).catch(m.e)},Te.ID="editor.contrib.formatOnPaste",Te=le([Z(1,R.a)],Te),Te}(),ge=function(Te){q(Ce,Te);function Ce(){return Te.call(this,{id:"editor.action.formatDocument",label:E.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:ne.a.and(j.a.writable,j.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:ne.a.and(j.a.editorTextFocus,j.a.hasDocumentFormattingProvider),primary:1024|512|36,linux:{primary:2048|1024|39},weight:100},contextMenuOpts:{when:j.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return Ce.prototype.run=function(fe,$){return ve(this,void 0,void 0,function(){var S;return Ne(this,function(z){switch(z.label){case 0:return $.hasModel()?(S=fe.get(R.a),[4,S.invokeFunction(Be,$,1,pe.a.None)]):[3,2];case 1:z.sent(),z.label=2;case 2:return[2]}})})},Ce}(H.b),Ee=function(Te){q(Ce,Te);function Ce(){return Te.call(this,{id:"editor.action.formatSelection",label:E.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:ne.a.and(j.a.writable,j.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:ne.a.and(j.a.editorTextFocus,j.a.hasDocumentSelectionFormattingProvider),primary:Object(J.a)(2048|41,2048|36),weight:100},contextMenuOpts:{when:ne.a.and(j.a.hasDocumentSelectionFormattingProvider,j.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return Ce.prototype.run=function(fe,$){return ve(this,void 0,void 0,function(){var S,z,ce;return Ne(this,function(se){switch(se.label){case 0:return $.hasModel()?(S=fe.get(R.a),z=$.getModel(),ce=$.getSelection(),ce.isEmpty()&&(ce=new U.a(ce.startLineNumber,1,ce.startLineNumber,z.getLineMaxColumn(ce.startLineNumber))),[4,S.invokeFunction(Me,$,ce,1,pe.a.None)]):[2];case 1:return se.sent(),[2]}})})},Ce}(H.b);Object(H.h)(Xe.ID,Xe),Object(H.h)(de.ID,de),Object(H.f)(ge),Object(H.f)(Ee),x.a.registerCommand("editor.action.format",function(Te){return ve(void 0,void 0,void 0,function(){var Ce,fe;return Ne(this,function($){switch($.label){case 0:return Ce=Te.get(K.a).getFocusedCodeEditor(),!Ce||!Ce.hasModel()?[2]:(fe=Te.get(x.b),Ce.getSelection().isEmpty()?[4,fe.executeCommand("editor.action.formatDocument")]:[3,2]);case 1:return $.sent(),[3,4];case 2:return[4,fe.executeCommand("editor.action.formatSelection")];case 3:$.sent(),$.label=4;case 4:return[2]}})})})},cMOf:function(Mt,F,e){"use strict";e.d(F,"a",function(){return w});var T=e("undH"),pe=e.n(T),J=e("pmY6"),I=e("D3Dy"),H=e("MNsG"),K=e("746U"),D=e("pg8w"),U=e("XSiN"),j=e("MI8n"),h=e("EffR"),b=e("4y0V"),O=function(){var v=function(p,d){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var f in u)u.hasOwnProperty(f)&&(c[f]=u[f])},v(p,d)};return function(p,d){v(p,d);function c(){this.constructor=p}p.prototype=d===null?Object.create(d):(c.prototype=d.prototype,new c)}}(),m=function(){for(var v=0,p=0,d=arguments.length;p<d;p++)v+=arguments[p].length;for(var c=Array(v),u=0,p=0;p<d;p++)for(var f=arguments[p],E=0,L=f.length;E<L;E++,u++)c[u]=f[E];return c},C=!1,w=function(v){O(p,v);function p(d,c,u){u===void 0&&(u={});var f=v.call(this)||this;return f._state=3,f._onDidEnablementChange=f._register(new j.a),f.onDidEnablementChange=f._onDidEnablementChange.event,f._onDidStart=f._register(new j.a),f.onDidStart=f._onDidStart.event,f._onDidChange=f._register(new j.a),f.onDidChange=f._onDidChange.event,f._onDidReset=f._register(new j.a),f.onDidReset=f._onDidReset.event,f._onDidEnd=f._register(new j.a),f.onDidEnd=f._onDidEnd.event,f.linkedSash=void 0,f.orthogonalStartSashDisposables=f._register(new J.b),f.orthogonalEndSashDisposables=f._register(new J.b),f.el=Object(h.q)(d,Object(h.a)(".monaco-sash")),H.e&&Object(h.f)(f.el,"mac"),f._register(Object(b.a)(f.el,"mousedown")(f.onMouseDown,f)),f._register(Object(b.a)(f.el,"dblclick")(f.onMouseDoubleClick,f)),f._register(D.b.addTarget(f.el)),f._register(Object(b.a)(f.el,D.a.Start)(f.onTouchStart,f)),I.j&&Object(h.f)(f.el,"touch"),f.setOrientation(u.orientation||0),f.hidden=!1,f.layoutProvider=c,f.orthogonalStartSash=u.orthogonalStartSash,f.orthogonalEndSash=u.orthogonalEndSash,Object(h.Y)(f.el,"debug",C),f}return Object.defineProperty(p.prototype,"state",{get:function(){return this._state},set:function(d){if(this._state===d)return;Object(h.Y)(this.el,"disabled",d===0),Object(h.Y)(this.el,"minimum",d===1),Object(h.Y)(this.el,"maximum",d===2),this._state=d,this._onDidEnablementChange.fire(d)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(d){this.orthogonalStartSashDisposables.clear(),d?(this.orthogonalStartSashDisposables.add(d.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(d.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=d},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(d){this.orthogonalEndSashDisposables.clear(),d?(this.orthogonalEndSashDisposables.add(d.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(d.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=d},enumerable:!0,configurable:!0}),p.prototype.setOrientation=function(d){this.orientation=d,this.orientation===1?(Object(h.f)(this.el,"horizontal"),Object(h.P)(this.el,"vertical")):(Object(h.P)(this.el,"horizontal"),Object(h.f)(this.el,"vertical")),this.layoutProvider&&this.layout()},p.prototype.onMouseDown=function(d){var c=this;h.c.stop(d,!1);var u=!1;if(!d.__orthogonalSashEvent){var f=this.getOrthogonalSash(d);f&&(u=!0,d.__orthogonalSashEvent=!0,f.onMouseDown(d))}if(this.linkedSash&&!d.__linkedSashEvent&&(d.__linkedSashEvent=!0,this.linkedSash.onMouseDown(d)),!this.state)return;for(var E=m(Object(h.D)("iframe"),Object(h.D)("webview")),L=0,R=E;L<R.length;L++){var P=R[L];P.style.pointerEvents="none"}var x=new U.b(d),Q=x.posx,V=x.posy,W=x.altKey,B={startX:Q,currentX:Q,startY:V,currentY:V,altKey:W};Object(h.f)(this.el,"active"),this._onDidStart.fire(B);var ae=Object(h.w)(this.el),we=function(){var Ke="";u?Ke="all-scroll":c.orientation===1?c.state===1?Ke="s-resize":c.state===2?Ke="n-resize":Ke=H.e?"row-resize":"ns-resize":c.state===1?Ke="e-resize":c.state===2?Ke="w-resize":Ke=H.e?"col-resize":"ew-resize",ae.innerHTML="* { cursor: "+Ke+" !important; }"},Me=new J.b;we(),u||this.onDidEnablementChange(we,null,Me);var Pe=function(Ke){h.c.stop(Ke,!1);var Fe=new U.b(Ke),re={startX:Q,currentX:Fe.posx,startY:V,currentY:Fe.posy,altKey:W};c._onDidChange.fire(re)},Be=function(Ke){h.c.stop(Ke,!1),c.el.removeChild(ae),Object(h.P)(c.el,"active"),c._onDidEnd.fire(),Me.dispose();for(var Fe=0,re=E;Fe<re.length;Fe++){var ee=re[Fe];ee.style.pointerEvents="auto"}};Object(b.a)(window,"mousemove")(Pe,null,Me),Object(b.a)(window,"mouseup")(Be,null,Me)},p.prototype.onMouseDoubleClick=function(d){var c=this.getOrthogonalSash(d);c&&c._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},p.prototype.onTouchStart=function(d){var c=this;h.c.stop(d);var u=[],f=d.pageX,E=d.pageY,L=d.altKey;this._onDidStart.fire({startX:f,currentX:f,startY:E,currentY:E,altKey:L}),u.push(Object(h.j)(this.el,D.a.Change,function(R){K.h(R.pageX)&&K.h(R.pageY)&&c._onDidChange.fire({startX:f,currentX:R.pageX,startY:E,currentY:R.pageY,altKey:L})})),u.push(Object(h.j)(this.el,D.a.End,function(R){c._onDidEnd.fire(),Object(J.f)(u)}))},p.prototype.layout=function(){var d=I.j?20:4;if(this.orientation===0){var c=this.layoutProvider;this.el.style.left=c.getVerticalSashLeft(this)-d/2+"px",c.getVerticalSashTop&&(this.el.style.top=c.getVerticalSashTop(this)+"px"),c.getVerticalSashHeight&&(this.el.style.height=c.getVerticalSashHeight(this)+"px")}else{var u=this.layoutProvider;this.el.style.top=u.getHorizontalSashTop(this)-d/2+"px",u.getHorizontalSashLeft&&(this.el.style.left=u.getHorizontalSashLeft(this)+"px"),u.getHorizontalSashWidth&&(this.el.style.width=u.getHorizontalSashWidth(this)+"px")}},p.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},p.prototype.onOrthogonalStartSashEnablementChange=function(d){Object(h.Y)(this.el,"orthogonal-start",d!==0)},p.prototype.onOrthogonalEndSashEnablementChange=function(d){Object(h.Y)(this.el,"orthogonal-end",d!==0)},p.prototype.getOrthogonalSash=function(d){if(this.orientation===0){if(d.offsetY<=4)return this.orthogonalStartSash;if(d.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(d.offsetX<=4)return this.orthogonalStartSash;if(d.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}return},p.prototype.dispose=function(){v.prototype.dispose.call(this),this.el.remove()},p}(J.a)},cMvZ:function(Mt,F,e){"use strict";e.d(F,"a",function(){return v});var T=e("MI8n"),pe=e("pmY6"),J=e("N0LK"),I=e("0JNc"),H=e("KDc4"),K=e("BFtn"),D=function(){function p(d){if(d.autoClosingPairs?this._autoClosingPairs=d.autoClosingPairs.map(function(u){return new H.b(u)}):d.brackets?this._autoClosingPairs=d.brackets.map(function(u){return new H.b({open:u[0],close:u[1]})}):this._autoClosingPairs=[],d.__electricCharacterSupport&&d.__electricCharacterSupport.docComment){var c=d.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new H.b({open:c.open,close:c.close||""}))}this._autoCloseBefore=typeof d.autoCloseBefore=="string"?d.autoCloseBefore:p.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=d.surroundingPairs||this._autoClosingPairs}return p.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},p.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},p.shouldAutoClosePair=function(d,c,u){if(c.getTokenCount()===0)return!0;var f=c.findTokenIndexAtOffset(u-2),E=c.getStandardTokenType(f);return d.isOK(E)},p.prototype.getSurroundingPairs=function(){return this._surroundingPairs},p.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])>
`,p}(),U=e("EIAu"),j=function(){function p(d){this._richEditBrackets=d}return p.prototype.getElectricCharacters=function(){var d=[];if(this._richEditBrackets)for(var c=0,u=this._richEditBrackets.brackets;c<u.length;c++)for(var f=u[c],E=0,L=f.close;E<L.length;E++){var R=L[E],P=R.charAt(R.length-1);d.push(P)}return d=d.filter(function(x,Q,V){return V.indexOf(x)===Q}),d},p.prototype.onElectricCharacter=function(d,c,u){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;var f=c.findTokenIndexAtOffset(u-1);if(Object(K.b)(c.getStandardTokenType(f)))return null;var E=this._richEditBrackets.reversedRegex,L=c.getLineContent().substring(0,u-1)+d,R=U.a.findPrevBracketInRange(E,1,L,0,L.length);if(!R)return null;var P=L.substring(R.startColumn-1,R.endColumn-1).toLowerCase(),x=this._richEditBrackets.textIsOpenBracket[P];if(x)return null;var Q=c.getActualLineContentBefore(R.startColumn-1);return/^\s*$/.test(Q)?{matchOpenBracket:P}:null},p}(),h=function(){function p(d){this._indentationRules=d}return p.prototype.shouldIncrease=function(d){return!!(this._indentationRules&&(this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(d)))},p.prototype.shouldDecrease=function(d){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(d))},p.prototype.shouldIndentNextLine=function(d){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(d))},p.prototype.shouldIgnore=function(d){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(d))},p.prototype.getIndentMetadata=function(d){var c=0;return this.shouldIncrease(d)&&(c+=1),this.shouldDecrease(d)&&(c+=2),this.shouldIndentNextLine(d)&&(c+=4),this.shouldIgnore(d)&&(c+=8),c},p}(),b=e("/cxE"),O=function(){function p(d){var c=this;d=d||{},d.brackets=d.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],d.brackets.forEach(function(u){var f=p._createOpenBracketRegExp(u[0]),E=p._createCloseBracketRegExp(u[1]);f&&E&&c._brackets.push({open:u[0],openRegExp:f,close:u[1],closeRegExp:E})}),this._regExpRules=d.onEnterRules||[]}return p.prototype.onEnter=function(d,c,u,f){if(d>=3)for(var E=0,L=this._regExpRules.length;E<L;E++){var R=this._regExpRules[E],P=[{reg:R.beforeText,text:u},{reg:R.afterText,text:f},{reg:R.oneLineAboveText,text:c}].every(function(Q){return Q.reg?Q.reg.test(Q.text):!0});if(P)return R.action}if(d>=2&&(u.length>0&&f.length>0))for(var E=0,L=this._brackets.length;E<L;E++){var x=this._brackets[E];if(x.openRegExp.test(u)&&x.closeRegExp.test(f))return{indentAction:H.a.IndentOutdent}}if(d>=2&&u.length>0)for(var E=0,L=this._brackets.length;E<L;E++){var x=this._brackets[E];if(x.openRegExp.test(u))return{indentAction:H.a.Indent}}return null},p._createOpenBracketRegExp=function(d){var c=J.p(d);return/\B/.test(c.charAt(0))||(c="\\b"+c),c+="\\s*$",p._safeRegExp(c)},p._createCloseBracketRegExp=function(d){var c=J.p(d);return/\B/.test(c.charAt(c.length-1))||(c=c+"\\b"),c="^\\s*"+c,p._safeRegExp(c)},p._safeRegExp=function(d){try{return new RegExp(d)}catch(c){return Object(b.e)(c),null}},p}(),m=function(){function p(d,c,u){this._languageIdentifier=d,this._brackets=null,this._electricCharacter=null;var f=null;c&&(f=c._conf),this._conf=p._mergeConf(f,u),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new O(this._conf):null,this.comments=p._handleComments(this._conf),this.characterPair=new D(this._conf),this.wordDefinition=this._conf.wordPattern||I.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new h(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(p.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new U.b(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new j(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),p.prototype.onEnter=function(d,c,u,f){return this._onEnterSupport?this._onEnterSupport.onEnter(d,c,u,f):null},p._mergeConf=function(d,c){return{comments:d?c.comments||d.comments:c.comments,brackets:d?c.brackets||d.brackets:c.brackets,wordPattern:d?c.wordPattern||d.wordPattern:c.wordPattern,indentationRules:d?c.indentationRules||d.indentationRules:c.indentationRules,onEnterRules:d?c.onEnterRules||d.onEnterRules:c.onEnterRules,autoClosingPairs:d?c.autoClosingPairs||d.autoClosingPairs:c.autoClosingPairs,surroundingPairs:d?c.surroundingPairs||d.surroundingPairs:c.surroundingPairs,autoCloseBefore:d?c.autoCloseBefore||d.autoCloseBefore:c.autoCloseBefore,folding:d?c.folding||d.folding:c.folding,__electricCharacterSupport:d?c.__electricCharacterSupport||d.__electricCharacterSupport:c.__electricCharacterSupport}},p._handleComments=function(d){var c=d.comments;if(!c)return null;var u={};if(c.lineComment&&(u.lineCommentToken=c.lineComment),c.blockComment){var f=c.blockComment,E=f[0],L=f[1];u.blockCommentStartToken=E,u.blockCommentEndToken=L}return u},p}(),C=function(){function p(d){this.languageIdentifier=d}return p}(),w=function(){function p(){this._entries=new Map,this._onDidChange=new T.a,this.onDidChange=this._onDidChange.event}return p.prototype.register=function(d,c){var u=this,f=this._getRichEditSupport(d.id),E=new m(d,f,c);return this._entries.set(d.id,E),this._onDidChange.fire(new C(d)),Object(pe.h)(function(){u._entries.get(d.id)===E&&(u._entries.set(d.id,f),u._onDidChange.fire(new C(d)))})},p.prototype._getRichEditSupport=function(d){return this._entries.get(d)},p.prototype._getElectricCharacterSupport=function(d){var c=this._getRichEditSupport(d);return c&&c.electricCharacter||null},p.prototype.getElectricCharacters=function(d){var c=this._getElectricCharacterSupport(d);return c?c.getElectricCharacters():[]},p.prototype.onElectricCharacter=function(d,c,u){var f=Object(K.a)(c,u-1),E=this._getElectricCharacterSupport(f.languageId);return E?E.onElectricCharacter(d,f,u-f.firstCharOffset):null},p.prototype.getComments=function(d){var c=this._getRichEditSupport(d);return c&&c.comments||null},p.prototype._getCharacterPairSupport=function(d){var c=this._getRichEditSupport(d);return c&&c.characterPair||null},p.prototype.getAutoClosingPairs=function(d){var c=this._getCharacterPairSupport(d);return c?c.getAutoClosingPairs():[]},p.prototype.getAutoCloseBeforeSet=function(d){var c=this._getCharacterPairSupport(d);return c?c.getAutoCloseBeforeSet():D.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},p.prototype.getSurroundingPairs=function(d){var c=this._getCharacterPairSupport(d);return c?c.getSurroundingPairs():[]},p.prototype.shouldAutoClosePair=function(d,c,u){var f=Object(K.a)(c,u-1);return D.shouldAutoClosePair(d,f,u-f.firstCharOffset)},p.prototype.getWordDefinition=function(d){var c=this._getRichEditSupport(d);return c?Object(I.c)(c.wordDefinition||null):Object(I.c)(null)},p.prototype.getFoldingRules=function(d){var c=this._getRichEditSupport(d);return c?c.foldingRules:{}},p.prototype.getIndentRulesSupport=function(d){var c=this._getRichEditSupport(d);return c&&c.indentRulesSupport||null},p.prototype.getPrecedingValidLine=function(d,c,u){var f=d.getLanguageIdAtPosition(c,0);if(c>1){var E=void 0,L=-1;for(E=c-1;E>=1;E--){if(d.getLanguageIdAtPosition(E,0)!==f)return L;var R=d.getLineContent(E);if(u.shouldIgnore(R)||/^\s+$/.test(R)||R===""){L=E;continue}return E}}return-1},p.prototype.getInheritIndentForLine=function(d,c,u,f){if(f===void 0&&(f=!0),d<4)return null;var E=this.getIndentRulesSupport(c.getLanguageIdentifier().id);if(!E)return null;if(u<=1)return{indentation:"",action:null};var L=this.getPrecedingValidLine(c,u,E);if(L<0)return null;if(L<1)return{indentation:"",action:null};var R=c.getLineContent(L);if(E.shouldIncrease(R)||E.shouldIndentNextLine(R))return{indentation:J.t(R),action:H.a.Indent,line:L};if(E.shouldDecrease(R))return{indentation:J.t(R),action:null,line:L};if(L===1)return{indentation:J.t(c.getLineContent(L)),action:null,line:L};var P=L-1,x=E.getIndentMetadata(c.getLineContent(P));if(!(x&(1|2))&&x&4){for(var Q=0,V=P-1;V>0;V--){if(E.shouldIndentNextLine(c.getLineContent(V)))continue;Q=V;break}return{indentation:J.t(c.getLineContent(Q+1)),action:null,line:Q+1}}if(f)return{indentation:J.t(c.getLineContent(L)),action:null,line:L};for(var V=L;V>0;V--){var W=c.getLineContent(V);if(E.shouldIncrease(W))return{indentation:J.t(W),action:H.a.Indent,line:V};if(E.shouldIndentNextLine(W)){for(var Q=0,B=V-1;B>0;B--){if(E.shouldIndentNextLine(c.getLineContent(V)))continue;Q=B;break}return{indentation:J.t(c.getLineContent(Q+1)),action:null,line:Q+1}}else if(E.shouldDecrease(W))return{indentation:J.t(W),action:null,line:V}}return{indentation:J.t(c.getLineContent(1)),action:null,line:1}},p.prototype.getGoodIndentForLine=function(d,c,u,f,E){if(d<4)return null;var L=this._getRichEditSupport(u);if(!L)return null;var R=this.getIndentRulesSupport(u);if(!R)return null;var P=this.getInheritIndentForLine(d,c,f),x=c.getLineContent(f);if(P){var Q=P.line;if(Q!==void 0){var V=L.onEnter(d,"",c.getLineContent(Q),"");if(V){var W=J.t(c.getLineContent(Q));return V.removeText&&(W=W.substring(0,W.length-V.removeText)),V.indentAction===H.a.Indent||V.indentAction===H.a.IndentOutdent?W=E.shiftIndent(W):V.indentAction===H.a.Outdent&&(W=E.unshiftIndent(W)),R.shouldDecrease(x)&&(W=E.unshiftIndent(W)),V.appendText&&(W+=V.appendText),J.t(W)}}return R.shouldDecrease(x)?P.action===H.a.Indent?P.indentation:E.unshiftIndent(P.indentation):P.action===H.a.Indent?E.shiftIndent(P.indentation):P.indentation}return null},p.prototype.getIndentForEnter=function(d,c,u,f){if(d<4)return null;c.forceTokenization(u.startLineNumber);var E=c.getLineTokens(u.startLineNumber),L=Object(K.a)(E,u.startColumn-1),R=L.getLineContent(),P=!1,x;L.firstCharOffset>0&&E.getLanguageId(0)!==L.languageId?(P=!0,x=R.substr(0,u.startColumn-1-L.firstCharOffset)):x=E.getLineContent().substring(0,u.startColumn-1);var Q;if(u.isEmpty())Q=R.substr(u.startColumn-1-L.firstCharOffset);else{var V=this.getScopedLineTokens(c,u.endLineNumber,u.endColumn);Q=V.getLineContent().substr(u.endColumn-1-L.firstCharOffset)}var W=this.getIndentRulesSupport(L.languageId);if(!W)return null;var B=x,ae=J.t(x),we={getLineTokens:function(Fe){return c.getLineTokens(Fe)},getLanguageIdentifier:function(){return c.getLanguageIdentifier()},getLanguageIdAtPosition:function(Fe,re){return c.getLanguageIdAtPosition(Fe,re)},getLineContent:function(Fe){return Fe===u.startLineNumber?B:c.getLineContent(Fe)}},Me=J.t(E.getLineContent()),Pe=this.getInheritIndentForLine(d,we,u.startLineNumber+1);if(!Pe){var Be=P?Me:ae;return{beforeEnter:Be,afterEnter:Be}}var Ke=P?Me:Pe.indentation;return Pe.action===H.a.Indent&&(Ke=f.shiftIndent(Ke)),W.shouldDecrease(Q)&&(Ke=f.unshiftIndent(Ke)),{beforeEnter:P?Me:ae,afterEnter:Ke}},p.prototype.getIndentActionForType=function(d,c,u,f,E){if(d<4)return null;var L=this.getScopedLineTokens(c,u.startLineNumber,u.startColumn),R=this.getIndentRulesSupport(L.languageId);if(!R)return null;var P=L.getLineContent(),x=P.substr(0,u.startColumn-1-L.firstCharOffset),Q;if(u.isEmpty())Q=P.substr(u.startColumn-1-L.firstCharOffset);else{var V=this.getScopedLineTokens(c,u.endLineNumber,u.endColumn);Q=V.getLineContent().substr(u.endColumn-1-L.firstCharOffset)}if(!R.shouldDecrease(x+Q)&&R.shouldDecrease(x+f+Q)){var W=this.getInheritIndentForLine(d,c,u.startLineNumber,!1);if(!W)return null;var B=W.indentation;return W.action!==H.a.Indent&&(B=E.unshiftIndent(B)),B}return null},p.prototype.getIndentMetadata=function(d,c){var u=this.getIndentRulesSupport(d.getLanguageIdentifier().id);return u?c<1||c>d.getLineCount()?null:u.getIndentMetadata(d.getLineContent(c)):null},p.prototype.getEnterAction=function(d,c,u){var f=this.getScopedLineTokens(c,u.startLineNumber,u.startColumn),E=this._getRichEditSupport(f.languageId);if(!E)return null;var L=f.getLineContent(),R=L.substr(0,u.startColumn-1-f.firstCharOffset),P;if(u.isEmpty())P=L.substr(u.startColumn-1-f.firstCharOffset);else{var x=this.getScopedLineTokens(c,u.endLineNumber,u.endColumn);P=x.getLineContent().substr(u.endColumn-1-f.firstCharOffset)}var Q="";if(u.startLineNumber>1&&f.firstCharOffset===0){var V=this.getScopedLineTokens(c,u.startLineNumber-1);V.languageId===f.languageId&&(Q=V.getLineContent())}var W=E.onEnter(d,Q,R,P);if(!W)return null;var B=W.indentAction,ae=W.appendText,we=W.removeText||0;ae||(B===H.a.Indent||B===H.a.IndentOutdent?ae=" ":ae="");var Me=this.getIndentationAtPosition(c,u.startLineNumber,u.startColumn);return we&&(Me=Me.substring(0,Me.length-we)),{indentAction:B,appendText:ae,removeText:we,indentation:Me}},p.prototype.getIndentationAtPosition=function(d,c,u){var f=d.getLineContent(c),E=J.t(f);return E.length>u-1&&(E=E.substring(0,u-1)),E},p.prototype.getScopedLineTokens=function(d,c,u){d.forceTokenization(c);var f=d.getLineTokens(c),E=typeof u=="undefined"?d.getLineMaxColumn(c)-1:u-1;return Object(K.a)(f,E)},p.prototype.getBracketsSupport=function(d){var c=this._getRichEditSupport(d);return c&&c.brackets||null},p}(),v=new w},"ci+S":function(Mt,F,e){},cl4r:function(Mt,F,e){},cldp:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return e.e(287).then(e.bind(null,"7Xl7"))}})},cqdO:function(Mt,F,e){"use strict";e.d(F,"a",function(){return Me}),e.d(F,"f",function(){return Ke}),e.d(F,"e",function(){return Fe}),e.d(F,"d",function(){return q}),e.d(F,"b",function(){return le}),e.d(F,"c",function(){return fe});var T=e("4rho"),pe=e("3/fG"),J=e("pmY6"),I=e("746U"),H=e("6OMU"),K=e("ZCR3"),D=e("EffR"),U=e("MNsG"),j=e("pg8w"),h=e("uDWl"),b=e("MI8n"),O=e("4y0V"),m=function(){var $=function(S,z){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,se){ce.__proto__=se}||function(ce,se){for(var ye in se)se.hasOwnProperty(ye)&&(ce[ye]=se[ye])},$(S,z)};return function(S,z){$(S,z);function ce(){this.constructor=S}S.prototype=z===null?Object.create(z):(ce.prototype=z.prototype,new ce)}}(),C;(function($){$.TREE="tree",$.FORM="form"})(C||(C={}));var w=function($){m(S,$);function S(z,ce){return $.call(this,"ListError ["+z+"] "+ce)||this}return S}(Error),v=e("feEw"),p=e("zrhQ"),d=e("qj0h"),c=function(){function $(S){this.spliceables=S}return $.prototype.splice=function(S,z,ce){this.spliceables.forEach(function(se){return se.splice(S,z,ce)})},$}(),u=e("Sdnv"),f=e("fpMC"),E=function(){var $=function(S,z){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,se){ce.__proto__=se}||function(ce,se){for(var ye in se)se.hasOwnProperty(ye)&&(ce[ye]=se[ye])},$(S,z)};return function(S,z){$(S,z);function ce(){this.constructor=S}S.prototype=z===null?Object.create(z):(ce.prototype=z.prototype,new ce)}}(),L=function(){return L=Object.assign||function($){for(var S,z=1,ce=arguments.length;z<ce;z++){S=arguments[z];for(var se in S)Object.prototype.hasOwnProperty.call(S,se)&&($[se]=S[se])}return $},L.apply(this,arguments)},R=function($,S,z,ce){var se=arguments.length,ye=se<3?S:ce===null?ce=Object.getOwnPropertyDescriptor(S,z):ce,Re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate($,S,z,ce);else for(var Le=$.length-1;Le>=0;Le--)(Re=$[Le])&&(ye=(se<3?Re(ye):se>3?Re(S,z,ye):Re(S,z))||ye);return se>3&&ye&&Object.defineProperty(S,z,ye),ye},P=function(){for(var $=0,S=0,z=arguments.length;S<z;S++)$+=arguments[S].length;for(var ce=Array($),se=0,S=0;S<z;S++)for(var ye=arguments[S],Re=0,Le=ye.length;Re<Le;Re++,se++)ce[se]=ye[Re];return ce},x=function(){function $(S){this.trait=S,this.renderedElements=[]}return Object.defineProperty($.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),$.prototype.renderTemplate=function(S){return S},$.prototype.renderElement=function(S,z,ce){var se=Object(H.k)(this.renderedElements,function(Re){return Re.templateData===ce});if(se>=0){var ye=this.renderedElements[se];this.trait.unrender(ce),ye.index=z}else{var ye={index:z,templateData:ce};this.renderedElements.push(ye)}this.trait.renderIndex(z,ce)},$.prototype.splice=function(S,z,ce){for(var se=[],ye=0,Re=this.renderedElements;ye<Re.length;ye++){var Le=Re[ye];Le.index<S?se.push(Le):Le.index>=S+z&&se.push({index:Le.index+ce-z,templateData:Le.templateData})}this.renderedElements=se},$.prototype.renderIndexes=function(S){for(var z=0,ce=this.renderedElements;z<ce.length;z++){var se=ce[z],ye=se.index,Re=se.templateData;S.indexOf(ye)>-1&&this.trait.renderIndex(ye,Re)}},$.prototype.disposeTemplate=function(S){var z=Object(H.k)(this.renderedElements,function(ce){return ce.templateData===S});if(z<0)return;this.renderedElements.splice(z,1)},$}(),Q=function(){function $(S){this._trait=S,this.indexes=[],this.sortedIndexes=[],this._onChange=new b.a,this.onChange=this._onChange.event}return Object.defineProperty($.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"renderer",{get:function(){return new x(this)},enumerable:!0,configurable:!0}),$.prototype.splice=function(S,z,ce){var se=ce.length-z,ye=S+z,Re=P(this.sortedIndexes.filter(function(Le){return Le<S}),ce.map(function(Le,Ue){return Le?Ue+S:-1}).filter(function(Le){return Le!==-1}),this.sortedIndexes.filter(function(Le){return Le>=ye}).map(function(Le){return Le+se}));this.renderer.splice(S,z,ce.length),this._set(Re,Re)},$.prototype.renderIndex=function(S,z){D.Y(z,this._trait,this.contains(S))},$.prototype.unrender=function(S){D.P(S,this._trait)},$.prototype.set=function(S,z){return this._set(S,P(S).sort(ge),z)},$.prototype._set=function(S,z,ce){var se=this.indexes,ye=this.sortedIndexes;this.indexes=S,this.sortedIndexes=z;var Re=Xe(ye,S);return this.renderer.renderIndexes(Re),this._onChange.fire({indexes:S,browserEvent:ce}),se},$.prototype.get=function(){return this.indexes},$.prototype.contains=function(S){return Object(H.c)(this.sortedIndexes,S,ge)>=0},$.prototype.dispose=function(){Object(J.f)(this._onChange)},R([K.a],$.prototype,"renderer",null),$}(),V=function($){E(S,$);function S(){return $.call(this,"focused")||this}return S.prototype.renderIndex=function(z,ce){$.prototype.renderIndex.call(this,z,ce),this.contains(z)?ce.setAttribute("aria-selected","true"):ce.removeAttribute("aria-selected")},S}(Q),W=function(){function $(S,z,ce){this.trait=S,this.view=z,this.identityProvider=ce}return $.prototype.splice=function(S,z,ce){var se=this;if(!this.identityProvider)return this.trait.splice(S,z,ce.map(function(){return!1}));var ye=this.trait.get().map(function(Le){return se.identityProvider.getId(se.view.element(Le)).toString()}),Re=ce.map(function(Le){return ye.indexOf(se.identityProvider.getId(Le).toString())>-1});this.trait.splice(S,z,Re)},$}();function B($){return $.tagName==="INPUT"||$.tagName==="TEXTAREA"}var ae=function(){function $(S,z,ce){this.list=S,this.view=z,this.disposables=new J.b;var se=ce.multipleSelectionSupport!==!1;this.openController=ce.openController||ne;var ye=b.b.chain(Object(O.a)(z.domNode,"keydown")).filter(function(Re){return!B(Re.target)}).map(function(Re){return new h.a(Re)});ye.filter(function(Re){return Re.keyCode===3}).on(this.onEnter,this,this.disposables),ye.filter(function(Re){return Re.keyCode===16}).on(this.onUpArrow,this,this.disposables),ye.filter(function(Re){return Re.keyCode===18}).on(this.onDownArrow,this,this.disposables),ye.filter(function(Re){return Re.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),ye.filter(function(Re){return Re.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),ye.filter(function(Re){return Re.keyCode===9}).on(this.onEscape,this,this.disposables),se&&ye.filter(function(Re){return(U.e?Re.metaKey:Re.ctrlKey)&&Re.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return $.prototype.onEnter=function(S){S.preventDefault(),S.stopPropagation(),this.list.setSelection(this.list.getFocus(),S.browserEvent),this.openController.shouldOpen(S.browserEvent)&&this.list.open(this.list.getFocus(),S.browserEvent)},$.prototype.onUpArrow=function(S){S.preventDefault(),S.stopPropagation(),this.list.focusPrevious(1,!1,S.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},$.prototype.onDownArrow=function(S){S.preventDefault(),S.stopPropagation(),this.list.focusNext(1,!1,S.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},$.prototype.onPageUpArrow=function(S){S.preventDefault(),S.stopPropagation(),this.list.focusPreviousPage(S.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},$.prototype.onPageDownArrow=function(S){S.preventDefault(),S.stopPropagation(),this.list.focusNextPage(S.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},$.prototype.onCtrlA=function(S){S.preventDefault(),S.stopPropagation(),this.list.setSelection(Object(H.u)(this.list.length),S.browserEvent),this.view.domNode.focus()},$.prototype.onEscape=function(S){S.preventDefault(),S.stopPropagation(),this.list.setSelection([],S.browserEvent),this.view.domNode.focus()},$.prototype.dispose=function(){this.disposables.dispose()},$}(),we;(function($){$[$.Idle=0]="Idle",$[$.Typing=1]="Typing"})(we||(we={}));var Me=new(function(){function $(){}return $.prototype.mightProducePrintableCharacter=function(S){return S.ctrlKey||S.metaKey||S.altKey?!1:S.keyCode>=31&&S.keyCode<=56||S.keyCode>=21&&S.keyCode<=30||S.keyCode>=93&&S.keyCode<=102||S.keyCode>=80&&S.keyCode<=90},$}()),Pe=function(){function $(S,z,ce,se){this.list=S,this.view=z,this.keyboardNavigationLabelProvider=ce,this.delegate=se,this.enabled=!1,this.state=we.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new J.b,this.disposables=new J.b,this.updateOptions(S.options)}return $.prototype.updateOptions=function(S){var z=typeof S.enableKeyboardNavigation=="undefined"?!0:!!S.enableKeyboardNavigation;z?this.enable():this.disable(),typeof S.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=S.automaticKeyboardNavigation)},$.prototype.enable=function(){var S=this;if(this.enabled)return;var z=b.b.chain(Object(O.a)(this.view.domNode,"keydown")).filter(function(ye){return!B(ye.target)}).filter(function(){return S.automaticKeyboardNavigation||S.triggered}).map(function(ye){return new h.a(ye)}).filter(function(ye){return S.delegate.mightProducePrintableCharacter(ye)}).forEach(function(ye){ye.stopPropagation(),ye.preventDefault()}).map(function(ye){return ye.browserEvent.key}).event,ce=b.b.debounce(z,function(){return null},800),se=b.b.reduce(b.b.any(z,ce),function(ye,Re){return Re===null?null:(ye||"")+Re});se(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1},$.prototype.disable=function(){if(!this.enabled)return;this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1},$.prototype.onInput=function(S){if(!S){this.state=we.Idle,this.triggered=!1;return}var z=this.list.getFocus(),ce=z.length>0?z[0]:0,se=this.state===we.Idle?1:0;this.state=we.Typing;for(var ye=0;ye<this.list.length;ye++){var Re=(ce+ye+se)%this.list.length,Le=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(Re)),Ue=Le&&Le.toString();if(typeof Ue=="undefined"||Object(f.g)(S,Ue)){this.list.setFocus([Re]),this.list.reveal(Re);return}}},$.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},$}(),Be=function(){function $(S,z){this.list=S,this.view=z,this.disposables=new J.b;var ce=b.b.chain(Object(O.a)(z.domNode,"keydown")).filter(function(se){return!B(se.target)}).map(function(se){return new h.a(se)});ce.filter(function(se){return se.keyCode===2&&!se.ctrlKey&&!se.metaKey&&!se.shiftKey&&!se.altKey}).on(this.onTab,this,this.disposables)}return $.prototype.onTab=function(S){if(S.target!==this.view.domNode)return;var z=this.list.getFocus();if(z.length===0)return;var ce=this.view.domElement(z[0]);if(!ce)return;var se=ce.querySelector("[tabIndex]");if(!se||!(se instanceof HTMLElement)||se.tabIndex===-1)return;var ye=window.getComputedStyle(se);if(ye.visibility==="hidden"||ye.display==="none")return;S.preventDefault(),S.stopPropagation(),se.focus()},$.prototype.dispose=function(){this.disposables.dispose()},$}();function Ke($){return U.e?$.browserEvent.metaKey:$.browserEvent.ctrlKey}function Fe($){return $.browserEvent.shiftKey}function re($){return $ instanceof MouseEvent&&$.button===2}var ee={isSelectionSingleChangeEvent:Ke,isSelectionRangeChangeEvent:Fe},ne={shouldOpen:function($){return $ instanceof MouseEvent?!re($):!0}},q=function(){function $(S){this.list=S,this.disposables=new J.b,this.multipleSelectionSupport=!(S.options.multipleSelectionSupport===!1),this.multipleSelectionSupport&&(this.multipleSelectionController=S.options.multipleSelectionController||ee),this.openController=S.options.openController||ne,this.mouseSupport=typeof S.options.mouseSupport=="undefined"||!!S.options.mouseSupport,this.mouseSupport&&(S.onMouseDown(this.onMouseDown,this,this.disposables),S.onContextMenu(this.onContextMenu,this,this.disposables),S.onMouseDblClick(this.onDoubleClick,this,this.disposables),S.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(j.b.addTarget(S.getHTMLElement()))),S.onMouseClick(this.onPointer,this,this.disposables),S.onMouseMiddleClick(this.onPointer,this,this.disposables),S.onTap(this.onPointer,this,this.disposables)}return $.prototype.isSelectionSingleChangeEvent=function(S){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(S):U.e?S.browserEvent.metaKey:S.browserEvent.ctrlKey},$.prototype.isSelectionRangeChangeEvent=function(S){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(S):S.browserEvent.shiftKey},$.prototype.isSelectionChangeEvent=function(S){return this.isSelectionSingleChangeEvent(S)||this.isSelectionRangeChangeEvent(S)},$.prototype.onMouseDown=function(S){document.activeElement!==S.browserEvent.target&&this.list.domFocus()},$.prototype.onContextMenu=function(S){var z=typeof S.index=="undefined"?[]:[S.index];this.list.setFocus(z,S.browserEvent)},$.prototype.onPointer=function(S){if(!this.mouseSupport)return;if(B(S.browserEvent.target))return;var z=this.list.getFocus()[0],ce=this.list.getSelection();z=z===void 0?ce[0]:z;var se=S.index;if(typeof se=="undefined"){this.list.setFocus([],S.browserEvent),this.list.setSelection([],S.browserEvent);return}if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(S))return this.changeSelection(S,z);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(S))return this.changeSelection(S,z);this.list.setFocus([se],S.browserEvent),re(S.browserEvent)||(this.list.setSelection([se],S.browserEvent),this.openController.shouldOpen(S.browserEvent)&&this.list.open([se],S.browserEvent))},$.prototype.onDoubleClick=function(S){if(B(S.browserEvent.target))return;if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(S))return;var z=this.list.getFocus();this.list.setSelection(z,S.browserEvent),this.list.pin(z)},$.prototype.changeSelection=function(S,z){var ce=S.index;if(this.isSelectionRangeChangeEvent(S)&&z!==void 0){var se=Math.min(z,ce),ye=Math.max(z,ce),Re=Object(H.u)(se,ye+1),Le=this.list.getSelection(),Ue=Ne(Xe(Le,[z]),z);if(Ue.length===0)return;var Je=Xe(Re,de(Le,Ue));this.list.setSelection(Je,S.browserEvent)}else if(this.isSelectionSingleChangeEvent(S)){var Le=this.list.getSelection(),Je=Le.filter(function(Rt){return Rt!==ce});this.list.setFocus([ce]),Le.length===Je.length?this.list.setSelection(P(Je,[ce]),S.browserEvent):this.list.setSelection(Je,S.browserEvent)}},$.prototype.dispose=function(){this.disposables.dispose()},$}(),le=function(){function $(S,z){this.styleElement=S,this.selectorSuffix=z}return $.prototype.style=function(S){var z=this.selectorSuffix&&"."+this.selectorSuffix,ce=[];S.listBackground&&(S.listBackground.isOpaque()?ce.push(".monaco-list"+z+" .monaco-list-rows { background: "+S.listBackground+"; }"):U.e||console.warn("List with id '"+this.selectorSuffix+"' was styled with a non-opaque background color. This will break sub-pixel antialiasing.")),S.listFocusBackground&&(ce.push(".monaco-list"+z+":focus .monaco-list-row.focused { background-color: "+S.listFocusBackground+"; }"),ce.push(".monaco-list"+z+":focus .monaco-list-row.focused:hover { background-color: "+S.listFocusBackground+"; }")),S.listFocusForeground&&ce.push(".monaco-list"+z+":focus .monaco-list-row.focused { color: "+S.listFocusForeground+"; }"),S.listActiveSelectionBackground&&(ce.push(".monaco-list"+z+":focus .monaco-list-row.selected { background-color: "+S.listActiveSelectionBackground+"; }"),ce.push(".monaco-list"+z+":focus .monaco-list-row.selected:hover { background-color: "+S.listActiveSelectionBackground+"; }")),S.listActiveSelectionForeground&&ce.push(".monaco-list"+z+":focus .monaco-list-row.selected { color: "+S.listActiveSelectionForeground+"; }"),S.listFocusAndSelectionBackground&&ce.push(`
.monaco-drag-image,
.monaco-list`+z+":focus .monaco-list-row.selected.focused { background-color: "+S.listFocusAndSelectionBackground+`; }
`),S.listFocusAndSelectionForeground&&ce.push(`
.monaco-drag-image,
.monaco-list`+z+":focus .monaco-list-row.selected.focused { color: "+S.listFocusAndSelectionForeground+`; }
`),S.listInactiveFocusBackground&&(ce.push(".monaco-list"+z+" .monaco-list-row.focused { background-color: "+S.listInactiveFocusBackground+"; }"),ce.push(".monaco-list"+z+" .monaco-list-row.focused:hover { background-color: "+S.listInactiveFocusBackground+"; }")),S.listInactiveSelectionBackground&&(ce.push(".monaco-list"+z+" .monaco-list-row.selected { background-color: "+S.listInactiveSelectionBackground+"; }"),ce.push(".monaco-list"+z+" .monaco-list-row.selected:hover { background-color: "+S.listInactiveSelectionBackground+"; }")),S.listInactiveSelectionForeground&&ce.push(".monaco-list"+z+" .monaco-list-row.selected { color: "+S.listInactiveSelectionForeground+"; }"),S.listHoverBackground&&ce.push(".monaco-list"+z+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+S.listHoverBackground+"; }"),S.listHoverForeground&&ce.push(".monaco-list"+z+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+S.listHoverForeground+"; }"),S.listSelectionOutline&&ce.push(".monaco-list"+z+" .monaco-list-row.selected { outline: 1px dotted "+S.listSelectionOutline+"; outline-offset: -1px; }"),S.listFocusOutline&&ce.push(`
.monaco-drag-image,
.monaco-list`+z+":focus .monaco-list-row.focused { outline: 1px solid "+S.listFocusOutline+`; outline-offset: -1px; }
`),S.listInactiveFocusOutline&&ce.push(".monaco-list"+z+" .monaco-list-row.focused { outline: 1px dotted "+S.listInactiveFocusOutline+"; outline-offset: -1px; }"),S.listHoverOutline&&ce.push(".monaco-list"+z+" .monaco-list-row:hover { outline: 1px dashed "+S.listHoverOutline+"; outline-offset: -1px; }"),S.listDropBackground&&ce.push(`
.monaco-list`+z+`.drop-target,
.monaco-list`+z+` .monaco-list-rows.drop-target,
.monaco-list`+z+" .monaco-list-row.drop-target { background-color: "+S.listDropBackground+` !important; color: inherit !important; }
`),S.listFilterWidgetBackground&&ce.push(".monaco-list-type-filter { background-color: "+S.listFilterWidgetBackground+" }"),S.listFilterWidgetOutline&&ce.push(".monaco-list-type-filter { border: 1px solid "+S.listFilterWidgetOutline+"; }"),S.listFilterWidgetNoMatchesOutline&&ce.push(".monaco-list-type-filter.no-matches { border: 1px solid "+S.listFilterWidgetNoMatchesOutline+"; }"),S.listMatchesShadow&&ce.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+S.listMatchesShadow+"; }");var se=ce.join(`
`);se!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=se)},$}(),Z={listFocusBackground:p.a.fromHex("#7FB0D0"),listActiveSelectionBackground:p.a.fromHex("#0E639C"),listActiveSelectionForeground:p.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:p.a.fromHex("#094771"),listFocusAndSelectionForeground:p.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:p.a.fromHex("#3F3F46"),listHoverBackground:p.a.fromHex("#2A2D2E"),listDropBackground:p.a.fromHex("#383B3D"),treeIndentGuidesStroke:p.a.fromHex("#a9a9a9")},ve={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:C.TREE};function Ne($,S){var z=$.indexOf(S);if(z===-1)return[];for(var ce=[],se=z-1;se>=0&&$[se]===S-(z-se);)ce.push($[se--]);for(ce.reverse(),se=z;se<$.length&&$[se]===S+(se-z);)ce.push($[se++]);return ce}function Xe($,S){for(var z=[],ce=0,se=0;ce<$.length||se<S.length;)if(ce>=$.length)z.push(S[se++]);else if(se>=S.length)z.push($[ce++]);else if($[ce]===S[se]){z.push($[ce]),ce++,se++;continue}else $[ce]<S[se]?z.push($[ce++]):z.push(S[se++]);return z}function de($,S){for(var z=[],ce=0,se=0;ce<$.length||se<S.length;)if(ce>=$.length)z.push(S[se++]);else if(se>=S.length)z.push($[ce++]);else if($[ce]===S[se]){ce++,se++;continue}else $[ce]<S[se]?z.push($[ce++]):se++;return z}var ge=function($,S){return $-S},Ee=function(){function $(S,z){this._templateId=S,this.renderers=z}return Object.defineProperty($.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),$.prototype.renderTemplate=function(S){return this.renderers.map(function(z){return z.renderTemplate(S)})},$.prototype.renderElement=function(S,z,ce,se){for(var ye=0,Re=0,Le=this.renderers;Re<Le.length;Re++){var Ue=Le[Re];Ue.renderElement(S,z,ce[ye++],se)}},$.prototype.disposeElement=function(S,z,ce,se){for(var ye=0,Re=0,Le=this.renderers;Re<Le.length;Re++){var Ue=Le[Re];Ue.disposeElement&&Ue.disposeElement(S,z,ce[ye],se),ye+=1}},$.prototype.disposeTemplate=function(S){for(var z=0,ce=0,se=this.renderers;ce<se.length;ce++){var ye=se[ce];ye.disposeTemplate(S[z++])}},$}(),Te=function(){function $(S){this.accessibilityProvider=S,this.templateId="a18n"}return $.prototype.renderTemplate=function(S){return S},$.prototype.renderElement=function(S,z,ce){var se=this.accessibilityProvider.getAriaLabel(S);se?ce.setAttribute("aria-label",se):ce.removeAttribute("aria-label");var ye=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(S);typeof ye=="number"?ce.setAttribute("aria-level",""+ye):ce.removeAttribute("aria-level")},$.prototype.disposeTemplate=function(S){},$}(),Ce=function(){function $(S,z){this.list=S,this.dnd=z}return $.prototype.getDragElements=function(S){var z=this.list.getSelectedElements(),ce=z.indexOf(S)>-1?z:[S];return ce},$.prototype.getDragURI=function(S){return this.dnd.getDragURI(S)},$.prototype.getDragLabel=function(S,z){return this.dnd.getDragLabel?this.dnd.getDragLabel(S,z):void 0},$.prototype.onDragStart=function(S,z){this.dnd.onDragStart&&this.dnd.onDragStart(S,z)},$.prototype.onDragOver=function(S,z,ce,se){return this.dnd.onDragOver(S,z,ce,se)},$.prototype.onDragEnd=function(S){this.dnd.onDragEnd&&this.dnd.onDragEnd(S)},$.prototype.drop=function(S,z,ce,se){this.dnd.drop(S,z,ce,se)},$}(),fe=function(){function $(S,z,ce,se,ye){ye===void 0&&(ye=ve),this.user=S,this._options=ye,this.eventBufferer=new b.c,this.disposables=new J.b,this._onDidOpen=new b.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new b.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new b.a,this.onDidDispose=this._onDidDispose.event,this.focus=new V,this.selection=new Q("selected"),Object(d.g)(ye,Z,!1);var Re=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=ye.accessibilityProvider,this.accessibilityProvider&&(Re.push(new Te(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),se=se.map(function(vt){return new Ee(vt.templateId,P(Re,[vt]))});var Le=L(L({},ye),{dnd:ye.dnd&&new Ce(this,ye.dnd)});if(this.view=new v.b(z,ce,se,Le),typeof ye.ariaRole!="string"?this.view.domNode.setAttribute("role",C.TREE):this.view.domNode.setAttribute("role",ye.ariaRole),ye.styleController)this.styleController=ye.styleController(this.view.domId);else{var Ue=D.w(this.view.domNode);this.styleController=new le(Ue,this.view.domId)}if(this.spliceable=new c([new W(this.focus,this.view,ye.identityProvider),new W(this.selection,this.view,ye.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=b.b.map(Object(O.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=b.b.map(Object(O.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new Be(this,this.view)),typeof ye.keyboardSupport!="boolean"||ye.keyboardSupport){var Je=new ae(this,this.view,ye);this.disposables.add(Je)}if(ye.keyboardNavigationLabelProvider){var nt=ye.keyboardNavigationDelegate||Me;this.typeLabelController=new Pe(this,this.view,ye.keyboardNavigationLabelProvider,nt),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(ye)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),ye.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(pe.a)("aria list","{0}. Use the navigation keys to navigate.",ye.ariaLabel))}return Object.defineProperty($.prototype,"onFocusChange",{get:function(){var S=this;return b.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(z){return S.toListEvent(z)})},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"onSelectionChange",{get:function(){var S=this;return b.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(z){return S.toListEvent(z)})},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"onContextMenu",{get:function(){var S=this,z=b.b.chain(Object(O.a)(this.view.domNode,"keydown")).map(function(ye){return new h.a(ye)}).filter(function(ye){return S.didJustPressContextMenuKey=ye.keyCode===58||ye.shiftKey&&ye.keyCode===68}).filter(function(ye){return ye.preventDefault(),ye.stopPropagation(),!1}).event,ce=b.b.chain(Object(O.a)(this.view.domNode,"keyup")).filter(function(){var ye=S.didJustPressContextMenuKey;return S.didJustPressContextMenuKey=!1,ye}).filter(function(){return S.getFocus().length>0&&!!S.view.domElement(S.getFocus()[0])}).map(function(ye){var Re=S.getFocus()[0],Le=S.view.element(Re),Ue=S.view.domElement(Re);return{index:Re,element:Le,anchor:Ue,browserEvent:ye}}).event,se=b.b.chain(this.view.onContextMenu).filter(function(){return!S.didJustPressContextMenuKey}).map(function(ye){var Re=ye.element,Le=ye.index,Ue=ye.browserEvent;return{element:Re,index:Le,anchor:{x:Ue.clientX+1,y:Ue.clientY},browserEvent:Ue}}).event;return b.b.any(z,ce,se)},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"onKeyDown",{get:function(){return Object(O.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),$.prototype.createMouseController=function(S){return new q(this)},$.prototype.updateOptions=function(S){S===void 0&&(S={}),this._options=L(L({},this._options),S),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty($.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),$.prototype.splice=function(S,z,ce){var se=this;if(ce===void 0&&(ce=[]),S<0||S>this.view.length)throw new w(this.user,"Invalid start index: "+S);if(z<0)throw new w(this.user,"Invalid delete count: "+z);if(z===0&&ce.length===0)return;this.eventBufferer.bufferEvents(function(){return se.spliceable.splice(S,z,ce)})},$.prototype.rerender=function(){this.view.rerender()},$.prototype.element=function(S){return this.view.element(S)},Object.defineProperty($.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(S){this.view.setScrollTop(S)},enumerable:!0,configurable:!0}),$.prototype.domFocus=function(){this.view.domNode.focus()},$.prototype.layout=function(S,z){this.view.layout(S,z)},$.prototype.setSelection=function(S,z){for(var ce=0,se=S;ce<se.length;ce++){var ye=se[ce];if(ye<0||ye>=this.length)throw new w(this.user,"Invalid index "+ye)}this.selection.set(S,z)},$.prototype.getSelection=function(){return this.selection.get()},$.prototype.getSelectedElements=function(){var S=this;return this.getSelection().map(function(z){return S.view.element(z)})},$.prototype.setFocus=function(S,z){for(var ce=0,se=S;ce<se.length;ce++){var ye=se[ce];if(ye<0||ye>=this.length)throw new w(this.user,"Invalid index "+ye)}this.focus.set(S,z)},$.prototype.focusNext=function(S,z,ce,se){if(S===void 0&&(S=1),z===void 0&&(z=!1),this.length===0)return;var ye=this.focus.get(),Re=this.findNextIndex(ye.length>0?ye[0]+S:0,z,se);Re>-1&&this.setFocus([Re],ce)},$.prototype.focusPrevious=function(S,z,ce,se){if(S===void 0&&(S=1),z===void 0&&(z=!1),this.length===0)return;var ye=this.focus.get(),Re=this.findPreviousIndex(ye.length>0?ye[0]-S:0,z,se);Re>-1&&this.setFocus([Re],ce)},$.prototype.focusNextPage=function(S,z){var ce=this,se=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);se=se===0?0:se-1;var ye=this.view.element(se),Re=this.getFocusedElements()[0];if(Re!==ye){var Le=this.findPreviousIndex(se,!1,z);Le>-1&&Re!==this.view.element(Le)?this.setFocus([Le],S):this.setFocus([se],S)}else{var Ue=this.view.getScrollTop();this.view.setScrollTop(Ue+this.view.renderHeight-this.view.elementHeight(se)),this.view.getScrollTop()!==Ue&&setTimeout(function(){return ce.focusNextPage(S,z)},0)}},$.prototype.focusPreviousPage=function(S,z){var ce=this,se,ye=this.view.getScrollTop();ye===0?se=this.view.indexAt(ye):se=this.view.indexAfter(ye-1);var Re=this.view.element(se),Le=this.getFocusedElements()[0];if(Le!==Re){var Ue=this.findNextIndex(se,!1,z);Ue>-1&&Le!==this.view.element(Ue)?this.setFocus([Ue],S):this.setFocus([se],S)}else{var Je=ye;this.view.setScrollTop(ye-this.view.renderHeight),this.view.getScrollTop()!==Je&&setTimeout(function(){return ce.focusPreviousPage(S,z)},0)}},$.prototype.focusLast=function(S,z){if(this.length===0)return;var ce=this.findPreviousIndex(this.length-1,!1,z);ce>-1&&this.setFocus([ce],S)},$.prototype.focusFirst=function(S,z){if(this.length===0)return;var ce=this.findNextIndex(0,!1,z);ce>-1&&this.setFocus([ce],S)},$.prototype.findNextIndex=function(S,z,ce){z===void 0&&(z=!1);for(var se=0;se<this.length;se++){if(S>=this.length&&!z)return-1;if(S=S%this.length,!ce||ce(this.element(S)))return S;S++}return-1},$.prototype.findPreviousIndex=function(S,z,ce){z===void 0&&(z=!1);for(var se=0;se<this.length;se++){if(S<0&&!z)return-1;if(S=(this.length+S%this.length)%this.length,!ce||ce(this.element(S)))return S;S--}return-1},$.prototype.getFocus=function(){return this.focus.get()},$.prototype.getFocusedElements=function(){var S=this;return this.getFocus().map(function(z){return S.view.element(z)})},$.prototype.reveal=function(S,z){if(S<0||S>=this.length)throw new w(this.user,"Invalid index "+S);var ce=this.view.getScrollTop(),se=this.view.elementTop(S),ye=this.view.elementHeight(S);if(Object(I.h)(z)){var Re=ye-this.view.renderHeight;this.view.setScrollTop(Re*Object(u.a)(z,0,1)+se)}else{var Le=se+ye,Ue=ce+this.view.renderHeight;se<ce&&Le>=Ue||(se<ce?this.view.setScrollTop(se):Le>=Ue&&this.view.setScrollTop(Le-this.view.renderHeight))}},$.prototype.getRelativeTop=function(S){if(S<0||S>=this.length)throw new w(this.user,"Invalid index "+S);var z=this.view.getScrollTop(),ce=this.view.elementTop(S),se=this.view.elementHeight(S);if(ce<z||ce+se>z+this.view.renderHeight)return null;var ye=se-this.view.renderHeight;return Math.abs((z-ce)/ye)},$.prototype.getHTMLElement=function(){return this.view.domNode},$.prototype.open=function(S,z){for(var ce=this,se=0,ye=S;se<ye.length;se++){var Re=ye[se];if(Re<0||Re>=this.length)throw new w(this.user,"Invalid index "+Re)}this._onDidOpen.fire({indexes:S,elements:S.map(function(Le){return ce.view.element(Le)}),browserEvent:z})},$.prototype.pin=function(S,z){for(var ce=this,se=0,ye=S;se<ye.length;se++){var Re=ye[se];if(Re<0||Re>=this.length)throw new w(this.user,"Invalid index "+Re)}this._onDidPin.fire({indexes:S,elements:S.map(function(Le){return ce.view.element(Le)}),browserEvent:z})},$.prototype.style=function(S){this.styleController.style(S)},$.prototype.toListEvent=function(S){var z=this,ce=S.indexes,se=S.browserEvent;return{indexes:ce,elements:ce.map(function(ye){return z.view.element(ye)}),browserEvent:se}},$.prototype._onFocusChange=function(){var S=this.focus.get();D.Y(this.view.domNode,"element-focused",S.length>0),this.onDidChangeActiveDescendant()},$.prototype.onDidChangeActiveDescendant=function(){var S,z=this.focus.get();if(z.length>0){var ce=void 0;((S=this.accessibilityProvider)===null||S===void 0?void 0:S.getActiveDescendantId)&&(ce=this.accessibilityProvider.getActiveDescendantId(this.view.element(z[0]))),this.view.domNode.setAttribute("aria-activedescendant",ce||this.view.getElementDomId(z[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},$.prototype._onSelectionChange=function(){var S=this.selection.get();D.Y(this.view.domNode,"selection-none",S.length===0),D.Y(this.view.domNode,"selection-single",S.length===1),D.Y(this.view.domNode,"selection-multiple",S.length>1)},$.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},R([K.a],$.prototype,"onFocusChange",null),R([K.a],$.prototype,"onSelectionChange",null),R([K.a],$.prototype,"onContextMenu",null),$}()},d6R0:function(Mt,F,e){"use strict";e.r(F),e.d(F,"CodeLensContribution",function(){return le});var T=e("X+cX"),pe=e("/cxE"),J=e("pmY6"),I=e("vATl"),H=e("sswD"),K=e("twdY"),D=e("6OMU"),U=e("JQT/"),j=e("bY76"),h=e("G2kB"),b=function(){function Z(){this.lenses=[],this._disposables=new J.b}return Z.prototype.dispose=function(){this._disposables.dispose()},Z.prototype.add=function(ve,Ne){this._disposables.add(ve);for(var Xe=0,de=ve.lenses;Xe<de.length;Xe++){var ge=de[Xe];this.lenses.push({symbol:ge,provider:Ne})}},Z}();function O(Z,ve){var Ne=K.b.ordered(Z),Xe=new Map,de=new b,ge=Ne.map(function(Ee,Te){return Xe.set(Ee,Te),Promise.resolve(Ee.provideCodeLenses(Z,ve)).then(function(Ce){return Ce&&de.add(Ce,Ee)}).catch(pe.f)});return Promise.all(ge).then(function(){return de.lenses=Object(D.r)(de.lenses,function(Ee,Te){return Ee.symbol.range.startLineNumber<Te.symbol.range.startLineNumber?-1:Ee.symbol.range.startLineNumber>Te.symbol.range.startLineNumber?1:Xe.get(Ee.provider)<Xe.get(Te.provider)?-1:Xe.get(Ee.provider)>Xe.get(Te.provider)?1:Ee.symbol.range.startColumn<Te.symbol.range.startColumn?-1:Ee.symbol.range.startColumn>Te.symbol.range.startColumn?1:0}),de})}Object(H.j)("_executeCodeLensProvider",function(Z,ve){var Ne=ve.resource,Xe=ve.itemResolveCount;if(!(Ne instanceof j.a))throw Object(pe.b)();var de=Z.get(h.a).getModel(Ne);if(!de)throw Object(pe.b)();var ge=[],Ee=new J.b;return O(de,U.a.None).then(function(Te){Ee.add(Te);for(var Ce=[],fe=function(ce){typeof Xe=="undefined"||Boolean(ce.symbol.command)?ge.push(ce.symbol):Xe-- >0&&ce.provider.resolveCodeLens&&Ce.push(Promise.resolve(ce.provider.resolveCodeLens(de,ce.symbol,U.a.None)).then(function(se){return ge.push(se||ce.symbol)}))},$=0,S=Te.lenses;$<S.length;$++){var z=S[$];fe(z)}return Promise.all(Ce)}).then(function(){return ge}).finally(function(){setTimeout(function(){return Ee.dispose()},100)})});var m=e("RMfO"),C=e("EffR"),w=e("Vhoy"),v=e("N0LK"),p=e("aokT"),d=e("tX9W"),c=e("kYye"),u=e("MD5Z"),f=e("t9D7"),E=function(){function Z(ve,Ne){this.afterLineNumber=ve,this._onHeight=Ne,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}return Z.prototype.onComputedHeight=function(ve){this._lastHeight===void 0?this._lastHeight=ve:this._lastHeight!==ve&&(this._lastHeight=ve,this._onHeight())},Z}(),L=function(){function Z(ve,Ne,Xe){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=ve,this._id="codelens.widget-"+Z._idPool++,this.updatePosition(Xe),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+Ne}return Z.prototype.withCommands=function(ve,Ne){this._commands.clear();for(var Xe="",de=!1,ge=0;ge<ve.length;ge++){var Ee=ve[ge];if(!Ee)continue;if(de=!0,Ee.command){var Te=Object(w.c)(Object(v.o)(Ee.command.title));Ee.command.id?(Xe+="<a id="+ge+">"+Te+"</a>",this._commands.set(String(ge),Ee.command)):Xe+="<span>"+Te+"</span>",ge+1<ve.length&&(Xe+="<span>&#160;|&#160;</span>")}}de?(Xe||(Xe="&#160;"),this._domNode.innerHTML=Xe,this._isEmpty&&Ne&&C.f(this._domNode,"fadein"),this._isEmpty=!1):this._domNode.innerHTML="<span>no commands</span>"},Z.prototype.getCommand=function(ve){return ve.parentElement===this._domNode?this._commands.get(ve.id):void 0},Z.prototype.getId=function(){return this._id},Z.prototype.getDomNode=function(){return this._domNode},Z.prototype.updatePosition=function(ve){var Ne=this._editor.getModel().getLineFirstNonWhitespaceColumn(ve);this._widgetPosition={position:{lineNumber:ve,column:Ne},preference:[1]}},Z.prototype.getPosition=function(){return this._widgetPosition||null},Z._idPool=0,Z}(),R=function(){function Z(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return Z.prototype.addDecoration=function(ve,Ne){this._addDecorations.push(ve),this._addDecorationsCallbacks.push(Ne)},Z.prototype.removeDecoration=function(ve){this._removeDecorations.push(ve)},Z.prototype.commit=function(ve){for(var Ne=ve.deltaDecorations(this._removeDecorations,this._addDecorations),Xe=0,de=Ne.length;Xe<de;Xe++)this._addDecorationsCallbacks[Xe](Ne[Xe])},Z}(),P=function(){function Z(ve,Ne,Xe,de,ge,Ee){var Te=this;this._isDisposed=!1,this._editor=Ne,this._className=Xe,this._data=ve,this._decorationIds=[];var Ce,fe=[];this._data.forEach(function($,S){$.symbol.command&&fe.push($.symbol),de.addDecoration({range:$.symbol.range,options:d.a.EMPTY},function(z){return Te._decorationIds[S]=z}),Ce?Ce=p.a.plusRange(Ce,$.symbol.range):Ce=p.a.lift($.symbol.range)}),this._viewZone=new E(Ce.startLineNumber-1,Ee),this._viewZoneId=ge.addZone(this._viewZone),fe.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(fe,!1))}return Z.prototype._createContentWidgetIfNecessary=function(){this._contentWidget||(this._contentWidget=new L(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))},Z.prototype.dispose=function(ve,Ne){this._decorationIds.forEach(ve.removeDecoration,ve),this._decorationIds=[],Ne&&Ne.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0},Z.prototype.isDisposed=function(){return this._isDisposed},Z.prototype.isValid=function(){var ve=this;return this._decorationIds.some(function(Ne,Xe){var de=ve._editor.getModel().getDecorationRange(Ne),ge=ve._data[Xe].symbol;return!!(de&&p.a.isEmpty(ge.range)===de.isEmpty())})},Z.prototype.updateCodeLensSymbols=function(ve,Ne){var Xe=this;this._decorationIds.forEach(Ne.removeDecoration,Ne),this._decorationIds=[],this._data=ve,this._data.forEach(function(de,ge){Ne.addDecoration({range:de.symbol.range,options:d.a.EMPTY},function(Ee){return Xe._decorationIds[ge]=Ee})})},Z.prototype.computeIfNecessary=function(ve){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(var Ne=0;Ne<this._decorationIds.length;Ne++){var Xe=ve.getDecorationRange(this._decorationIds[Ne]);Xe&&(this._data[Ne].symbol.range=Xe)}return this._data},Z.prototype.updateCommands=function(ve){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(ve,!0);for(var Ne=0;Ne<this._data.length;Ne++){var Xe=ve[Ne];if(Xe){var de=this._data[Ne].symbol;de.command=Xe.command||de.command}}},Z.prototype.getCommand=function(ve){var Ne;return(Ne=this._contentWidget)===null||Ne===void 0?void 0:Ne.getCommand(ve)},Z.prototype.getLineNumber=function(){var ve=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return ve?ve.startLineNumber:-1},Z.prototype.update=function(ve){if(this.isValid()){var Ne=this._editor.getModel().getDecorationRange(this._decorationIds[0]);Ne&&(this._viewZone.afterLineNumber=Ne.startLineNumber-1,ve.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(Ne.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}},Z}();Object(f.e)(function(Z,ve){var Ne=Z.getColor(c.e);Ne&&(ve.addRule(".monaco-editor .codelens-decoration { color: "+Ne+"; }"),ve.addRule(".monaco-editor .codelens-decoration .codicon { color: "+Ne+"; }"));var Xe=Z.getColor(u.n);Xe&&(ve.addRule(".monaco-editor .codelens-decoration > a:hover { color: "+Xe+" !important; }"),ve.addRule(".monaco-editor .codelens-decoration > a:hover .codicon { color: "+Xe+" !important; }"))});var x=e("nnTU"),Q=e("sM1p"),V=e("Cg/j"),W=e("9fML"),B=e("QDVR"),ae=e("A+jI"),we=e("C/vA"),Me=function(Z,ve,Ne,Xe){var de=arguments.length,ge=de<3?ve:Xe===null?Xe=Object.getOwnPropertyDescriptor(ve,Ne):Xe,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ge=Reflect.decorate(Z,ve,Ne,Xe);else for(var Te=Z.length-1;Te>=0;Te--)(Ee=Z[Te])&&(ge=(de<3?Ee(ge):de>3?Ee(ve,Ne,ge):Ee(ve,Ne))||ge);return de>3&&ge&&Object.defineProperty(ve,Ne,ge),ge},Pe=function(Z,ve){return function(Ne,Xe){ve(Ne,Xe,Z)}},Be=Object(V.c)("ICodeLensCache"),Ke=function(){function Z(ve,Ne){this.lineCount=ve,this.data=Ne}return Z}(),Fe=function(){function Z(ve){var Ne=this;this._fakeProvider=new(function(){function Ee(){}return Ee.prototype.provideCodeLenses=function(){throw new Error("not supported")},Ee}()),this._cache=new B.a(20,.75);var Xe="codelens/cache";Object(T.k)(function(){return ve.remove(Xe,1)});var de="codelens/cache2",ge=ve.get(de,1,"{}");this._deserialize(ge),Object(we.a)(ve.onWillSaveState)(function(Ee){Ee.reason===ae.c.SHUTDOWN&&ve.store(de,Ne._serialize(),1)})}return Z.prototype.put=function(ve,Ne){var Xe=Ne.lenses.map(function(Ee){var Te;return{range:Ee.symbol.range,command:Ee.symbol.command&&{id:"",title:(Te=Ee.symbol.command)===null||Te===void 0?void 0:Te.title}}}),de=new b;de.add({lenses:Xe,dispose:function(){}},this._fakeProvider);var ge=new Ke(ve.getLineCount(),de);this._cache.set(ve.uri.toString(),ge)},Z.prototype.get=function(ve){var Ne=this._cache.get(ve.uri.toString());return Ne&&Ne.lineCount===ve.getLineCount()?Ne.data:void 0},Z.prototype.delete=function(ve){this._cache.delete(ve.uri.toString())},Z.prototype._serialize=function(){var ve=Object.create(null);return this._cache.forEach(function(Ne,Xe){for(var de=new Set,ge=0,Ee=Ne.data.lenses;ge<Ee.length;ge++){var Te=Ee[ge];de.add(Te.symbol.range.startLineNumber)}ve[Xe]={lineCount:Ne.lineCount,lines:Object(B.e)(de)}}),JSON.stringify(ve)},Z.prototype._deserialize=function(ve){try{var Ne=JSON.parse(ve);for(var Xe in Ne){for(var de=Ne[Xe],ge=[],Ee=0,Te=de.lines;Ee<Te.length;Ee++){var Ce=Te[Ee];ge.push({range:new p.a(Ce,1,Ce,11)})}var fe=new b;fe.add({lenses:ge,dispose:function(){}},this._fakeProvider),this._cache.set(Xe,new Ke(de.lineCount,fe))}}catch($){}},Z=Me([Pe(0,ae.a)],Z),Z}();Object(W.b)(Be,Fe);var re=e("7afs"),ee=function(Z,ve,Ne,Xe){var de=arguments.length,ge=de<3?ve:Xe===null?Xe=Object.getOwnPropertyDescriptor(ve,Ne):Xe,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ge=Reflect.decorate(Z,ve,Ne,Xe);else for(var Te=Z.length-1;Te>=0;Te--)(Ee=Z[Te])&&(ge=(de<3?Ee(ge):de>3?Ee(ve,Ne,ge):Ee(ve,Ne))||ge);return de>3&&ge&&Object.defineProperty(ve,Ne,ge),ge},ne=function(Z,ve){return function(Ne,Xe){ve(Ne,Xe,Z)}},q=function(){for(var Z=0,ve=0,Ne=arguments.length;ve<Ne;ve++)Z+=arguments[ve].length;for(var Xe=Array(Z),de=0,ve=0;ve<Ne;ve++)for(var ge=arguments[ve],Ee=0,Te=ge.length;Ee<Te;Ee++,de++)Xe[de]=ge[Ee];return Xe},le=function(){function Z(ve,Ne,Xe,de){var ge=this;this._editor=ve,this._commandService=Ne,this._notificationService=Xe,this._codeLensCache=de,this._globalToDispose=new J.b,this._localToDispose=new J.b,this._lenses=[],this._oldCodeLensModels=new J.b,this._modelChangeCounter=0,this._isEnabled=this._editor.getOption(11),this._globalToDispose.add(this._editor.onDidChangeModel(function(){return ge._onModelChange()})),this._globalToDispose.add(this._editor.onDidChangeModelLanguage(function(){return ge._onModelChange()})),this._globalToDispose.add(this._editor.onDidChangeConfiguration(function(){var Ee=ge._isEnabled;ge._isEnabled=ge._editor.getOption(11),Ee!==ge._isEnabled&&ge._onModelChange()})),this._globalToDispose.add(K.b.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration(function(Ee){Ee.hasChanged(34)&&ge._updateLensStyle()})),this._onModelChange(),this._styleClassName=Object(re.a)(this._editor.getId()).toString(16),this._styleElement=C.w(C.N(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}return Z.prototype.dispose=function(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),Object(J.f)(this._currentCodeLensModel)},Z.prototype._updateLensStyle=function(){var ve=this._editor.getOptions(),Ne=ve.get(34),Xe=ve.get(49),de=Math.round(Xe*1.1),ge=Math.round(Ne.fontSize*.9),Ee=`
.monaco-editor .codelens-decoration.`+this._styleClassName+" { height: "+de+"px; line-height: "+Xe+"px; font-size: "+ge+"px; padding-right: "+Math.round(Ne.fontSize*.45)+`px;}
.monaco-editor .codelens-decoration.`+this._styleClassName+" > a > .codicon { line-height: "+Xe+"px; font-size: "+ge+`px; }
`;this._styleElement.innerHTML=Ee},Z.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),Object(J.f)(this._currentCodeLensModel)},Z.prototype._onModelChange=function(){var ve=this;this._localDispose();var Ne=this._editor.getModel();if(!Ne)return;if(!this._isEnabled)return;var Xe=this._codeLensCache.get(Ne);if(Xe&&this._renderCodeLensSymbols(Xe),!K.b.has(Ne)){Xe&&this._localToDispose.add(Object(T.g)(function(){var $=ve._codeLensCache.get(Ne);Xe===$&&(ve._codeLensCache.delete(Ne),ve._onModelChange())},30*1e3));return}for(var de=0,ge=K.b.all(Ne);de<ge.length;de++){var Ee=ge[de];if(typeof Ee.onDidChange=="function"){var Te=Ee.onDidChange(function(){return fe.schedule()});this._localToDispose.add(Te)}}var Ce=this._detectVisibleLenses=new T.d(function(){return ve._onViewportChanged()},250),fe=new T.d(function(){var $=++ve._modelChangeCounter;ve._currentFindCodeLensSymbolsPromise&&ve._currentFindCodeLensSymbolsPromise.cancel(),ve._currentFindCodeLensSymbolsPromise=Object(T.f)(function(S){return O(Ne,S)}),ve._currentFindCodeLensSymbolsPromise.then(function(S){$===ve._modelChangeCounter&&(ve._currentCodeLensModel&&ve._oldCodeLensModels.add(ve._currentCodeLensModel),ve._currentCodeLensModel=S,ve._codeLensCache.put(Ne,S),ve._renderCodeLensSymbols(S),Ce.schedule())},pe.e)},250);this._localToDispose.add(fe),this._localToDispose.add(Ce),this._localToDispose.add(this._editor.onDidChangeModelContent(function(){ve._editor.changeDecorations(function($){ve._editor.changeViewZones(function(S){var z=[],ce=-1;ve._lenses.forEach(function(ye){!ye.isValid()||ce===ye.getLineNumber()?z.push(ye):(ye.update(S),ce=ye.getLineNumber())});var se=new R;z.forEach(function(ye){ye.dispose(se,S),ve._lenses.splice(ve._lenses.indexOf(ye),1)}),se.commit($)})}),Ce.schedule(),fe.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(function($){$.scrollTopChanged&&ve._lenses.length>0&&Ce.schedule()})),this._localToDispose.add(this._editor.onDidLayoutChange(function(){Ce.schedule()})),this._localToDispose.add(Object(J.h)(function(){if(ve._editor.getModel()){var $=I.c.capture(ve._editor);ve._editor.changeDecorations(function(S){ve._editor.changeViewZones(function(z){ve._disposeAllLenses(S,z)})}),$.restore(ve._editor)}else ve._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseUp(function($){var S;if($.target.type!==9)return;var z=$.target.element;if((z==null?void 0:z.tagName)==="SPAN"&&(z=z.parentElement),(z==null?void 0:z.tagName)==="A")for(var ce=0,se=ve._lenses;ce<se.length;ce++){var ye=se[ce],Re=ye.getCommand(z);if(Re){(S=ve._commandService).executeCommand.apply(S,q([Re.id],Re.arguments||[])).catch(function(Le){return ve._notificationService.error(Le)});break}}})),fe.schedule()},Z.prototype._disposeAllLenses=function(ve,Ne){for(var Xe=new R,de=0,ge=this._lenses;de<ge.length;de++){var Ee=ge[de];Ee.dispose(Xe,Ne)}ve&&Xe.commit(ve),this._lenses=[]},Z.prototype._renderCodeLensSymbols=function(ve){var Ne=this;if(!this._editor.hasModel())return;for(var Xe=this._editor.getModel().getLineCount(),de=[],ge,Ee=0,Te=ve.lenses;Ee<Te.length;Ee++){var Ce=Te[Ee],fe=Ce.symbol.range.startLineNumber;if(fe<1||fe>Xe)continue;ge&&ge[ge.length-1].symbol.range.startLineNumber===fe?ge.push(Ce):(ge=[Ce],de.push(ge))}var $=I.c.capture(this._editor);this._editor.changeDecorations(function(S){Ne._editor.changeViewZones(function(z){for(var ce=new R,se=0,ye=0;ye<de.length&&se<Ne._lenses.length;){var Re=de[ye][0].symbol.range.startLineNumber,Le=Ne._lenses[se].getLineNumber();Le<Re?(Ne._lenses[se].dispose(ce,z),Ne._lenses.splice(se,1)):Le===Re?(Ne._lenses[se].updateCodeLensSymbols(de[ye],ce),ye++,se++):(Ne._lenses.splice(se,0,new P(de[ye],Ne._editor,Ne._styleClassName,ce,z,function(){return Ne._detectVisibleLenses&&Ne._detectVisibleLenses.schedule()})),se++,ye++)}for(;se<Ne._lenses.length;)Ne._lenses[se].dispose(ce,z),Ne._lenses.splice(se,1);for(;ye<de.length;)Ne._lenses.push(new P(de[ye],Ne._editor,Ne._styleClassName,ce,z,function(){return Ne._detectVisibleLenses&&Ne._detectVisibleLenses.schedule()})),ye++;ce.commit(S)})}),$.restore(this._editor)},Z.prototype._onViewportChanged=function(){var ve=this;this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);var Ne=this._editor.getModel();if(!Ne)return;var Xe=[],de=[];if(this._lenses.forEach(function(Ee){var Te=Ee.computeIfNecessary(Ne);Te&&(Xe.push(Te),de.push(Ee))}),Xe.length===0)return;var ge=Object(T.f)(function(Ee){var Te=Xe.map(function(Ce,fe){var $=new Array(Ce.length),S=Ce.map(function(z,ce){return!z.symbol.command&&typeof z.provider.resolveCodeLens=="function"?Promise.resolve(z.provider.resolveCodeLens(Ne,z.symbol,Ee)).then(function(se){$[ce]=se},pe.f):($[ce]=z.symbol,Promise.resolve(void 0))});return Promise.all(S).then(function(){!Ee.isCancellationRequested&&!de[fe].isDisposed()&&de[fe].updateCommands($)})});return Promise.all(Te)});this._currentResolveCodeLensSymbolsPromise=ge,this._currentResolveCodeLensSymbolsPromise.then(function(){ve._currentCodeLensModel&&ve._codeLensCache.put(Ne,ve._currentCodeLensModel),ve._oldCodeLensModels.clear(),ge===ve._currentResolveCodeLensSymbolsPromise&&(ve._currentResolveCodeLensSymbolsPromise=void 0)},function(Ee){Object(pe.e)(Ee),ge===ve._currentResolveCodeLensSymbolsPromise&&(ve._currentResolveCodeLensSymbolsPromise=void 0)})},Z.ID="css.editor.codeLens",Z=ee([ne(1,x.b),ne(2,Q.a),ne(3,Be)],Z),Z}();Object(H.h)(le.ID,le)},dBaI:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"b",function(){return H});var T=e("N0LK"),pe=function(){function K(D,U,j,h){this.startColumn=D,this.endColumn=U,this.className=j,this.type=h}return K._equals=function(D,U){return D.startColumn===U.startColumn&&D.endColumn===U.endColumn&&D.className===U.className&&D.type===U.type},K.equalsArr=function(D,U){var j=D.length,h=U.length;if(j!==h)return!1;for(var b=0;b<j;b++)if(!K._equals(D[b],U[b]))return!1;return!0},K.filter=function(D,U,j,h){if(D.length===0)return[];for(var b=[],O=0,m=0,C=D.length;m<C;m++){var w=D[m],v=w.range;if(v.endLineNumber<U||v.startLineNumber>U)continue;if(v.isEmpty()&&(w.type===0||w.type===3))continue;var p=v.startLineNumber===U?v.startColumn:j,d=v.endLineNumber===U?v.endColumn:h;b[O++]=new K(p,d,w.inlineClassName,w.type)}return b},K.compare=function(D,U){return D.startColumn===U.startColumn?D.endColumn===U.endColumn?D.className<U.className?-1:D.className>U.className?1:0:D.endColumn-U.endColumn:D.startColumn-U.startColumn},K}(),J=function(){function K(D,U,j){this.startOffset=D,this.endOffset=U,this.className=j}return K}(),I=function(){function K(){this.stopOffsets=[],this.classNames=[],this.count=0}return K.prototype.consumeLowerThan=function(D,U,j){for(;this.count>0&&this.stopOffsets[0]<D;){for(var h=0;h+1<this.count&&this.stopOffsets[h]===this.stopOffsets[h+1];)h++;j.push(new J(U,this.stopOffsets[h],this.classNames.join(" "))),U=this.stopOffsets[h]+1,this.stopOffsets.splice(0,h+1),this.classNames.splice(0,h+1),this.count-=h+1}return this.count>0&&U<D&&(j.push(new J(U,D-1,this.classNames.join(" "))),U=D),U},K.prototype.insert=function(D,U){if(this.count===0||this.stopOffsets[this.count-1]<=D)this.stopOffsets.push(D),this.classNames.push(U);else for(var j=0;j<this.count;j++)if(this.stopOffsets[j]>=D){this.stopOffsets.splice(j,0,D),this.classNames.splice(j,0,U);break}this.count++;return},K}(),H=function(){function K(){}return K.normalize=function(D,U){if(U.length===0)return[];for(var j=[],h=new I,b=0,O=0,m=U.length;O<m;O++){var C=U[O],w=C.startColumn,v=C.endColumn,p=C.className;if(w>1){var d=D.charCodeAt(w-2);T.z(d)&&w--}if(v>1){var d=D.charCodeAt(v-2);T.z(d)&&v--}var c=w-1,u=v-2;b=h.consumeLowerThan(c,b,j),h.count===0&&(b=c),h.insert(u,p)}return h.consumeLowerThan(1073741824,b,j),j},K}()},dFcq:function(Mt,F,e){},"dH+W":function(Mt,F,e){"use strict";e.r(F),e.d(F,"DuplicateSelectionAction",function(){return W}),e.d(F,"AbstractSortLinesAction",function(){return Me}),e.d(F,"SortLinesAscendingAction",function(){return Pe}),e.d(F,"SortLinesDescendingAction",function(){return Be}),e.d(F,"TrimTrailingWhitespaceAction",function(){return Ke}),e.d(F,"DeleteLinesAction",function(){return Fe}),e.d(F,"IndentLinesAction",function(){return re}),e.d(F,"InsertLineBeforeAction",function(){return ne}),e.d(F,"InsertLineAfterAction",function(){return q}),e.d(F,"AbstractDeleteAllToBoundaryAction",function(){return le}),e.d(F,"DeleteAllLeftAction",function(){return Z}),e.d(F,"DeleteAllRightAction",function(){return ve}),e.d(F,"JoinLinesAction",function(){return Ne}),e.d(F,"TransposeAction",function(){return Xe}),e.d(F,"AbstractCaseAction",function(){return de}),e.d(F,"UpperCaseAction",function(){return ge}),e.d(F,"LowerCaseAction",function(){return Ee}),e.d(F,"TitleCaseAction",function(){return Te});var T=e("3/fG"),pe=e("/kV6"),J=e("1YUG"),I=e("sswD"),H=e("LCkn"),K=e("N0LK"),D=e("0/Sa"),U=e("aokT"),j=function(){function Ce(fe,$){this._selection=fe,this._cursors=$,this._selectionId=null}return Ce.prototype.getEditOperations=function(fe,$){for(var S=h(fe,this._cursors),z=0,ce=S.length;z<ce;z++){var se=S[z];$.addEditOperation(se.range,se.text)}this._selectionId=$.trackSelection(this._selection)},Ce.prototype.computeCursorState=function(fe,$){return $.getTrackedSelection(this._selectionId)},Ce}();function h(Ce,fe){fe.sort(function(Rt,Ot){return Rt.lineNumber===Ot.lineNumber?Rt.column-Ot.column:Rt.lineNumber-Ot.lineNumber});for(var $=fe.length-2;$>=0;$--)fe[$].lineNumber===fe[$+1].lineNumber&&fe.splice($,1);for(var S=[],z=0,ce=0,se=fe.length,ye=1,Re=Ce.getLineCount();ye<=Re;ye++){var Le=Ce.getLineContent(ye),Ue=Le.length+1,Je=0;if(ce<se&&fe[ce].lineNumber===ye&&(Je=fe[ce].column,ce++,Je===Ue))continue;if(Le.length===0)continue;var nt=K.D(Le),vt=0;if(nt===-1)vt=1;else if(nt!==Le.length-1)vt=nt+2;else continue;vt=Math.max(Je,vt),S[z++]=D.a.delete(new U.a(ye,vt,ye,Ue))}return S}var b=e("GR/f"),O=e("cGHE"),m=e("gCVg"),C=e("wQH0"),w=function(){function Ce(fe,$){this._selection=fe,this._isCopyingDown=$,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}return Ce.prototype.getEditOperations=function(fe,$){var S=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,S.startLineNumber<S.endLineNumber&&S.endColumn===1&&(this._endLineNumberDelta=1,S=S.setEndPosition(S.endLineNumber-1,fe.getLineMaxColumn(S.endLineNumber-1)));for(var z=[],ce=S.startLineNumber;ce<=S.endLineNumber;ce++)z.push(fe.getLineContent(ce));var se=z.join(`
`);se===""&&(this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++)),this._isCopyingDown?$.addEditOperation(new U.a(S.startLineNumber,1,S.startLineNumber,1),se+`
`):$.addEditOperation(new U.a(S.endLineNumber,fe.getLineMaxColumn(S.endLineNumber),S.endLineNumber,fe.getLineMaxColumn(S.endLineNumber)),`
`+se),this._selectionId=$.trackSelection(S),this._selectionDirection=this._selection.getDirection()},Ce.prototype.computeCursorState=function(fe,$){var S=$.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){var z=S.startLineNumber,ce=S.startColumn,se=S.endLineNumber,ye=S.endColumn;this._startLineNumberDelta!==0&&(z=z+this._startLineNumberDelta,ce=1),this._endLineNumberDelta!==0&&(se=se+this._endLineNumberDelta,ye=1),S=m.a.createWithDirection(z,ce,se,ye,this._selectionDirection)}return S},Ce}(),v=e("zN7H"),p=e("KDc4"),d=e("cMvZ");function c(Ce,fe){for(var $=0,S=0;S<Ce.length;S++)Ce.charAt(S)===" "?$+=fe:$++;return $}function u(Ce,fe,$){Ce=Ce<0?0:Ce;var S="";if(!$){var z=Math.floor(Ce/fe);Ce=Ce%fe;for(var ce=0;ce<z;ce++)S+=" "}for(var ce=0;ce<Ce;ce++)S+=" ";return S}var f=function(){function Ce(fe,$,S){this._selection=fe,this._isMovingDown=$,this._autoIndent=S,this._selectionId=null,this._moveEndLineSelectionShrink=!1}return Ce.prototype.getEditOperations=function(fe,$){var S=fe.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===S){this._selectionId=$.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=$.trackSelection(this._selection);return}this._moveEndPositionDown=!1;var z=this._selection;z.startLineNumber<z.endLineNumber&&z.endColumn===1&&(this._moveEndPositionDown=!0,z=z.setEndPosition(z.endLineNumber-1,fe.getLineMaxColumn(z.endLineNumber-1)));var ce=fe.getOptions(),se=ce.tabSize,ye=ce.indentSize,Re=ce.insertSpaces,Le=this.buildIndentConverter(se,ye,Re),Ue={getLineTokens:function(Ct){return fe.getLineTokens(Ct)},getLanguageIdentifier:function(){return fe.getLanguageIdentifier()},getLanguageIdAtPosition:function(Ct,ht){return fe.getLanguageIdAtPosition(Ct,ht)},getLineContent:null};if(z.startLineNumber===z.endLineNumber&&fe.getLineMaxColumn(z.startLineNumber)===1){var Je=z.startLineNumber,nt=this._isMovingDown?Je+1:Je-1;fe.getLineMaxColumn(nt)===1?$.addEditOperation(new U.a(1,1,1,1),null):($.addEditOperation(new U.a(Je,1,Je,1),fe.getLineContent(nt)),$.addEditOperation(new U.a(nt,1,nt,fe.getLineMaxColumn(nt)),null)),z=new m.a(nt,1,nt,1)}else{var vt,Rt=void 0;if(this._isMovingDown){vt=z.endLineNumber+1,Rt=fe.getLineContent(vt),$.addEditOperation(new U.a(vt-1,fe.getLineMaxColumn(vt-1),vt,fe.getLineMaxColumn(vt)),null);var Ot=Rt;if(this.shouldAutoIndent(fe,z)){var Kt=this.matchEnterRule(fe,Le,se,vt,z.startLineNumber-1);if(Kt!==null){var ao=K.t(fe.getLineContent(vt)),lo=Kt+c(ao,se),so=u(lo,se,Re);Ot=so+this.trimLeft(Rt)}else{Ue.getLineContent=function(Ct){return Ct===z.startLineNumber?fe.getLineContent(vt):fe.getLineContent(Ct)};var jt=d.a.getGoodIndentForLine(this._autoIndent,Ue,fe.getLanguageIdAtPosition(vt,1),z.startLineNumber,Le);if(jt!==null){var ao=K.t(fe.getLineContent(vt)),lo=c(jt,se),pt=c(ao,se);if(lo!==pt){var so=u(lo,se,Re);Ot=so+this.trimLeft(Rt)}}}$.addEditOperation(new U.a(z.startLineNumber,1,z.startLineNumber,1),Ot+`
`);var gt=this.matchEnterRule(fe,Le,se,z.startLineNumber,z.startLineNumber,Ot);if(gt!==null)gt!==0&&this.getIndentEditsOfMovingBlock(fe,$,z,se,Re,gt);else{Ue.getLineContent=function(Ct){return Ct===z.startLineNumber?Ot:Ct>=z.startLineNumber+1&&Ct<=z.endLineNumber+1?fe.getLineContent(Ct-1):fe.getLineContent(Ct)};var Tt=d.a.getGoodIndentForLine(this._autoIndent,Ue,fe.getLanguageIdAtPosition(vt,1),z.startLineNumber+1,Le);if(Tt!==null){var ao=K.t(fe.getLineContent(z.startLineNumber)),lo=c(Tt,se),pt=c(ao,se);if(lo!==pt){var it=lo-pt;this.getIndentEditsOfMovingBlock(fe,$,z,se,Re,it)}}}}else $.addEditOperation(new U.a(z.startLineNumber,1,z.startLineNumber,1),Ot+`
`)}else if(vt=z.startLineNumber-1,Rt=fe.getLineContent(vt),$.addEditOperation(new U.a(vt,1,vt+1,1),null),$.addEditOperation(new U.a(z.endLineNumber,fe.getLineMaxColumn(z.endLineNumber),z.endLineNumber,fe.getLineMaxColumn(z.endLineNumber)),`
`+Rt),this.shouldAutoIndent(fe,z)){Ue.getLineContent=function(ht){return ht===vt?fe.getLineContent(z.startLineNumber):fe.getLineContent(ht)};var gt=this.matchEnterRule(fe,Le,se,z.startLineNumber,z.startLineNumber-2);if(gt!==null)gt!==0&&this.getIndentEditsOfMovingBlock(fe,$,z,se,Re,gt);else{var et=d.a.getGoodIndentForLine(this._autoIndent,Ue,fe.getLanguageIdAtPosition(z.startLineNumber,1),vt,Le);if(et!==null){var ut=K.t(fe.getLineContent(z.startLineNumber)),lo=c(et,se),pt=c(ut,se);if(lo!==pt){var it=lo-pt;this.getIndentEditsOfMovingBlock(fe,$,z,se,Re,it)}}}}}this._selectionId=$.trackSelection(z)},Ce.prototype.buildIndentConverter=function(fe,$,S){return{shiftIndent:function(z){return v.a.shiftIndent(z,z.length+1,fe,$,S)},unshiftIndent:function(z){return v.a.unshiftIndent(z,z.length+1,fe,$,S)}}},Ce.prototype.matchEnterRule=function(fe,$,S,z,ce,se){for(var ye=ce;ye>=1;){var Re=void 0;ye===ce&&se!==void 0?Re=se:Re=fe.getLineContent(ye);var Le=K.D(Re);if(Le>=0)break;ye--}if(ye<1||z>fe.getLineCount())return null;var Ue=fe.getLineMaxColumn(ye),Je=d.a.getEnterAction(this._autoIndent,fe,new U.a(ye,Ue,ye,Ue));if(Je){var nt=Je.indentation;Je.indentAction===p.a.None||Je.indentAction===p.a.Indent?nt=Je.indentation+Je.appendText:Je.indentAction===p.a.IndentOutdent?nt=Je.indentation:Je.indentAction===p.a.Outdent&&(nt=$.unshiftIndent(Je.indentation)+Je.appendText);var vt=fe.getLineContent(z);if(this.trimLeft(vt).indexOf(this.trimLeft(nt))>=0){var Rt=K.t(fe.getLineContent(z)),Ot=K.t(nt),Kt=d.a.getIndentMetadata(fe,z);Kt!==null&&Kt&2&&(Ot=$.unshiftIndent(Ot));var ao=c(Ot,S),lo=c(Rt,S);return ao-lo}}return null},Ce.prototype.trimLeft=function(fe){return fe.replace(/^\s+/,"")},Ce.prototype.shouldAutoIndent=function(fe,$){if(this._autoIndent<4)return!1;if(!fe.isCheapToTokenize($.startLineNumber))return!1;var S=fe.getLanguageIdAtPosition($.startLineNumber,1),z=fe.getLanguageIdAtPosition($.endLineNumber,1);return S!==z?!1:!(d.a.getIndentRulesSupport(S)===null)},Ce.prototype.getIndentEditsOfMovingBlock=function(fe,$,S,z,ce,se){for(var ye=S.startLineNumber;ye<=S.endLineNumber;ye++){var Re=fe.getLineContent(ye),Le=K.t(Re),Ue=c(Le,z),Je=Ue+se,nt=u(Je,z,ce);nt!==Le&&($.addEditOperation(new U.a(ye,1,ye,Le.length+1),nt),ye===S.endLineNumber&&S.endColumn<=Le.length+1&&nt===""&&(this._moveEndLineSelectionShrink=!0))}},Ce.prototype.computeCursorState=function(fe,$){var S=$.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(S=S.setEndPosition(S.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&S.startLineNumber<S.endLineNumber&&(S=S.setEndPosition(S.endLineNumber,2)),S},Ce}(),E=function(){function Ce(fe,$){this.selection=fe,this.descending=$,this.selectionId=null}return Ce.getCollator=function(){return Ce._COLLATOR||(Ce._COLLATOR=new Intl.Collator),Ce._COLLATOR},Ce.prototype.getEditOperations=function(fe,$){var S=R(fe,this.selection,this.descending);S&&$.addEditOperation(S.range,S.text),this.selectionId=$.trackSelection(this.selection)},Ce.prototype.computeCursorState=function(fe,$){return $.getTrackedSelection(this.selectionId)},Ce.canRun=function(fe,$,S){if(fe===null)return!1;var z=L(fe,$,S);if(!z)return!1;for(var ce=0,se=z.before.length;ce<se;ce++)if(z.before[ce]!==z.after[ce])return!0;return!1},Ce._COLLATOR=null,Ce}();function L(Ce,fe,$){var S=fe.startLineNumber,z=fe.endLineNumber;if(fe.endColumn===1&&z--,S>=z)return null;for(var ce=[],se=S;se<=z;se++)ce.push(Ce.getLineContent(se));var ye=ce.slice(0);return ye.sort(E.getCollator().compare),$===!0&&(ye=ye.reverse()),{startLineNumber:S,endLineNumber:z,before:ce,after:ye}}function R(Ce,fe,$){var S=L(Ce,fe,$);return S?D.a.replace(new U.a(S.startLineNumber,1,S.endLineNumber,Ce.getLineMaxColumn(S.endLineNumber)),S.after.join(`
`)):null}var P=function(){var Ce=function(fe,$){return Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,z){S.__proto__=z}||function(S,z){for(var ce in z)z.hasOwnProperty(ce)&&(S[ce]=z[ce])},Ce(fe,$)};return function(fe,$){Ce(fe,$);function S(){this.constructor=fe}fe.prototype=$===null?Object.create($):(S.prototype=$.prototype,new S)}}(),x=function(Ce){P(fe,Ce);function fe($,S){var z=Ce.call(this,S)||this;return z.down=$,z}return fe.prototype.run=function($,S){for(var z=[],ce=S.getSelections()||[],se=0,ye=ce;se<ye.length;se++){var Re=ye[se];z.push(new w(Re,this.down))}S.pushUndoStop(),S.executeCommands(this.id,z),S.pushUndoStop()},fe}(I.b),Q=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,!1,{id:"editor.action.copyLinesUpAction",label:T.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:C.a.writable,kbOpts:{kbExpr:C.a.editorTextFocus,primary:512|1024|16,linux:{primary:2048|512|1024|16},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})||this}return fe}(x),V=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,!0,{id:"editor.action.copyLinesDownAction",label:T.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:C.a.writable,kbOpts:{kbExpr:C.a.editorTextFocus,primary:512|1024|18,linux:{primary:2048|512|1024|18},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})||this}return fe}(x),W=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.duplicateSelection",label:T.a("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:C.a.writable,menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})||this}return fe.prototype.run=function($,S,z){if(!S.hasModel())return;for(var ce=[],se=S.getSelections(),ye=S.getModel(),Re=0,Le=se;Re<Le.length;Re++){var Ue=Le[Re];if(Ue.isEmpty())ce.push(new w(Ue,!0));else{var Je=new m.a(Ue.endLineNumber,Ue.endColumn,Ue.endLineNumber,Ue.endColumn);ce.push(new H.c(Je,ye.getValueInRange(Ue)))}}S.pushUndoStop(),S.executeCommands(this.id,ce),S.pushUndoStop()},fe}(I.b),B=function(Ce){P(fe,Ce);function fe($,S){var z=Ce.call(this,S)||this;return z.down=$,z}return fe.prototype.run=function($,S){for(var z=[],ce=S.getSelections()||[],se=S.getOption(8),ye=0,Re=ce;ye<Re.length;ye++){var Le=Re[ye];z.push(new f(Le,this.down,se))}S.pushUndoStop(),S.executeCommands(this.id,z),S.pushUndoStop()},fe}(I.b),ae=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,!1,{id:"editor.action.moveLinesUpAction",label:T.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:C.a.writable,kbOpts:{kbExpr:C.a.editorTextFocus,primary:512|16,linux:{primary:512|16},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})||this}return fe}(B),we=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,!0,{id:"editor.action.moveLinesDownAction",label:T.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:C.a.writable,kbOpts:{kbExpr:C.a.editorTextFocus,primary:512|18,linux:{primary:512|18},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})||this}return fe}(B),Me=function(Ce){P(fe,Ce);function fe($,S){var z=Ce.call(this,S)||this;return z.descending=$,z}return fe.prototype.run=function($,S){for(var z=S.getSelections()||[],ce=0,se=z;ce<se.length;ce++){var ye=se[ce];if(!E.canRun(S.getModel(),ye,this.descending))return}for(var Re=[],Le=0,Ue=z.length;Le<Ue;Le++)Re[Le]=new E(z[Le],this.descending);S.pushUndoStop(),S.executeCommands(this.id,Re),S.pushUndoStop()},fe}(I.b),Pe=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,!1,{id:"editor.action.sortLinesAscending",label:T.a("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:C.a.writable})||this}return fe}(Me),Be=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,!0,{id:"editor.action.sortLinesDescending",label:T.a("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:C.a.writable})||this}return fe}(Me),Ke=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:fe.ID,label:T.a("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:C.a.writable,kbOpts:{kbExpr:C.a.editorTextFocus,primary:Object(pe.a)(2048|41,2048|54),weight:100}})||this}return fe.prototype.run=function($,S,z){var ce=[];z.reason==="auto-save"&&(ce=(S.getSelections()||[]).map(function(Re){return new O.a(Re.positionLineNumber,Re.positionColumn)}));var se=S.getSelection();if(se===null)return;var ye=new j(se,ce);S.pushUndoStop(),S.executeCommands(this.id,[ye]),S.pushUndoStop()},fe.ID="editor.action.trimTrailingWhitespace",fe}(I.b),Fe=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.deleteLines",label:T.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:C.a.writable,kbOpts:{kbExpr:C.a.textInputFocus,primary:2048|1024|41,weight:100}})||this}return fe.prototype.run=function($,S){if(!S.hasModel())return;var z=this._getLinesToRemove(S),ce=S.getModel();if(ce.getLineCount()===1&&ce.getLineMaxColumn(1)===1)return;for(var se=0,ye=[],Re=[],Le=0,Ue=z.length;Le<Ue;Le++){var Je=z[Le],nt=Je.startLineNumber,vt=Je.endLineNumber,Rt=1,Ot=ce.getLineMaxColumn(vt);vt<ce.getLineCount()?(vt+=1,Ot=1):nt>1&&(nt-=1,Rt=ce.getLineMaxColumn(nt)),ye.push(D.a.replace(new m.a(nt,Rt,vt,Ot),"")),Re.push(new m.a(nt-se,Je.positionColumn,nt-se,Je.positionColumn)),se+=Je.endLineNumber-Je.startLineNumber+1}S.pushUndoStop(),S.executeEdits(this.id,ye,Re),S.pushUndoStop()},fe.prototype._getLinesToRemove=function($){var S=$.getSelections().map(function(ye){var Re=ye.endLineNumber;return ye.startLineNumber<ye.endLineNumber&&ye.endColumn===1&&(Re-=1),{startLineNumber:ye.startLineNumber,selectionStartColumn:ye.selectionStartColumn,endLineNumber:Re,positionColumn:ye.positionColumn}});S.sort(function(ye,Re){return ye.startLineNumber===Re.startLineNumber?ye.endLineNumber-Re.endLineNumber:ye.startLineNumber-Re.startLineNumber});for(var z=[],ce=S[0],se=1;se<S.length;se++)ce.endLineNumber+1>=S[se].startLineNumber?ce.endLineNumber=S[se].endLineNumber:(z.push(ce),ce=S[se]);return z.push(ce),z},fe}(I.b),re=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.indentLines",label:T.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:C.a.writable,kbOpts:{kbExpr:C.a.editorTextFocus,primary:2048|89,weight:100}})||this}return fe.prototype.run=function($,S){var z=S._getCursors();if(!z)return;S.pushUndoStop(),S.executeCommands(this.id,b.a.indent(z.context.config,S.getModel(),S.getSelections())),S.pushUndoStop()},fe}(I.b),ee=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.outdentLines",label:T.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:C.a.writable,kbOpts:{kbExpr:C.a.editorTextFocus,primary:2048|87,weight:100}})||this}return fe.prototype.run=function($,S){J.CoreEditingCommands.Outdent.runEditorCommand($,S,null)},fe}(I.b),ne=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.insertLineBefore",label:T.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:C.a.writable,kbOpts:{kbExpr:C.a.editorTextFocus,primary:2048|1024|3,weight:100}})||this}return fe.prototype.run=function($,S){var z=S._getCursors();if(!z)return;S.pushUndoStop(),S.executeCommands(this.id,b.a.lineInsertBefore(z.context.config,S.getModel(),S.getSelections()))},fe}(I.b),q=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.insertLineAfter",label:T.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:C.a.writable,kbOpts:{kbExpr:C.a.editorTextFocus,primary:2048|3,weight:100}})||this}return fe.prototype.run=function($,S){var z=S._getCursors();if(!z)return;S.pushUndoStop(),S.executeCommands(this.id,b.a.lineInsertAfter(z.context.config,S.getModel(),S.getSelections()))},fe}(I.b),le=function(Ce){P(fe,Ce);function fe(){return Ce!==null&&Ce.apply(this,arguments)||this}return fe.prototype.run=function($,S){if(!S.hasModel())return;for(var z=S.getSelection(),ce=this._getRangesToDelete(S),se=[],ye=0,Re=ce.length-1;ye<Re;ye++){var Le=ce[ye],Ue=ce[ye+1];U.a.intersectRanges(Le,Ue)===null?se.push(Le):ce[ye+1]=U.a.plusRange(Le,Ue)}se.push(ce[ce.length-1]);var Je=this._getEndCursorState(z,se),nt=se.map(function(vt){return D.a.replace(vt,"")});S.pushUndoStop(),S.executeEdits(this.id,nt,Je),S.pushUndoStop()},fe}(I.b),Z=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"deleteAllLeft",label:T.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:C.a.writable,kbOpts:{kbExpr:C.a.textInputFocus,primary:0,mac:{primary:2048|1},weight:100}})||this}return fe.prototype._getEndCursorState=function($,S){var z=null,ce=[],se=0;return S.forEach(function(ye){var Re;if(ye.endColumn===1&&se>0){var Le=ye.startLineNumber-se;Re=new m.a(Le,ye.startColumn,Le,ye.startColumn)}else Re=new m.a(ye.startLineNumber,ye.startColumn,ye.startLineNumber,ye.startColumn);se+=ye.endLineNumber-ye.startLineNumber,ye.intersectRanges($)?z=Re:ce.push(Re)}),z&&ce.unshift(z),ce},fe.prototype._getRangesToDelete=function($){var S=$.getSelections();if(S===null)return[];var z=S,ce=$.getModel();return ce===null?[]:(z.sort(U.a.compareRangesUsingStarts),z=z.map(function(se){if(se.isEmpty())if(se.startColumn===1){var ye=Math.max(1,se.startLineNumber-1),Re=se.startLineNumber===1?1:ce.getLineContent(ye).length+1;return new U.a(ye,Re,se.startLineNumber,1)}else return new U.a(se.startLineNumber,1,se.startLineNumber,se.startColumn);else return new U.a(se.startLineNumber,1,se.endLineNumber,se.endColumn)}),z)},fe}(le),ve=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"deleteAllRight",label:T.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:C.a.writable,kbOpts:{kbExpr:C.a.textInputFocus,primary:0,mac:{primary:256|41,secondary:[2048|20]},weight:100}})||this}return fe.prototype._getEndCursorState=function($,S){for(var z=null,ce=[],se=0,ye=S.length,Re=0;se<ye;se++){var Le=S[se],Ue=new m.a(Le.startLineNumber-Re,Le.startColumn,Le.startLineNumber-Re,Le.startColumn);Le.intersectRanges($)?z=Ue:ce.push(Ue)}return z&&ce.unshift(z),ce},fe.prototype._getRangesToDelete=function($){var S=$.getModel();if(S===null)return[];var z=$.getSelections();if(z===null)return[];var ce=z.map(function(se){if(se.isEmpty()){var ye=S.getLineMaxColumn(se.startLineNumber);return se.startColumn===ye?new U.a(se.startLineNumber,se.startColumn,se.startLineNumber+1,1):new U.a(se.startLineNumber,se.startColumn,se.startLineNumber,ye)}return se});return ce.sort(U.a.compareRangesUsingStarts),ce},fe}(le),Ne=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.joinLines",label:T.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:C.a.writable,kbOpts:{kbExpr:C.a.editorTextFocus,primary:0,mac:{primary:256|40},weight:100}})||this}return fe.prototype.run=function($,S){var z=S.getSelections();if(z===null)return;var ce=S.getSelection();if(ce===null)return;z.sort(U.a.compareRangesUsingStarts);var se=[],ye=z.reduce(function(Nt,bt){return Nt.isEmpty()?Nt.endLineNumber===bt.startLineNumber?(ce.equalsSelection(Nt)&&(ce=bt),bt):bt.startLineNumber>Nt.endLineNumber+1?(se.push(Nt),bt):new m.a(Nt.startLineNumber,Nt.startColumn,bt.endLineNumber,bt.endColumn):bt.startLineNumber>Nt.endLineNumber?(se.push(Nt),bt):new m.a(Nt.startLineNumber,Nt.startColumn,bt.endLineNumber,bt.endColumn)});se.push(ye);var Re=S.getModel();if(Re===null)return;for(var Le=[],Ue=[],Je=ce,nt=0,vt=0,Rt=se.length;vt<Rt;vt++){var Ot=se[vt],Kt=Ot.startLineNumber,ao=1,lo=0,so=void 0,jt=void 0,pt=Re.getLineContent(Ot.endLineNumber).length-Ot.endColumn;if(Ot.isEmpty()||Ot.startLineNumber===Ot.endLineNumber){var gt=Ot.getStartPosition();gt.lineNumber<Re.getLineCount()?(so=Kt+1,jt=Re.getLineMaxColumn(so)):(so=gt.lineNumber,jt=Re.getLineMaxColumn(gt.lineNumber))}else so=Ot.endLineNumber,jt=Re.getLineMaxColumn(so);for(var Tt=Re.getLineContent(Kt),it=Kt+1;it<=so;it++){var et=Re.getLineContent(it),ut=Re.getLineFirstNonWhitespaceColumn(it);if(ut>=1){var Ct=!0;Tt===""&&(Ct=!1),Ct&&(Tt.charAt(Tt.length-1)===" "||Tt.charAt(Tt.length-1)===" ")&&(Ct=!1,Tt=Tt.replace(/[\s\uFEFF\xA0]+$/g," "));var ht=et.substr(ut-1);Tt+=(Ct?" ":"")+ht,Ct?lo=ht.length+1:lo=ht.length}else lo=0}var Et=new U.a(Kt,ao,so,jt);if(!Et.isEmpty()){var Yt=void 0;Ot.isEmpty()?(Le.push(D.a.replace(Et,Tt)),Yt=new m.a(Et.startLineNumber-nt,Tt.length-lo+1,Kt-nt,Tt.length-lo+1)):Ot.startLineNumber===Ot.endLineNumber?(Le.push(D.a.replace(Et,Tt)),Yt=new m.a(Ot.startLineNumber-nt,Ot.startColumn,Ot.endLineNumber-nt,Ot.endColumn)):(Le.push(D.a.replace(Et,Tt)),Yt=new m.a(Ot.startLineNumber-nt,Ot.startColumn,Ot.startLineNumber-nt,Tt.length-pt)),U.a.intersectRanges(Et,ce)!==null?Je=Yt:Ue.push(Yt)}nt+=Et.endLineNumber-Et.startLineNumber}Ue.unshift(Je),S.pushUndoStop(),S.executeEdits(this.id,Le,Ue),S.pushUndoStop()},fe}(I.b),Xe=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.transpose",label:T.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:C.a.writable})||this}return fe.prototype.run=function($,S){var z=S.getSelections();if(z===null)return;var ce=S.getModel();if(ce===null)return;for(var se=[],ye=0,Re=z.length;ye<Re;ye++){var Le=z[ye];if(!Le.isEmpty())continue;var Ue=Le.getStartPosition(),Je=ce.getLineMaxColumn(Ue.lineNumber);if(Ue.column>=Je){if(Ue.lineNumber===ce.getLineCount())continue;var nt=new U.a(Ue.lineNumber,Math.max(1,Ue.column-1),Ue.lineNumber+1,1),vt=ce.getValueInRange(nt).split("").reverse().join("");se.push(new H.a(new m.a(Ue.lineNumber,Math.max(1,Ue.column-1),Ue.lineNumber+1,1),vt))}else{var nt=new U.a(Ue.lineNumber,Math.max(1,Ue.column-1),Ue.lineNumber,Ue.column+1),vt=ce.getValueInRange(nt).split("").reverse().join("");se.push(new H.b(nt,vt,new m.a(Ue.lineNumber,Ue.column+1,Ue.lineNumber,Ue.column+1)))}}S.pushUndoStop(),S.executeCommands(this.id,se),S.pushUndoStop()},fe}(I.b),de=function(Ce){P(fe,Ce);function fe(){return Ce!==null&&Ce.apply(this,arguments)||this}return fe.prototype.run=function($,S){var z=S.getSelections();if(z===null)return;var ce=S.getModel();if(ce===null)return;for(var se=S.getOption(96),ye=[],Re=0,Le=z.length;Re<Le;Re++){var Ue=z[Re];if(Ue.isEmpty()){var Je=Ue.getStartPosition(),nt=ce.getWordAtPosition(Je);if(!nt)continue;var vt=new U.a(Je.lineNumber,nt.startColumn,Je.lineNumber,nt.endColumn),Rt=ce.getValueInRange(vt);ye.push(new H.b(vt,this._modifyText(Rt,se),new m.a(Je.lineNumber,Je.column,Je.lineNumber,Je.column)))}else{var Rt=ce.getValueInRange(Ue);ye.push(new H.b(Ue,this._modifyText(Rt,se),Ue))}}S.pushUndoStop(),S.executeCommands(this.id,ye),S.pushUndoStop()},fe}(I.b),ge=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.transformToUppercase",label:T.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:C.a.writable})||this}return fe.prototype._modifyText=function($,S){return $.toLocaleUpperCase()},fe}(de),Ee=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.transformToLowercase",label:T.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:C.a.writable})||this}return fe.prototype._modifyText=function($,S){return $.toLocaleLowerCase()},fe}(de),Te=function(Ce){P(fe,Ce);function fe(){return Ce.call(this,{id:"editor.action.transformToTitlecase",label:T.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:C.a.writable})||this}return fe.prototype._modifyText=function($,S){for(var z=`\r
`+S,ce=z.split(""),se="",ye=!0,Re=0;Re<$.length;Re++){var Le=$[Re];ce.indexOf(Le)>=0?(ye=!0,se+=Le):ye?(ye=!1,se+=Le.toLocaleUpperCase()):se+=Le.toLocaleLowerCase()}return se},fe}(de);Object(I.f)(Q),Object(I.f)(V),Object(I.f)(W),Object(I.f)(ae),Object(I.f)(we),Object(I.f)(Pe),Object(I.f)(Be),Object(I.f)(Ke),Object(I.f)(Fe),Object(I.f)(re),Object(I.f)(ee),Object(I.f)(ne),Object(I.f)(q),Object(I.f)(Z),Object(I.f)(ve),Object(I.f)(Ne),Object(I.f)(Xe),Object(I.f)(ge),Object(I.f)(Ee),Object(I.f)(Te)},dgXF:function(Mt,F,e){"use strict";e.r(F),e.d(F,"FoldingController",function(){return z}),e.d(F,"foldBackgroundBackground",function(){return so});var T=e("CjOT"),pe=e("3/fG"),J=e("746U"),I=e("N0LK"),H=e("X+cX"),K=e("/kV6"),D=e("pmY6"),U=e("sswD"),j=e("MI8n"),h=65535,b=16777215,O=4278190080,m=function(){function jt(pt,gt,Tt){if(pt.length!==gt.length||pt.length>h)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=pt,this._endIndexes=gt,this._collapseStates=new Uint32Array(Math.ceil(pt.length/32)),this._types=Tt,this._parentsComputed=!1}return jt.prototype.ensureParentIndices=function(){var pt=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var gt=[],Tt=function(Et,Yt){var Nt=gt[gt.length-1];return pt.getStartLineNumber(Nt)<=Et&&pt.getEndLineNumber(Nt)>=Yt},it=0,et=this._startIndexes.length;it<et;it++){var ut=this._startIndexes[it],Ct=this._endIndexes[it];if(ut>b||Ct>b)throw new Error("startLineNumber or endLineNumber must not exceed "+b);for(;gt.length>0&&!Tt(ut,Ct);)gt.pop();var ht=gt.length>0?gt[gt.length-1]:-1;gt.push(it),this._startIndexes[it]=ut+((ht&255)<<24),this._endIndexes[it]=Ct+((ht&65280)<<16)}}},Object.defineProperty(jt.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),jt.prototype.getStartLineNumber=function(pt){return this._startIndexes[pt]&b},jt.prototype.getEndLineNumber=function(pt){return this._endIndexes[pt]&b},jt.prototype.getType=function(pt){return this._types?this._types[pt]:void 0},jt.prototype.hasTypes=function(){return!!this._types},jt.prototype.isCollapsed=function(pt){var gt=pt/32|0,Tt=pt%32;return(this._collapseStates[gt]&1<<Tt)!==0},jt.prototype.setCollapsed=function(pt,gt){var Tt=pt/32|0,it=pt%32,et=this._collapseStates[Tt];gt?this._collapseStates[Tt]=et|1<<it:this._collapseStates[Tt]=et&~(1<<it)},jt.prototype.toRegion=function(pt){return new C(this,pt)},jt.prototype.getParentIndex=function(pt){this.ensureParentIndices();var gt=((this._startIndexes[pt]&O)>>>24)+((this._endIndexes[pt]&O)>>>16);return gt===h?-1:gt},jt.prototype.contains=function(pt,gt){return this.getStartLineNumber(pt)<=gt&&this.getEndLineNumber(pt)>=gt},jt.prototype.findIndex=function(pt){var gt=0,Tt=this._startIndexes.length;if(Tt===0)return-1;for(;gt<Tt;){var it=Math.floor((gt+Tt)/2);pt<this.getStartLineNumber(it)?Tt=it:gt=it+1}return gt-1},jt.prototype.findRange=function(pt){var gt=this.findIndex(pt);if(gt>=0){var Tt=this.getEndLineNumber(gt);if(Tt>=pt)return gt;for(gt=this.getParentIndex(gt);gt!==-1;){if(this.contains(gt,pt))return gt;gt=this.getParentIndex(gt)}}return-1},jt.prototype.toString=function(){for(var pt=[],gt=0;gt<this.length;gt++)pt[gt]="["+(this.isCollapsed(gt)?"+":"-")+"] "+this.getStartLineNumber(gt)+"/"+this.getEndLineNumber(gt);return pt.join(", ")},jt}(),C=function(){function jt(pt,gt){this.ranges=pt,this.index=gt}return Object.defineProperty(jt.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),jt.prototype.containedBy=function(pt){return pt.startLineNumber<=this.startLineNumber&&pt.endLineNumber>=this.endLineNumber},jt.prototype.containsLine=function(pt){return this.startLineNumber<=pt&&pt<=this.endLineNumber},jt}(),w=function(){function jt(pt,gt){this._updateEventEmitter=new j.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=pt,this._decorationProvider=gt,this._regions=new m(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(jt.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),jt.prototype.toggleCollapseState=function(pt){var gt=this;if(!pt.length)return;var Tt={};this._decorationProvider.changeDecorations(function(it){for(var et=0,ut=pt;et<ut.length;et++){var Ct=ut[et],ht=Ct.regionIndex,Et=gt._editorDecorationIds[ht];if(Et&&!Tt[Et]){Tt[Et]=!0;var Yt=!gt._regions.isCollapsed(ht);gt._regions.setCollapsed(ht,Yt),it.changeDecorationOptions(Et,gt._decorationProvider.getDecorationOption(Yt))}}}),this._updateEventEmitter.fire({model:this,collapseStateChanged:pt})},jt.prototype.update=function(pt,gt){var Tt=this;gt===void 0&&(gt=[]);for(var it=[],et=function(Ye,Ve){for(var ze=0,me=gt;ze<me.length;ze++){var G=me[ze];if(Ye<G&&G<=Ve)return!0}return!1},ut=function(Ye,Ve){var ze=pt.getStartLineNumber(Ye);Ve&&et(ze,pt.getEndLineNumber(Ye))&&(Ve=!1),pt.setCollapsed(Ye,Ve);var me=Tt._textModel.getLineMaxColumn(ze),G={startLineNumber:ze,startColumn:me,endLineNumber:ze,endColumn:me};it.push({range:G,options:Tt._decorationProvider.getDecorationOption(Ve)})},Ct=0,ht=function(){for(;Ct<Tt._regions.length;){var Ye=Tt._regions.isCollapsed(Ct);if(Ct++,Ye)return Ct-1}return-1},Et=0,Yt=ht();Yt!==-1&&Et<pt.length;){var Nt=this._textModel.getDecorationRange(this._editorDecorationIds[Yt]);if(Nt){var bt=Nt.startLineNumber;if(this._textModel.getLineMaxColumn(bt)===Nt.startColumn)for(;Et<pt.length;){var $e=pt.getStartLineNumber(Et);if(bt>=$e)ut(Et,bt===$e),Et++;else break}}Yt=ht()}for(;Et<pt.length;)ut(Et,!1),Et++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,it),this._regions=pt,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},jt.prototype.getMemento=function(){for(var pt=[],gt=0;gt<this._regions.length;gt++)if(this._regions.isCollapsed(gt)){var Tt=this._textModel.getDecorationRange(this._editorDecorationIds[gt]);if(Tt){var it=Tt.startLineNumber,et=Tt.endLineNumber+this._regions.getEndLineNumber(gt)-this._regions.getStartLineNumber(gt);pt.push({startLineNumber:it,endLineNumber:et})}}return pt.length>0?pt:void 0},jt.prototype.applyMemento=function(pt){if(!Array.isArray(pt))return;for(var gt=[],Tt=0,it=pt;Tt<it.length;Tt++){var et=it[Tt],ut=this.getRegionAtLine(et.startLineNumber);ut&&!ut.isCollapsed&&gt.push(ut)}this.toggleCollapseState(gt)},jt.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},jt.prototype.getAllRegionsAtLine=function(pt,gt){var Tt=[];if(this._regions)for(var it=this._regions.findRange(pt),et=1;it>=0;){var ut=this._regions.toRegion(it);(!gt||gt(ut,et))&&Tt.push(ut),et++,it=ut.parentIndex}return Tt},jt.prototype.getRegionAtLine=function(pt){if(this._regions){var gt=this._regions.findRange(pt);if(gt>=0)return this._regions.toRegion(gt)}return null},jt.prototype.getRegionsInside=function(pt,gt){var Tt=[],it=pt?pt.regionIndex+1:0,et=pt?pt.endLineNumber:Number.MAX_VALUE;if(gt&&gt.length===2)for(var ut=[],Ct=it,ht=this._regions.length;Ct<ht;Ct++){var Et=this._regions.toRegion(Ct);if(this._regions.getStartLineNumber(Ct)<et){for(;ut.length>0&&!Et.containedBy(ut[ut.length-1]);)ut.pop();ut.push(Et),gt(Et,ut.length)&&Tt.push(Et)}else break}else for(var Ct=it,ht=this._regions.length;Ct<ht;Ct++){var Et=this._regions.toRegion(Ct);if(this._regions.getStartLineNumber(Ct)<et)(!gt||gt(Et))&&Tt.push(Et);else break}return Tt},jt}();function v(jt,pt,gt){for(var Tt=[],it=function(ht){var Et=jt.getRegionAtLine(ht);if(Et){var Yt=!Et.isCollapsed;if(Tt.push(Et),pt>1){var Nt=jt.getRegionsInside(Et,function(bt,$e){return bt.isCollapsed!==Yt&&$e<pt});Tt.push.apply(Tt,Nt)}}},et=0,ut=gt;et<ut.length;et++){var Ct=ut[et];it(Ct)}jt.toggleCollapseState(Tt)}function p(jt,pt,gt,Tt){gt===void 0&&(gt=Number.MAX_VALUE);var it=[];if(Tt&&Tt.length>0)for(var et=0,ut=Tt;et<ut.length;et++){var Ct=ut[et],ht=jt.getRegionAtLine(Ct);if(ht&&(ht.isCollapsed!==pt&&it.push(ht),gt>1)){var Et=jt.getRegionsInside(ht,function(Yt,Nt){return Yt.isCollapsed!==pt&&Nt<gt});it.push.apply(it,Et)}}else{var Et=jt.getRegionsInside(null,function(Nt,bt){return Nt.isCollapsed!==pt&&bt<gt});it.push.apply(it,Et)}jt.toggleCollapseState(it)}function d(jt,pt,gt,Tt){for(var it=[],et=0,ut=Tt;et<ut.length;et++){var Ct=ut[et],ht=jt.getAllRegionsAtLine(Ct,function(Et,Yt){return Et.isCollapsed!==pt&&Yt<=gt});it.push.apply(it,ht)}jt.toggleCollapseState(it)}function c(jt,pt,gt){for(var Tt=[],it=0,et=gt;it<et.length;it++){var ut=et[it],Ct=jt.getAllRegionsAtLine(ut,function(ht){return ht.isCollapsed!==pt});Ct.length>0&&Tt.push(Ct[0])}jt.toggleCollapseState(Tt)}function u(jt,pt,gt,Tt){var it=function(ut,Ct){return Ct===pt&&ut.isCollapsed!==gt&&!Tt.some(function(ht){return ut.containsLine(ht)})},et=jt.getRegionsInside(null,it);jt.toggleCollapseState(et)}function f(jt,pt,gt){for(var Tt=jt.textModel,it=jt.regions,et=[],ut=it.length-1;ut>=0;ut--)if(gt!==it.isCollapsed(ut)){var Ct=it.getStartLineNumber(ut);pt.test(Tt.getLineContent(Ct))&&et.push(it.toRegion(ut))}jt.toggleCollapseState(et)}function E(jt,pt,gt){for(var Tt=jt.regions,it=[],et=Tt.length-1;et>=0;et--)gt!==Tt.isCollapsed(et)&&pt===Tt.getType(et)&&it.push(Tt.toRegion(et));jt.toggleCollapseState(it)}var L=e("tX9W"),R=function(){function jt(pt){this.editor=pt,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return jt.prototype.getDecorationOption=function(pt){return pt?this.showFoldingHighlights?jt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:jt.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?jt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:jt.EXPANDED_VISUAL_DECORATION},jt.prototype.deltaDecorations=function(pt,gt){return this.editor.deltaDecorations(pt,gt)},jt.prototype.changeDecorations=function(pt){return this.editor.changeDecorations(pt)},jt.COLLAPSED_VISUAL_DECORATION=L.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),jt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=L.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),jt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=L.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),jt.EXPANDED_VISUAL_DECORATION=L.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),jt}(),P=e("wQH0"),x=e("aokT"),Q=e("6OMU"),V=function(){function jt(pt){var gt=this;this._updateEventEmitter=new j.a,this._foldingModel=pt,this._foldingModelListener=pt.onDidChange(function(Tt){return gt.updateHiddenRanges()}),this._hiddenRanges=[],pt.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(jt.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),jt.prototype.updateHiddenRanges=function(){for(var pt=!1,gt=[],Tt=0,it=0,et=Number.MAX_VALUE,ut=-1,Ct=this._foldingModel.regions;Tt<Ct.length;Tt++){if(!Ct.isCollapsed(Tt))continue;var ht=Ct.getStartLineNumber(Tt)+1,Et=Ct.getEndLineNumber(Tt);if(et<=ht&&Et<=ut)continue;!pt&&it<this._hiddenRanges.length&&this._hiddenRanges[it].startLineNumber===ht&&this._hiddenRanges[it].endLineNumber===Et?(gt.push(this._hiddenRanges[it]),it++):(pt=!0,gt.push(new x.a(ht,1,Et,1))),et=ht,ut=Et}(pt||it<this._hiddenRanges.length)&&this.applyHiddenRanges(gt)},jt.prototype.applyMemento=function(pt){if(!Array.isArray(pt)||pt.length===0)return!1;for(var gt=[],Tt=0,it=pt;Tt<it.length;Tt++){var et=it[Tt];if(!et.startLineNumber||!et.endLineNumber)return!1;gt.push(new x.a(et.startLineNumber+1,1,et.endLineNumber,1))}return this.applyHiddenRanges(gt),!0},jt.prototype.getMemento=function(){return this._hiddenRanges.map(function(pt){return{startLineNumber:pt.startLineNumber-1,endLineNumber:pt.endLineNumber}})},jt.prototype.applyHiddenRanges=function(pt){this._hiddenRanges=pt,this._updateEventEmitter.fire(pt)},jt.prototype.hasRanges=function(){return this._hiddenRanges.length>0},jt.prototype.isHidden=function(pt){return B(this._hiddenRanges,pt)!==null},jt.prototype.adjustSelections=function(pt){for(var gt=this,Tt=!1,it=this._foldingModel.textModel,et=null,ut=function(bt){return(!et||!W(bt,et))&&(et=B(gt._hiddenRanges,bt)),et?et.startLineNumber-1:null},Ct=0,ht=pt.length;Ct<ht;Ct++){var Et=pt[Ct],Yt=ut(Et.startLineNumber);Yt&&(Et=Et.setStartPosition(Yt,it.getLineMaxColumn(Yt)),Tt=!0);var Nt=ut(Et.endLineNumber);Nt&&(Et=Et.setEndPosition(Nt,it.getLineMaxColumn(Nt)),Tt=!0),pt[Ct]=Et}return Tt},jt.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},jt}();function W(jt,pt){return jt>=pt.startLineNumber&&jt<=pt.endLineNumber}function B(jt,pt){var gt=Object(Q.i)(jt,function(Tt){return pt<Tt.startLineNumber})-1;return gt>=0&&jt[gt].endLineNumber>=pt?jt[gt]:null}var ae=e("cMvZ"),we=5e3,Me="indent",Pe=function(){function jt(pt){this.editorModel=pt,this.id=Me}return jt.prototype.dispose=function(){},jt.prototype.compute=function(pt){var gt=ae.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),Tt=gt&&!!gt.offSide,it=gt&&gt.markers;return Promise.resolve(Ke(this.editorModel,Tt,it))},jt}(),Be=function(){function jt(pt){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=pt}return jt.prototype.insertFirst=function(pt,gt,Tt){if(pt>b||gt>b)return;var it=this._length;this._startIndexes[it]=pt,this._endIndexes[it]=gt,this._length++,Tt<1e3&&(this._indentOccurrences[Tt]=(this._indentOccurrences[Tt]||0)+1)},jt.prototype.toIndentRanges=function(pt){if(this._length<=this._foldingRangesLimit){for(var gt=new Uint32Array(this._length),Tt=new Uint32Array(this._length),it=this._length-1,et=0;it>=0;it--,et++)gt[et]=this._startIndexes[it],Tt[et]=this._endIndexes[it];return new m(gt,Tt)}else{for(var ut=0,Ct=this._indentOccurrences.length,it=0;it<this._indentOccurrences.length;it++){var ht=this._indentOccurrences[it];if(ht){if(ht+ut>this._foldingRangesLimit){Ct=it;break}ut+=ht}}for(var Et=pt.getOptions().tabSize,gt=new Uint32Array(this._foldingRangesLimit),Tt=new Uint32Array(this._foldingRangesLimit),it=this._length-1,et=0;it>=0;it--){var Yt=this._startIndexes[it],Nt=pt.getLineContent(Yt),bt=L.b.computeIndentLevel(Nt,Et);(bt<Ct||bt===Ct&&ut++<this._foldingRangesLimit)&&(gt[et]=Yt,Tt[et]=this._endIndexes[it],et++)}return new m(gt,Tt)}},jt}();function Ke(jt,pt,gt,Tt){Tt===void 0&&(Tt=we);var it=jt.getOptions().tabSize,et=new Be(Tt),ut=void 0;gt&&(ut=new RegExp("("+gt.start.source+")|(?:"+gt.end.source+")"));var Ct=[],ht=jt.getLineCount()+1;Ct.push({indent:-1,endAbove:ht,line:ht});for(var Et=jt.getLineCount();Et>0;Et--){var Yt=jt.getLineContent(Et),Nt=L.b.computeIndentLevel(Yt,it),bt=Ct[Ct.length-1];if(Nt===-1){pt&&(bt.endAbove=Et);continue}var $e=void 0;if(ut&&($e=Yt.match(ut)))if($e[1]){for(var Ye=Ct.length-1;Ye>0&&Ct[Ye].indent!==-2;)Ye--;if(Ye>0){Ct.length=Ye+1,bt=Ct[Ye],et.insertFirst(Et,bt.line,Nt),bt.line=Et,bt.indent=Nt,bt.endAbove=Et;continue}}else{Ct.push({indent:-2,endAbove:Et,line:Et});continue}if(bt.indent>Nt){do Ct.pop(),bt=Ct[Ct.length-1];while(bt.indent>Nt);var Ve=bt.endAbove-1;Ve-Et>=1&&et.insertFirst(Et,Ve,Nt)}bt.indent===Nt?bt.endAbove=Et:Ct.push({indent:Nt,endAbove:Et,line:Et})}return et.toIndentRanges(jt)}var Fe=e("twdY"),re=e("/cxE"),ee=5e3,ne={},q="syntax",le=function(){function jt(pt,gt,Tt){Tt===void 0&&(Tt=ee),this.editorModel=pt,this.providers=gt,this.limit=Tt,this.id=q}return jt.prototype.compute=function(pt){var gt=this;return Z(this.providers,this.editorModel,pt).then(function(Tt){if(Tt){var it=Ne(Tt,gt.limit);return it}return null})},jt.prototype.dispose=function(){},jt}();function Z(jt,pt,gt){var Tt=null,it=jt.map(function(et,ut){return Promise.resolve(et.provideFoldingRanges(pt,ne,gt)).then(function(Ct){if(gt.isCancellationRequested)return;if(Array.isArray(Ct)){Array.isArray(Tt)||(Tt=[]);for(var ht=pt.getLineCount(),Et=0,Yt=Ct;Et<Yt.length;Et++){var Nt=Yt[Et];Nt.start>0&&Nt.end>Nt.start&&Nt.end<=ht&&Tt.push({start:Nt.start,end:Nt.end,rank:ut,kind:Nt.kind})}}},re.f)});return Promise.all(it).then(function(et){return Tt})}var ve=function(){function jt(pt){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=pt}return jt.prototype.add=function(pt,gt,Tt,it){if(pt>b||gt>b)return;var et=this._length;this._startIndexes[et]=pt,this._endIndexes[et]=gt,this._nestingLevels[et]=it,this._types[et]=Tt,this._length++,it<30&&(this._nestingLevelCounts[it]=(this._nestingLevelCounts[it]||0)+1)},jt.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var pt=new Uint32Array(this._length),gt=new Uint32Array(this._length),Tt=0;Tt<this._length;Tt++)pt[Tt]=this._startIndexes[Tt],gt[Tt]=this._endIndexes[Tt];return new m(pt,gt,this._types)}else{for(var it=0,et=this._nestingLevelCounts.length,Tt=0;Tt<this._nestingLevelCounts.length;Tt++){var ut=this._nestingLevelCounts[Tt];if(ut){if(ut+it>this._foldingRangesLimit){et=Tt;break}it+=ut}}for(var pt=new Uint32Array(this._foldingRangesLimit),gt=new Uint32Array(this._foldingRangesLimit),Ct=[],Tt=0,ht=0;Tt<this._length;Tt++){var Et=this._nestingLevels[Tt];(Et<et||Et===et&&it++<this._foldingRangesLimit)&&(pt[ht]=this._startIndexes[Tt],gt[ht]=this._endIndexes[Tt],Ct[ht]=this._types[Tt],ht++)}return new m(pt,gt,Ct)}},jt}();function Ne(jt,pt){for(var gt=jt.sort(function(Et,Yt){var Nt=Et.start-Yt.start;return Nt===0&&(Nt=Et.rank-Yt.rank),Nt}),Tt=new ve(pt),it=void 0,et=[],ut=0,Ct=gt;ut<Ct.length;ut++){var ht=Ct[ut];if(!it)it=ht,Tt.add(ht.start,ht.end,ht.kind&&ht.kind.value,et.length);else if(ht.start>it.start)if(ht.end<=it.end)et.push(it),it=ht,Tt.add(ht.start,ht.end,ht.kind&&ht.kind.value,et.length);else{if(ht.start>it.end){do it=et.pop();while(it&&ht.start>it.end);it&&et.push(it),it=ht}Tt.add(ht.start,ht.end,ht.kind&&ht.kind.value,et.length)}}return Tt.toIndentRanges()}var Xe="init",de=function(){function jt(pt,gt,Tt,it){if(this.editorModel=pt,this.id=Xe,gt.length){var et=function(ut){return{range:{startLineNumber:ut.startLineNumber,startColumn:0,endLineNumber:ut.endLineNumber,endColumn:pt.getLineLength(ut.endLineNumber)},options:{stickiness:1}}};this.decorationIds=pt.deltaDecorations([],gt.map(et)),this.timeout=setTimeout(Tt,it)}}return jt.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),typeof this.timeout=="number"&&(clearTimeout(this.timeout),this.timeout=void 0)},jt.prototype.compute=function(pt){var gt=[];if(this.decorationIds)for(var Tt=0,it=this.decorationIds;Tt<it.length;Tt++){var et=it[Tt],ut=this.editorModel.getDecorationRange(et);ut&&gt.push({start:ut.startLineNumber,end:ut.endLineNumber,rank:1})}return Promise.resolve(Ne(gt,Number.MAX_VALUE))},jt}(),ge=e("T8No"),Ee=e("t9D7"),Te=e("MD5Z"),Ce=function(){var jt=function(pt,gt){return jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tt,it){Tt.__proto__=it}||function(Tt,it){for(var et in it)it.hasOwnProperty(et)&&(Tt[et]=it[et])},jt(pt,gt)};return function(pt,gt){jt(pt,gt);function Tt(){this.constructor=pt}pt.prototype=gt===null?Object.create(gt):(Tt.prototype=gt.prototype,new Tt)}}(),fe=function(jt,pt,gt,Tt){var it=arguments.length,et=it<3?pt:Tt===null?Tt=Object.getOwnPropertyDescriptor(pt,gt):Tt,ut;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(jt,pt,gt,Tt);else for(var Ct=jt.length-1;Ct>=0;Ct--)(ut=jt[Ct])&&(et=(it<3?ut(et):it>3?ut(pt,gt,et):ut(pt,gt))||et);return it>3&&et&&Object.defineProperty(pt,gt,et),et},$=function(jt,pt){return function(gt,Tt){pt(gt,Tt,jt)}},S=new ge.d("foldingEnabled",!1),z=function(jt){Ce(pt,jt);function pt(gt,Tt){var it=jt.call(this)||this;it.contextKeyService=Tt,it.localToDispose=it._register(new D.b),it.editor=gt;var et=it.editor.getOptions();return it._isEnabled=et.get(30),it._useFoldingProviders=et.get(31)!=="indentation",it.foldingModel=null,it.hiddenRangeModel=null,it.rangeProvider=null,it.foldingRegionPromise=null,it.foldingStateMemento=null,it.foldingModelPromise=null,it.updateScheduler=null,it.cursorChangedScheduler=null,it.mouseDownInfo=null,it.foldingDecorationProvider=new R(gt),it.foldingDecorationProvider.autoHideFoldingControls=et.get(84)==="mouseover",it.foldingDecorationProvider.showFoldingHighlights=et.get(32),it.foldingEnabled=S.bindTo(it.contextKeyService),it.foldingEnabled.set(it._isEnabled),it._register(it.editor.onDidChangeModel(function(){return it.onModelChanged()})),it._register(it.editor.onDidChangeConfiguration(function(ut){if(ut.hasChanged(30)){var Ct=it.editor.getOptions();it._isEnabled=Ct.get(30),it.foldingEnabled.set(it._isEnabled),it.onModelChanged()}if(ut.hasChanged(84)||ut.hasChanged(32)){var ht=it.editor.getOptions();it.foldingDecorationProvider.autoHideFoldingControls=ht.get(84)==="mouseover",it.foldingDecorationProvider.showFoldingHighlights=ht.get(32),it.onModelContentChanged()}if(ut.hasChanged(31)){var Et=it.editor.getOptions();it._useFoldingProviders=Et.get(31)!=="indentation",it.onFoldingStrategyChanged()}})),it.onModelChanged(),it}return pt.get=function(gt){return gt.getContribution(pt.ID)},pt.prototype.saveViewState=function(){var gt=this.editor.getModel();if(!gt||!this._isEnabled||gt.isTooLargeForTokenization())return{};if(this.foldingModel){var Tt=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),it=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:Tt,lineCount:gt.getLineCount(),provider:it}}return},pt.prototype.restoreViewState=function(gt){var Tt=this.editor.getModel();if(!Tt||!this._isEnabled||Tt.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!gt||!gt.collapsedRegions||gt.lineCount!==Tt.getLineCount())return;(gt.provider===q||gt.provider===Xe)&&(this.foldingStateMemento=gt);var it=gt.collapsedRegions;if(this.hiddenRangeModel.applyMemento(it)){var et=this.getFoldingModel();et&&et.then(function(ut){ut&&ut.applyMemento(it)}).then(void 0,re.e)}},pt.prototype.onModelChanged=function(){var gt=this;this.localToDispose.clear();var Tt=this.editor.getModel();if(!this._isEnabled||!Tt||Tt.isTooLargeForTokenization())return;this.foldingModel=new w(Tt,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new V(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(function(it){return gt.onHiddenRangesChanges(it)})),this.updateScheduler=new H.a(200),this.cursorChangedScheduler=new H.d(function(){return gt.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(Fe.o.onDidChange(function(){return gt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(function(){return gt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelContent(function(){return gt.onModelContentChanged()})),this.localToDispose.add(this.editor.onDidChangeCursorPosition(function(){return gt.onCursorPositionChanged()})),this.localToDispose.add(this.editor.onMouseDown(function(it){return gt.onEditorMouseDown(it)})),this.localToDispose.add(this.editor.onMouseUp(function(it){return gt.onEditorMouseUp(it)})),this.localToDispose.add({dispose:function(){gt.foldingRegionPromise&&(gt.foldingRegionPromise.cancel(),gt.foldingRegionPromise=null),gt.updateScheduler&&gt.updateScheduler.cancel(),gt.updateScheduler=null,gt.foldingModel=null,gt.foldingModelPromise=null,gt.hiddenRangeModel=null,gt.cursorChangedScheduler=null,gt.foldingStateMemento=null,gt.rangeProvider&&gt.rangeProvider.dispose(),gt.rangeProvider=null}}),this.onModelContentChanged()},pt.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},pt.prototype.getRangeProvider=function(gt){var Tt=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new Pe(gt),this._useFoldingProviders&&this.foldingModel){var it=Fe.o.ordered(this.foldingModel.textModel);if(it.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var et=this.rangeProvider=new de(gt,this.foldingStateMemento.collapsedRegions,function(){Tt.foldingStateMemento=null,Tt.onFoldingStrategyChanged()},3e4);return et}else it.length>0&&(this.rangeProvider=new le(gt,it))}return this.foldingStateMemento=null,this.rangeProvider},pt.prototype.getFoldingModel=function(){return this.foldingModelPromise},pt.prototype.onModelContentChanged=function(){var gt=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){var Tt=gt.foldingModel;if(!Tt)return null;var it=gt.foldingRegionPromise=Object(H.f)(function(et){return gt.getRangeProvider(Tt.textModel).compute(et)});return it.then(function(et){if(et&&it===gt.foldingRegionPromise){var ut=gt.editor.getSelections(),Ct=ut?ut.map(function(ht){return ht.startLineNumber}):[];Tt.update(et,Ct)}return Tt})}).then(void 0,function(Tt){return Object(re.e)(Tt),null}))},pt.prototype.onHiddenRangesChanges=function(gt){if(this.hiddenRangeModel&&gt.length){var Tt=this.editor.getSelections();Tt&&(this.hiddenRangeModel.adjustSelections(Tt)&&this.editor.setSelections(Tt))}this.editor.setHiddenAreas(gt)},pt.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},pt.prototype.revealCursor=function(){var gt=this,Tt=this.getFoldingModel();if(!Tt)return;Tt.then(function(it){if(it){var et=gt.editor.getSelections();if(et&&et.length>0){for(var ut=[],Ct=function(Nt){var bt=Nt.selectionStartLineNumber;gt.hiddenRangeModel&&gt.hiddenRangeModel.isHidden(bt)&&ut.push.apply(ut,it.getAllRegionsAtLine(bt,function($e){return $e.isCollapsed&&bt>$e.startLineNumber}))},ht=0,Et=et;ht<Et.length;ht++){var Yt=Et[ht];Ct(Yt)}ut.length&&(it.toggleCollapseState(ut),gt.reveal(et[0].getPosition()))}}}).then(void 0,re.e)},pt.prototype.onEditorMouseDown=function(gt){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!gt.target||!gt.target.range)return;if(!gt.event.leftButton&&!gt.event.middleButton)return;var Tt=gt.target.range,it=!1;switch(gt.target.type){case 4:var et=gt.target.detail,ut=gt.target.element.offsetLeft,Ct=et.offsetX-ut;if(Ct<5)return;it=!0;break;case 6:{if(this.hiddenRangeModel.hasRanges()){var ht=this.editor.getModel();if(ht&&Tt.startColumn===ht.getLineMaxColumn(Tt.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:Tt.startLineNumber,iconClicked:it}},pt.prototype.onEditorMouseUp=function(gt){var Tt=this,it=this.getFoldingModel();if(!it||!this.mouseDownInfo||!gt.target)return;var et=this.mouseDownInfo.lineNumber,ut=this.mouseDownInfo.iconClicked,Ct=gt.target.range;if(!Ct||Ct.startLineNumber!==et)return;if(ut){if(gt.target.type!==4)return}else{var ht=this.editor.getModel();if(!ht||Ct.startColumn!==ht.getLineMaxColumn(et))return}it.then(function(Et){if(Et){var Yt=Et.getRegionAtLine(et);if(Yt&&Yt.startLineNumber===et){var Nt=Yt.isCollapsed;if(ut||Nt){var bt=[],$e=gt.event.middleButton||gt.event.shiftKey;if($e)for(var Ye=0,Ve=Et.getRegionsInside(Yt);Ye<Ve.length;Ye++){var ze=Ve[Ye];ze.isCollapsed===Nt&&bt.push(ze)}(Nt||!$e||bt.length===0)&&bt.push(Yt),Et.toggleCollapseState(bt),Tt.reveal({lineNumber:et,column:1})}}}}).then(void 0,re.e)},pt.prototype.reveal=function(gt){this.editor.revealPositionInCenterIfOutsideViewport(gt,0)},pt.ID="editor.contrib.folding",pt=fe([$(1,ge.c)],pt),pt}(D.a),ce=function(jt){Ce(pt,jt);function pt(){return jt!==null&&jt.apply(this,arguments)||this}return pt.prototype.runEditorCommand=function(gt,Tt,it){var et=this,ut=z.get(Tt);if(!ut)return;var Ct=ut.getFoldingModel();if(Ct)return this.reportTelemetry(gt,Tt),Ct.then(function(ht){if(ht){et.invoke(ut,ht,Tt,it);var Et=Tt.getSelection();Et&&ut.reveal(Et.getStartPosition())}})},pt.prototype.getSelectedLines=function(gt){var Tt=gt.getSelections();return Tt?Tt.map(function(it){return it.startLineNumber}):[]},pt.prototype.getLineNumbers=function(gt,Tt){return gt&&gt.selectionLines?gt.selectionLines.map(function(it){return it+1}):this.getSelectedLines(Tt)},pt.prototype.run=function(gt,Tt){},pt}(U.b);function se(jt){if(!J.k(jt)){if(!J.i(jt))return!1;var pt=jt;if(!J.k(pt.levels)&&!J.h(pt.levels))return!1;if(!J.k(pt.direction)&&!J.j(pt.direction))return!1;if(!J.k(pt.selectionLines)&&(!J.d(pt.selectionLines)||!pt.selectionLines.every(J.h)))return!1}return!0}var ye=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.unfold",label:pe.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:2048|1024|89,mac:{primary:2048|512|89},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument:
* 'levels': Number of levels to unfold. If not set, defaults to 1.
* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.
* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.
`,constraint:se,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return pt.prototype.invoke=function(gt,Tt,it,et){var ut=et&&et.levels||1,Ct=this.getLineNumbers(et,it);et&&et.direction==="up"?d(Tt,!1,ut,Ct):p(Tt,!1,ut,Ct)},pt}(ce),Re=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.unfoldRecursively",label:pe.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(K.a)(2048|41,2048|89),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it,et){p(Tt,!1,Number.MAX_VALUE,this.getSelectedLines(it))},pt}(ce),Le=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.fold",label:pe.a("foldAction.label","Fold"),alias:"Fold",precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:2048|1024|87,mac:{primary:2048|512|87},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument:
* 'levels': Number of levels to fold.
* 'direction': If 'up', folds given number of levels up otherwise folds down.
* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.
If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.
`,constraint:se,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return pt.prototype.invoke=function(gt,Tt,it,et){var ut=this.getLineNumbers(et,it),Ct=et&&et.levels,ht=et&&et.direction;typeof Ct!="number"&&typeof ht!="string"?c(Tt,!0,ut):ht==="up"?d(Tt,!0,Ct||1,ut):p(Tt,!0,Ct||1,ut)},pt}(ce),Ue=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.toggleFold",label:pe.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(K.a)(2048|41,2048|42),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){var et=this.getSelectedLines(it);v(Tt,1,et)},pt}(ce),Je=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.foldRecursively",label:pe.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(K.a)(2048|41,2048|87),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){var et=this.getSelectedLines(it);p(Tt,!0,Number.MAX_VALUE,et)},pt}(ce),nt=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.foldAllBlockComments",label:pe.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(K.a)(2048|41,2048|85),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){if(Tt.regions.hasTypes())E(Tt,Fe.n.Comment.value,!0);else{var et=it.getModel();if(!et)return;var ut=ae.a.getComments(et.getLanguageIdentifier().id);if(ut&&ut.blockCommentStartToken){var Ct=new RegExp("^\\s*"+Object(I.p)(ut.blockCommentStartToken));f(Tt,Ct,!0)}}},pt}(ce),vt=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.foldAllMarkerRegions",label:pe.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(K.a)(2048|41,2048|29),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){if(Tt.regions.hasTypes())E(Tt,Fe.n.Region.value,!0);else{var et=it.getModel();if(!et)return;var ut=ae.a.getFoldingRules(et.getLanguageIdentifier().id);if(ut&&ut.markers&&ut.markers.start){var Ct=new RegExp(ut.markers.start);f(Tt,Ct,!0)}}},pt}(ce),Rt=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.unfoldAllMarkerRegions",label:pe.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(K.a)(2048|41,2048|30),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){if(Tt.regions.hasTypes())E(Tt,Fe.n.Region.value,!1);else{var et=it.getModel();if(!et)return;var ut=ae.a.getFoldingRules(et.getLanguageIdentifier().id);if(ut&&ut.markers&&ut.markers.start){var Ct=new RegExp(ut.markers.start);f(Tt,Ct,!1)}}},pt}(ce),Ot=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.foldAll",label:pe.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(K.a)(2048|41,2048|21),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){p(Tt,!0)},pt}(ce),Kt=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.unfoldAll",label:pe.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(K.a)(2048|41,2048|40),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){p(Tt,!1)},pt}(ce),ao=function(jt){Ce(pt,jt);function pt(){return jt!==null&&jt.apply(this,arguments)||this}return pt.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(pt.ID_PREFIX.length))},pt.prototype.invoke=function(gt,Tt,it){u(Tt,this.getFoldingLevel(),!0,this.getSelectedLines(it))},pt.ID_PREFIX="editor.foldLevel",pt.ID=function(gt){return pt.ID_PREFIX+gt},pt}(ce);Object(U.h)(z.ID,z),Object(U.f)(ye),Object(U.f)(Re),Object(U.f)(Le),Object(U.f)(Je),Object(U.f)(Ot),Object(U.f)(Kt),Object(U.f)(nt),Object(U.f)(vt),Object(U.f)(Rt),Object(U.f)(Ue);for(var lo=1;lo<=7;lo++)Object(U.i)(new ao({id:ao.ID(lo),label:pe.a("foldLevelAction.label","Fold Level {0}",lo),alias:"Fold Level "+lo,precondition:S,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(K.a)(2048|41,2048|21+lo),weight:100}}));var so=Object(Te.Tb)("editor.foldBackground",{light:Object(Te.fc)(Te.K,.3),dark:Object(Te.fc)(Te.K,.3),hc:null},pe.a("editorSelectionBackground","Color of the editor selection."));Object(Ee.e)(function(jt,pt){var gt=jt.getColor(so);gt&&pt.addRule(".monaco-editor .folded-background { background-color: "+gt+"; }")})},e0rL:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe}),e.d(F,"b",function(){return J});var T=e("Cg/j"),pe=Object(T.c)("textResourceConfigurationService"),J=Object(T.c)("textResourcePropertiesService")},e1ni:function(Mt,F,e){},eC1c:function(Mt,F,e){},eLzo:function(Mt,F,e){"use strict";e.d(F,"a",function(){return J}),e.d(F,"b",function(){return I}),e.d(F,"c",function(){return K}),e.d(F,"e",function(){return U}),e.d(F,"d",function(){return j});var T=e("6OMU"),pe=e("Vhoy"),J=function(){function h(b,O){b===void 0&&(b=""),O===void 0&&(O=!1);var m,C;this._value=b,typeof O=="boolean"?(this._isTrusted=O,this._supportThemeIcons=!1):(this._isTrusted=(m=O.isTrusted)!==null&&m!==void 0?m:!1,this._supportThemeIcons=(C=O.supportThemeIcons)!==null&&C!==void 0?C:!1)}return Object.defineProperty(h.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),h.prototype.appendText=function(b){return this._value+=(this._supportThemeIcons?Object(pe.a)(b):b).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(`
`,`
`),this},h.prototype.appendMarkdown=function(b){return this._value+=b,this},h.prototype.appendCodeblock=function(b,O){return this._value+="\n```",this._value+=b,this._value+=`
`,this._value+=O,this._value+="\n```\n",this},h}();function I(h){return H(h)?!h.value:Array.isArray(h)?h.every(I):!0}function H(h){return h instanceof J?!0:h&&typeof h=="object"?typeof h.value=="string"&&(typeof h.isTrusted=="boolean"||h.isTrusted===void 0)&&(typeof h.supportThemeIcons=="boolean"||h.supportThemeIcons===void 0):!1}function K(h,b){return!h&&!b?!0:!h||!b?!1:Array.isArray(h)&&Array.isArray(b)?Object(T.g)(h,b,D):H(h)&&H(b)?D(h,b):!1}function D(h,b){return h===b?!0:!h||!b?!1:h.value===b.value&&h.isTrusted===b.isTrusted&&h.supportThemeIcons===b.supportThemeIcons}function U(h){return h&&h.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function j(h){var b=[],O=h.split("|").map(function(u){return u.trim()});h=O[0];var m=O[1];if(m){var C=/height=(\d+)/.exec(m),w=/width=(\d+)/.exec(m),v=C?C[1]:"",p=w?w[1]:"",d=isFinite(parseInt(p)),c=isFinite(parseInt(v));d&&b.push('width="'+p+'"'),c&&b.push('height="'+v+'"')}return{href:h,dimensions:b}}},eizg:function(Mt,F,e){},ep4t:function(Mt,F,e){"use strict";e.r(F),e.d(F,"SuggestController",function(){return on}),e.d(F,"TriggerSuggestAction",function(){return dn});var T=e("OBOq"),pe=e("6OMU"),J=e("/cxE"),I=e("/kV6"),H=e("pmY6"),K=e("sswD"),D=e("0/Sa"),U=e("aokT"),j=e("wQH0"),h=e("tXSY"),b=e("uACm"),O=e("QDVR"),m=e("A+jI"),C=e("twdY"),w=e("X+cX"),v=e("Cg/j"),p=e("+7oY"),d=e("9fML"),c=function(){var St=function(st,rt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Lt,be){Lt.__proto__=be}||function(Lt,be){for(var _ in be)be.hasOwnProperty(_)&&(Lt[_]=be[_])},St(st,rt)};return function(st,rt){St(st,rt);function Lt(){this.constructor=st}st.prototype=rt===null?Object.create(rt):(Lt.prototype=rt.prototype,new Lt)}}(),u=function(St,st,rt,Lt){var be=arguments.length,_=be<3?st:Lt===null?Lt=Object.getOwnPropertyDescriptor(st,rt):Lt,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(St,st,rt,Lt);else for(var X=St.length-1;X>=0;X--)(A=St[X])&&(_=(be<3?A(_):be>3?A(st,rt,_):A(st,rt))||_);return be>3&&_&&Object.defineProperty(st,rt,_),_},f=function(St,st){return function(rt,Lt){st(rt,Lt,St)}},E=function(){function St(){}return St.prototype.select=function(st,rt,Lt){if(Lt.length===0)return 0;for(var be=Lt[0].score[0],_=1;_<Lt.length;_++){var A=Lt[_],X=A.score,De=A.completion;if(X[0]!==be)break;if(De.preselect)return _}return 0},St}(),L=function(St){c(st,St);function st(){return St!==null&&St.apply(this,arguments)||this}return st.prototype.memorize=function(rt,Lt,be){},st.prototype.toJSON=function(){return},st.prototype.fromJSON=function(){},st}(E),R=function(St){c(st,St);function st(){var rt=St!==null&&St.apply(this,arguments)||this;return rt._cache=new O.a(300,.66),rt._seq=0,rt}return st.prototype.memorize=function(rt,Lt,be){var _=be.completion.label,A=rt.getLanguageIdentifier().language+"/"+_;this._cache.set(A,{touch:this._seq++,type:be.completion.kind,insertText:be.completion.insertText})},st.prototype.select=function(rt,Lt,be){if(be.length===0)return 0;var _=rt.getLineContent(Lt.lineNumber).substr(Lt.column-10,Lt.column-1);if(/\s$/.test(_))return St.prototype.select.call(this,rt,Lt,be);for(var A=be[0].score[0],X=-1,De=-1,xe=-1,Ie=0;Ie<be.length&&!(be[Ie].score[0]!==A);Ie++){var lt=rt.getLanguageIdentifier().language+"/"+be[Ie].completion.label,ft=this._cache.peek(lt);if(ft&&ft.touch>xe&&ft.type===be[Ie].completion.kind&&ft.insertText===be[Ie].completion.insertText&&(xe=ft.touch,De=Ie),be[Ie].completion.preselect&&X===-1)return X=Ie}return De!==-1?De:X!==-1?X:0},st.prototype.toJSON=function(){var rt=[];return this._cache.forEach(function(Lt,be){rt.push([be,Lt])}),rt},st.prototype.fromJSON=function(rt){this._cache.clear();for(var Lt=0,be=0,_=rt;be<_.length;be++){var A=_[be],X=A[0],De=A[1];De.touch=Lt,De.type=typeof De.type=="number"?De.type:Object(C.E)(De.type),this._cache.set(X,De)}this._seq=this._cache.size},st}(E),P=function(St){c(st,St);function st(){var rt=St!==null&&St.apply(this,arguments)||this;return rt._trie=O.c.forStrings(),rt._seq=0,rt}return st.prototype.memorize=function(rt,Lt,be){var _=rt.getWordUntilPosition(Lt).word,A=rt.getLanguageIdentifier().language+"/"+_;this._trie.set(A,{type:be.completion.kind,insertText:be.completion.insertText,touch:this._seq++})},st.prototype.select=function(rt,Lt,be){var _=rt.getWordUntilPosition(Lt).word;if(!_)return St.prototype.select.call(this,rt,Lt,be);var A=rt.getLanguageIdentifier().language+"/"+_,X=this._trie.get(A);if(X||(X=this._trie.findSubstr(A)),X)for(var De=0;De<be.length;De++){var xe=be[De].completion,Ie=xe.kind,lt=xe.insertText;if(Ie===X.type&&lt===X.insertText)return De}return St.prototype.select.call(this,rt,Lt,be)},st.prototype.toJSON=function(){var rt=[];return this._trie.forEach(function(Lt,be){return rt.push([be,Lt])}),rt.sort(function(Lt,be){return-(Lt[1].touch-be[1].touch)}).forEach(function(Lt,be){return Lt[1].touch=be}),rt.slice(0,200)},st.prototype.fromJSON=function(rt){if(this._trie.clear(),rt.length>0){this._seq=rt[0][1].touch+1;for(var Lt=0,be=rt;Lt<be.length;Lt++){var _=be[Lt],A=_[0],X=_[1];X.type=typeof X.type=="number"?X.type:Object(C.E)(X.type),this._trie.set(A,X)}}},st}(E),x=function(St){c(st,St);function st(rt,Lt){var be=St.call(this)||this;be._storageService=rt,be._configService=Lt,be._storagePrefix="suggest/memories";var _=function(){var A=be._configService.getValue("editor.suggestSelection"),X=be._configService.getValue("editor.suggest.shareSuggestSelections");be._update(A,X,!1)};return be._persistSoon=be._register(new w.d(function(){return be._saveState()},500)),be._register(rt.onWillSaveState(function(A){A.reason===m.c.SHUTDOWN&&be._saveState()})),be._register(be._configService.onDidChangeConfiguration(function(A){(A.affectsConfiguration("editor.suggestSelection")||A.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&_()})),be._register(be._storageService.onDidChangeStorage(function(A){A.scope===0&&A.key.indexOf(be._storagePrefix)===0&&(document.hasFocus()||be._update(be._mode,be._shareMem,!0))})),_(),be}return st.prototype._update=function(rt,Lt,be){if(!be&&this._mode===rt&&this._shareMem===Lt)return;this._shareMem=Lt,this._mode=rt,this._strategy=rt==="recentlyUsedByPrefix"?new P:rt==="recentlyUsed"?new R:new L;try{var _=Lt?0:1,A=this._storageService.get(this._storagePrefix+"/"+this._mode,_);A&&this._strategy.fromJSON(JSON.parse(A))}catch(X){}},st.prototype.memorize=function(rt,Lt,be){this._strategy.memorize(rt,Lt,be),this._persistSoon.schedule()},st.prototype.select=function(rt,Lt,be){return this._strategy.select(rt,Lt,be)},st.prototype._saveState=function(){var rt=JSON.stringify(this._strategy),Lt=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,rt,Lt)},st=u([f(0,m.a),f(1,p.a)],st),st}(H.a),Q=Object(v.c)("ISuggestMemories");Object(d.b)(Q,x,!0);var V=e("3/fG"),W=e("nnTU"),B=e("T8No"),ae=e("nrhi"),we=e("QVNv"),Me=function(St,st,rt,Lt){var be=arguments.length,_=be<3?st:Lt===null?Lt=Object.getOwnPropertyDescriptor(st,rt):Lt,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(St,st,rt,Lt);else for(var X=St.length-1;X>=0;X--)(A=St[X])&&(_=(be<3?A(_):be>3?A(st,rt,_):A(st,rt))||_);return be>3&&_&&Object.defineProperty(st,rt,_),_},Pe=function(St,st){return function(rt,Lt){st(rt,Lt,St)}},Be=function(){function St(st,rt){this._editor=st,this._index=0,this._ckOtherSuggestions=St.OtherSuggestions.bindTo(rt)}return St.prototype.dispose=function(){this.reset()},St.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(H.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},St.prototype.set=function(st,rt){var Lt=this,be=st.model,_=st.index;if(be.items.length===0){this.reset();return}var A=St._moveIndex(!0,be,_);if(A===_){this.reset();return}this._acceptNext=rt,this._model=be,this._index=_,this._listener=this._editor.onDidChangeCursorPosition(function(){Lt._ignore||Lt.reset()}),this._ckOtherSuggestions.set(!0)},St._moveIndex=function(st,rt,Lt){for(var be=Lt;!(be=(be+rt.items.length+(st?1:-1))%rt.items.length,be===Lt);)if(!rt.items[be].completion.additionalTextEdits)break;return be},St.prototype.next=function(){this._move(!0)},St.prototype.prev=function(){this._move(!1)},St.prototype._move=function(st){if(!this._model)return;try{this._ignore=!0,this._index=St._moveIndex(st,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},St.OtherSuggestions=new B.d("hasOtherSuggestions",!1),St=Me([Pe(1,B.c)],St),St}(),Ke=e("MI8n"),Fe=e("gCVg"),re=e("fpMC"),ee=e("N0LK"),ne=function(){function St(st,rt){this.leadingLineContent=st,this.characterCountDelta=rt}return St}(),q=function(){function St(st,rt,Lt,be,_,A){this._snippetCompareFn=St._compareCompletionItems,this._items=st,this._column=rt,this._wordDistance=be,this._options=_,this._refilterKind=1,this._lineContext=Lt,A==="top"?this._snippetCompareFn=St._compareCompletionItemsSnippetsUp:A==="bottom"&&(this._snippetCompareFn=St._compareCompletionItemsSnippetsDown)}return Object.defineProperty(St.prototype,"lineContext",{get:function(){return this._lineContext},set:function(st){(this._lineContext.leadingLineContent!==st.leadingLineContent||this._lineContext.characterCountDelta!==st.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta<st.characterCountDelta&&this._filteredItems?2:1,this._lineContext=st)},enumerable:!0,configurable:!0}),Object.defineProperty(St.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(St.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),St.prototype.adopt=function(st){for(var rt=new Array,Lt=0;Lt<this._items.length;)st.has(this._items[Lt].provider)?Lt++:(rt.push(this._items[Lt]),this._items[Lt]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,rt},Object.defineProperty(St.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),St.prototype._ensureCachedState=function(){this._refilterKind!==0&&this._createCachedState()},St.prototype._createCachedState=function(){this._isIncomplete=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var st=this._lineContext,rt=st.leadingLineContent,Lt=st.characterCountDelta,be="",_="",A=this._refilterKind===1?this._items:this._filteredItems,X=[],De=!this._options.filterGraceful||A.length>2e3?re.d:re.e,xe=0;xe<A.length;xe++){var Ie=A[xe];Ie.container.incomplete&&this._isIncomplete.add(Ie.provider);var lt=Ie.position.column-Ie.editStart.column,ft=lt+Lt-(Ie.position.column-this._column);if(be.length!==ft&&(be=ft===0?"":rt.slice(-ft),_=be.toLowerCase()),Ie.word=be,ft===0)Ie.score=re.a.Default;else{for(var At=0;At<lt;){var Ft=be.charCodeAt(At);if(Ft===32||Ft===9)At+=1;else break}var Ut=typeof Ie.completion.label=="string"?Ie.completion.label:Ie.completion.label.name;if(At>=ft)Ie.score=re.a.Default;else if(typeof Ie.completion.filterText=="string"){var Vt=De(be,_,At,Ie.completion.filterText,Ie.filterTextLow,0,!1);if(!Vt)continue;Object(ee.f)(Ie.completion.filterText,Ut)===0?Ie.score=Vt:(Ie.score=Object(re.b)(be,_,At,Ut,Ie.labelLow,0),Ie.score[0]=Vt[0])}else{var Vt=De(be,_,At,Ut,Ie.labelLow,0,!1);if(!Vt)continue;Ie.score=Vt}}Ie.idx=xe,Ie.distance=this._wordDistance.distance(Ie.position,Ie.completion),X.push(Ie),this._stats.suggestionCount++;switch(Ie.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=X.sort(this._snippetCompareFn),this._refilterKind=0},St._compareCompletionItems=function(st,rt){return st.score[0]>rt.score[0]?-1:st.score[0]<rt.score[0]?1:st.distance<rt.distance?-1:st.distance>rt.distance?1:st.idx<rt.idx?-1:st.idx>rt.idx?1:0},St._compareCompletionItemsSnippetsDown=function(st,rt){if(st.completion.kind!==rt.completion.kind){if(st.completion.kind===25)return 1;if(rt.completion.kind===25)return-1}return St._compareCompletionItems(st,rt)},St._compareCompletionItemsSnippetsUp=function(st,rt){if(st.completion.kind!==rt.completion.kind){if(st.completion.kind===25)return-1;if(rt.completion.kind===25)return 1}return St._compareCompletionItems(st,rt)},St}(),le=e("JQT/"),Z=e("Z7SF"),ve=function(){var St=function(st,rt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Lt,be){Lt.__proto__=be}||function(Lt,be){for(var _ in be)be.hasOwnProperty(_)&&(Lt[_]=be[_])},St(st,rt)};return function(st,rt){St(st,rt);function Lt(){this.constructor=st}st.prototype=rt===null?Object.create(rt):(Lt.prototype=rt.prototype,new Lt)}}(),Ne=function(St,st,rt,Lt){function be(_){return _ instanceof rt?_:new rt(function(A){A(_)})}return new(rt||(rt=Promise))(function(_,A){function X(Ie){try{xe(Lt.next(Ie))}catch(lt){A(lt)}}function De(Ie){try{xe(Lt.throw(Ie))}catch(lt){A(lt)}}function xe(Ie){Ie.done?_(Ie.value):be(Ie.value).then(X,De)}xe((Lt=Lt.apply(St,st||[])).next())})},Xe=function(St,st){var rt={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},Lt,be,_,A;return A={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function X(xe){return function(Ie){return De([xe,Ie])}}function De(xe){if(Lt)throw new TypeError("Generator is already executing.");for(;rt;)try{if(Lt=1,be&&(_=xe[0]&2?be.return:xe[0]?be.throw||((_=be.return)&&_.call(be),0):be.next)&&!(_=_.call(be,xe[1])).done)return _;(be=0,_)&&(xe=[xe[0]&2,_.value]);switch(xe[0]){case 0:case 1:_=xe;break;case 4:return rt.label++,{value:xe[1],done:!1};case 5:rt.label++,be=xe[1],xe=[0];continue;case 7:xe=rt.ops.pop(),rt.trys.pop();continue;default:if(!(_=rt.trys,_=_.length>0&&_[_.length-1])&&(xe[0]===6||xe[0]===2)){rt=0;continue}if(xe[0]===3&&(!_||xe[1]>_[0]&&xe[1]<_[3])){rt.label=xe[1];break}if(xe[0]===6&&rt.label<_[1]){rt.label=_[1],_=xe;break}if(_&&rt.label<_[2]){rt.label=_[2],rt.ops.push(xe);break}_[2]&&rt.ops.pop(),rt.trys.pop();continue}xe=st.call(St,rt)}catch(Ie){xe=[6,Ie],be=0}finally{Lt=_=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},de=function(){function St(){}return St.create=function(st,rt){return Ne(this,void 0,void 0,function(){var Lt,be,_,A;return Xe(this,function(X){switch(X.label){case 0:return rt.getOption(89).localityBonus?rt.hasModel()?(Lt=rt.getModel(),be=rt.getPosition(),st.canComputeWordRanges(Lt.uri)?[4,new Z.a().provideSelectionRanges(Lt,[be])]:[2,St.None]):[2,St.None]:[2,St.None];case 1:return _=X.sent(),!_||_.length===0||_[0].length===0?[2,St.None]:[4,st.computeWordRanges(Lt.uri,_[0][0].range)];case 2:return A=X.sent(),[2,new(function(De){ve(xe,De);function xe(){return De!==null&&De.apply(this,arguments)||this}return xe.prototype.distance=function(Ie,lt){if(!A||!be.equals(rt.getPosition()))return 0;if(lt.kind===17)return 2<<20;var ft=typeof lt.label=="string"?lt.label:lt.label.name,At=A[ft];if(Object(pe.p)(At))return 2<<20;for(var Ft=Object(pe.c)(At,U.a.fromPositions(Ie),U.a.compareRangesUsingStarts),Ut=Ft>=0?At[Ft]:At[Math.max(0,~Ft-1)],Vt=_.length,oo=0,Zt=_[0];oo<Zt.length;oo++){var mo=Zt[oo];if(!U.a.containsRange(mo.range,Ut))break;Vt-=1}return Vt},xe}(St))]}})})},St.None=new(function(st){ve(rt,st);function rt(){return st!==null&&st.apply(this,arguments)||this}return rt.prototype.distance=function(){return 0},rt}(St)),St}(),ge=function(){function St(st,rt,Lt,be){this.leadingLineContent=st.getLineContent(rt.lineNumber).substr(0,rt.column-1),this.leadingWord=st.getWordUntilPosition(rt),this.lineNumber=rt.lineNumber,this.column=rt.column,this.auto=Lt,this.shy=be}return St.shouldAutoTrigger=function(st){if(!st.hasModel())return!1;var rt=st.getModel(),Lt=st.getPosition();rt.tokenizeIfCheap(Lt.lineNumber);var be=rt.getWordAtPosition(Lt);return be?be.endColumn!==Lt.column?!1:!!isNaN(Number(be.word)):!1},St}(),Ee=function(){function St(st,rt){var Lt=this;this._editor=st,this._editorWorker=rt,this._toDispose=new H.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new H.b,this._triggerQuickSuggest=new w.e,this._state=0,this._completionDisposables=new H.b,this._onDidCancel=new Ke.a,this._onDidTrigger=new Ke.a,this._onDidSuggest=new Ke.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new Fe.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(function(){Lt._updateTriggerCharacters(),Lt.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(function(){Lt._updateTriggerCharacters(),Lt.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(function(){Lt._updateTriggerCharacters(),Lt._updateQuickSuggest()})),this._toDispose.add(C.d.onDidChange(function(){Lt._updateTriggerCharacters(),Lt._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(function(_){Lt._onCursorChange(_)}));var be=!1;this._toDispose.add(this._editor.onDidCompositionStart(function(){be=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(function(){be=!1,Lt._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(function(){be||Lt._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}return St.prototype.dispose=function(){Object(H.f)(this._triggerCharacterListener),Object(H.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},St.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(67),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&this._quickSuggestDelay!==0||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},St.prototype._updateTriggerCharacters=function(){var st=this;if(this._triggerCharacterListener.clear(),this._editor.getOption(68)||!this._editor.hasModel()||!this._editor.getOption(92))return;for(var rt=new Map,Lt=0,be=C.d.all(this._editor.getModel());Lt<be.length;Lt++)for(var _=be[Lt],A=0,X=_.triggerCharacters||[];A<X.length;A++){var De=X[A],xe=rt.get(De);xe||(xe=new Set,xe.add(Object(we.c)()),rt.set(De,xe)),xe.add(_)}var Ie=function(lt){if(!lt){var ft=st._editor.getPosition(),At=st._editor.getModel();lt=At.getLineContent(ft.lineNumber).substr(0,ft.column-1)}var Ft="";Object(ee.A)(lt.charCodeAt(lt.length-1))?Object(ee.z)(lt.charCodeAt(lt.length-2))&&(Ft=lt.substr(lt.length-2)):Ft=lt.charAt(lt.length-1);var Ut=rt.get(Ft);if(Ut){var Vt=st._completionModel?st._completionModel.adopt(Ut):void 0;st.trigger({auto:!0,shy:!1,triggerCharacter:Ft},Boolean(st._completionModel),Ut,Vt)}};this._triggerCharacterListener.add(this._editor.onDidType(Ie)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(Ie))},Object.defineProperty(St.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),St.prototype.cancel=function(st){st===void 0&&(st=!1),this._state!==0&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:st}))},St.prototype.clear=function(){this._completionDisposables.clear()},St.prototype._updateActiveSuggestSession=function(){this._state!==0&&(!this._editor.hasModel()||!C.d.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._state===2,shy:!1},!0))},St.prototype._onCursorChange=function(st){var rt=this;if(!this._editor.hasModel())return;var Lt=this._editor.getModel(),be=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!st.selection.isEmpty()||st.reason!==0||st.source!=="keyboard"&&st.source!=="deleteLeft"){this.cancel();return}if(!C.d.has(Lt))return;if(this._state===0){if(this._editor.getOption(66)===!1)return;if(!be.containsRange(this._currentSelection)&&!be.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(89).snippetsPreventQuickSuggestions&&h.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(function(){if(rt._state!==0)return;if(!ge.shouldAutoTrigger(rt._editor))return;if(!rt._editor.hasModel())return;var _=rt._editor.getModel(),A=rt._editor.getPosition(),X=rt._editor.getOption(66);if(X===!1)return;if(!(X===!0)){_.tokenizeIfCheap(A.lineNumber);var De=_.getLineTokens(A.lineNumber),xe=De.getStandardTokenType(De.findTokenIndexAtOffset(Math.max(A.column-1-1,0))),Ie=X.other&&xe===0||X.comments&&xe===1||X.strings&&xe===2;if(!Ie)return}rt.trigger({auto:!0,shy:!1})},this._quickSuggestDelay)}},St.prototype._refilterCompletionItems=function(){var st=this;Promise.resolve().then(function(){if(st._state===0)return;if(!st._editor.hasModel())return;var rt=st._editor.getModel(),Lt=st._editor.getPosition(),be=new ge(rt,Lt,st._state===2,!1);st._onNewContext(be)})},St.prototype.trigger=function(st,rt,Lt,be){var _=this;if(rt===void 0&&(rt=!1),!this._editor.hasModel())return;var A=this._editor.getModel(),X=st.auto,De=new ge(A,this._editor.getPosition(),X,st.shy);this.cancel(rt),this._state=X?2:1,this._onDidTrigger.fire({auto:X,shy:st.shy,position:this._editor.getPosition()}),this._context=De;var xe;st.triggerCharacter?xe={triggerKind:1,triggerCharacter:st.triggerCharacter}:Lt&&Lt.size>0?xe={triggerKind:2}:xe={triggerKind:0},this._requestToken=new le.b;var Ie=this._editor.getOption(86),lt=1;switch(Ie){case"top":lt=0;break;case"bottom":lt=2;break}var ft=St._createItemKindFilter(this._editor),At=de.create(this._editorWorker,this._editor),Ft=Object(we.e)(A,this._editor.getPosition(),new we.a(lt,ft,Lt),xe,this._requestToken.token);Promise.all([Ft,At]).then(function(Ut){var Vt=Ut[0],oo=Ut[1];if(Object(H.f)(_._requestToken),_._state===0)return;if(!_._editor.hasModel())return;var Zt=_._editor.getModel();if(Object(pe.q)(be)){var mo=Object(we.d)(lt);Vt=Vt.concat(be).sort(mo)}var mt=new ge(Zt,_._editor.getPosition(),X,st.shy);_._completionModel=new q(Vt,_._context.column,{leadingLineContent:mt.leadingLineContent,characterCountDelta:mt.column-_._context.column},oo,_._editor.getOption(89),_._editor.getOption(86));for(var He=0,Oe=Vt;He<Oe.length;He++){var ot=Oe[He];Object(H.g)(ot.container)&&_._completionDisposables.add(ot.container)}_._onNewContext(mt)}).catch(J.e)},St._createItemKindFilter=function(st){var rt=new Set,Lt=st.getOption(86);Lt==="none"&&rt.add(25);var be=st.getOption(89);return be.showMethods||rt.add(0),be.showFunctions||rt.add(1),be.showConstructors||rt.add(2),be.showFields||rt.add(3),be.showVariables||rt.add(4),be.showClasses||rt.add(5),be.showStructs||rt.add(6),be.showInterfaces||rt.add(7),be.showModules||rt.add(8),be.showProperties||rt.add(9),be.showEvents||rt.add(10),be.showOperators||rt.add(11),be.showUnits||rt.add(12),be.showValues||rt.add(13),be.showConstants||rt.add(14),be.showEnums||rt.add(15),be.showEnumMembers||rt.add(16),be.showKeywords||rt.add(17),be.showWords||rt.add(18),be.showColors||rt.add(19),be.showFiles||rt.add(20),be.showReferences||rt.add(21),be.showColors||rt.add(22),be.showFolders||rt.add(23),be.showTypeParameters||rt.add(24),be.showSnippets||rt.add(25),rt},St.prototype._onNewContext=function(st){if(!this._context)return;if(st.lineNumber!==this._context.lineNumber){this.cancel();return}if(st.leadingWord.startColumn<this._context.leadingWord.startColumn){this.cancel();return}if(st.column<this._context.column){st.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();return}if(!this._completionModel)return;if(st.column>this._context.column&&this._completionModel.incomplete.size>0&&st.leadingWord.word.length!==0){var rt=this._completionModel.incomplete,Lt=this._completionModel.adopt(rt);this.trigger({auto:this._state===2,shy:!1},!0,rt,Lt)}else{var be=this._completionModel.lineContext,_=!1;if(this._completionModel.lineContext={leadingLineContent:st.leadingLineContent,characterCountDelta:st.column-this._context.column},this._completionModel.items.length===0){if(ge.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<st.leadingWord.startColumn){this.trigger({auto:this._context.auto,shy:!1},!0);return}if(this._context.auto){this.cancel();return}else if(this._completionModel.lineContext=be,_=this._completionModel.items.length>0,_&&st.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:_})}},St}(),Te=e("CClx"),Ce=e("nn6Y"),fe=e("k76M"),$=e("jqj9"),S=e("EffR"),z=e("cqdO"),ce=e("GJhM"),se=e("bexQ"),ye=e("XXUj"),Re=e("ptcw"),Le=e("t9D7"),Ue=e("MD5Z"),Je=e("3qCu"),nt=e("WBhO"),vt=e("W9cx"),Rt=e("xONI"),Ot=e("tYmi"),Kt=e("gslv"),ao=e("MqQJ"),lo;(function(St){St[St.FILE=0]="FILE",St[St.FOLDER=1]="FOLDER",St[St.ROOT_FOLDER=2]="ROOT_FOLDER"})(lo||(lo={}));function so(St,st,rt,Lt){var be=Lt===lo.ROOT_FOLDER?["rootfolder-icon"]:Lt===lo.FOLDER?["folder-icon"]:["file-icon"];if(rt){var _;if(rt.scheme===Ot.b.data){var A=Kt.a.parseMetaData(rt);_=A.get(Kt.a.META_DATA_LABEL)}else _=pt(Object(Kt.c)(rt).toLowerCase());if(Lt===lo.FOLDER)be.push(_+"-name-folder-icon");else{if(_){be.push(_+"-name-file-icon");for(var X=_.split("."),De=1;De<X.length;De++)be.push(X.slice(De).join(".")+"-ext-file-icon");be.push("ext-file-icon")}var xe=jt(St,st,rt);xe&&be.push(pt(xe)+"-lang-file-icon")}}return be}function jt(St,st,rt){if(!rt)return null;var Lt=null;if(rt.scheme===Ot.b.data){var be=Kt.a.parseMetaData(rt),_=be.get(Kt.a.META_DATA_MIME);_&&(Lt=st.getModeId(_))}else{var A=St.getModel(rt);A&&(Lt=A.getModeId())}return Lt&&Lt!==ao.c?Lt:st.getModeIdByFilepathOrFirstLine(rt)}function pt(St){return St.replace(/\s/g,"\\$&")}var gt=e("G2kB"),Tt=e("bY76"),it=e("eLzo"),et=e("cGHE"),ut=function(){return ut=Object.assign||function(St){for(var st,rt=1,Lt=arguments.length;rt<Lt;rt++){st=arguments[rt];for(var be in st)Object.prototype.hasOwnProperty.call(st,be)&&(St[be]=st[be])}return St},ut.apply(this,arguments)},Ct=function(St,st,rt,Lt){var be=arguments.length,_=be<3?st:Lt===null?Lt=Object.getOwnPropertyDescriptor(st,rt):Lt,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(St,st,rt,Lt);else for(var X=St.length-1;X>=0;X--)(A=St[X])&&(_=(be<3?A(_):be>3?A(st,rt,_):A(st,rt))||_);return be>3&&_&&Object.defineProperty(st,rt,_),_},ht=function(St,st){return function(rt,Lt){st(rt,Lt,St)}},Et=function(St,st,rt,Lt){function be(_){return _ instanceof rt?_:new rt(function(A){A(_)})}return new(rt||(rt=Promise))(function(_,A){function X(Ie){try{xe(Lt.next(Ie))}catch(lt){A(lt)}}function De(Ie){try{xe(Lt.throw(Ie))}catch(lt){A(lt)}}function xe(Ie){Ie.done?_(Ie.value):be(Ie.value).then(X,De)}xe((Lt=Lt.apply(St,st||[])).next())})},Yt=function(St,st){var rt={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},Lt,be,_,A;return A={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function X(xe){return function(Ie){return De([xe,Ie])}}function De(xe){if(Lt)throw new TypeError("Generator is already executing.");for(;rt;)try{if(Lt=1,be&&(_=xe[0]&2?be.return:xe[0]?be.throw||((_=be.return)&&_.call(be),0):be.next)&&!(_=_.call(be,xe[1])).done)return _;(be=0,_)&&(xe=[xe[0]&2,_.value]);switch(xe[0]){case 0:case 1:_=xe;break;case 4:return rt.label++,{value:xe[1],done:!1};case 5:rt.label++,be=xe[1],xe=[0];continue;case 7:xe=rt.ops.pop(),rt.trys.pop();continue;default:if(!(_=rt.trys,_=_.length>0&&_[_.length-1])&&(xe[0]===6||xe[0]===2)){rt=0;continue}if(xe[0]===3&&(!_||xe[1]>_[0]&&xe[1]<_[3])){rt.label=xe[1];break}if(xe[0]===6&&rt.label<_[1]){rt.label=_[1],_=xe;break}if(_&&rt.label<_[2]){rt.label=_[2],rt.ops.push(xe);break}_[2]&&rt.ops.pop(),rt.trys.pop();continue}xe=st.call(St,rt)}catch(Ie){xe=[6,Ie],be=0}finally{Lt=_=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},Nt=!1,bt=Object(Ue.Tb)("editorSuggestWidget.background",{dark:Ue.Q,light:Ue.Q,hc:Ue.Q},V.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),$e=Object(Ue.Tb)("editorSuggestWidget.border",{dark:Ue.R,light:Ue.R,hc:Ue.R},V.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),Ye=Object(Ue.Tb)("editorSuggestWidget.foreground",{dark:Ue.x,light:Ue.x,hc:Ue.x},V.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),Ve=Object(Ue.Tb)("editorSuggestWidget.selectedBackground",{dark:Ue.rb,light:Ue.rb,hc:Ue.rb},V.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),ze=Object(Ue.Tb)("editorSuggestWidget.highlightForeground",{dark:Ue.tb,light:Ue.tb,hc:Ue.tb},V.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),me=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i;function G(St,st){var rt=typeof St.completion.label=="string"?St.completion.label:St.completion.label.name;return rt.match(me)?(st[0]=rt,!0):typeof St.completion.documentation=="string"&&St.completion.documentation.match(me)?(st[0]=St.completion.documentation,!0):!1}function oe(St){if(!St)return!1;var st=St.completion;return st.documentation?!0:st.detail&&st.detail!==st.label}function Y(St){return"suggest-aria-id:"+St}var ie=function(){function St(st,rt,Lt,be,_,A){this.widget=st,this.editor=rt,this.triggerKeybindingLabel=Lt,this._modelService=be,this._modeService=_,this._themeService=A}return Object.defineProperty(St.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),St.prototype.renderTemplate=function(st){var rt=this,Lt=Object.create(null);Lt.disposables=new H.b,Lt.root=st,Object(S.f)(Lt.root,"show-file-icons"),Lt.icon=Object(S.q)(st,Object(S.a)(".icon")),Lt.colorspan=Object(S.q)(Lt.icon,Object(S.a)("span.colorspan"));var be=Object(S.q)(st,Object(S.a)(".contents")),_=Object(S.q)(be,Object(S.a)(".main"));Lt.left=Object(S.q)(_,Object(S.a)("span.left")),Lt.right=Object(S.q)(_,Object(S.a)("span.right")),Lt.iconContainer=Object(S.q)(Lt.left,Object(S.a)(".icon-label.codicon")),Lt.iconLabel=new Rt.a(Lt.left,{supportHighlights:!0,supportCodicons:!0}),Lt.disposables.add(Lt.iconLabel),Lt.signatureLabel=Object(S.q)(Lt.left,Object(S.a)("span.signature-label")),Lt.qualifierLabel=Object(S.q)(Lt.left,Object(S.a)("span.qualifier-label")),Lt.detailsLabel=Object(S.q)(Lt.right,Object(S.a)("span.details-label")),Lt.readMore=Object(S.q)(Lt.right,Object(S.a)("span.readMore.codicon.codicon-info")),Lt.readMore.title=V.a("readMore","Read More...{0}",this.triggerKeybindingLabel);var A=function(){var X=rt.editor.getOptions(),De=X.get(34),xe=De.fontFamily,Ie=De.fontFeatureSettings,lt=X.get(90)||De.fontSize,ft=X.get(91)||De.lineHeight,At=De.fontWeight,Ft=lt+"px",Ut=ft+"px";Lt.root.style.fontSize=Ft,Lt.root.style.fontWeight=At,_.style.fontFamily=xe,_.style.fontFeatureSettings=Ie,_.style.lineHeight=Ut,Lt.icon.style.height=Ut,Lt.icon.style.width=Ut,Lt.readMore.style.height=Ut,Lt.readMore.style.width=Ut};return A(),Lt.disposables.add(Ke.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(X){return X.hasChanged(34)||X.hasChanged(90)||X.hasChanged(91)}).on(A,null)),Lt},St.prototype.renderElement=function(st,rt,Lt){var be=this,_=Lt,A=st.completion,X=typeof A.label=="string"?A.label:A.label.name;_.root.id=Y(rt),_.icon.className="icon "+Object(C.F)(A.kind),_.colorspan.style.backgroundColor="";var De={labelEscapeNewLines:!0,matches:Object(re.c)(st.score)},xe=[];if(A.kind===19&&G(st,xe))_.icon.className="icon customcolor",_.iconContainer.className="icon hide",_.colorspan.style.backgroundColor=xe[0];else if(A.kind===20&&this._themeService.getIconTheme().hasFileIcons){_.icon.className="icon hide",_.iconContainer.className="icon hide";var Ie=so(this._modelService,this._modeService,Tt.a.from({scheme:"fake",path:X}),lo.FILE),lt=so(this._modelService,this._modeService,Tt.a.from({scheme:"fake",path:A.detail}),lo.FILE);De.extraClasses=Ie.length>lt.length?Ie:lt}else A.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(_.icon.className="icon hide",_.iconContainer.className="icon hide",De.extraClasses=Object(pe.m)([so(this._modelService,this._modeService,Tt.a.from({scheme:"fake",path:X}),lo.FOLDER),so(this._modelService,this._modeService,Tt.a.from({scheme:"fake",path:A.detail}),lo.FOLDER)])):(_.icon.className="icon hide",_.iconContainer.className="",Object(S.g)(_.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(C.F)(A.kind)));A.tags&&A.tags.indexOf(1)>=0&&(De.extraClasses=(De.extraClasses||[]).concat(["deprecated"]),De.matches=[]),_.iconLabel.setLabel(X,void 0,De),typeof A.label=="string"?(_.signatureLabel.textContent="",_.qualifierLabel.textContent="",_.detailsLabel.textContent=(A.detail||"").replace(/\n.*$/m,""),Object(S.P)(_.right,"always-show-details")):(_.signatureLabel.textContent=(A.label.signature||"").replace(/\n.*$/m,""),_.qualifierLabel.textContent=(A.label.qualifier||"").replace(/\n.*$/m,""),_.detailsLabel.textContent=(A.label.type||"").replace(/\n.*$/m,""),Object(S.f)(_.right,"always-show-details")),oe(st)?(Object(S.f)(_.right,"can-expand-details"),Object(S.X)(_.readMore),_.readMore.onmousedown=function(ft){ft.stopPropagation(),ft.preventDefault()},_.readMore.onclick=function(ft){ft.stopPropagation(),ft.preventDefault(),be.widget.toggleDetails()}):(Object(S.P)(_.right,"can-expand-details"),Object(S.J)(_.readMore),_.readMore.onmousedown=null,_.readMore.onclick=null)},St.prototype.disposeTemplate=function(st){st.disposables.dispose()},St=Ct([ht(3,gt.a),ht(4,nt.a),ht(5,Le.c)],St),St}(),je=function(){function St(st,rt,Lt,be,_){var A=this;this.widget=rt,this.editor=Lt,this.markdownRenderer=be,this.kbToggleDetails=_,this.borderWidth=1,this.disposables=new H.b,this.el=Object(S.q)(st,Object(S.a)(".details")),this.disposables.add(Object(H.h)(function(){return st.removeChild(A.el)})),this.body=Object(S.a)(".body"),this.scrollbar=new ce.a(this.body,{}),Object(S.q)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(S.q)(this.body,Object(S.a)(".header")),this.close=Object(S.q)(this.header,Object(S.a)("span.codicon.codicon-close")),this.close.title=V.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(S.q)(this.header,Object(S.a)("p.type")),this.docs=Object(S.q)(this.body,Object(S.a)("p.docs")),this.configureFont(),Ke.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(X){return X.hasChanged(34)}).on(this.configureFont,this,this.disposables),be.onDidRenderCodeBlock(function(){return A.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(St.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),St.prototype.renderLoading=function(){this.type.textContent=V.a("loading","Loading..."),this.docs.textContent=""},St.prototype.renderItem=function(st,rt){var Lt=this;this.renderDisposeable=Object(H.f)(this.renderDisposeable);var be=st.completion,_=be.documentation,A=be.detail;if(rt){var X="";X+="score: "+st.score[0]+(st.word?", compared '"+(st.completion.filterText&&st.completion.filterText+" (filterText)"||st.completion.label)+"' with '"+st.word+"'":" (no prefix)")+`
`,X+="distance: "+st.distance+`, see localityBonus-setting
`,X+="index: "+st.idx+", based on "+(st.completion.sortText&&'sortText: "'+st.completion.sortText+'"'||"label")+`
`,_=new it.a().appendCodeblock("empty",X),A="Provider: "+st.provider._debugDisplayName}if(!rt&&!oe(st)){this.type.textContent="",this.docs.textContent="",Object(S.f)(this.el,"no-docs");return}if(Object(S.P)(this.el,"no-docs"),typeof _=="string")Object(S.P)(this.docs,"markdown-docs"),this.docs.textContent=_;else{Object(S.f)(this.docs,"markdown-docs"),this.docs.innerHTML="";var De=this.markdownRenderer.render(_);this.renderDisposeable=De,this.docs.appendChild(De.element)}A?(this.type.innerText=A,Object(S.X)(this.type)):(this.type.innerText="",Object(S.J)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+this.borderWidth*2+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(xe){xe.preventDefault(),xe.stopPropagation()},this.close.onclick=function(xe){xe.preventDefault(),xe.stopPropagation(),Lt.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},St.prototype.scrollDown=function(st){st===void 0&&(st=8),this.body.scrollTop+=st},St.prototype.scrollUp=function(st){st===void 0&&(st=8),this.body.scrollTop-=st},St.prototype.scrollTop=function(){this.body.scrollTop=0},St.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},St.prototype.pageDown=function(){this.scrollDown(80)},St.prototype.pageUp=function(){this.scrollUp(80)},St.prototype.setBorderWidth=function(st){this.borderWidth=st},St.prototype.configureFont=function(){var st=this.editor.getOptions(),rt=st.get(34),Lt=rt.fontFamily,be=st.get(90)||rt.fontSize,_=st.get(91)||rt.lineHeight,A=rt.fontWeight,X=be+"px",De=_+"px";this.el.style.fontSize=X,this.el.style.fontWeight=A,this.el.style.fontFeatureSettings=rt.fontFeatureSettings,this.type.style.fontFamily=Lt,this.close.style.height=De,this.close.style.width=De},St.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(H.f)(this.renderDisposeable)},St}(),dt=function(){function St(st,rt,Lt,be,_,A,X,De,xe){var Ie=this,lt,ft;this.editor=st,this.telemetryService=rt,this.keybindingService=Lt,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=H.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new w.e,this.toDispose=new H.b,this.onDidSelectEmitter=new Ke.a,this.onDidFocusEmitter=new Ke.a,this.onDidHideEmitter=new Ke.a,this.onDidShowEmitter=new Ke.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new Ke.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var At=this.toDispose.add(new Je.a(st,X,De)),Ft=(ft=(lt=Lt.lookupKeybinding("toggleSuggestionDetails"))===null||lt===void 0?void 0:lt.getLabel())!==null&&ft!==void 0?ft:"";this.msgDetailsLess=V.a("detail.less","{0} for less...",Ft),this.msgDetailMore=V.a("detail.more","{0} for more...",Ft),this.isAuto=!1,this.focusedItem=null,this.storageService=A,this.element=Object(S.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(S.j)(this.element,"click",function(Zt){Zt.target===Ie.element&&Ie.hideWidget()})),this.messageElement=Object(S.q)(this.element,Object(S.a)(".message")),this.listElement=Object(S.q)(this.element,Object(S.a)(".tree"));var Ut=function(){return Object(S.Y)(Ie.element,"with-status-bar",!Ie.editor.getOption(89).hideStatusBar)};Ut(),this.statusBarElement=Object(S.q)(this.element,Object(S.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(S.q)(this.statusBarElement,Object(S.a)("span")),this.statusBarRightSpan=Object(S.q)(this.statusBarElement,Object(S.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=xe.createInstance(je,this.element,this,this.editor,At,Ft);var Vt=function(){return Object(S.Y)(Ie.element,"no-icons",!Ie.editor.getOption(89).showIcons)};Vt();var oo=xe.createInstance(ie,this,this.editor,Ft);this.list=new z.c("SuggestWidget",this.listElement,this,[oo],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(Zt){var mo=typeof Zt.completion.label=="string"?Zt.completion.label:Zt.completion.label.name;if(Zt.isResolved&&Ie.expandDocsSettingFromStorage()){var mt=Zt.completion,He=mt.documentation,Oe=mt.detail,ot=ee.r("{0}{1}",Oe||"",He?typeof He=="string"?He:He.value:"");return V.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",mo,ot)}else return mo}}}),this.toDispose.add(Object(Re.b)(this.list,_,{listInactiveFocusBackground:Ve,listInactiveFocusOutline:Ue.b})),this.toDispose.add(_.onThemeChange(function(Zt){return Ie.onThemeChange(Zt)})),this.toDispose.add(st.onDidLayoutChange(function(){return Ie.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(Zt){return Ie.onListMouseDownOrTap(Zt)})),this.toDispose.add(this.list.onTap(function(Zt){return Ie.onListMouseDownOrTap(Zt)})),this.toDispose.add(this.list.onSelectionChange(function(Zt){return Ie.onListSelection(Zt)})),this.toDispose.add(this.list.onFocusChange(function(Zt){return Ie.onListFocus(Zt)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return Ie.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(Zt){Zt.hasChanged(89)&&(Ut(),Vt())})),this.suggestWidgetVisible=we.b.Visible.bindTo(be),this.suggestWidgetMultipleSuggestions=we.b.MultipleSuggestions.bindTo(be),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(_.getTheme()),this.toDispose.add(Object(S.o)(this.details.element,"keydown",function(Zt){Ie._onDetailsKeydown.fire(Zt)})),this.toDispose.add(this.editor.onMouseDown(function(Zt){return Ie.onEditorMouseDown(Zt)}))}return St.prototype.onEditorMouseDown=function(st){this.details.element.contains(st.target.element)?this.details.element.focus():this.element.contains(st.target.element)&&this.editor.focus()},St.prototype.onCursorSelectionChanged=function(){if(this.state===0)return;this.editor.layoutContentWidget(this)},St.prototype.onEditorLayoutChange=function(){(this.state===3||this.state===5)&&this.expandDocsSettingFromStorage()&&this.expandSideOrBelow()},St.prototype.onListMouseDownOrTap=function(st){if(typeof st.element=="undefined"||typeof st.index=="undefined")return;st.browserEvent.preventDefault(),st.browserEvent.stopPropagation(),this.select(st.element,st.index)},St.prototype.onListSelection=function(st){if(!st.elements.length)return;this.select(st.elements[0],st.indexes[0])},St.prototype.select=function(st,rt){var Lt=this.completionModel;if(!Lt)return;this.onDidSelectEmitter.fire({item:st,index:rt,model:Lt}),this.editor.focus()},St.prototype.onThemeChange=function(st){var rt=st.getColor(bt);rt&&(this.listElement.style.backgroundColor=rt.toString(),this.statusBarElement.style.backgroundColor=rt.toString(),this.details.element.style.backgroundColor=rt.toString(),this.messageElement.style.backgroundColor=rt.toString());var Lt=st.getColor($e);Lt&&(this.listElement.style.borderColor=Lt.toString(),this.statusBarElement.style.borderColor=Lt.toString(),this.details.element.style.borderColor=Lt.toString(),this.messageElement.style.borderColor=Lt.toString(),this.detailsBorderColor=Lt.toString());var be=st.getColor(Ue.V);be&&(this.detailsFocusBorderColor=be.toString()),this.details.setBorderWidth(st.type==="hc"?2:1)},St.prototype.onListFocus=function(st){var rt=this,Lt,be;if(this.ignoreFocusEvents)return;if(!st.elements.length){this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),this.editor.setAriaOptions({activeDescendant:void 0});return}if(!this.completionModel)return;var _=st.elements[0],A=st.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,_!==this.focusedItem){var X=this.editor.getOption(89).insertMode==="insert",De=(Lt=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))===null||Lt===void 0?void 0:Lt.getLabel(),xe=(be=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))===null||be===void 0?void 0:be.getLabel();et.a.equals(_.editInsertEnd,_.editReplaceEnd)?this.setStatusBarLeftText(V.a("accept","{0} to accept",De)):X?this.setStatusBarLeftText(V.a("insert","{0} to insert, {1} to replace",De,xe)):this.setStatusBarLeftText(V.a("replace","{0} to replace, {1} to insert",De,xe)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=_,this.list.reveal(A),this.currentSuggestionDetails=Object(w.f)(function(Ie){return Et(rt,void 0,void 0,function(){var lt,ft,At=this;return Yt(this,function(Ft){switch(Ft.label){case 0:return lt=Object(w.g)(function(){return At.showDetails(!0)},250),Ie.onCancellationRequested(function(){return lt.dispose()}),[4,_.resolve(Ie)];case 1:return ft=Ft.sent(),lt.dispose(),[2,ft]}})})}),this.currentSuggestionDetails.then(function(){if(A>=rt.list.length||_!==rt.list.element(A))return;rt.ignoreFocusEvents=!0,rt.list.splice(A,1,[_]),rt.list.setFocus([A]),rt.ignoreFocusEvents=!1,rt.expandDocsSettingFromStorage()?rt.showDetails(!1):Object(S.P)(rt.element,"docs-side"),oe(rt.focusedItem)?rt.expandDocsSettingFromStorage()?rt.setStatusBarRightText(rt.msgDetailsLess):rt.setStatusBarRightText(rt.msgDetailMore):rt.statusBarRightSpan.innerText="",rt.editor.setAriaOptions({activeDescendant:Y(A)})}).catch(J.e)}this.onDidFocusEmitter.fire({item:_,index:A,model:this.completionModel})},St.prototype.setState=function(st){if(!this.element)return;var rt=this.state!==st;this.state=st,Object(S.Y)(this.element,"frozen",st===4);switch(st){case 0:Object(S.J)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,rt&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=St.LOADING_MESSAGE,Object(S.J)(this.listElement,this.details.element,this.statusBarElement),Object(S.X)(this.messageElement),Object(S.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=St.NO_SUGGESTIONS_MESSAGE,Object(S.J)(this.listElement,this.details.element,this.statusBarElement),Object(S.X)(this.messageElement),Object(S.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(S.J)(this.messageElement),Object(S.X)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(S.J)(this.messageElement),Object(S.X)(this.listElement),this.show();break;case 5:Object(S.J)(this.messageElement),Object(S.X)(this.details.element,this.listElement,this.statusBarElement),this.show();break}},St.prototype.showTriggered=function(st,rt){var Lt=this;if(this.state!==0)return;this.isAuto=!!st,this.isAuto||(this.loadingTimeout=Object(w.g)(function(){return Lt.setState(1)},rt))},St.prototype.showSuggestions=function(st,rt,Lt,be){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==st&&(this.completionModel=st),Lt&&this.state!==2&&this.state!==0){this.setState(4);return}var _=this.completionModel.items.length,A=_===0;if(this.suggestWidgetMultipleSuggestions.set(_>1),A)be?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var X=this.completionModel.stats;X.wasAutomaticallyTriggered=!!be,this.telemetryService.publicLog("suggestWidget",ut({},X))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),Lt?this.setState(4):this.setState(3),this.list.reveal(rt,0),this.list.setFocus([rt]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},St.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},St.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},St.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}},St.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},St.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},St.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},St.prototype.getFocusedItem=function(){return this.state!==0&&this.state!==2&&this.state!==1&&this.completionModel?{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}:void 0},St.prototype.toggleDetailsFocus=function(){this.state===5?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):this.state===3&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")},St.prototype.toggleDetails=function(){if(!oe(this.list.getFocusedElements()[0]))return;if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(S.J)(this.details.element),Object(S.P)(this.element,"docs-side"),Object(S.P)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(this.state!==3&&this.state!==5&&this.state!==4)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},St.prototype.showDetails=function(st){st||this.expandSideOrBelow(),Object(S.X)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",st?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},St.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},St.prototype.show=function(){var st=this,rt=this.updateListHeight();rt!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=rt),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(S.f)(st.element,"visible"),st.onDidShowEmitter.fire(st)},100)},St.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(S.P)(this.element,"visible")},St.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},St.prototype.getPosition=function(){if(this.state===0)return null;var st=[2,1];return this.preferDocPositionTop&&(st=[1]),{position:this.editor.getPosition(),preference:st}},St.prototype.getDomNode=function(){return this.element},St.prototype.getId=function(){return St.ID},St.prototype.isFrozen=function(){return this.state===4},St.prototype.updateListHeight=function(){var st=0;if(this.state===2||this.state===1)st=this.unfocusedHeight;else{var rt=this.list.contentHeight/this.unfocusedHeight,Lt=this.editor.getOption(89).maxVisibleSuggestions;st=Math.min(rt,Lt)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=st+"px",this.statusBarElement.style.top=st+"px",this.list.layout(st),st},St.prototype.adjustDocsPosition=function(){if(!this.editor.hasModel())return;var st=this.editor.getOption(49),rt=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),Lt=Object(S.C)(this.editor.getDomNode()),be=Lt.left+rt.left,_=Lt.top+rt.top+rt.height,A=Object(S.C)(this.element),X=A.left,De=A.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<De&&!this.preferDocPositionTop){this.preferDocPositionTop=!0,this.adjustDocsPosition();return}this.docsPositionPreviousWidgetY=De,X<be-this.listWidth?Object(S.f)(this.element,"list-right"):Object(S.P)(this.element,"list-right"),Object(S.I)(this.element,"docs-side")&&_-st>De&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},St.prototype.expandSideOrBelow=function(){if(!oe(this.focusedItem)&&this.firstFocusInCurrentList){Object(S.P)(this.element,"docs-side"),Object(S.P)(this.element,"docs-below");return}var st=this.element.style.maxWidth.match(/(\d+)px/);!st||Number(st[1])<this.maxWidgetWidth?(Object(S.f)(this.element,"docs-below"),Object(S.P)(this.element,"docs-side")):oe(this.focusedItem)&&(Object(S.f)(this.element,"docs-side"),Object(S.P)(this.element,"docs-below"))},Object.defineProperty(St.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(89).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(St.prototype,"unfocusedHeight",{get:function(){var st=this.editor.getOptions();return st.get(91)||st.get(34).lineHeight},enumerable:!0,configurable:!0}),St.prototype.getHeight=function(st){return this.unfocusedHeight},St.prototype.getTemplateId=function(st){return"suggestion"},St.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,Nt)},St.prototype.updateExpandDocsSetting=function(st){this.storageService.store("expandSuggestionDocs",st,0)},St.prototype.setStatusBarLeftText=function(st){this.statusBarLeftSpan.innerText=st},St.prototype.setStatusBarRightText=function(st){this.statusBarRightSpan.innerText=st},St.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},St.ID="editor.widget.suggestWidget",St.LOADING_MESSAGE=V.a("suggestWidget.loading","Loading..."),St.NO_SUGGESTIONS_MESSAGE=V.a("suggestWidget.noSuggestions","No suggestions."),St=Ct([ht(1,ye.a),ht(2,se.a),ht(3,B.c),ht(4,Le.c),ht(5,m.a),ht(6,nt.a),ht(7,vt.a),ht(8,v.a)],St),St}();Object(Le.e)(function(St,st){var rt=St.getColor(ze);rt&&st.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+rt+"; }");var Lt=St.getColor(Ye);Lt&&st.addRule(".monaco-editor .suggest-widget { color: "+Lt+"; }");var be=St.getColor(Ue.ec);be&&st.addRule(".monaco-editor .suggest-widget a { color: "+be+"; }");var _=St.getColor(Ue.dc);_&&st.addRule(".monaco-editor .suggest-widget code { background-color: "+_+"; }")});var Dt=function(){var St=function(st,rt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Lt,be){Lt.__proto__=be}||function(Lt,be){for(var _ in be)be.hasOwnProperty(_)&&(Lt[_]=be[_])},St(st,rt)};return function(st,rt){St(st,rt);function Lt(){this.constructor=st}st.prototype=rt===null?Object.create(rt):(Lt.prototype=rt.prototype,new Lt)}}(),Qt=function(St,st,rt,Lt){var be=arguments.length,_=be<3?st:Lt===null?Lt=Object.getOwnPropertyDescriptor(st,rt):Lt,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(St,st,rt,Lt);else for(var X=St.length-1;X>=0;X--)(A=St[X])&&(_=(be<3?A(_):be>3?A(st,rt,_):A(st,rt))||_);return be>3&&_&&Object.defineProperty(st,rt,_),_},to=function(St,st){return function(rt,Lt){st(rt,Lt,St)}},fo=function(St){Dt(st,St);function st(rt,Lt){var be=St.call(this)||this;return be._editor=rt,be._enabled=!1,be._ckAtEnd=st.AtEnd.bindTo(Lt),be._register(be._editor.onDidChangeConfiguration(function(_){return _.hasChanged(94)&&be._update()})),be._update(),be}return st.prototype.dispose=function(){St.prototype.dispose.call(this),Object(H.f)(this._selectionListener),this._ckAtEnd.reset()},st.prototype._update=function(){var rt=this,Lt=this._editor.getOption(94)==="on";if(this._enabled===Lt)return;if(this._enabled=Lt,this._enabled){var be=function(){if(!rt._editor.hasModel()){rt._ckAtEnd.set(!1);return}var _=rt._editor.getModel(),A=rt._editor.getSelection(),X=_.getWordAtPosition(A.getStartPosition());if(!X){rt._ckAtEnd.set(!1);return}rt._ckAtEnd.set(X.endColumn===A.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(be),be()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},st.AtEnd=new B.d("atEndOfWord",!1),st=Qt([to(1,B.c)],st),st}(H.a),ho=e("pAvP"),wo=e("746U"),Oo=e("MXAL"),Ro=function(){function St(st,rt,Lt){var be=this;this._disposables=new H.b,this._disposables.add(rt.onDidShow(function(){return be._onItem(rt.getFocusedItem())})),this._disposables.add(rt.onDidFocus(this._onItem,this)),this._disposables.add(rt.onDidHide(this.reset,this)),this._disposables.add(st.onWillType(function(_){if(be._active&&!rt.isFrozen()){var A=_.charCodeAt(_.length-1);be._active.acceptCharacters.has(A)&&st.getOption(0)&&Lt(be._active.item)}}))}return St.prototype._onItem=function(st){if(!st||!Object(pe.q)(st.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===st.item)return;for(var rt=new Oo.b,Lt=0,be=st.item.completion.commitCharacters;Lt<be.length;Lt++){var _=be[Lt];_.length>0&&rt.add(_.charCodeAt(0))}this._active={acceptCharacters:rt,item:st}},St.prototype.reset=function(){this._active=void 0},St.prototype.dispose=function(){this._disposables.dispose()},St}(),jo=e("MNsG"),Eo=e("4y0V"),Wo=function(){var St=function(st,rt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Lt,be){Lt.__proto__=be}||function(Lt,be){for(var _ in be)be.hasOwnProperty(_)&&(Lt[_]=be[_])},St(st,rt)};return function(st,rt){St(st,rt);function Lt(){this.constructor=st}st.prototype=rt===null?Object.create(rt):(Lt.prototype=rt.prototype,new Lt)}}(),Ho=function(){function St(st){var rt=this;this._controller=st,this._disposables=new H.b,this._decorations=[],this._disposables.add(st.model.onDidSuggest(function(Lt){if(!Lt.shy){var be=rt._controller.widget.getValue(),_=be.getFocusedItem();_&&rt._highlight(_.item),rt._widgetListener||(rt._widgetListener=be.onDidFocus(function(A){return rt._highlight(A.item)}))}})),this._disposables.add(st.model.onDidCancel(function(){rt._reset()}))}return St.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(H.f)(this._widgetListener),Object(H.f)(this._shiftKeyListener)},St.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},St.prototype._highlight=function(st){var rt=this,Lt;this._currentItem=st;var be=this._controller.editor.getOption(89),_=[];if(be.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=Fo.event(function(){return rt._highlight(rt._currentItem)}));var A=this._controller.getOverwriteInfo(st,Fo.isPressed),X=this._controller.editor.getPosition();if(be.insertMode==="insert"&&A.overwriteAfter>0)_=[{range:new U.a(X.lineNumber,X.column,X.lineNumber,X.column+A.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(be.insertMode==="replace"&&A.overwriteAfter===0){var De=(Lt=this._controller.editor.getModel())===null||Lt===void 0?void 0:Lt.getWordAtPosition(X);De&&De.endColumn>X.column&&(_=[{range:new U.a(X.lineNumber,X.column,X.lineNumber,De.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,_)},St}(),Fo=new(function(St){Wo(st,St);function st(){var rt=St.call(this)||this;return rt._subscriptions=new H.b,rt._isPressed=!1,rt._subscriptions.add(Object(Eo.a)(document.body,"keydown")(function(Lt){return rt.isPressed=Lt.shiftKey})),rt._subscriptions.add(Object(Eo.a)(document.body,"keyup")(function(){return rt.isPressed=!1})),rt._subscriptions.add(Object(Eo.a)(document.body,"mouseleave")(function(){return rt.isPressed=!1})),rt._subscriptions.add(Object(Eo.a)(document.body,"blur")(function(){return rt.isPressed=!1})),rt}return Object.defineProperty(st.prototype,"isPressed",{get:function(){return this._isPressed},set:function(rt){this._isPressed!==rt&&(this._isPressed=rt,this.fire(rt))},enumerable:!0,configurable:!0}),st.prototype.dispose=function(){this._subscriptions.dispose(),St.prototype.dispose.call(this)},st}(Ke.a)),Io=function(){var St=function(st,rt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Lt,be){Lt.__proto__=be}||function(Lt,be){for(var _ in be)be.hasOwnProperty(_)&&(Lt[_]=be[_])},St(st,rt)};return function(st,rt){St(st,rt);function Lt(){this.constructor=st}st.prototype=rt===null?Object.create(rt):(Lt.prototype=rt.prototype,new Lt)}}(),tn=function(){return tn=Object.assign||function(St){for(var st,rt=1,Lt=arguments.length;rt<Lt;rt++){st=arguments[rt];for(var be in st)Object.prototype.hasOwnProperty.call(st,be)&&(St[be]=st[be])}return St},tn.apply(this,arguments)},un=function(St,st,rt,Lt){var be=arguments.length,_=be<3?st:Lt===null?Lt=Object.getOwnPropertyDescriptor(st,rt):Lt,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(St,st,rt,Lt);else for(var X=St.length-1;X>=0;X--)(A=St[X])&&(_=(be<3?A(_):be>3?A(st,rt,_):A(st,rt))||_);return be>3&&_&&Object.defineProperty(st,rt,_),_},Vo=function(St,st){return function(rt,Lt){st(rt,Lt,St)}},Cn=function(){for(var St=0,st=0,rt=arguments.length;st<rt;st++)St+=arguments[st].length;for(var Lt=Array(St),be=0,st=0;st<rt;st++)for(var _=arguments[st],A=0,X=_.length;A<X;A++,be++)Lt[be]=_[A];return Lt},pn=!1,rn=function(){function St(st,rt){this._model=st,this._position=rt;var Lt=st.getLineMaxColumn(rt.lineNumber);if(Lt!==rt.column){var be=st.getOffsetAt(rt),_=st.getPositionAt(be+1);this._marker=st.deltaDecorations([],[{range:U.a.fromPositions(rt,_),options:{stickiness:1}}])}}return St.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},St.prototype.delta=function(st){if(this._model.isDisposed()||this._position.lineNumber!==st.lineNumber)return 0;if(this._marker){var rt=this._model.getDecorationRange(this._marker[0]),Lt=this._model.getOffsetAt(rt.getStartPosition());return Lt-this._model.getOffsetAt(st)}else return this._model.getLineMaxColumn(st.lineNumber)-st.column},St}(),on=function(){function St(st,rt,Lt,be,_,A){var X=this;this._memoryService=Lt,this._commandService=be,this._contextKeyService=_,this._instantiationService=A,this._lineSuffix=new H.d,this._toDispose=new H.b,this.editor=st,this.model=new Ee(this.editor,rt),this.widget=this._toDispose.add(new w.b(function(){var Ie=X._instantiationService.createInstance(dt,X.editor);X._toDispose.add(Ie),X._toDispose.add(Ie.onDidSelect(function(At){return X._insertSuggestion(At,0)},X));var lt=new Ro(X.editor,Ie,function(At){return X._insertSuggestion(At,2)});X._toDispose.add(lt),X._toDispose.add(X.model.onDidSuggest(function(At){At.completionModel.items.length===0&&lt.reset()}));var ft=we.b.MakesTextEdit.bindTo(X._contextKeyService);return X._toDispose.add(Ie.onDidFocus(function(At){var Ft=At.item,Ut=X.editor.getPosition(),Vt=Ft.editStart.column,oo=Ut.column,Zt=!0;if(X.editor.getOption(1)==="smart"&&X.model.state===2&&!Ft.completion.command&&!Ft.completion.additionalTextEdits&&!(Ft.completion.insertTextRules&4)&&oo-Vt===Ft.completion.insertText.length){var mo=X.editor.getModel().getValueInRange({startLineNumber:Ut.lineNumber,startColumn:Vt,endLineNumber:Ut.lineNumber,endColumn:oo});Zt=mo!==Ft.completion.insertText}ft.set(Zt)})),X._toDispose.add(Object(H.h)(function(){return ft.reset()})),X._toDispose.add(Ie.onDetailsKeyDown(function(At){if(At.toKeybinding().equals(new I.e(!0,!1,!1,!1,33))||jo.e&&At.toKeybinding().equals(new I.e(!1,!1,!1,!0,33))){At.stopPropagation();return}At.toKeybinding().isModifierKey()||X.editor.focus()})),Ie})),this._alternatives=this._toDispose.add(new w.b(function(){return X._toDispose.add(new Be(X.editor,X._contextKeyService))})),this._toDispose.add(A.createInstance(fo,st)),this._toDispose.add(this.model.onDidTrigger(function(Ie){X.widget.getValue().showTriggered(Ie.auto,Ie.shy?250:50),X._lineSuffix.value=new rn(X.editor.getModel(),Ie.position)})),this._toDispose.add(this.model.onDidSuggest(function(Ie){if(!Ie.shy){var lt=X._memoryService.select(X.editor.getModel(),X.editor.getPosition(),Ie.completionModel.items);X.widget.getValue().showSuggestions(Ie.completionModel,lt,Ie.isFrozen,Ie.auto)}})),this._toDispose.add(this.model.onDidCancel(function(Ie){Ie.retrigger||X.widget.getValue().hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(function(){pn||(X.model.cancel(),X.model.clear())}));var De=we.b.AcceptSuggestionsOnEnter.bindTo(_),xe=function(){var Ie=X.editor.getOption(1);De.set(Ie==="on"||Ie==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(function(){return xe()})),xe(),this._toDispose.add(new Ho(this))}return St.get=function(st){return st.getContribution(St.ID)},St.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},St.prototype._insertSuggestion=function(st,rt){var Lt,be=this;if(!st||!st.item){this._alternatives.getValue().reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;var _=this.editor.getModel(),A=_.getAlternativeVersionId(),X=st.item,De=X.completion;rt&1||this.editor.pushUndoStop();var xe=this.getOverwriteInfo(X,Boolean(rt&8));this._memoryService.memorize(_,this.editor.getPosition(),X),Array.isArray(De.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",De.additionalTextEdits.map(function(lt){return D.a.replace(U.a.lift(lt.range),lt.text)}));var Ie=De.insertText;De.insertTextRules&4||(Ie=b.c.escape(Ie)),h.SnippetController2.get(this.editor).insert(Ie,{overwriteBefore:xe.overwriteBefore,overwriteAfter:xe.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(De.insertTextRules&1)}),rt&2||this.editor.pushUndoStop(),De.command?De.command.id===dn.id?this.model.trigger({auto:!0,shy:!1},!0):((Lt=this._commandService).executeCommand.apply(Lt,Cn([De.command.id],De.command.arguments?Cn(De.command.arguments):[])).catch(J.e).finally(function(){return be.model.clear()}),this.model.cancel()):(this.model.cancel(),this.model.clear()),rt&4&&this._alternatives.getValue().set(st,function(lt){for(;_.canUndo();){A!==_.getAlternativeVersionId()&&_.undo(),be._insertSuggestion(lt,1|2|(rt&8?8:0));break}}),this._alertCompletionItem(st.item)},St.prototype.getOverwriteInfo=function(st,rt){Object(wo.a)(this.editor.hasModel());var Lt=this.editor.getOption(89).insertMode==="replace";rt&&(Lt=!Lt);var be=st.position.column-st.editStart.column,_=(Lt?st.editReplaceEnd.column:st.editInsertEnd.column)-st.position.column,A=this.editor.getPosition().column-st.position.column,X=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:be+A,overwriteAfter:_+X}},St.prototype._alertCompletionItem=function(st){var rt=st.completion,Lt=typeof rt.label=="string"?rt.label:rt.label.name;if(Object(pe.q)(rt.additionalTextEdits)){var be=V.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",Lt,rt.additionalTextEdits.length);Object(T.a)(be)}},St.prototype.triggerSuggest=function(st){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,st),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},St.prototype.triggerSuggestAndAcceptBest=function(st){var rt=this;if(!this.editor.hasModel())return;var Lt=this.editor.getPosition(),be=function(){Lt.equals(rt.editor.getPosition())&&rt._commandService.executeCommand(st.fallback)},_=function(A){if(A.completion.insertTextRules&4||A.completion.additionalTextEdits)return!0;var X=rt.editor.getPosition(),De=A.editStart.column,xe=X.column;if(xe-De!==A.completion.insertText.length)return!0;var Ie=rt.editor.getModel().getValueInRange({startLineNumber:X.lineNumber,startColumn:De,endLineNumber:X.lineNumber,endColumn:xe});return Ie!==A.completion.insertText};Ke.b.once(this.model.onDidTrigger)(function(A){var X=[];Ke.b.any(rt.model.onDidTrigger,rt.model.onDidCancel)(function(){Object(H.f)(X),be()},void 0,X),rt.model.onDidSuggest(function(De){var xe=De.completionModel;if(Object(H.f)(X),xe.items.length===0){be();return}var Ie=rt._memoryService.select(rt.editor.getModel(),rt.editor.getPosition(),xe.items),lt=xe.items[Ie];if(!_(lt)){be();return}rt.editor.pushUndoStop(),rt._insertSuggestion({index:Ie,item:lt,model:xe},4|1|2)},void 0,X)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(Lt.lineNumber,0),this.editor.focus()},St.prototype.acceptSelectedSuggestion=function(st,rt){var Lt=this.widget.getValue().getFocusedItem(),be=0;st&&(be|=4),rt&&(be|=8),this._insertSuggestion(Lt,be)},St.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},St.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},St.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},St.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},St.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},St.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},St.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},St.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},St.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},St.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},St.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},St.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},St.ID="editor.contrib.suggestController",St=un([Vo(1,ho.a),Vo(2,Q),Vo(3,W.b),Vo(4,B.c),Vo(5,v.a)],St),St}(),dn=function(St){Io(st,St);function st(){return St.call(this,{id:st.id,label:V.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:B.a.and(j.a.writable,j.a.hasCompletionItemProvider),kbOpts:{kbExpr:j.a.textInputFocus,primary:2048|10,mac:{primary:256|10,secondary:[512|9]},weight:100}})||this}return st.prototype.run=function(rt,Lt){var be=on.get(Lt);if(!be)return;be.triggerSuggest()},st.id="editor.action.triggerSuggest",st}(K.b);Object(K.h)(on.ID,on),Object(K.f)(dn);var Uo=100+90,Bo=K.c.bindToContribution(on.get);Object(K.g)(new Bo({id:"acceptSelectedSuggestion",precondition:we.b.Visible,handler:function(St){St.acceptSelectedSuggestion(!0,!1)}})),ae.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:B.a.and(we.b.Visible,j.a.textInputFocus),primary:2,weight:Uo}),ae.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:B.a.and(we.b.Visible,j.a.textInputFocus,we.b.AcceptSuggestionsOnEnter,we.b.MakesTextEdit),primary:3,weight:Uo}),Object(K.g)(new Bo({id:"acceptAlternativeSelectedSuggestion",precondition:B.a.and(we.b.Visible,j.a.textInputFocus),kbOpts:{weight:Uo,kbExpr:j.a.textInputFocus,primary:1024|3,secondary:[1024|2]},handler:function(St){St.acceptSelectedSuggestion(!1,!0)}})),W.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(K.g)(new Bo({id:"hideSuggestWidget",precondition:we.b.Visible,handler:function(St){return St.cancelSuggestWidget()},kbOpts:{weight:Uo,kbExpr:j.a.textInputFocus,primary:9,secondary:[1024|9]}})),Object(K.g)(new Bo({id:"selectNextSuggestion",precondition:B.a.and(we.b.Visible,we.b.MultipleSuggestions),handler:function(St){return St.selectNextSuggestion()},kbOpts:{weight:Uo,kbExpr:j.a.textInputFocus,primary:18,secondary:[2048|18],mac:{primary:18,secondary:[2048|18,256|44]}}})),Object(K.g)(new Bo({id:"selectNextPageSuggestion",precondition:B.a.and(we.b.Visible,we.b.MultipleSuggestions),handler:function(St){return St.selectNextPageSuggestion()},kbOpts:{weight:Uo,kbExpr:j.a.textInputFocus,primary:12,secondary:[2048|12]}})),Object(K.g)(new Bo({id:"selectLastSuggestion",precondition:B.a.and(we.b.Visible,we.b.MultipleSuggestions),handler:function(St){return St.selectLastSuggestion()}})),Object(K.g)(new Bo({id:"selectPrevSuggestion",precondition:B.a.and(we.b.Visible,we.b.MultipleSuggestions),handler:function(St){return St.selectPrevSuggestion()},kbOpts:{weight:Uo,kbExpr:j.a.textInputFocus,primary:16,secondary:[2048|16],mac:{primary:16,secondary:[2048|16,256|46]}}})),Object(K.g)(new Bo({id:"selectPrevPageSuggestion",precondition:B.a.and(we.b.Visible,we.b.MultipleSuggestions),handler:function(St){return St.selectPrevPageSuggestion()},kbOpts:{weight:Uo,kbExpr:j.a.textInputFocus,primary:11,secondary:[2048|11]}})),Object(K.g)(new Bo({id:"selectFirstSuggestion",precondition:B.a.and(we.b.Visible,we.b.MultipleSuggestions),handler:function(St){return St.selectFirstSuggestion()}})),Object(K.g)(new Bo({id:"toggleSuggestionDetails",precondition:we.b.Visible,handler:function(St){return St.toggleSuggestionDetails()},kbOpts:{weight:Uo,kbExpr:j.a.textInputFocus,primary:2048|10,mac:{primary:256|10}}})),Object(K.g)(new Bo({id:"toggleExplainMode",precondition:we.b.Visible,handler:function(St){return St.toggleExplainMode()},kbOpts:{weight:100,primary:2048|85}})),Object(K.g)(new Bo({id:"toggleSuggestionFocus",precondition:we.b.Visible,handler:function(St){return St.toggleSuggestionFocus()},kbOpts:{weight:Uo,kbExpr:j.a.textInputFocus,primary:2048|512|10,mac:{primary:256|512|10}}})),Object(K.g)(new Bo({id:"insertBestCompletion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),fo.AtEnd,we.b.Visible.toNegated(),Be.OtherSuggestions.toNegated(),h.SnippetController2.InSnippetMode.toNegated()),handler:function(St,st){St.triggerSuggestAndAcceptBest(Object(wo.i)(st)?tn({fallback:"tab"},st):{fallback:"tab"})},kbOpts:{weight:Uo,primary:2}})),Object(K.g)(new Bo({id:"insertNextSuggestion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),Be.OtherSuggestions,we.b.Visible.toNegated(),h.SnippetController2.InSnippetMode.toNegated()),handler:function(St){return St.acceptNextSuggestion()},kbOpts:{weight:Uo,kbExpr:j.a.textInputFocus,primary:2}})),Object(K.g)(new Bo({id:"insertPrevSuggestion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),Be.OtherSuggestions,we.b.Visible.toNegated(),h.SnippetController2.InSnippetMode.toNegated()),handler:function(St){return St.acceptPrevSuggestion()},kbOpts:{weight:Uo,kbExpr:j.a.textInputFocus,primary:1024|2}}))},epnl:function(Mt,F,e){},eq1K:function(Mt,F,e){},erNZ:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("N0LK"),pe;typeof TextDecoder!="undefined"?pe=function(H){return new J(H)}:pe=function(H){return new I};var J=function(){function H(K){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=K|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return H.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},H.prototype.build=function(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},H.prototype._buildBuffer=function(){if(this._bufferLength===0)return"";var K=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(K)},H.prototype._flushBuffer=function(){var K=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[K]:this._completedStrings[this._completedStrings.length]=K},H.prototype.write1=function(K){var D=this._capacity-this._bufferLength;D<=1&&((D===0||T.z(K))&&this._flushBuffer()),this._buffer[this._bufferLength++]=K},H.prototype.appendASCII=function(K){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=K},H.prototype.appendASCIIString=function(K){var D=K.length;if(this._bufferLength+D>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=K;return}for(var U=0;U<D;U++)this._buffer[this._bufferLength++]=K.charCodeAt(U)},H}(),I=function(){function H(){this._pieces=[],this._piecesLen=0}return H.prototype.reset=function(){this._pieces=[],this._piecesLen=0},H.prototype.build=function(){return this._pieces.join("")},H.prototype.write1=function(K){this._pieces[this._piecesLen++]=String.fromCharCode(K)},H.prototype.appendASCII=function(K){this._pieces[this._piecesLen++]=String.fromCharCode(K)},H.prototype.appendASCIIString=function(K){this._pieces[this._piecesLen++]=K},H}()},fD5p:function(Mt,F,e){"use strict";e.r(F),e.d(F,"ContextMenuController",function(){return p});var T=e("3/fG"),pe=e("EffR"),J=e("WqXY"),I=e("pmY6"),H=e("sswD"),K=e("wQH0"),D=e("fjLI"),U=e("T8No"),j=e("Uzvx"),h=e("bexQ"),b=e("2gzu"),O=function(){var c=function(u,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var R in L)L.hasOwnProperty(R)&&(E[R]=L[R])},c(u,f)};return function(u,f){c(u,f);function E(){this.constructor=u}u.prototype=f===null?Object.create(f):(E.prototype=f.prototype,new E)}}(),m=function(c){O(u,c);function u(f,E){var L=c.call(this,f,E,"contextsubmenu")||this;return L.entries=E,L}return u}(b.b),C=function(){var c=function(u,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var R in L)L.hasOwnProperty(R)&&(E[R]=L[R])},c(u,f)};return function(u,f){c(u,f);function E(){this.constructor=u}u.prototype=f===null?Object.create(f):(E.prototype=f.prototype,new E)}}(),w=function(c,u,f,E){var L=arguments.length,R=L<3?u:E===null?E=Object.getOwnPropertyDescriptor(u,f):E,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(c,u,f,E);else for(var x=c.length-1;x>=0;x--)(P=c[x])&&(R=(L<3?P(R):L>3?P(u,f,R):P(u,f))||R);return L>3&&R&&Object.defineProperty(u,f,R),R},v=function(c,u){return function(f,E){u(f,E,c)}},p=function(){function c(u,f,E,L,R,P){var x=this;this._contextMenuService=f,this._contextViewService=E,this._contextKeyService=L,this._keybindingService=R,this._menuService=P,this._toDispose=new I.b,this._contextMenuIsBeingShownCount=0,this._editor=u,this._toDispose.add(this._editor.onContextMenu(function(Q){return x._onContextMenu(Q)})),this._toDispose.add(this._editor.onMouseWheel(function(Q){x._contextMenuIsBeingShownCount>0&&x._contextViewService.hideContextView()})),this._toDispose.add(this._editor.onKeyDown(function(Q){Q.keyCode===58&&(Q.preventDefault(),Q.stopPropagation(),x.showContextMenu())}))}return c.get=function(u){return u.getContribution(c.ID)},c.prototype._onContextMenu=function(u){if(!this._editor.hasModel())return;if(!this._editor.getOption(14)){this._editor.focus(),u.target.position&&!this._editor.getSelection().containsPosition(u.target.position)&&this._editor.setPosition(u.target.position);return}if(u.target.type===12)return;if(u.event.preventDefault(),u.target.type!==6&&u.target.type!==7&&u.target.type!==1)return;if(this._editor.focus(),u.target.position){for(var f=!1,E=0,L=this._editor.getSelections();E<L.length;E++){var R=L[E];if(R.containsPosition(u.target.position)){f=!0;break}}f||this._editor.setPosition(u.target.position)}var P=null;u.target.type!==1&&(P={x:u.event.posx-1,width:2,y:u.event.posy-1,height:2}),this.showContextMenu(P)},c.prototype.showContextMenu=function(u){if(!this._editor.getOption(14))return;if(!this._editor.hasModel())return;if(!this._contextMenuService){this._editor.focus();return}var f=this._getMenuActions(this._editor.getModel(),7);f.length>0&&this._doShowContextMenu(f,u)},c.prototype._getMenuActions=function(u,f){var E=[],L=this._menuService.createMenu(f,this._contextKeyService),R=L.getActions({arg:u.uri});L.dispose();for(var P=0,x=R;P<x.length;P++){for(var Q=x[P],V=Q[1],W=0,B=0,ae=V;B<ae.length;B++){var we=ae[B];if(we instanceof D.d){var Me=this._getMenuActions(u,we.item.submenu);Me.length>0&&(E.push(new m(we.label,Me)),W++)}else E.push(we),W++}W&&E.push(new J.d)}return E.length&&E.pop(),E},c.prototype._doShowContextMenu=function(u,f){var E=this;if(f===void 0&&(f=null),!this._editor.hasModel())return;var L=this._editor.getOption(44);if(this._editor.updateOptions({hover:{enabled:!1}}),!f){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var R=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),P=pe.C(this._editor.getDomNode()),x=P.left+R.left,Q=P.top+R.top+R.height;f={x,y:Q}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return f},getActions:function(){return u},getActionViewItem:function(V){var W=E._keybindingFor(V);if(W)return new J.b(V,V,{label:!0,keybinding:W.getLabel(),isMenu:!0});var B=V;return typeof B.getActionViewItem=="function"?B.getActionViewItem():new J.b(V,V,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(V){return E._keybindingFor(V)},onHide:function(V){E._contextMenuIsBeingShownCount--,E._editor.focus(),E._editor.updateOptions({hover:L})}})},c.prototype._keybindingFor=function(u){return this._keybindingService.lookupKeybinding(u.id)},c.prototype.dispose=function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()},c.ID="editor.contrib.contextmenu",c=w([v(1,j.a),v(2,j.b),v(3,U.c),v(4,h.a),v(5,D.a)],c),c}(),d=function(c){C(u,c);function u(){return c.call(this,{id:"editor.action.showContextMenu",label:T.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:K.a.textInputFocus,primary:1024|68,weight:100}})||this}return u.prototype.run=function(f,E){var L=p.get(E);L.showContextMenu()},u}(H.b);Object(H.h)(p.ID,p),Object(H.f)(d)},feEw:function(Mt,F,e){"use strict";e.d(F,"a",function(){return R}),e.d(F,"b",function(){return V});var T=e("qj0h"),pe=e("pmY6"),J=e("pg8w"),I=e("EffR"),H=e("MI8n"),K=e("4y0V"),D=e("GJhM"),U=e("nuFA");function j(W,B){for(var ae=[],we=0,Me=B;we<Me.length;we++){var Pe=Me[we];if(W.start>=Pe.range.end)continue;if(W.end<Pe.range.start)break;var Be=U.a.intersect(W,Pe.range);if(U.a.isEmpty(Be))continue;ae.push({range:Be,size:Pe.size})}return ae}function h(W,B){var ae=W.start,we=W.end;return{start:ae+B,end:we+B}}function b(W){for(var B=[],ae=null,we=0,Me=W;we<Me.length;we++){var Pe=Me[we],Be=Pe.range.start,Ke=Pe.range.end,Fe=Pe.size;if(ae&&Fe===ae.size){ae.range.end=Ke;continue}ae={range:{start:Be,end:Ke},size:Fe},B.push(ae)}return B}function O(){for(var W=[],B=0;B<arguments.length;B++)W[B]=arguments[B];return b(W.reduce(function(ae,we){return ae.concat(we)},[]))}var m=function(){function W(){this.groups=[],this._size=0}return W.prototype.splice=function(B,ae,we){we===void 0&&(we=[]);var Me=we.length-ae,Pe=j({start:0,end:B},this.groups),Be=j({start:B+ae,end:Number.POSITIVE_INFINITY},this.groups).map(function(Fe){return{range:h(Fe.range,Me),size:Fe.size}}),Ke=we.map(function(Fe,re){return{range:{start:B+re,end:B+re+1},size:Fe.size}});this.groups=O(Pe,Ke,Be),this._size=this.groups.reduce(function(Fe,re){return Fe+re.size*(re.range.end-re.range.start)},0)},Object.defineProperty(W.prototype,"count",{get:function(){var B=this.groups.length;return B?this.groups[B-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),W.prototype.indexAt=function(B){if(B<0)return-1;for(var ae=0,we=0,Me=0,Pe=this.groups;Me<Pe.length;Me++){var Be=Pe[Me],Ke=Be.range.end-Be.range.start,Fe=we+Ke*Be.size;if(B<Fe)return ae+Math.floor((B-we)/Be.size);ae+=Ke,we=Fe}return ae},W.prototype.indexAfter=function(B){return Math.min(this.indexAt(B)+1,this.count)},W.prototype.positionAt=function(B){if(B<0)return-1;for(var ae=0,we=0,Me=0,Pe=this.groups;Me<Pe.length;Me++){var Be=Pe[Me],Ke=Be.range.end-Be.range.start,Fe=we+Ke;if(B<Fe)return ae+(B-we)*Be.size;ae+=Ke*Be.size,we=Fe}return-1},W}();function C(W){try{W.parentElement&&W.parentElement.removeChild(W)}catch(B){}}var w=function(){function W(B){this.renderers=B,this.cache=new Map}return W.prototype.alloc=function(B){var ae=this.getTemplateCache(B).pop();if(!ae){var we=Object(I.a)(".monaco-list-row"),Me=this.getRenderer(B),Pe=Me.renderTemplate(we);ae={domNode:we,templateId:B,templateData:Pe}}return ae},W.prototype.release=function(B){if(!B)return;this.releaseRow(B)},W.prototype.releaseRow=function(B){var ae=B.domNode,we=B.templateId;ae&&(Object(I.P)(ae,"scrolling"),C(ae));var Me=this.getTemplateCache(we);Me.push(B)},W.prototype.getTemplateCache=function(B){var ae=this.cache.get(B);return ae||(ae=[],this.cache.set(B,ae)),ae},W.prototype.dispose=function(){var B=this;this.cache.forEach(function(ae,we){for(var Me=0,Pe=ae;Me<Pe.length;Me++){var Be=Pe[Me],Ke=B.getRenderer(we);Ke.disposeTemplate(Be.templateData),Be.domNode=null,Be.templateData=null}}),this.cache.clear()},W.prototype.getRenderer=function(B){var ae=this.renderers.get(B);if(!ae)throw new Error("No renderer found for "+B);return ae},W}(),v=e("ZCR3"),p=e("6OMU"),d=e("ZQ78"),c=e("X+cX"),u=e("D3Dy"),f=function(W,B,ae,we){var Me=arguments.length,Pe=Me<3?B:we===null?we=Object.getOwnPropertyDescriptor(B,ae):we,Be;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Pe=Reflect.decorate(W,B,ae,we);else for(var Ke=W.length-1;Ke>=0;Ke--)(Be=W[Ke])&&(Pe=(Me<3?Be(Pe):Me>3?Be(B,ae,Pe):Be(B,ae))||Pe);return Me>3&&Pe&&Object.defineProperty(B,ae,Pe),Pe},E=function(){for(var W=0,B=0,ae=arguments.length;B<ae;B++)W+=arguments[B].length;for(var we=Array(W),Me=0,B=0;B<ae;B++)for(var Pe=arguments[B],Be=0,Ke=Pe.length;Be<Ke;Be++,Me++)we[Me]=Pe[Be];return we},L={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(W){return[W]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},R=function(){function W(B){this.elements=B}return W.prototype.update=function(){},W.prototype.getData=function(){return this.elements},W}(),P=function(){function W(B){this.elements=B}return W.prototype.update=function(){},W.prototype.getData=function(){return this.elements},W}(),x=function(){function W(){this.types=[],this.files=[]}return W.prototype.update=function(B){var ae;if(B.types&&(ae=this.types).splice.apply(ae,E([0,this.types.length],B.types)),B.files){this.files.splice(0,this.files.length);for(var we=0;we<B.files.length;we++){var Me=B.files.item(we);Me&&(Me.size||Me.type)&&this.files.push(Me)}}},W.prototype.getData=function(){return{types:this.types,files:this.files}},W}();function Q(W,B){return Array.isArray(W)&&Array.isArray(B)?Object(p.g)(W,B):W===B}var V=function(){function W(B,ae,we,Me){var Pe=this;if(Me===void 0&&(Me=L),this.virtualDelegate=ae,this.domId="list_id_"+ ++W.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new c.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=pe.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=pe.a.None,this.onDragLeaveTimeout=pe.a.None,this.disposables=new pe.b,this._onDidChangeContentHeight=new H.a,Me.horizontalScrolling&&Me.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new m;for(var Be=0,Ke=we;Be<Ke.length;Be++){var Fe=Ke[Be];this.renderers.set(Fe.templateId,Fe)}this.cache=this.disposables.add(new w(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",I.f(this.domNode,this.domId),this.domNode.tabIndex=0,I.Y(this.domNode,"mouse-support",typeof Me.mouseSupport=="boolean"?Me.mouseSupport:!0),this.horizontalScrolling=Object(T.f)(Me,function(re){return re.horizontalScrolling},L.horizontalScrolling),I.Y(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=typeof Me.additionalScrollHeight=="undefined"?0:Me.additionalScrollHeight,this.ariaProvider=Me.ariaProvider||{getSetSize:function(re,ee,ne){return ne},getPosInSet:function(re,ee){return ee+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.disposables.add(J.b.addTarget(this.rowsContainer)),this.scrollableElement=this.disposables.add(new D.b(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(T.f)(Me,function(re){return re.verticalScrollMode},L.verticalScrollMode),useShadows:Object(T.f)(Me,function(re){return re.useShadows},L.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),B.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(K.a)(this.rowsContainer,J.a.Change)(this.onTouchChange,this,this.disposables),Object(K.a)(this.scrollableElement.getDomNode(),"scroll")(function(re){return re.target.scrollTop=0},null,this.disposables),H.b.map(Object(K.a)(this.domNode,"dragover"),function(re){return Pe.toDragEvent(re)})(this.onDragOver,this,this.disposables),H.b.map(Object(K.a)(this.domNode,"drop"),function(re){return Pe.toDragEvent(re)})(this.onDrop,this,this.disposables),Object(K.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(K.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(T.f)(Me,function(re){return re.setRowLineHeight},L.setRowLineHeight),this.supportDynamicHeights=Object(T.f)(Me,function(re){return re.supportDynamicHeights},L.supportDynamicHeights),this.dnd=Object(T.f)(Me,function(re){return re.dnd},L.dnd),this.layout()}return Object.defineProperty(W.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),W.prototype.splice=function(B,ae,we){if(we===void 0&&(we=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(B,ae,we)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},W.prototype._splice=function(B,ae,we){var Me,Pe=this;we===void 0&&(we=[]);for(var Be=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Ke={start:B,end:B+ae},Fe=U.a.intersect(Be,Ke),re=Fe.start;re<Fe.end;re++)this.removeItemFromDOM(re);var ee={start:B+ae,end:this.items.length},ne=U.a.intersect(ee,Be),q=U.a.relativeComplement(ee,Be),le=we.map(function(ye){return{id:String(Pe.itemId++),element:ye,templateId:Pe.virtualDelegate.getTemplateId(ye),size:Pe.virtualDelegate.getHeight(ye),width:void 0,hasDynamicHeight:!!Pe.virtualDelegate.hasDynamicHeight&&Pe.virtualDelegate.hasDynamicHeight(ye),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:pe.a.None}}),Z;B===0&&ae>=this.items.length?(this.rangeMap=new m,this.rangeMap.splice(0,0,le),this.items=le,Z=[]):(this.rangeMap.splice(B,ae,le),Z=(Me=this.items).splice.apply(Me,E([B,ae],le)));for(var ve=we.length-ae,Ne=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Xe=h(ne,ve),de=U.a.intersect(Ne,Xe),re=de.start;re<de.end;re++)this.updateItemInDOM(this.items[re],re);for(var ge=U.a.relativeComplement(Xe,Ne),Ee=0,Te=ge;Ee<Te.length;Ee++)for(var Ce=Te[Ee],re=Ce.start;re<Ce.end;re++)this.removeItemFromDOM(re);for(var fe=q.map(function(ye){return h(ye,ve)}),$={start:B,end:B+we.length},S=E([$],fe).map(function(ye){return U.a.intersect(Ne,ye)}),z=this.getNextToLastElement(S),ce=0,se=S;ce<se.length;ce++)for(var Ce=se[ce],re=Ce.start;re<Ce.end;re++)this.insertItemInDOM(re,z);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),Z.map(function(ye){return ye.element})},W.prototype.eventuallyUpdateScrollDimensions=function(){var B=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=I.W(function(){B.scrollableElement.setScrollDimensions({scrollHeight:B.scrollHeight}),B.updateScrollWidth(),B.scrollableElementUpdateDisposable=null}))},W.prototype.eventuallyUpdateScrollWidth=function(){var B=this;if(!this.horizontalScrolling)return;this.scrollableElementWidthDelayer.trigger(function(){return B.updateScrollWidth()})},W.prototype.updateScrollWidth=function(){if(!this.horizontalScrolling)return;this.items.length===0&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var B=0,ae=0,we=this.items;ae<we.length;ae++){var Me=we[ae];typeof Me.width!="undefined"&&(B=Math.max(B,Me.width))}this.scrollWidth=B,this.scrollableElement.setScrollDimensions({scrollWidth:B+10})},W.prototype.rerender=function(){if(!this.supportDynamicHeights)return;for(var B=0,ae=this.items;B<ae.length;B++){var we=ae[B];we.lastDynamicHeightWidth=void 0}this._rerender(this.lastRenderTop,this.lastRenderHeight)},Object.defineProperty(W.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"renderHeight",{get:function(){var B=this.scrollableElement.getScrollDimensions();return B.height},enumerable:!0,configurable:!0}),W.prototype.element=function(B){return this.items[B].element},W.prototype.domElement=function(B){var ae=this.items[B].row;return ae&&ae.domNode},W.prototype.elementHeight=function(B){return this.items[B].size},W.prototype.elementTop=function(B){return this.rangeMap.positionAt(B)},W.prototype.indexAt=function(B){return this.rangeMap.indexAt(B)},W.prototype.indexAfter=function(B){return this.rangeMap.indexAfter(B)},W.prototype.layout=function(B,ae){var we={height:typeof B=="number"?B:I.A(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,we.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(we),typeof ae!="undefined"&&(this.renderWidth=ae,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof ae=="number"?ae:I.B(this.domNode)}))},W.prototype.render=function(B,ae,we,Me){for(var Pe=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Be=this.getRenderRange(B,ae),Ke=U.a.relativeComplement(Be,Pe),Fe=U.a.relativeComplement(Pe,Be),re=this.getNextToLastElement(Ke),ee=0,ne=Ke;ee<ne.length;ee++)for(var q=ne[ee],le=q.start;le<q.end;le++)this.insertItemInDOM(le,re);for(var Z=0,ve=Fe;Z<ve.length;Z++)for(var q=ve[Z],le=q.start;le<q.end;le++)this.removeItemFromDOM(le);this.rowsContainer.style.left="-"+we+"px",this.rowsContainer.style.top="-"+B+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(Me,this.renderWidth)+"px"),this.lastRenderTop=B,this.lastRenderHeight=ae},W.prototype.insertItemInDOM=function(B,ae){var we=this,Me=this.items[B];if(!Me.row){Me.row=this.cache.alloc(Me.templateId);var Pe=this.ariaProvider.getRole?this.ariaProvider.getRole(Me.element):"treeitem";Me.row.domNode.setAttribute("role",Pe);var Be=this.ariaProvider.isChecked?this.ariaProvider.isChecked(Me.element):void 0;typeof Be!="undefined"&&Me.row.domNode.setAttribute("aria-checked",String(Be))}Me.row.domNode.parentElement||(ae?this.rowsContainer.insertBefore(Me.row.domNode,ae):this.rowsContainer.appendChild(Me.row.domNode)),this.updateItemInDOM(Me,B);var Ke=this.renderers.get(Me.templateId);if(!Ke)throw new Error("No renderer found for template id "+Me.templateId);Ke&&Ke.renderElement(Me.element,B,Me.row.templateData,Me.size);var Fe=this.dnd.getDragURI(Me.element);if(Me.dragStartDisposable.dispose(),Me.row.domNode.draggable=!!Fe,Fe){var re=Object(K.a)(Me.row.domNode,"dragstart");Me.dragStartDisposable=re(function(ee){return we.onDragStart(Me.element,Fe,ee)})}this.horizontalScrolling&&(this.measureItemWidth(Me),this.eventuallyUpdateScrollWidth())},W.prototype.measureItemWidth=function(B){if(!B.row||!B.row.domNode)return;B.row.domNode.style.width=u.h?"-moz-fit-content":"fit-content",B.width=I.B(B.row.domNode);var ae=window.getComputedStyle(B.row.domNode);ae.paddingLeft&&(B.width+=parseFloat(ae.paddingLeft)),ae.paddingRight&&(B.width+=parseFloat(ae.paddingRight)),B.row.domNode.style.width=""},W.prototype.updateItemInDOM=function(B,ae){B.row.domNode.style.top=this.elementTop(ae)+"px",B.row.domNode.style.height=B.size+"px",this.setRowLineHeight&&(B.row.domNode.style.lineHeight=B.size+"px"),B.row.domNode.setAttribute("data-index",""+ae),B.row.domNode.setAttribute("data-last-element",ae===this.length-1?"true":"false"),B.row.domNode.setAttribute("aria-setsize",String(this.ariaProvider.getSetSize(B.element,ae,this.length))),B.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(B.element,ae))),B.row.domNode.setAttribute("id",this.getElementDomId(ae)),I.Y(B.row.domNode,"drop-target",B.dropTarget)},W.prototype.removeItemFromDOM=function(B){var ae=this.items[B];ae.dragStartDisposable.dispose();var we=this.renderers.get(ae.templateId);we&&we.disposeElement&&we.disposeElement(ae.element,B,ae.row.templateData,ae.size),this.cache.release(ae.row),ae.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},W.prototype.getScrollTop=function(){var B=this.scrollableElement.getScrollPosition();return B.scrollTop},W.prototype.setScrollTop=function(B){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:B})},Object.defineProperty(W.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(B){this.setScrollTop(B)},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseClick",{get:function(){var B=this;return H.b.map(Object(K.a)(this.domNode,"click"),function(ae){return B.toMouseEvent(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseDblClick",{get:function(){var B=this;return H.b.map(Object(K.a)(this.domNode,"dblclick"),function(ae){return B.toMouseEvent(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseMiddleClick",{get:function(){var B=this;return H.b.filter(H.b.map(Object(K.a)(this.domNode,"auxclick"),function(ae){return B.toMouseEvent(ae)}),function(ae){return ae.browserEvent.button===1})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseDown",{get:function(){var B=this;return H.b.map(Object(K.a)(this.domNode,"mousedown"),function(ae){return B.toMouseEvent(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onContextMenu",{get:function(){var B=this;return H.b.map(Object(K.a)(this.domNode,"contextmenu"),function(ae){return B.toMouseEvent(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onTouchStart",{get:function(){var B=this;return H.b.map(Object(K.a)(this.domNode,"touchstart"),function(ae){return B.toTouchEvent(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onTap",{get:function(){var B=this;return H.b.map(Object(K.a)(this.rowsContainer,J.a.Tap),function(ae){return B.toGestureEvent(ae)})},enumerable:!0,configurable:!0}),W.prototype.toMouseEvent=function(B){var ae=this.getItemIndexFromEventTarget(B.target||null),we=typeof ae=="undefined"?void 0:this.items[ae],Me=we&&we.element;return{browserEvent:B,index:ae,element:Me}},W.prototype.toTouchEvent=function(B){var ae=this.getItemIndexFromEventTarget(B.target||null),we=typeof ae=="undefined"?void 0:this.items[ae],Me=we&&we.element;return{browserEvent:B,index:ae,element:Me}},W.prototype.toGestureEvent=function(B){var ae=this.getItemIndexFromEventTarget(B.initialTarget||null),we=typeof ae=="undefined"?void 0:this.items[ae],Me=we&&we.element;return{browserEvent:B,index:ae,element:Me}},W.prototype.toDragEvent=function(B){var ae=this.getItemIndexFromEventTarget(B.target||null),we=typeof ae=="undefined"?void 0:this.items[ae],Me=we&&we.element;return{browserEvent:B,index:ae,element:Me}},W.prototype.onScroll=function(B){try{this.render(B.scrollTop,B.height,B.scrollLeft,B.scrollWidth),this.supportDynamicHeights&&this._rerender(B.scrollTop,B.height)}catch(ae){throw console.error("Got bad scroll event:",B),ae}},W.prototype.onTouchChange=function(B){B.preventDefault(),B.stopPropagation(),this.scrollTop-=B.translationY},W.prototype.onDragStart=function(B,ae,we){if(!we.dataTransfer)return;var Me=this.dnd.getDragElements(B);if(we.dataTransfer.effectAllowed="copyMove",we.dataTransfer.setData(d.a.RESOURCES,JSON.stringify([ae])),we.dataTransfer.setDragImage){var Pe=void 0;this.dnd.getDragLabel&&(Pe=this.dnd.getDragLabel(Me,we)),typeof Pe=="undefined"&&(Pe=String(Me.length));var Be=I.a(".monaco-drag-image");Be.textContent=Pe,document.body.appendChild(Be),we.dataTransfer.setDragImage(Be,-10,-10),setTimeout(function(){return document.body.removeChild(Be)},0)}this.currentDragData=new R(Me),d.c.CurrentDragAndDropData=new P(Me),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,we)},W.prototype.onDragOver=function(B){var ae=this;if(B.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),d.c.CurrentDragAndDropData&&d.c.CurrentDragAndDropData.getData()==="vscode-ui")return!1;if(this.setupDragAndDropScrollTopAnimation(B.browserEvent),!B.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(d.c.CurrentDragAndDropData)this.currentDragData=d.c.CurrentDragAndDropData;else{if(!B.browserEvent.dataTransfer.types)return!1;this.currentDragData=new x}var we=this.dnd.onDragOver(this.currentDragData,B.element,B.index,B.browserEvent);if(this.canDrop=typeof we=="boolean"?we:we.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;B.browserEvent.dataTransfer.dropEffect=typeof we!="boolean"&&we.effect===0?"copy":"move";var Me;if(typeof we!="boolean"&&we.feedback?Me=we.feedback:typeof B.index=="undefined"?Me=[-1]:Me=[B.index],Me=Object(p.e)(Me).filter(function(re){return re>=-1&&re<ae.length}).sort(function(re,ee){return re-ee}),Me=Me[0]===-1?[-1]:Me,Q(this.currentDragFeedback,Me))return!0;if(this.currentDragFeedback=Me,this.currentDragFeedbackDisposable.dispose(),Me[0]===-1)I.f(this.domNode,"drop-target"),I.f(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(pe.h)(function(){I.P(ae.domNode,"drop-target"),I.P(ae.rowsContainer,"drop-target")});else{for(var Pe=0,Be=Me;Pe<Be.length;Pe++){var Ke=Be[Pe],Fe=this.items[Ke];Fe.dropTarget=!0,Fe.row&&Fe.row.domNode&&I.f(Fe.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(pe.h)(function(){for(var re=0,ee=Me;re<ee.length;re++){var ne=ee[re],q=ae.items[ne];q.dropTarget=!1,q.row&&q.row.domNode&&I.P(q.row.domNode,"drop-target")}})}return!0},W.prototype.onDragLeave=function(){var B=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(c.g)(function(){return B.clearDragOverFeedback()},100)},W.prototype.onDrop=function(B){if(!this.canDrop)return;var ae=this.currentDragData;if(this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,d.c.CurrentDragAndDropData=void 0,!ae||!B.browserEvent.dataTransfer)return;B.browserEvent.preventDefault(),ae.update(B.browserEvent.dataTransfer),this.dnd.drop(ae,B.element,B.index,B.browserEvent)},W.prototype.onDragEnd=function(B){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,d.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(B)},W.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=pe.a.None},W.prototype.setupDragAndDropScrollTopAnimation=function(B){var ae=this;if(!this.dragOverAnimationDisposable){var we=I.F(this.domNode).top;this.dragOverAnimationDisposable=I.p(this.animateDragAndDropScrollTop.bind(this,we))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(c.g)(function(){ae.dragOverAnimationDisposable&&(ae.dragOverAnimationDisposable.dispose(),ae.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=B.pageY},W.prototype.animateDragAndDropScrollTop=function(B){if(this.dragOverMouseY===void 0)return;var ae=this.dragOverMouseY-B,we=this.renderHeight-35;ae<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(ae-35))):ae>we&&(this.scrollTop+=Math.min(14,Math.floor(.3*(ae-we))))},W.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},W.prototype.getItemIndexFromEventTarget=function(B){for(var ae=B;ae instanceof HTMLElement&&ae!==this.rowsContainer;){var we=ae.getAttribute("data-index");if(we){var Me=Number(we);if(!isNaN(Me))return Me}ae=ae.parentElement}return},W.prototype.getRenderRange=function(B,ae){return{start:this.rangeMap.indexAt(B),end:this.rangeMap.indexAfter(B+ae-1)}},W.prototype._rerender=function(B,ae){var we=this.getRenderRange(B,ae),Me,Pe;B===this.elementTop(we.start)?(Me=we.start,Pe=0):we.end-we.start>1&&(Me=we.start+1,Pe=this.elementTop(Me)-B);for(var Be=0;;){for(var Ke=this.getRenderRange(B,ae),Fe=!1,re=Ke.start;re<Ke.end;re++){var ee=this.probeDynamicHeight(re);ee!==0&&this.rangeMap.splice(re,1,[this.items[re]]),Be+=ee,Fe=Fe||ee!==0}if(!Fe){Be!==0&&this.eventuallyUpdateScrollDimensions();for(var ne=U.a.relativeComplement(we,Ke),q=0,le=ne;q<le.length;q++)for(var Z=le[q],re=Z.start;re<Z.end;re++)this.items[re].row&&this.removeItemFromDOM(re);for(var ve=U.a.relativeComplement(Ke,we),Ne=0,Xe=ve;Ne<Xe.length;Ne++)for(var Z=Xe[Ne],re=Z.start;re<Z.end;re++){var de=re+1,ge=de<this.items.length?this.items[de].row:null,Ee=ge?ge.domNode:null;this.insertItemInDOM(re,Ee)}for(var re=Ke.start;re<Ke.end;re++)this.items[re].row&&this.updateItemInDOM(this.items[re],re);typeof Me=="number"&&(this.scrollTop=this.elementTop(Me)-Pe),this._onDidChangeContentHeight.fire(this.contentHeight);return}}},W.prototype.probeDynamicHeight=function(B){var ae=this.items[B];if(!ae.hasDynamicHeight||ae.lastDynamicHeightWidth===this.renderWidth)return 0;var we=ae.size,Me=this.cache.alloc(ae.templateId);Me.domNode.style.height="",this.rowsContainer.appendChild(Me.domNode);var Pe=this.renderers.get(ae.templateId);return Pe&&(Pe.renderElement(ae.element,B,Me.templateData,void 0),Pe.disposeElement&&Pe.disposeElement(ae.element,B,Me.templateData,void 0)),ae.size=Me.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(ae.element,ae.size),ae.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(Me.domNode),this.cache.release(Me),ae.size-we},W.prototype.getNextToLastElement=function(B){var ae=B[B.length-1];if(!ae)return null;var we=this.items[ae.end];return we&&we.row?we.row.domNode:null},W.prototype.getElementDomId=function(B){return this.domId+"_"+B},W.prototype.dispose=function(){if(this.items){for(var B=0,ae=this.items;B<ae.length;B++){var we=ae[B];if(we.row){var Me=this.renderers.get(we.row.templateId);Me&&Me.disposeTemplate(we.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(pe.f)(this.disposables)},W.InstanceCount=0,f([v.a],W.prototype,"onMouseClick",null),f([v.a],W.prototype,"onMouseDblClick",null),f([v.a],W.prototype,"onMouseMiddleClick",null),f([v.a],W.prototype,"onMouseDown",null),f([v.a],W.prototype,"onContextMenu",null),f([v.a],W.prototype,"onTouchStart",null),f([v.a],W.prototype,"onTap",null),W}()},fpMC:function(Mt,F,e){"use strict";e.d(F,"g",function(){return I}),e.d(F,"f",function(){return x}),e.d(F,"b",function(){return Q}),e.d(F,"c",function(){return V}),e.d(F,"a",function(){return q}),e.d(F,"d",function(){return le}),e.d(F,"e",function(){return Te});var T=e("QDVR"),pe=e("N0LK");function J(){for(var $=[],S=0;S<arguments.length;S++)$[S]=arguments[S];return function(z,ce){for(var se=0,ye=$.length;se<ye;se++){var Re=$[se](z,ce);if(Re)return Re}return null}}var I=H.bind(void 0,!0);function H($,S,z){if(!z||z.length<S.length)return null;var ce;return $?ce=pe.O(z,S):ce=z.indexOf(S)===0,ce?S.length>0?[{start:0,end:S.length}]:[]:null}function K($,S){var z=S.toLowerCase().indexOf($.toLowerCase());return z===-1?null:[{start:z,end:z+$.length}]}function D($,S){return U($.toLowerCase(),S.toLowerCase(),0,0)}function U($,S,z,ce){if(z===$.length)return[];if(ce===S.length)return null;if($[z]===S[ce]){var se=null;return(se=U($,S,z+1,ce+1))?w({start:ce,end:ce+1},se):null}return U($,S,z,ce+1)}function j($){return 97<=$&&$<=122}function h($){return 65<=$&&$<=90}function b($){return 48<=$&&$<=57}function O($){return $===32||$===9||$===10||$===13}var m=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function($){return m.add($.charCodeAt(0))});function C($){return j($)||h($)||b($)}function w($,S){return S.length===0?S=[$]:$.end===S[0].start?S[0].start=$.start:S.unshift($),S}function v($,S){for(var z=S;z<$.length;z++){var ce=$.charCodeAt(z);if(h(ce)||b(ce)||z>0&&!C($.charCodeAt(z-1)))return z}return $.length}function p($,S,z,ce){if(z===$.length)return[];if(ce===S.length)return null;if($[z]!==S[ce].toLowerCase())return null;var se=null,ye=ce+1;for(se=p($,S,z+1,ce+1);!se&&(ye=v(S,ye))<S.length;)se=p($,S,z+1,ye),ye++;return se===null?null:w({start:ce,end:ce+1},se)}function d($){for(var S=0,z=0,ce=0,se=0,ye=0,Re=0;Re<$.length;Re++)ye=$.charCodeAt(Re),h(ye)&&S++,j(ye)&&z++,C(ye)&&ce++,b(ye)&&se++;var Le=S/$.length,Ue=z/$.length,Je=ce/$.length,nt=se/$.length;return{upperPercent:Le,lowerPercent:Ue,alphaPercent:Je,numericPercent:nt}}function c($){var S=$.upperPercent,z=$.lowerPercent;return z===0&&S>.6}function u($){var S=$.upperPercent,z=$.lowerPercent,ce=$.alphaPercent,se=$.numericPercent;return z>.2&&S<.8&&ce>.6&&se<.2}function f($){for(var S=0,z=0,ce=0,se=0,ye=0;ye<$.length;ye++)ce=$.charCodeAt(ye),h(ce)&&S++,j(ce)&&z++,O(ce)&&se++;return(S===0||z===0)&&se===0?$.length<=30:S<=5}function E($,S){if(!S)return null;if(S=S.trim(),S.length===0)return null;if(!f($))return null;if(S.length>60)return null;var z=d(S);if(!u(z)){if(!c(z))return null;S=S.toLowerCase()}var ce=null,se=0;for($=$.toLowerCase();se<S.length&&(ce=p($,S,0,se))===null;)se=v(S,se+1);return ce}var L=J(I,E,K),R=J(I,E,D),P=new T.a(1e4);function x($,S,z){if(z===void 0&&(z=!1),typeof $!="string"||typeof S!="string")return null;var ce=P.get($);ce||(ce=new RegExp(pe.k($),"i"),P.set($,ce));var se=ce.exec(S);return se?[{start:se.index,end:se.index+se[0].length}]:z?R($,S):L($,S)}function Q($,S,z,ce,se,ye){var Re=le($,S,0,ce,se,0,!0);if(Re)return Re;for(var Le=0,Ue=0,Je=ye,nt=0;nt<S.length&&nt<W;++nt){var vt=se.indexOf(S.charAt(nt),Je);if(vt>=0)Ue+=1,Le+=Math.pow(2,vt),Je=vt+1;else if(Le!==0)break}return[Ue,Le,ye]}function V($){if(typeof $=="undefined")return[];for(var S=$[1].toString(2),z=$[2],ce=[],se=z;se<W;se++)if(S[S.length-(se+1)]==="1"){var ye=ce[ce.length-1];ye&&ye.end===se?ye.end=se+1:ce.push({start:se,end:se+1})}return ce}var W=128;function B(){for(var $=[],S=[0],z=1;z<=W;z++)S.push(-z);for(var z=0;z<=W;z++){var ce=S.slice(0);ce[0]=-z,$.push(ce)}return $}var ae=B(),we=B(),Me=B(),Pe=!1;function Be($,S,z,ce,se){function ye(Ue,Je,nt){for(nt===void 0&&(nt=" ");Ue.length<Je;)Ue=nt+Ue;return Ue}for(var Re=" | |"+ce.split("").map(function(Ue){return ye(Ue,3)}).join("|")+`
`,Le=0;Le<=z;Le++)Le===0?Re+=" |":Re+=S[Le-1]+"|",Re+=$[Le].slice(0,se+1).map(function(Ue){return ye(Ue.toString(),3)}).join("|")+`
`;return Re}function Ke($,S,z,ce){$=$.substr(S),z=z.substr(ce),console.log(Be(ae,$,$.length,z,z.length)),console.log(Be(Me,$,$.length,z,z.length)),console.log(Be(we,$,$.length,z,z.length))}function Fe($,S){if(S<0||S>=$.length)return!1;var z=$.charCodeAt(S);switch(z){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function re($,S){if(S<0||S>=$.length)return!1;var z=$.charCodeAt(S);switch(z){case 32:case 9:return!0;default:return!1}}function ee($,S,z){return S[$]!==z[$]}function ne($,S,z,ce,se,ye){for(;S<z&&se<ye;)$[S]===ce[se]&&(S+=1),se+=1;return S===z}var q;(function($){$.Default=Object.freeze([-100,0,0]);function S(z){return!z||z[0]===-100&&z[1]===0&&z[2]===0}$.isDefault=S})(q||(q={}));function le($,S,z,ce,se,ye,Re){var Le=$.length>W?W:$.length,Ue=ce.length>W?W:ce.length;if(z>=Le||ye>=Ue||Le-z>Ue-ye)return;if(!ne(S,z,Le,se,ye,Ue))return;var Je=1,nt=1,vt=z,Rt=ye;for(Je=1,vt=z;vt<Le;Je++,vt++)for(nt=1,Rt=ye;Rt<Ue;nt++,Rt++){var Ot=Z($,S,vt,z,ce,se,Rt);we[Je][nt]=Ot;var Kt=ae[Je-1][nt-1]+(Ot>1?1:Ot),ao=ae[Je-1][nt]+-1,lo=ae[Je][nt-1]+-1;lo>=ao?lo>Kt?(ae[Je][nt]=lo,Me[Je][nt]=4):lo===Kt?(ae[Je][nt]=lo,Me[Je][nt]=4|2):(ae[Je][nt]=Kt,Me[Je][nt]=2):ao>Kt?(ae[Je][nt]=ao,Me[Je][nt]=1):ao===Kt?(ae[Je][nt]=ao,Me[Je][nt]=1|2):(ae[Je][nt]=Kt,Me[Je][nt]=2)}return Pe&&Ke($,z,ce,ye),ve=0,Xe=-100,de=ye,ge=Re,Ee(Je-1,nt-1,Le===Ue?1:0,0,!1),ve===0?void 0:[Xe,Ne,ye]}function Z($,S,z,ce,se,ye,Re){return S[z]!==ye[Re]?-1:Re===z-ce||ee(Re,se,ye)&&(Re===0||!ee(Re-1,se,ye))?$[z]===se[Re]?7:5:Fe(ye,Re)&&(Re===0||!Fe(ye,Re-1))||(Fe(ye,Re-1)||re(ye,Re-1))?5:1}var ve=0,Ne=0,Xe=0,de=0,ge=!1;function Ee($,S,z,ce,se){if(ve>=10||z<-25)return;for(var ye=0;$>0&&S>0;){var Re=we[$][S],Le=Me[$][S];if(Le===4)S-=1,se?z-=5:ce!==0&&(z-=1),se=!1,ye=0;else if(Le&2)if(Le&4&&Ee($,S-1,ce!==0?z-1:z,ce,se),z+=Re,$-=1,S-=1,se=!0,ce+=Math.pow(2,S+de),Re===1){if(ye+=1,$===0&&!ge)return}else z+=1+ye*(Re-1),ye=0;else return}z-=S>=3?9:S*3,ve+=1,z>Xe&&(Xe=z,Ne=ce)}function Te($,S,z,ce,se,ye,Re){return Ce($,S,z,ce,se,ye,!0,Re)}function Ce($,S,z,ce,se,ye,Re,Le){var Ue=le($,S,z,ce,se,ye,Le);if(Ue&&!Re)return Ue;if($.length>=3)for(var Je=Math.min(7,$.length-1),nt=z+1;nt<Je;nt++){var vt=fe($,nt);if(vt){var Rt=le(vt,vt.toLowerCase(),z,ce,se,ye,Le);Rt&&(Rt[0]-=3,(!Ue||Rt[0]>Ue[0])&&(Ue=Rt))}}return Ue}function fe($,S){if(S+1>=$.length)return;var z=$[S],ce=$[S+1];return z===ce?void 0:$.slice(0,S)+ce+z+$.slice(S+2)}},gCVg:function(Mt,F,e){"use strict";e.d(F,"a",function(){return I});var T=e("cGHE"),pe=e("aokT"),J=function(){var H=function(K,D){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,j){U.__proto__=j}||function(U,j){for(var h in j)j.hasOwnProperty(h)&&(U[h]=j[h])},H(K,D)};return function(K,D){H(K,D);function U(){this.constructor=K}K.prototype=D===null?Object.create(D):(U.prototype=D.prototype,new U)}}(),I=function(H){J(K,H);function K(D,U,j,h){var b=H.call(this,D,U,j,h)||this;return b.selectionStartLineNumber=D,b.selectionStartColumn=U,b.positionLineNumber=j,b.positionColumn=h,b}return K.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},K.prototype.equalsSelection=function(D){return K.selectionsEqual(this,D)},K.selectionsEqual=function(D,U){return D.selectionStartLineNumber===U.selectionStartLineNumber&&D.selectionStartColumn===U.selectionStartColumn&&D.positionLineNumber===U.positionLineNumber&&D.positionColumn===U.positionColumn},K.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},K.prototype.setEndPosition=function(D,U){return this.getDirection()===0?new K(this.startLineNumber,this.startColumn,D,U):new K(D,U,this.startLineNumber,this.startColumn)},K.prototype.getPosition=function(){return new T.a(this.positionLineNumber,this.positionColumn)},K.prototype.setStartPosition=function(D,U){return this.getDirection()===0?new K(D,U,this.endLineNumber,this.endColumn):new K(this.endLineNumber,this.endColumn,D,U)},K.fromPositions=function(D,U){return U===void 0&&(U=D),new K(D.lineNumber,D.column,U.lineNumber,U.column)},K.liftSelection=function(D){return new K(D.selectionStartLineNumber,D.selectionStartColumn,D.positionLineNumber,D.positionColumn)},K.selectionsArrEqual=function(D,U){if(D&&!U||!D&&U)return!1;if(!D&&!U)return!0;if(D.length!==U.length)return!1;for(var j=0,h=D.length;j<h;j++)if(!this.selectionsEqual(D[j],U[j]))return!1;return!0},K.isISelection=function(D){return D&&typeof D.selectionStartLineNumber=="number"&&typeof D.selectionStartColumn=="number"&&typeof D.positionLineNumber=="number"&&typeof D.positionColumn=="number"},K.createWithDirection=function(D,U,j,h,b){return b===0?new K(D,U,j,h):new K(j,h,D,U)},K}(pe.a)},gJAb:function(Mt,F,e){"use strict";e.r(F);var T=e("EzsQ"),pe=e.n(T),J=e("zrhQ"),I=e("pmY6"),H=e("N0LK"),K=e("sswD"),D=e("twdY"),U=e("i/Ef"),j=e("WBhO"),h=e("scqD"),b=e("MD5Z"),O=e("t9D7"),m=e("A9l+"),C=function(){var E=function(L,R){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,x){P.__proto__=x}||function(P,x){for(var Q in x)x.hasOwnProperty(Q)&&(P[Q]=x[Q])},E(L,R)};return function(L,R){E(L,R);function P(){this.constructor=L}L.prototype=R===null?Object.create(R):(P.prototype=R.prototype,new P)}}(),w=function(E,L,R,P){var x=arguments.length,Q=x<3?L:P===null?P=Object.getOwnPropertyDescriptor(L,R):P,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Q=Reflect.decorate(E,L,R,P);else for(var W=E.length-1;W>=0;W--)(V=E[W])&&(Q=(x<3?V(Q):x>3?V(L,R,Q):V(L,R))||Q);return x>3&&Q&&Object.defineProperty(L,R,Q),Q},v=function(E,L){return function(R,P){L(R,P,E)}},p=function(E){C(L,E);function L(R,P,x){var Q=E.call(this)||this;return Q._editor=R,Q._modeService=x,Q._widget=null,Q._register(Q._editor.onDidChangeModel(function(V){return Q.stop()})),Q._register(Q._editor.onDidChangeModelLanguage(function(V){return Q.stop()})),Q._register(D.B.onDidChange(function(V){return Q.stop()})),Q}return L.get=function(R){return R.getContribution(L.ID)},L.prototype.dispose=function(){this.stop(),E.prototype.dispose.call(this)},L.prototype.launch=function(){if(this._widget)return;if(!this._editor.hasModel())return;this._widget=new f(this._editor,this._modeService)},L.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},L.ID="editor.contrib.inspectTokens",L=w([v(1,h.a),v(2,j.a)],L),L}(I.a),d=function(E){C(L,E);function L(){return E.call(this,{id:"editor.action.inspectTokens",label:m.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}return L.prototype.run=function(R,P){var x=p.get(P);x&&x.launch()},L}(K.b);function c(E){for(var L="",R=0,P=E.length;R<P;R++){var x=E.charCodeAt(R);switch(x){case 9:L+="&rarr;";break;case 32:L+="&middot;";break;case 60:L+="&lt;";break;case 62:L+="&gt;";break;case 38:L+="&amp;";break;default:L+=String.fromCharCode(x)}}return L}function u(E){var L=D.B.get(E.language);return L||{getInitialState:function(){return U.c},tokenize:function(R,P,x){return Object(U.d)(E.language,R,P,x)},tokenize2:function(R,P,x){return Object(U.e)(E.id,R,P,x)}}}var f=function(E){C(L,E);function L(R,P){var x=E.call(this)||this;return x.allowEditorOverflow=!0,x._editor=R,x._modeService=P,x._model=x._editor.getModel(),x._domNode=document.createElement("div"),x._domNode.className="tokens-inspect-widget",x._tokenizationSupport=u(x._model.getLanguageIdentifier()),x._compute(x._editor.getPosition()),x._register(x._editor.onDidChangeCursorPosition(function(Q){return x._compute(x._editor.getPosition())})),x._editor.addContentWidget(x),x}return L.prototype.dispose=function(){this._editor.removeContentWidget(this),E.prototype.dispose.call(this)},L.prototype.getId=function(){return L._ID},L.prototype._compute=function(R){for(var P=this._getTokensAtLine(R.lineNumber),x=0,Q=P.tokens1.length-1;Q>=0;Q--){var V=P.tokens1[Q];if(R.column-1>=V.offset){x=Q;break}}for(var W=0,Q=P.tokens2.length>>>1;Q>=0;Q--)if(R.column-1>=P.tokens2[Q<<1]){W=Q;break}var B="",ae=this._model.getLineContent(R.lineNumber),we="";if(x<P.tokens1.length){var Me=P.tokens1[x].offset,Pe=x+1<P.tokens1.length?P.tokens1[x+1].offset:ae.length;we=ae.substring(Me,Pe)}B+='<h2 class="tm-token">'+c(we)+'<span class="tm-token-length">('+we.length+" "+(we.length===1?"char":"chars")+")</span></h2>",B+='<hr class="tokens-inspect-separator" style="clear:both"/>';var Be=this._decodeMetadata(P.tokens2[(W<<1)+1]);B+='<table class="tm-metadata-table"><tbody>',B+='<tr><td class="tm-metadata-key">language</td><td class="tm-metadata-value">'+Object(H.o)(Be.languageIdentifier.language)+"</td>",B+='<tr><td class="tm-metadata-key">token type</td><td class="tm-metadata-value">'+this._tokenTypeToString(Be.tokenType)+"</td>",B+='<tr><td class="tm-metadata-key">font style</td><td class="tm-metadata-value">'+this._fontStyleToString(Be.fontStyle)+"</td>",B+='<tr><td class="tm-metadata-key">foreground</td><td class="tm-metadata-value">'+J.a.Format.CSS.formatHex(Be.foreground)+"</td>",B+='<tr><td class="tm-metadata-key">background</td><td class="tm-metadata-value">'+J.a.Format.CSS.formatHex(Be.background)+"</td>",B+="</tbody></table>",B+='<hr class="tokens-inspect-separator"/>',x<P.tokens1.length&&(B+='<span class="tm-token-type">'+Object(H.o)(P.tokens1[x].type)+"</span>"),this._domNode.innerHTML=B,this._editor.layoutContentWidget(this)},L.prototype._decodeMetadata=function(R){var P=D.B.getColorMap(),x=D.A.getLanguageId(R),Q=D.A.getTokenType(R),V=D.A.getFontStyle(R),W=D.A.getForeground(R),B=D.A.getBackground(R);return{languageIdentifier:this._modeService.getLanguageIdentifier(x),tokenType:Q,fontStyle:V,foreground:P[W],background:P[B]}},L.prototype._tokenTypeToString=function(R){switch(R){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},L.prototype._fontStyleToString=function(R){var P="";return R&1&&(P+="italic "),R&2&&(P+="bold "),R&4&&(P+="underline "),P.length===0&&(P="---"),P},L.prototype._getTokensAtLine=function(R){var P=this._getStateBeforeLine(R),x=this._tokenizationSupport.tokenize(this._model.getLineContent(R),P,0),Q=this._tokenizationSupport.tokenize2(this._model.getLineContent(R),P,0);return{startState:P,tokens1:x.tokens,tokens2:Q.tokens,endState:x.endState}},L.prototype._getStateBeforeLine=function(R){for(var P=this._tokenizationSupport.getInitialState(),x=1;x<R;x++){var Q=this._tokenizationSupport.tokenize(this._model.getLineContent(x),P,0);P=Q.endState}return P},L.prototype.getDomNode=function(){return this._domNode},L.prototype.getPosition=function(){return{position:this._editor.getPosition(),preference:[2,1]}},L._ID="editor.contrib.inspectTokensWidget",L}(I.a);Object(K.h)(p.ID,p),Object(K.f)(d),Object(O.e)(function(E,L){var R=E.getColor(b.B);if(R){var P=E.type===O.b?2:1;L.addRule(".monaco-editor .tokens-inspect-widget { border: "+P+"px solid "+R+"; }"),L.addRule(".monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: "+R+"; }")}var x=E.getColor(b.A);x&&L.addRule(".monaco-editor .tokens-inspect-widget { background-color: "+x+"; }");var Q=E.getColor(b.C);Q&&L.addRule(".monaco-editor .tokens-inspect-widget { color: "+Q+"; }")})},gqHg:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return e.e(21).then(e.bind(null,"fhwZ"))}}),Object(T.a)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return e.e(21).then(e.bind(null,"fhwZ"))}})},gslv:function(Mt,F,e){"use strict";e.d(F,"c",function(){return j}),e.d(F,"e",function(){return b}),e.d(F,"b",function(){return O}),e.d(F,"d",function(){return m}),e.d(F,"f",function(){return C}),e.d(F,"g",function(){return w}),e.d(F,"h",function(){return p}),e.d(F,"a",function(){return d});var T=e("PTeM"),pe=e("MrjW"),J=e("bY76"),I=e("N0LK"),H=e("tYmi"),K=e("MNsG"),D=function(){for(var c=0,u=0,f=arguments.length;u<f;u++)c+=arguments[u].length;for(var E=Array(c),L=0,u=0;u<f;u++)for(var R=arguments[u],P=0,x=R.length;P<x;P++,L++)E[L]=R[P];return E};function U(c){return c&&c.scheme===H.b.file?!K.d:!0}function j(c){return O(c)||c.authority}function h(c,u){return c===u||Object(I.n)(c,u)}function b(c,u,f){if(f===void 0&&(f=U(c)),c===u)return!0;if(!c||!u)return!1;if(c.scheme!==u.scheme||!h(c.authority,u.authority))return!1;var E=c.path||"/",L=u.path||"/";return E===L||f&&Object(I.n)(E||"/",L||"/")}function O(c){return pe.posix.basename(c.path)}function m(c){if(c.path.length===0)return c;if(c.scheme===H.b.file)return J.a.file(pe.dirname(v(c)));var u=pe.posix.dirname(c.path);return c.authority&&u.length&&u.charCodeAt(0)!==47&&(console.error('dirname("'+c.toString+")) resulted in a relative path"),u="/"),c.with({path:u})}function C(c){for(var u,f=[],E=1;E<arguments.length;E++)f[E-1]=arguments[E];var L;return c.scheme===H.b.file?L=J.a.file(pe.join.apply(pe,D([v(c)],f))).path:L=(u=pe.posix).join.apply(u,D([c.path||"/"],f)),c.with({path:L})}function w(c){if(!c.path.length)return c;var u;return c.scheme===H.b.file?u=J.a.file(pe.normalize(v(c))).path:u=pe.posix.normalize(c.path),c.with({path:u})}function v(c){var u,f=c.path;return c.authority&&f.length>1&&c.scheme===H.b.file?u="//"+c.authority+f:K.h&&f.charCodeAt(0)===47&&T.b(f.charCodeAt(1))&&f.charCodeAt(2)===58?u=f.substr(1):u=f,K.h&&(u=u.replace(/\//g,"\\")),u}function p(c,u,f){if(f===void 0&&(f=U(c)),c.scheme!==u.scheme||!h(c.authority,u.authority))return;if(c.scheme===H.b.file){var E=pe.relative(c.path,u.path);return K.h?T.c(E):E}var L=c.path||"/",R=u.path||"/";if(f){for(var P=0,x=Math.min(L.length,R.length);P<x&&!(L.charCodeAt(P)!==R.charCodeAt(P)&&L.charAt(P).toLowerCase()!==R.charAt(P).toLowerCase());P++);L=R.substr(0,P)+L.substr(P)}return pe.posix.relative(L,R)}var d;(function(c){c.META_DATA_LABEL="label",c.META_DATA_DESCRIPTION="description",c.META_DATA_SIZE="size",c.META_DATA_MIME="mime";function u(f){var E=new Map,L=f.path.substring(f.path.indexOf(";")+1,f.path.lastIndexOf(";"));L.split(";").forEach(function(P){var x=P.split(":"),Q=x[0],V=x[1];Q&&V&&E.set(Q,V)});var R=f.path.substring(0,f.path.indexOf(";"));return R&&E.set(c.META_DATA_MIME,R),E}c.parseMetaData=u})(d||(d={}))},hFdI:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return e.e(306).then(e.bind(null,"tpLM"))}})},hHjc:function(Mt,F,e){},hJVp:function(Mt,F,e){"use strict";e.d(F,"a",function(){return p}),e.d(F,"e",function(){return d}),e.d(F,"f",function(){return c}),e.d(F,"d",function(){return u}),e.d(F,"b",function(){return f}),e.d(F,"c",function(){return L});var T=e("6OMU"),pe=e("JQT/"),J=e("/cxE"),I=e("pmY6"),H=e("bY76"),K=e("vATl"),D=e("sswD"),U=e("aokT"),j=e("gCVg"),h=e("twdY"),b=e("G2kB"),O=e("nlbu"),m=function(){var P=function(x,Q){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,W){V.__proto__=W}||function(V,W){for(var B in W)W.hasOwnProperty(B)&&(V[B]=W[B])},P(x,Q)};return function(x,Q){P(x,Q);function V(){this.constructor=x}x.prototype=Q===null?Object.create(Q):(V.prototype=Q.prototype,new V)}}(),C=function(P,x,Q,V){function W(B){return B instanceof Q?B:new Q(function(ae){ae(B)})}return new(Q||(Q=Promise))(function(B,ae){function we(Be){try{Pe(V.next(Be))}catch(Ke){ae(Ke)}}function Me(Be){try{Pe(V.throw(Be))}catch(Ke){ae(Ke)}}function Pe(Be){Be.done?B(Be.value):W(Be.value).then(we,Me)}Pe((V=V.apply(P,x||[])).next())})},w=function(P,x){var Q={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]},V,W,B,ae;return ae={next:we(0),throw:we(1),return:we(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function we(Pe){return function(Be){return Me([Pe,Be])}}function Me(Pe){if(V)throw new TypeError("Generator is already executing.");for(;Q;)try{if(V=1,W&&(B=Pe[0]&2?W.return:Pe[0]?W.throw||((B=W.return)&&B.call(W),0):W.next)&&!(B=B.call(W,Pe[1])).done)return B;(W=0,B)&&(Pe=[Pe[0]&2,B.value]);switch(Pe[0]){case 0:case 1:B=Pe;break;case 4:return Q.label++,{value:Pe[1],done:!1};case 5:Q.label++,W=Pe[1],Pe=[0];continue;case 7:Pe=Q.ops.pop(),Q.trys.pop();continue;default:if(!(B=Q.trys,B=B.length>0&&B[B.length-1])&&(Pe[0]===6||Pe[0]===2)){Q=0;continue}if(Pe[0]===3&&(!B||Pe[1]>B[0]&&Pe[1]<B[3])){Q.label=Pe[1];break}if(Pe[0]===6&&Q.label<B[1]){Q.label=B[1],B=Pe;break}if(B&&Q.label<B[2]){Q.label=B[2],Q.ops.push(Pe);break}B[2]&&Q.ops.pop(),Q.trys.pop();continue}Pe=x.call(P,Q)}catch(Be){Pe=[6,Be],W=0}finally{V=B=0}if(Pe[0]&5)throw Pe[1];return{value:Pe[0]?Pe[1]:void 0,done:!0}}},v=function(){for(var P=0,x=0,Q=arguments.length;x<Q;x++)P+=arguments[x].length;for(var V=Array(P),W=0,x=0;x<Q;x++)for(var B=arguments[x],ae=0,we=B.length;ae<we;ae++,W++)V[W]=B[ae];return V},p="editor.action.codeAction",d="editor.action.refactor",c="editor.action.sourceAction",u="editor.action.organizeImports",f="editor.action.fixAll",E=function(P){m(x,P);function x(Q,V){var W=P.call(this)||this;return W._register(V),W.allActions=Object(T.r)(v(Q),x.codeActionsComparator),W.validActions=W.allActions.filter(function(B){return!B.disabled}),W}return x.codeActionsComparator=function(Q,V){return Object(T.q)(Q.diagnostics)?Object(T.q)(V.diagnostics)?Q.diagnostics[0].message.localeCompare(V.diagnostics[0].message):-1:Object(T.q)(V.diagnostics)?1:0},Object.defineProperty(x.prototype,"hasAutoFix",{get:function(){return this.validActions.some(function(Q){return!!Q.kind&&O.b.QuickFix.contains(new O.b(Q.kind))&&!!Q.isPreferred})},enumerable:!0,configurable:!0}),x}(I.a);function L(P,x,Q,V){var W=this,B,ae=Q.filter||{},we={only:(B=ae.include)===null||B===void 0?void 0:B.value,trigger:Q.type},Me=new K.d(P,V),Pe=R(P,ae),Be=new I.b,Ke=Pe.map(function(re){return C(W,void 0,void 0,function(){var ee,ne;return w(this,function(q){switch(q.label){case 0:return q.trys.push([0,2,,3]),[4,re.provideCodeActions(P,x,we,Me.token)];case 1:return ee=q.sent(),Me.token.isCancellationRequested||!ee?[2,[]]:(Be.add(ee),[2,ee.actions.filter(function(le){return le&&Object(O.c)(ae,le)})]);case 2:if(ne=q.sent(),Object(J.d)(ne))throw ne;return Object(J.f)(ne),[2,[]];case 3:return[2]}})})}),Fe=h.a.onDidChange(function(){var re=h.a.all(P);Object(T.g)(re,Pe)||Me.cancel()});return Promise.all(Ke).then(T.m).then(function(re){return new E(re,Be)}).finally(function(){Fe.dispose(),Me.dispose()})}function R(P,x){return h.a.all(P).filter(function(Q){return Q.providedCodeActionKinds?Q.providedCodeActionKinds.some(function(V){return Object(O.d)(x,new O.b(V))}):!0})}Object(D.j)("_executeCodeActionProvider",function(P,x){return C(this,void 0,void 0,function(){var Q,V,W,B,ae,we;return w(this,function(Me){switch(Me.label){case 0:if(Q=x.resource,V=x.rangeOrSelection,W=x.kind,!(Q instanceof H.a))throw Object(J.b)();if(B=P.get(b.a).getModel(Q),!B)throw Object(J.b)();if(ae=j.a.isISelection(V)?j.a.liftSelection(V):U.a.isIRange(V)?B.validateRange(V):void 0,!ae)throw Object(J.b)();return[4,L(B,ae,{type:2,filter:{includeSourceActions:!0,include:W&&W.value?new O.b(W.value):void 0}},pe.a.None)];case 1:return we=Me.sent(),setTimeout(function(){return we.dispose()},100),[2,we.validActions]}})})})},"i/Ef":function(Mt,F,e){"use strict";e.d(F,"c",function(){return I}),e.d(F,"b",function(){return H}),e.d(F,"a",function(){return K}),e.d(F,"d",function(){return D}),e.d(F,"e",function(){return U});var T=e("Tcc1"),pe=e("twdY"),J=function(){function j(){}return j.prototype.clone=function(){return this},j.prototype.equals=function(h){return this===h},j}(),I=new J,H="vs.editor.nullMode",K=new pe.r(H,0);function D(j,h,b,O){return new T.b([new T.a(O,"",j)],b)}function U(j,h,b,O){var m=new Uint32Array(2);return m[0]=O,m[1]=(j<<0|0<<8|0<<11|1<<14|2<<23)>>>0,new T.c(m,b===null?I:b)}},"i/Rh":function(Mt,F,e){},i04g:function(Mt,F,e){"use strict";e.d(F,"b",function(){return J}),e.d(F,"a",function(){return I});var T=e("3/fG"),pe=function(){function K(D,U,j){j===void 0&&(j=U),this.modifierLabels=[null],this.modifierLabels[2]=D,this.modifierLabels[1]=U,this.modifierLabels[3]=j}return K.prototype.toLabel=function(D,U,j){if(U.length===0)return null;for(var h=[],b=0,O=U.length;b<O;b++){var m=U[b],C=j(m);if(C===null)return null;h[b]=H(m,C,this.modifierLabels[D])}return h.join(" ")},K}(),J=new pe({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:T.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:T.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:T.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),I=new pe({ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function H(K,D,U){if(D===null)return"";var j=[];return K.ctrlKey&&j.push(U.ctrlKey),K.shiftKey&&j.push(U.shiftKey),K.altKey&&j.push(U.altKey),K.metaKey&&j.push(U.metaKey),j.push(D),j.join(U.separator)}},iDAx:function(Mt,F,e){"use strict";e.d(F,"b",function(){return C}),e.d(F,"a",function(){return f}),e.d(F,"d",function(){return Me}),e.d(F,"c",function(){return Pe});var T=e("3/fG"),pe=e("MI8n"),J=e("pmY6"),I=e("qj0h"),H=e("6OMU"),K=e("/UlZ"),D=e("Yr1X"),U=e("+3Gp"),j=e("CRAX"),h=e("ic2d"),b=e("vl9R"),O=function(){var Be=function(Ke,Fe){return Be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ee){re.__proto__=ee}||function(re,ee){for(var ne in ee)ee.hasOwnProperty(ne)&&(re[ne]=ee[ne])},Be(Ke,Fe)};return function(Ke,Fe){Be(Ke,Fe);function re(){this.constructor=Ke}Ke.prototype=Fe===null?Object.create(Fe):(re.prototype=Fe.prototype,new re)}}(),m=function(){return m=Object.assign||function(Be){for(var Ke,Fe=1,re=arguments.length;Fe<re;Fe++){Ke=arguments[Fe];for(var ee in Ke)Object.prototype.hasOwnProperty.call(Ke,ee)&&(Be[ee]=Ke[ee])}return Be},m.apply(this,arguments)},C=new(function(){function Be(){this._tabFocus=!1,this._onDidChangeTabFocus=new pe.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return Be.prototype.getTabFocusMode=function(){return this._tabFocus},Be.prototype.setTabFocusMode=function(Ke){if(this._tabFocus===Ke)return;this._tabFocus=Ke,this._onDidChangeTabFocus.fire(this._tabFocus)},Be}()),w=Object.hasOwnProperty,v=function(){function Be(){this._values=[]}return Be.prototype._read=function(Ke){return this._values[Ke]},Be.prototype.get=function(Ke){return this._values[Ke]},Be.prototype._write=function(Ke,Fe){this._values[Ke]=Fe},Be}(),p=function(){function Be(){this._values=[]}return Be.prototype._read=function(Ke){return this._values[Ke]},Be.prototype._write=function(Ke,Fe){this._values[Ke]=Fe},Be}(),d=function(){function Be(){}return Be.readOptions=function(Ke){for(var Fe=Ke,re=new p,ee=0,ne=K.i;ee<ne.length;ee++){var q=ne[ee],le=q.name==="_never_"?void 0:Fe[q.name];re._write(q.id,le)}return re},Be.validateOptions=function(Ke){for(var Fe=new K.h,re=0,ee=K.i;re<ee.length;re++){var ne=ee[re];Fe._write(ne.id,ne.validate(Ke._read(ne.id)))}return Fe},Be.computeOptions=function(Ke,Fe){for(var re=new v,ee=0,ne=K.i;ee<ne.length;ee++){var q=ne[ee];re._write(q.id,q.compute(Fe,re,Ke._read(q.id)))}return re},Be._deepEquals=function(Ke,Fe){if(typeof Ke!="object"||typeof Fe!="object")return Ke===Fe;if(Array.isArray(Ke)||Array.isArray(Fe))return Array.isArray(Ke)&&Array.isArray(Fe)?H.g(Ke,Fe):!1;for(var re in Ke)if(!Be._deepEquals(Ke[re],Fe[re]))return!1;return!0},Be.checkEquals=function(Ke,Fe){for(var re=[],ee=!1,ne=0,q=K.i;ne<q.length;ne++){var le=q[ne],Z=!Be._deepEquals(Ke._read(le.id),Fe._read(le.id));re[le.id]=Z,Z&&(ee=!0)}return ee?new K.a(re):null},Be}();function c(Be){var Ke=Be.wordWrap;Ke===!0?Be.wordWrap="on":Ke===!1&&(Be.wordWrap="off");var Fe=Be.lineNumbers;Fe===!0?Be.lineNumbers="on":Fe===!1&&(Be.lineNumbers="off");var re=Be.autoClosingBrackets;re===!1&&(Be.autoClosingBrackets="never",Be.autoClosingQuotes="never",Be.autoSurround="never");var ee=Be.cursorBlinking;ee==="visible"&&(Be.cursorBlinking="solid");var ne=Be.renderWhitespace;ne===!0?Be.renderWhitespace="boundary":ne===!1&&(Be.renderWhitespace="none");var q=Be.renderLineHighlight;q===!0?Be.renderLineHighlight="line":q===!1&&(Be.renderLineHighlight="none");var le=Be.acceptSuggestionOnEnter;le===!0?Be.acceptSuggestionOnEnter="on":le===!1&&(Be.acceptSuggestionOnEnter="off");var Z=Be.tabCompletion;Z===!1?Be.tabCompletion="off":Z===!0&&(Be.tabCompletion="onlySnippets");var ve=Be.suggest;if(ve&&typeof ve.filteredTypes=="object"&&ve.filteredTypes){var Ne={};Ne.method="showMethods",Ne.function="showFunctions",Ne.constructor="showConstructors",Ne.field="showFields",Ne.variable="showVariables",Ne.class="showClasses",Ne.struct="showStructs",Ne.interface="showInterfaces",Ne.module="showModules",Ne.property="showProperties",Ne.event="showEvents",Ne.operator="showOperators",Ne.unit="showUnits",Ne.value="showValues",Ne.constant="showConstants",Ne.enum="showEnums",Ne.enumMember="showEnumMembers",Ne.keyword="showKeywords",Ne.text="showWords",Ne.color="showColors",Ne.file="showFiles",Ne.reference="showReferences",Ne.folder="showFolders",Ne.typeParameter="showTypeParameters",Ne.snippet="showSnippets",Object(b.c)(Ne,function(Te){var Ce=ve.filteredTypes[Te.key];Ce===!1&&(ve[Te.value]=Ce)})}var Xe=Be.hover;Xe===!0?Be.hover={enabled:!0}:Xe===!1&&(Be.hover={enabled:!1});var de=Be.parameterHints;de===!0?Be.parameterHints={enabled:!0}:de===!1&&(Be.parameterHints={enabled:!1});var ge=Be.autoIndent;ge===!0?Be.autoIndent="full":ge===!1&&(Be.autoIndent="advanced");var Ee=Be.matchBrackets;Ee===!0?Be.matchBrackets="always":Ee===!1&&(Be.matchBrackets="never")}function u(Be){var Ke=I.c(Be);return c(Ke),Ke}var f=function(Be){O(Ke,Be);function Ke(Fe,re){var ee=Be.call(this)||this;return ee._onDidChange=ee._register(new pe.a),ee.onDidChange=ee._onDidChange.event,ee.isSimpleWidget=Fe,ee._isDominatedByLongLines=!1,ee._lineNumbersDigitCount=1,ee._rawOptions=u(re),ee._readOptions=d.readOptions(ee._rawOptions),ee._validatedOptions=d.validateOptions(ee._readOptions),ee._register(D.a.onDidChangeZoomLevel(function(ne){return ee._recomputeOptions()})),ee._register(C.onDidChangeTabFocus(function(ne){return ee._recomputeOptions()})),ee}return Ke.prototype.observeReferenceElement=function(Fe){},Ke.prototype.dispose=function(){Be.prototype.dispose.call(this)},Ke.prototype._recomputeOptions=function(){var Fe=this.options,re=this._computeInternalOptions();if(!Fe)this.options=re;else{var ee=d.checkEquals(Fe,re);if(ee===null)return;this.options=re,this._onDidChange.fire(ee)}},Ke.prototype.getRawOptions=function(){return this._rawOptions},Ke.prototype._computeInternalOptions=function(){var Fe=this._getEnvConfiguration(),re=U.a.createFromValidatedSettings(this._validatedOptions,Fe.zoomLevel,this.isSimpleWidget),ee={outerWidth:Fe.outerWidth,outerHeight:Fe.outerHeight,fontInfo:this.readConfiguration(re),extraEditorClassName:Fe.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:Fe.emptySelectionClipboard,pixelRatio:Fe.pixelRatio,tabFocusMode:C.getTabFocusMode(),accessibilitySupport:Fe.accessibilitySupport};return d.computeOptions(this._validatedOptions,ee)},Ke._subsetEquals=function(Fe,re){for(var ee in re)if(w.call(re,ee)){var ne=re[ee],q=Fe[ee];if(q===ne)continue;if(Array.isArray(q)&&Array.isArray(ne)){if(!H.g(q,ne))return!1;continue}if(typeof q=="object"&&typeof ne=="object"){if(!this._subsetEquals(q,ne))return!1;continue}return!1}return!0},Ke.prototype.updateOptions=function(Fe){if(typeof Fe=="undefined")return;var re=u(Fe);if(Ke._subsetEquals(this._rawOptions,re))return;this._rawOptions=I.g(this._rawOptions,re||{}),this._readOptions=d.readOptions(this._rawOptions),this._validatedOptions=d.validateOptions(this._readOptions),this._recomputeOptions()},Ke.prototype.setIsDominatedByLongLines=function(Fe){this._isDominatedByLongLines=Fe,this._recomputeOptions()},Ke.prototype.setMaxLineNumber=function(Fe){var re=Ke._digitCount(Fe);if(this._lineNumbersDigitCount===re)return;this._lineNumbersDigitCount=re,this._recomputeOptions()},Ke._digitCount=function(Fe){for(var re=0;Fe;)Fe=Math.floor(Fe/10),re++;return re||1},Ke}(J.a),E=Object.freeze({id:"editor",order:5,type:"object",title:T.a("editorConfigurationTitle","Editor"),scope:5}),L=h.a.as(j.a.Configuration),R=m(m({},E),{properties:{"editor.tabSize":{type:"number",default:K.c.tabSize,minimum:1,markdownDescription:T.a("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:K.c.insertSpaces,markdownDescription:T.a("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:K.c.detectIndentation,markdownDescription:T.a("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:K.c.trimAutoWhitespace,description:T.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:K.c.largeFileOptimizations,description:T.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:T.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{type:"boolean",default:!1,description:T.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:T.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:T.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:T.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:T.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:T.a("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:T.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}});function P(Be){return typeof Be.type!="undefined"||typeof Be.anyOf!="undefined"}for(var x=0,Q=K.i;x<Q.length;x++){var V=Q[x],W=V.schema;if(typeof W!="undefined")if(P(W))R.properties["editor."+V.name]=W;else for(var B in W)w.call(W,B)&&(R.properties[B]=W[B])}var ae=null;function we(){return ae===null&&(ae=Object.create(null),Object.keys(R.properties).forEach(function(Be){ae[Be]=!0})),ae}function Me(Be){var Ke=we();return Ke["editor."+Be]||!1}function Pe(Be){var Ke=we();return Ke["diffEditor."+Be]||!1}L.registerConfiguration(R)},iJk1:function(Mt,F,e){},iLY9:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return e.e(326).then(e.bind(null,"8ahN"))}})},iNS8:function(Mt,F,e){"use strict";e.d(F,"a",function(){return Me}),e.d(F,"b",function(){return Pe}),e.d(F,"d",function(){return Ke}),e.d(F,"c",function(){return re}),e.d(F,"p",function(){return ee}),e.d(F,"q",function(){return ne}),e.d(F,"r",function(){return q}),e.d(F,"e",function(){return le}),e.d(F,"j",function(){return Z}),e.d(F,"l",function(){return ve}),e.d(F,"k",function(){return Ne}),e.d(F,"n",function(){return Xe}),e.d(F,"o",function(){return de}),e.d(F,"f",function(){return ge}),e.d(F,"g",function(){return Ee}),e.d(F,"m",function(){return Te}),e.d(F,"h",function(){return Ce}),e.d(F,"i",function(){return fe});var T=e("e1ni"),pe=e("EffR"),J=e("WqXY"),I=e("8HAY"),H=e("zrhQ"),K=e("MI8n"),D=e("qj0h"),U=e("N0LK"),j=e("Vxe3"),h=e("03kh"),b=e("uWgD"),O=e("cMOf"),m=e("nD70"),C=e("pmY6"),w=e("aokT"),v=e("tX9W"),p=new H.a(new H.c(0,122,204)),d={showArrow:!0,showFrame:!0,className:"",frameColor:p,arrowColor:p,keepEditorSelection:!1},c="vs.editor.contrib.zoneWidget",u=function(){function $(S,z,ce,se,ye,Re){this.id="",this.domNode=S,this.afterLineNumber=z,this.afterColumn=ce,this.heightInLines=se,this._onDomNodeTop=ye,this._onComputedHeight=Re}return $.prototype.onDomNodeTop=function(S){this._onDomNodeTop(S)},$.prototype.onComputedHeight=function(S){this._onComputedHeight(S)},$}(),f=function(){function $(S,z){this._id=S,this._domNode=z}return $.prototype.getId=function(){return this._id},$.prototype.getDomNode=function(){return this._domNode},$.prototype.getPosition=function(){return null},$}(),E=function(){function $(S){this._editor=S,this._ruleName=$._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}return $.prototype.dispose=function(){this.hide(),pe.O(this._ruleName)},Object.defineProperty($.prototype,"color",{set:function(S){this._color!==S&&(this._color=S,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"height",{set:function(S){this._height!==S&&(this._height=S,this._updateStyle())},enumerable:!0,configurable:!0}),$.prototype._updateStyle=function(){pe.O(this._ruleName),pe.v(".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},$.prototype.show=function(S){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:w.a.fromPositions(S),options:{className:this._ruleName,stickiness:1}}])},$.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},$._IdGenerator=new m.a(".arrow-decoration-"),$}(),L=function(){function $(S,z){var ce=this;z===void 0&&(z={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new C.b,this.container=null,this._isShowing=!1,this.editor=S,this.options=D.c(z),D.g(this.options,d,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(function(se){var ye=ce._getWidth(se);ce.domNode.style.width=ye+"px",ce.domNode.style.left=ce._getLeft(se)+"px",ce._onWidth(ye)}))}return $.prototype.dispose=function(){var S=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(z){S._viewZone&&z.removeZone(S._viewZone.id),S._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},$.prototype.create=function(){pe.f(this.domNode,"zone-widget"),this.options.className&&pe.f(this.domNode,this.options.className),this.container=document.createElement("div"),pe.f(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new E(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},$.prototype.style=function(S){S.frameColor&&(this.options.frameColor=S.frameColor),S.arrowColor&&(this.options.arrowColor=S.arrowColor),this._applyStyles()},$.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var S=this.options.frameColor.toString();this.container.style.borderTopColor=S,this.container.style.borderBottomColor=S}if(this._arrow&&this.options.arrowColor){var z=this.options.arrowColor.toString();this._arrow.color=z}},$.prototype._getWidth=function(S){return S.width-S.minimapWidth-S.verticalScrollbarWidth},$.prototype._getLeft=function(S){return S.minimapWidth>0&&S.minimapLeft===0?S.minimapWidth:0},$.prototype._onViewZoneTop=function(S){this.domNode.style.top=S+"px"},$.prototype._onViewZoneHeight=function(S){if(this.domNode.style.height=S+"px",this.container){var z=S-this._decoratingElementsHeight();this.container.style.height=z+"px";var ce=this.editor.getLayoutInfo();this._doLayout(z,this._getWidth(ce))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty($.prototype,"position",{get:function(){var S=this._positionMarkerId[0];if(!S)return;var z=this.editor.getModel();if(!z)return;var ce=z.getDecorationRange(S);return ce?ce.getStartPosition():void 0},enumerable:!0,configurable:!0}),$.prototype.show=function(S,z){var ce=w.a.isIRange(S)?w.a.lift(S):w.a.fromPositions(S);this._isShowing=!0,this._showImpl(ce,z),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:ce,options:v.a.EMPTY}])},$.prototype.hide=function(){var S=this;this._viewZone&&(this.editor.changeViewZones(function(z){S._viewZone&&z.removeZone(S._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},$.prototype._decoratingElementsHeight=function(){var S=this.editor.getOption(49),z=0;if(this.options.showArrow){var ce=Math.round(S/3);z+=2*ce}if(this.options.showFrame){var se=Math.round(S/9);z+=2*se}return z},$.prototype._showImpl=function(S,z){var ce=this,se=S.getStartPosition(),ye=this.editor.getLayoutInfo(),Re=this._getWidth(ye);this.domNode.style.width=Re+"px",this.domNode.style.left=this._getLeft(ye)+"px";var Le=document.createElement("div");Le.style.overflow="hidden";var Ue=this.editor.getOption(49),Je=this.editor.getLayoutInfo().height/Ue*.8;z>=Je&&(z=Je);var nt=0,vt=0;if(this._arrow&&this.options.showArrow&&(nt=Math.round(Ue/3),this._arrow.height=nt,this._arrow.show(se)),this.options.showFrame&&(vt=Math.round(Ue/9)),this.editor.changeViewZones(function(lo){ce._viewZone&&lo.removeZone(ce._viewZone.id),ce._overlayWidget&&(ce.editor.removeOverlayWidget(ce._overlayWidget),ce._overlayWidget=null),ce.domNode.style.top="-1000px",ce._viewZone=new u(Le,se.lineNumber,se.column,z,function(so){return ce._onViewZoneTop(so)},function(so){return ce._onViewZoneHeight(so)}),ce._viewZone.id=lo.addZone(ce._viewZone),ce._overlayWidget=new f(c+ce._viewZone.id,ce.domNode),ce.editor.addOverlayWidget(ce._overlayWidget)}),this.container&&this.options.showFrame){var Rt=this.options.frameWidth?this.options.frameWidth:vt;this.container.style.borderTopWidth=Rt+"px",this.container.style.borderBottomWidth=Rt+"px"}var Ot=z*Ue-this._decoratingElementsHeight();this.container&&(this.container.style.top=nt+"px",this.container.style.height=Ot+"px",this.container.style.overflow="hidden"),this._doLayout(Ot,Re),this.options.keepEditorSelection||this.editor.setSelection(S);var Kt=this.editor.getModel();if(Kt){var ao=S.endLineNumber+1;ao<=Kt.getLineCount()?this.revealLine(ao,!1):this.revealLine(Kt.getLineCount(),!0)}},$.prototype.revealLine=function(S,z){z?this.editor.revealLineInCenter(S,0):this.editor.revealLine(S,0)},$.prototype.setCssClass=function(S,z){if(!this.container)return;z&&this.container.classList.remove(z),pe.f(this.container,S)},$.prototype._onWidth=function(S){},$.prototype._doLayout=function(S,z){},$.prototype._relayout=function(S){var z=this;this._viewZone&&this._viewZone.heightInLines!==S&&this.editor.changeViewZones(function(ce){z._viewZone&&(z._viewZone.heightInLines=S,ce.layoutZone(z._viewZone.id))})},$.prototype._initSash=function(){var S=this;if(this._resizeSash)return;this._resizeSash=this._disposables.add(new O.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var z;this._disposables.add(this._resizeSash.onDidStart(function(ce){S._viewZone&&(z={startY:ce.startY,heightInLines:S._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){z=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(ce){if(z){var se=(ce.currentY-z.startY)/S.editor.getOption(49),ye=se<0?Math.ceil(se):Math.floor(se),Re=z.heightInLines+ye;Re>5&&Re<35&&S._relayout(Re)}}))},$.prototype.getHorizontalSashLeft=function(){return 0},$.prototype.getHorizontalSashTop=function(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},$.prototype.getHorizontalSashWidth=function(){var S=this.editor.getLayoutInfo();return S.width-S.minimapWidth},$}(),R=e("3/fG"),P=e("T8No"),x=e("Cg/j"),Q=e("9fML"),V=e("sswD"),W=e("MD5Z"),B=function(){var $=function(S,z){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,se){ce.__proto__=se}||function(ce,se){for(var ye in se)se.hasOwnProperty(ye)&&(ce[ye]=se[ye])},$(S,z)};return function(S,z){$(S,z);function ce(){this.constructor=S}S.prototype=z===null?Object.create(z):(ce.prototype=z.prototype,new ce)}}(),ae=function($,S,z,ce){var se=arguments.length,ye=se<3?S:ce===null?ce=Object.getOwnPropertyDescriptor(S,z):ce,Re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate($,S,z,ce);else for(var Le=$.length-1;Le>=0;Le--)(Re=$[Le])&&(ye=(se<3?Re(ye):se>3?Re(S,z,ye):Re(S,z))||ye);return se>3&&ye&&Object.defineProperty(S,z,ye),ye},we=function($,S){return function(z,ce){S(z,ce,$)}},Me=Object(x.c)("IPeekViewService");Object(Q.b)(Me,function(){function $(){this._widgets=new Map}return $.prototype.addExclusiveWidget=function(S,z){var ce=this,se=this._widgets.get(S);se&&(se.listener.dispose(),se.widget.dispose());var ye=function(){var Re=ce._widgets.get(S);Re&&Re.widget===z&&(Re.listener.dispose(),ce._widgets.delete(S))};this._widgets.set(S,{widget:z,listener:z.onDidClose(ye)})},$}());var Pe;(function($){$.inPeekEditor=new P.d("inReferenceSearchEditor",!0),$.notInPeekEditor=$.inPeekEditor.toNegated()})(Pe||(Pe={}));var Be=function(){function $(S,z){S instanceof h.a&&Pe.inPeekEditor.bindTo(z)}return $.prototype.dispose=function(){},$.ID="editor.contrib.referenceController",$=ae([we(1,P.c)],$),$}();Object(V.h)(Be.ID,Be);function Ke($){var S=$.get(j.a).getFocusedCodeEditor();return S instanceof h.a?S.getParentEditor():S}var Fe={headerBackgroundColor:H.a.white,primaryHeadingColor:H.a.fromHex("#333333"),secondaryHeadingColor:H.a.fromHex("#6c6c6cb3")},re=function($){B(S,$);function S(z,ce){ce===void 0&&(ce={});var se=$.call(this,z,ce)||this;return se._onDidClose=new K.a,se.onDidClose=se._onDidClose.event,D.g(se.options,Fe,!1),se}return S.prototype.dispose=function(){$.prototype.dispose.call(this),this._onDidClose.fire(this)},S.prototype.style=function(z){var ce=this.options;z.headerBackgroundColor&&(ce.headerBackgroundColor=z.headerBackgroundColor),z.primaryHeadingColor&&(ce.primaryHeadingColor=z.primaryHeadingColor),z.secondaryHeadingColor&&(ce.secondaryHeadingColor=z.secondaryHeadingColor),$.prototype.style.call(this,z)},S.prototype._applyStyles=function(){$.prototype._applyStyles.call(this);var z=this.options;this._headElement&&z.headerBackgroundColor&&(this._headElement.style.backgroundColor=z.headerBackgroundColor.toString()),this._primaryHeading&&z.primaryHeadingColor&&(this._primaryHeading.style.color=z.primaryHeadingColor.toString()),this._secondaryHeading&&z.secondaryHeadingColor&&(this._secondaryHeading.style.color=z.secondaryHeadingColor.toString()),this._bodyElement&&z.frameColor&&(this._bodyElement.style.borderColor=z.frameColor.toString())},S.prototype._fillContainer=function(z){this.setCssClass("peekview-widget"),this._headElement=pe.a(".head"),this._bodyElement=pe.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),z.appendChild(this._headElement),z.appendChild(this._bodyElement)},S.prototype._fillHead=function(z){var ce=this,se=pe.a(".peekview-title");pe.q(this._headElement,se),pe.o(se,"click",function(Le){return ce._onTitleClick(Le)}),this._fillTitleIcon(se),this._primaryHeading=pe.a("span.filename"),this._secondaryHeading=pe.a("span.dirname"),this._metaHeading=pe.a("span.meta"),pe.q(se,this._primaryHeading,this._secondaryHeading,this._metaHeading);var ye=pe.a(".peekview-actions");pe.q(this._headElement,ye);var Re=this._getActionBarOptions();this._actionbarWidget=new J.a(ye,Re),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new I.a("peekview.close",R.a("label.close","Close"),"codicon-close",!0,function(){return ce.dispose(),Promise.resolve()}),{label:!1,icon:!0})},S.prototype._fillTitleIcon=function(z){},S.prototype._getActionBarOptions=function(){return{}},S.prototype._onTitleClick=function(z){},S.prototype.setTitle=function(z,ce){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=U.o(z),this._primaryHeading.setAttribute("aria-label",z),ce?this._secondaryHeading.innerHTML=U.o(ce):pe.t(this._secondaryHeading))},S.prototype.setMetaTitle=function(z){this._metaHeading&&(z?(this._metaHeading.innerHTML=U.o(z),pe.X(this._metaHeading)):pe.J(this._metaHeading))},S.prototype._doLayout=function(z,ce){if(!this._isShowing&&z<0){this.dispose();return}var se=Math.ceil(this.editor.getOption(49)*1.2),ye=Math.round(z-(se+2));this._doLayoutHead(se,ce),this._doLayoutBody(ye,ce)},S.prototype._doLayoutHead=function(z,ce){this._headElement&&(this._headElement.style.height=z+"px",this._headElement.style.lineHeight=this._headElement.style.height)},S.prototype._doLayoutBody=function(z,ce){this._bodyElement&&(this._bodyElement.style.height=z+"px")},S}(L),ee=Object(W.Tb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},R.a("peekViewTitleBackground","Background color of the peek view title area.")),ne=Object(W.Tb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},R.a("peekViewTitleForeground","Color of the peek view title.")),q=Object(W.Tb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},R.a("peekViewTitleInfoForeground","Color of the peek view title info.")),le=Object(W.Tb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:W.e},R.a("peekViewBorder","Color of the peek view borders and arrow.")),Z=Object(W.Tb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:H.a.black},R.a("peekViewResultsBackground","Background color of the peek view result list.")),ve=Object(W.Tb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:H.a.white},R.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Ne=Object(W.Tb)("peekViewResult.fileForeground",{dark:H.a.white,light:"#1E1E1E",hc:H.a.white},R.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Xe=Object(W.Tb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},R.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),de=Object(W.Tb)("peekViewResult.selectionForeground",{dark:H.a.white,light:"#6C6C6C",hc:H.a.white},R.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),ge=Object(W.Tb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:H.a.black},R.a("peekViewEditorBackground","Background color of the peek view editor.")),Ee=Object(W.Tb)("peekViewEditorGutter.background",{dark:ge,light:ge,hc:ge},R.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Te=Object(W.Tb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},R.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ce=Object(W.Tb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},R.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),fe=Object(W.Tb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:W.b},R.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},ic2d:function(Mt,F,e){"use strict";e.d(F,"a",function(){return I});var T=e("746U"),pe=e("FWmy"),J=function(){function H(){this.data=new Map}return H.prototype.add=function(K,D){pe.a(T.j(K)),pe.a(T.i(D)),pe.a(!this.data.has(K),"There is already an extension with this id"),this.data.set(K,D)},H.prototype.as=function(K){return this.data.get(K)||null},H}(),I=new J},"ij/i":function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return e.e(332).then(e.bind(null,"3MdH"))}})},iuje:function(Mt,F,e){"use strict";e.d(F,"c",function(){return T}),e.d(F,"a",function(){return pe}),e.d(F,"b",function(){return J});function T(I){return I&&typeof I.id=="string"}var pe={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},J={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},j2o1:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return e.e(324).then(e.bind(null,"ppMK"))}})},"jAJ/":function(Mt,F,e){"use strict";e.d(F,"a",function(){return D}),e.d(F,"d",function(){return h}),e.d(F,"c",function(){return O}),e.d(F,"e",function(){return w}),e.d(F,"b",function(){return v});var T=e("N0LK"),pe=e("5v8Y"),J=e("cGHE"),I=e("aokT"),H=e("M1Kb"),K=999,D=function(){function p(d,c,u,f){this.searchString=d,this.isRegex=c,this.matchCase=u,this.wordSeparators=f}return p.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var d;this.isRegex?d=U(this.searchString):d=this.searchString.indexOf(`
`)>=0;var c=null;try{c=T.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:d,global:!0,unicode:!0})}catch(f){return null}if(!c)return null;var u=!this.isRegex&&!d;return u&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(u=this.matchCase),new j(c,this.wordSeparators?Object(pe.a)(this.wordSeparators):null,u?this.searchString:null)},p}();function U(p){if(!p||p.length===0)return!1;for(var d=0,c=p.length;d<c;d++){var u=p.charCodeAt(d);if(u===92){if(d++,d>=c)break;var f=p.charCodeAt(d);if(f===110||f===114||f===87||f===119)return!0}}return!1}var j=function(){function p(d,c,u){this.regex=d,this.wordSeparators=c,this.simpleSearch=u}return p}();function h(p,d,c){if(!c)return new H.b(p,null);for(var u=[],f=0,E=d.length;f<E;f++)u[f]=d[f];return new H.b(p,u)}var b=function(){function p(d){for(var c=[],u=0,f=0,E=d.length;f<E;f++)d.charCodeAt(f)===10&&(c[u++]=f);this._lineFeedsOffsets=c}return p.prototype.findLineFeedCountBeforeOffset=function(d){var c=this._lineFeedsOffsets,u=0,f=c.length-1;if(f===-1)return 0;if(d<=c[0])return 0;for(;u<f;){var E=u+((f-u)/2>>0);c[E]>=d?f=E-1:c[E+1]>=d?(u=E,f=E):u=E+1}return u+1},p}(),O=function(){function p(){}return p.findMatches=function(d,c,u,f,E){var L=c.parseSearchRequest();return L?L.regex.multiline?this._doFindMatchesMultiline(d,u,new v(L.wordSeparators,L.regex),f,E):this._doFindMatchesLineByLine(d,u,L,f,E):[]},p._getMultilineMatchRange=function(d,c,u,f,E,L){var R,P=0;f?(P=f.findLineFeedCountBeforeOffset(E),R=c+E+P):R=c+E;var x;if(f){var Q=f.findLineFeedCountBeforeOffset(E+L.length),V=Q-P;x=R+L.length+V}else x=R+L.length;var W=d.getPositionAt(R),B=d.getPositionAt(x);return new I.a(W.lineNumber,W.column,B.lineNumber,B.column)},p._doFindMatchesMultiline=function(d,c,u,f,E){var L=d.getOffsetAt(c.getStartPosition()),R=d.getValueInRange(c,1),P=d.getEOL()===`\r
`?new b(R):null,x=[],Q=0,V;for(u.reset(0);V=u.next(R);)if(x[Q++]=h(this._getMultilineMatchRange(d,L,R,P,V.index,V[0]),V,f),Q>=E)return x;return x},p._doFindMatchesLineByLine=function(d,c,u,f,E){var L=[],R=0;if(c.startLineNumber===c.endLineNumber){var P=d.getLineContent(c.startLineNumber).substring(c.startColumn-1,c.endColumn-1);return R=this._findMatchesInLine(u,P,c.startLineNumber,c.startColumn-1,R,L,f,E),L}var x=d.getLineContent(c.startLineNumber).substring(c.startColumn-1);R=this._findMatchesInLine(u,x,c.startLineNumber,c.startColumn-1,R,L,f,E);for(var Q=c.startLineNumber+1;Q<c.endLineNumber&&R<E;Q++)R=this._findMatchesInLine(u,d.getLineContent(Q),Q,0,R,L,f,E);if(R<E){var V=d.getLineContent(c.endLineNumber).substring(0,c.endColumn-1);R=this._findMatchesInLine(u,V,c.endLineNumber,0,R,L,f,E)}return L},p._findMatchesInLine=function(d,c,u,f,E,L,R,P){var x=d.wordSeparators;if(!R&&d.simpleSearch){for(var Q=d.simpleSearch,V=Q.length,W=c.length,B=-V;(B=c.indexOf(Q,B+V))!==-1;)if((!x||w(x,c,W,B,V))&&(L[E++]=new H.b(new I.a(u,B+1+f,u,B+1+V+f),null),E>=P))return E;return E}var ae=new v(d.wordSeparators,d.regex),we;ae.reset(0);do if(we=ae.next(c),we&&(L[E++]=h(new I.a(u,we.index+1+f,u,we.index+1+we[0].length+f),we,R),E>=P))return E;while(we);return E},p.findNextMatch=function(d,c,u,f){var E=c.parseSearchRequest();if(!E)return null;var L=new v(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindNextMatchMultiline(d,u,L,f):this._doFindNextMatchLineByLine(d,u,L,f)},p._doFindNextMatchMultiline=function(d,c,u,f){var E=new J.a(c.lineNumber,1),L=d.getOffsetAt(E),R=d.getLineCount(),P=d.getValueInRange(new I.a(E.lineNumber,E.column,R,d.getLineMaxColumn(R)),1),x=d.getEOL()===`\r
`?new b(P):null;u.reset(c.column-1);var Q=u.next(P);return Q?h(this._getMultilineMatchRange(d,L,P,x,Q.index,Q[0]),Q,f):c.lineNumber!==1||c.column!==1?this._doFindNextMatchMultiline(d,new J.a(1,1),u,f):null},p._doFindNextMatchLineByLine=function(d,c,u,f){var E=d.getLineCount(),L=c.lineNumber,R=d.getLineContent(L),P=this._findFirstMatchInLine(u,R,L,c.column,f);if(P)return P;for(var x=1;x<=E;x++){var Q=(L+x-1)%E,V=d.getLineContent(Q+1),W=this._findFirstMatchInLine(u,V,Q+1,1,f);if(W)return W}return null},p._findFirstMatchInLine=function(d,c,u,f,E){d.reset(f-1);var L=d.next(c);return L?h(new I.a(u,L.index+1,u,L.index+1+L[0].length),L,E):null},p.findPreviousMatch=function(d,c,u,f){var E=c.parseSearchRequest();if(!E)return null;var L=new v(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindPreviousMatchMultiline(d,u,L,f):this._doFindPreviousMatchLineByLine(d,u,L,f)},p._doFindPreviousMatchMultiline=function(d,c,u,f){var E=this._doFindMatchesMultiline(d,new I.a(1,1,c.lineNumber,c.column),u,f,10*K);if(E.length>0)return E[E.length-1];var L=d.getLineCount();return c.lineNumber!==L||c.column!==d.getLineMaxColumn(L)?this._doFindPreviousMatchMultiline(d,new J.a(L,d.getLineMaxColumn(L)),u,f):null},p._doFindPreviousMatchLineByLine=function(d,c,u,f){var E=d.getLineCount(),L=c.lineNumber,R=d.getLineContent(L).substring(0,c.column-1),P=this._findLastMatchInLine(u,R,L,f);if(P)return P;for(var x=1;x<=E;x++){var Q=(E+L-x-1)%E,V=d.getLineContent(Q+1),W=this._findLastMatchInLine(u,V,Q+1,f);if(W)return W}return null},p._findLastMatchInLine=function(d,c,u,f){var E=null,L;for(d.reset(0);L=d.next(c);)E=h(new I.a(u,L.index+1,u,L.index+1+L[0].length),L,f);return E},p}();function m(p,d,c,u,f){if(u===0)return!0;var E=d.charCodeAt(u-1);if(p.get(E)!==0)return!0;if(E===13||E===10)return!0;if(f>0){var L=d.charCodeAt(u);if(p.get(L)!==0)return!0}return!1}function C(p,d,c,u,f){if(u+f===c)return!0;var E=d.charCodeAt(u+f);if(p.get(E)!==0)return!0;if(E===13||E===10)return!0;if(f>0){var L=d.charCodeAt(u+f-1);if(p.get(L)!==0)return!0}return!1}function w(p,d,c,u,f){return m(p,d,c,u,f)&&C(p,d,c,u,f)}var v=function(){function p(d,c){this._wordSeparators=d,this._searchRegex=c,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return p.prototype.reset=function(d){this._searchRegex.lastIndex=d,this._prevMatchStartIndex=-1,this._prevMatchLength=0},p.prototype.next=function(d){var c=d.length,u;do{if(this._prevMatchStartIndex+this._prevMatchLength===c)return null;if(u=this._searchRegex.exec(d),!u)return null;var f=u.index,E=u[0].length;if(f===this._prevMatchStartIndex&&E===this._prevMatchLength){if(E===0){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=f,this._prevMatchLength=E,!this._wordSeparators||w(this._wordSeparators,d,c,f,E))return u}while(u);return null},p}()},jVwG:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return e.e(316).then(e.bind(null,"fYNN"))}})},jqj9:function(Mt,F,e){"use strict";var T=e("yI7H"),pe=e.n(T),J=e("ujyM"),I=e.n(J),H=e("3/fG"),K=e("t9D7"),D=e("MD5Z"),U=Object(D.Tb)("symbolIcon.arrayForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),j=Object(D.Tb)("symbolIcon.booleanForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=Object(D.Tb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(H.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=Object(D.Tb)("symbolIcon.colorForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=Object(D.Tb)("symbolIcon.constantForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=Object(D.Tb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(H.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=Object(D.Tb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(H.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=Object(D.Tb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(D.Tb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(H.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(D.Tb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=Object(D.Tb)("symbolIcon.fileForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(D.Tb)("symbolIcon.folderForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(D.Tb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(H.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(D.Tb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=Object(D.Tb)("symbolIcon.keyForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(D.Tb)("symbolIcon.keywordForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=Object(D.Tb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(H.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=Object(D.Tb)("symbolIcon.moduleForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(D.Tb)("symbolIcon.namespaceForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Q=Object(D.Tb)("symbolIcon.nullForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),V=Object(D.Tb)("symbolIcon.numberForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),W=Object(D.Tb)("symbolIcon.objectForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=Object(D.Tb)("symbolIcon.operatorForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ae=Object(D.Tb)("symbolIcon.packageForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),we=Object(D.Tb)("symbolIcon.propertyForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Me=Object(D.Tb)("symbolIcon.referenceForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pe=Object(D.Tb)("symbolIcon.snippetForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Be=Object(D.Tb)("symbolIcon.stringForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ke=Object(D.Tb)("symbolIcon.structForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Fe=Object(D.Tb)("symbolIcon.textForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),re=Object(D.Tb)("symbolIcon.typeParameterForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ee=Object(D.Tb)("symbolIcon.unitForeground",{dark:D.W,light:D.W,hc:D.W},Object(H.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ne=Object(D.Tb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(K.e)(function(q,le){var Z=q.getColor(U);Z&&le.addRule(".codicon-symbol-array { color: "+Z+" !important; }");var ve=q.getColor(j);ve&&le.addRule(".codicon-symbol-boolean { color: "+ve+" !important; }");var Ne=q.getColor(h);Ne&&le.addRule(".codicon-symbol-class { color: "+Ne+" !important; }");var Xe=q.getColor(R);Xe&&le.addRule(".codicon-symbol-method { color: "+Xe+" !important; }");var de=q.getColor(b);de&&le.addRule(".codicon-symbol-color { color: "+de+" !important; }");var ge=q.getColor(O);ge&&le.addRule(".codicon-symbol-constant { color: "+ge+" !important; }");var Ee=q.getColor(m);Ee&&le.addRule(".codicon-symbol-constructor { color: "+Ee+" !important; }");var Te=q.getColor(C);Te&&le.addRule(`
.codicon-symbol-value,.codicon-symbol-enum { color: `+Te+" !important; }");var Ce=q.getColor(w);Ce&&le.addRule(".codicon-symbol-enum-member { color: "+Ce+" !important; }");var fe=q.getColor(v);fe&&le.addRule(".codicon-symbol-event { color: "+fe+" !important; }");var $=q.getColor(p);$&&le.addRule(".codicon-symbol-field { color: "+$+" !important; }");var S=q.getColor(d);S&&le.addRule(".codicon-symbol-file { color: "+S+" !important; }");var z=q.getColor(c);z&&le.addRule(".codicon-symbol-folder { color: "+z+" !important; }");var ce=q.getColor(u);ce&&le.addRule(".codicon-symbol-function { color: "+ce+" !important; }");var se=q.getColor(f);se&&le.addRule(".codicon-symbol-interface { color: "+se+" !important; }");var ye=q.getColor(E);ye&&le.addRule(".codicon-symbol-key { color: "+ye+" !important; }");var Re=q.getColor(L);Re&&le.addRule(".codicon-symbol-keyword { color: "+Re+" !important; }");var Le=q.getColor(P);Le&&le.addRule(".codicon-symbol-module { color: "+Le+" !important; }");var Ue=q.getColor(x);Ue&&le.addRule(".codicon-symbol-namespace { color: "+Ue+" !important; }");var Je=q.getColor(Q);Je&&le.addRule(".codicon-symbol-null { color: "+Je+" !important; }");var nt=q.getColor(V);nt&&le.addRule(".codicon-symbol-number { color: "+nt+" !important; }");var vt=q.getColor(W);vt&&le.addRule(".codicon-symbol-object { color: "+vt+" !important; }");var Rt=q.getColor(B);Rt&&le.addRule(".codicon-symbol-operator { color: "+Rt+" !important; }");var Ot=q.getColor(ae);Ot&&le.addRule(".codicon-symbol-package { color: "+Ot+" !important; }");var Kt=q.getColor(we);Kt&&le.addRule(".codicon-symbol-property { color: "+Kt+" !important; }");var ao=q.getColor(Me);ao&&le.addRule(".codicon-symbol-reference { color: "+ao+" !important; }");var lo=q.getColor(Pe);lo&&le.addRule(".codicon-symbol-snippet { color: "+lo+" !important; }");var so=q.getColor(Be);so&&le.addRule(".codicon-symbol-string { color: "+so+" !important; }");var jt=q.getColor(Ke);jt&&le.addRule(".codicon-symbol-struct { color: "+jt+" !important; }");var pt=q.getColor(Fe);pt&&le.addRule(".codicon-symbol-text { color: "+pt+" !important; }");var gt=q.getColor(re);gt&&le.addRule(".codicon-symbol-type-parameter { color: "+gt+" !important; }");var Tt=q.getColor(ee);Tt&&le.addRule(".codicon-symbol-unit { color: "+Tt+" !important; }");var it=q.getColor(ne);it&&le.addRule(".codicon-symbol-variable { color: "+it+" !important; }")})},jrbv:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return e.e(297).then(e.bind(null,"2ZXa"))}})},k76M:function(Mt,F,e){"use strict";var T=e("XNtB"),pe=e.n(T),J=e("epnl"),I=e.n(J)},k7mE:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return e.e(308).then(e.bind(null,"BjZ/"))}})},k7pc:function(Mt,F,e){"use strict";e.r(F),e.d(F,"ToggleTabFocusModeAction",function(){return K});var T=e("3/fG"),pe=e("OBOq"),J=e("sswD"),I=e("iDAx"),H=function(){var D=function(U,j){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,b){h.__proto__=b}||function(h,b){for(var O in b)b.hasOwnProperty(O)&&(h[O]=b[O])},D(U,j)};return function(U,j){D(U,j);function h(){this.constructor=U}U.prototype=j===null?Object.create(j):(h.prototype=j.prototype,new h)}}(),K=function(D){H(U,D);function U(){return D.call(this,{id:U.ID,label:T.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|43,mac:{primary:256|1024|43},weight:100}})||this}return U.prototype.run=function(j,h){var b=I.b.getTabFocusMode(),O=!b;I.b.setTabFocusMode(O),O?Object(pe.a)(T.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(pe.a)(T.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},U.ID="editor.action.toggleTabFocusMode",U}(J.b);Object(J.f)(K)},k9mg:function(Mt,F,e){"use strict";e.d(F,"a",function(){return un}),e.d(F,"b",function(){return Vo}),e.d(F,"d",function(){return rn}),e.d(F,"c",function(){return mt});var T=e("EffR"),pe=e("cqdO"),J=e("pmY6"),I=e("3/fG"),H=e("+7oY"),K=e("CRAX"),D=e("T8No"),U=e("Cg/j"),j=e("bexQ"),h=e("ic2d"),b=e("ptcw"),O=e("t9D7"),m="inputFocus",C=e("2V9f"),w=e("MI8n"),v=e("uDWl"),p=e("ZQ78"),d=e("6OMU"),c=e("feEw"),u=e("4y0V"),f=e("fpMC"),E=function(){var he=function(M,ue){return he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,Ze){We.__proto__=Ze}||function(We,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(We[at]=Ze[at])},he(M,ue)};return function(M,ue){he(M,ue);function We(){this.constructor=M}M.prototype=ue===null?Object.create(ue):(We.prototype=ue.prototype,new We)}}(),L=function(he){E(M,he);function M(ue,We){return he.call(this,"TreeError ["+ue+"] "+We)||this}return M}(Error),R=function(){function he(M){this.fn=M,this._map=new WeakMap}return he.prototype.map=function(M){var ue=this._map.get(M);return ue||(ue=this.fn(M),this._map.set(M,ue)),ue},he}(),P=e("JYp7"),x=function(){for(var he=0,M=0,ue=arguments.length;M<ue;M++)he+=arguments[M].length;for(var We=Array(he),Ze=0,M=0;M<ue;M++)for(var at=arguments[M],wt=0,zt=at.length;wt<zt;wt++,Ze++)We[Ze]=at[wt];return We};function Q(he){return typeof he=="object"&&"visibility"in he&&"data"in he}function V(he){switch(he){case!0:return 1;case!1:return 0;default:return he}}function W(he){return typeof he.collapsible=="boolean"}var B=function(){function he(M,ue,We,Ze){Ze===void 0&&(Ze={}),this.user=M,this.list=ue,this.rootRef=[],this.eventBufferer=new w.c,this._onDidChangeCollapseState=new w.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new w.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new w.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=typeof Ze.collapseByDefault=="undefined"?!1:Ze.collapseByDefault,this.filter=Ze.filter,this.autoExpandSingleChildren=typeof Ze.autoExpandSingleChildren=="undefined"?!1:Ze.autoExpandSingleChildren,this.root={parent:void 0,element:We,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return he.prototype.splice=function(M,ue,We,Ze,at){var wt,zt=this;if(M.length===0)throw new L(this.user,"Invalid tree location");for(var Xt=this.getParentNodeWithListIndex(M),no=Xt.parentNode,uo=Xt.listIndex,go=Xt.revealed,Ao=Xt.visible,To=[],_o=P.d.map(P.d.from(We),function(Pn){return zt.createTreeNode(Pn,no,no.visible?1:0,go,To,Ze)}),No=M[M.length-1],Qo=0,Do=No;Do>=0&&Do<no.children.length;Do--){var Lo=no.children[Do];if(Lo.visible){Qo=Lo.visibleChildIndex;break}}var vn=[],hn=0,En=0;P.d.forEach(_o,function(Pn){vn.push(Pn),En+=Pn.renderNodeCount,Pn.visible&&(Pn.visibleChildIndex=Qo+hn++)});for(var qo=(wt=no.children).splice.apply(wt,x([No,ue],vn)),xn=0,Un=0,An=qo;Un<An.length;Un++){var Lo=An[Un];Lo.visible&&xn++}if(xn!==0)for(var Do=No+vn.length;Do<no.children.length;Do++){var Lo=no.children[Do];Lo.visible&&(Lo.visibleChildIndex-=xn)}if(no.visibleChildrenCount+=hn-xn,go&&Ao){var si=qo.reduce(function(Pn,bi){return Pn+(bi.visible?bi.renderNodeCount:0)},0);this._updateAncestorsRenderNodeCount(no,En-si),this.list.splice(uo,si,To)}if(qo.length>0&&at){var ai=function(Pn){at(Pn),Pn.children.forEach(ai)};qo.forEach(ai)}this._onDidSplice.fire({insertedNodes:vn,deletedNodes:qo})},he.prototype.rerender=function(M){if(M.length===0)throw new L(this.user,"Invalid tree location");var ue=this.getTreeNodeWithListIndex(M),We=ue.node,Ze=ue.listIndex,at=ue.revealed;at&&this.list.splice(Ze,1,[We])},he.prototype.has=function(M){return this.hasTreeNode(M)},he.prototype.getListIndex=function(M){var ue=this.getTreeNodeWithListIndex(M),We=ue.listIndex,Ze=ue.visible,at=ue.revealed;return Ze&&at?We:-1},he.prototype.getListRenderCount=function(M){return this.getTreeNode(M).renderNodeCount},he.prototype.isCollapsible=function(M){return this.getTreeNode(M).collapsible},he.prototype.setCollapsible=function(M,ue){var We=this,Ze=this.getTreeNode(M);typeof ue=="undefined"&&(ue=!Ze.collapsible);var at={collapsible:ue};return this.eventBufferer.bufferEvents(function(){return We._setCollapseState(M,at)})},he.prototype.isCollapsed=function(M){return this.getTreeNode(M).collapsed},he.prototype.setCollapsed=function(M,ue,We){var Ze=this,at=this.getTreeNode(M);typeof ue=="undefined"&&(ue=!at.collapsed);var wt={collapsed:ue,recursive:We||!1};return this.eventBufferer.bufferEvents(function(){return Ze._setCollapseState(M,wt)})},he.prototype._setCollapseState=function(M,ue){var We=this.getTreeNodeWithListIndex(M),Ze=We.node,at=We.listIndex,wt=We.revealed,zt=this._setListNodeCollapseState(Ze,at,wt,ue);if(Ze!==this.root&&this.autoExpandSingleChildren&&zt&&!W(ue)&&Ze.collapsible&&!Ze.collapsed&&!ue.recursive){for(var Xt=-1,no=0;no<Ze.children.length;no++){var uo=Ze.children[no];if(uo.visible)if(Xt>-1){Xt=-1;break}else Xt=no}Xt>-1&&this._setCollapseState(x(M,[Xt]),ue)}return zt},he.prototype._setListNodeCollapseState=function(M,ue,We,Ze){var at=this._setNodeCollapseState(M,Ze,!1);if(!We||!M.visible||!at)return at;var wt=M.renderNodeCount,zt=this.updateNodeAfterCollapseChange(M),Xt=wt-(ue===-1?0:1);return this.list.splice(ue+1,Xt,zt.slice(1)),at},he.prototype._setNodeCollapseState=function(M,ue,We){var Ze;if(M===this.root?Ze=!1:(W(ue)?(Ze=M.collapsible!==ue.collapsible,M.collapsible=ue.collapsible):M.collapsible?(Ze=M.collapsed!==ue.collapsed,M.collapsed=ue.collapsed):Ze=!1,Ze&&this._onDidChangeCollapseState.fire({node:M,deep:We})),!W(ue)&&ue.recursive)for(var at=0,wt=M.children;at<wt.length;at++){var zt=wt[at];Ze=this._setNodeCollapseState(zt,ue,!0)||Ze}return Ze},he.prototype.expandTo=function(M){var ue=this;this.eventBufferer.bufferEvents(function(){for(var We=ue.getTreeNode(M);We.parent;)We=We.parent,M=M.slice(0,M.length-1),We.collapsed&&ue._setCollapseState(M,{collapsed:!1,recursive:!1})})},he.prototype.refilter=function(){var M=this.root.renderNodeCount,ue=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,M,ue)},he.prototype.createTreeNode=function(M,ue,We,Ze,at,wt){var zt=this,Xt={parent:ue,element:M.element,children:[],depth:ue.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof M.collapsible=="boolean"?M.collapsible:typeof M.collapsed!="undefined",collapsed:typeof M.collapsed=="undefined"?this.collapseByDefault:M.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},no=this._filterNode(Xt,We);Ze&&at.push(Xt);var uo=P.d.from(M.children),go=Ze&&no!==0&&!Xt.collapsed,Ao=P.d.map(uo,function(No){return zt.createTreeNode(No,Xt,no,go,at,wt)}),To=0,_o=1;return P.d.forEach(Ao,function(No){Xt.children.push(No),_o+=No.renderNodeCount,No.visible&&(No.visibleChildIndex=To++)}),Xt.collapsible=Xt.collapsible||Xt.children.length>0,Xt.visibleChildrenCount=To,Xt.visible=no===2?To>0:no===1,Xt.visible?Xt.collapsed||(Xt.renderNodeCount=_o):(Xt.renderNodeCount=0,Ze&&at.pop()),wt&&wt(Xt),Xt},he.prototype.updateNodeAfterCollapseChange=function(M){var ue=M.renderNodeCount,We=[];return this._updateNodeAfterCollapseChange(M,We),this._updateAncestorsRenderNodeCount(M.parent,We.length-ue),We},he.prototype._updateNodeAfterCollapseChange=function(M,ue){if(M.visible===!1)return 0;if(ue.push(M),M.renderNodeCount=1,!M.collapsed)for(var We=0,Ze=M.children;We<Ze.length;We++){var at=Ze[We];M.renderNodeCount+=this._updateNodeAfterCollapseChange(at,ue)}return this._onDidChangeRenderNodeCount.fire(M),M.renderNodeCount},he.prototype.updateNodeAfterFilterChange=function(M){var ue=M.renderNodeCount,We=[];return this._updateNodeAfterFilterChange(M,M.visible?1:0,We),this._updateAncestorsRenderNodeCount(M.parent,We.length-ue),We},he.prototype._updateNodeAfterFilterChange=function(M,ue,We,Ze){Ze===void 0&&(Ze=!0);var at;if(M!==this.root){if(at=this._filterNode(M,ue),at===0)return M.visible=!1,M.renderNodeCount=0,!1;Ze&&We.push(M)}var wt=We.length;M.renderNodeCount=M===this.root?0:1;var zt=!1;if(!M.collapsed||at!==0){for(var Xt=0,no=0,uo=M.children;no<uo.length;no++){var go=uo[no];zt=this._updateNodeAfterFilterChange(go,at,We,Ze&&!M.collapsed)||zt,go.visible&&(go.visibleChildIndex=Xt++)}M.visibleChildrenCount=Xt}else M.visibleChildrenCount=0;return M!==this.root&&(M.visible=at===2?zt:at===1),M.visible?M.collapsed||(M.renderNodeCount+=We.length-wt):(M.renderNodeCount=0,Ze&&We.pop()),this._onDidChangeRenderNodeCount.fire(M),M.visible},he.prototype._updateAncestorsRenderNodeCount=function(M,ue){if(ue===0)return;for(;M;)M.renderNodeCount+=ue,this._onDidChangeRenderNodeCount.fire(M),M=M.parent},he.prototype._filterNode=function(M,ue){var We=this.filter?this.filter.filter(M.element,ue):1;return typeof We=="boolean"?(M.filterData=void 0,We?1:0):Q(We)?(M.filterData=We.data,V(We.visibility)):(M.filterData=void 0,V(We))},he.prototype.hasTreeNode=function(M,ue){if(ue===void 0&&(ue=this.root),!M||M.length===0)return!0;var We=M[0],Ze=M.slice(1);return We<0||We>ue.children.length?!1:this.hasTreeNode(Ze,ue.children[We])},he.prototype.getTreeNode=function(M,ue){if(ue===void 0&&(ue=this.root),!M||M.length===0)return ue;var We=M[0],Ze=M.slice(1);if(We<0||We>ue.children.length)throw new L(this.user,"Invalid tree location");return this.getTreeNode(Ze,ue.children[We])},he.prototype.getTreeNodeWithListIndex=function(M){if(M.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var ue=this.getParentNodeWithListIndex(M),We=ue.parentNode,Ze=ue.listIndex,at=ue.revealed,wt=ue.visible,zt=M[M.length-1];if(zt<0||zt>We.children.length)throw new L(this.user,"Invalid tree location");var Xt=We.children[zt];return{node:Xt,listIndex:Ze,revealed:at,visible:wt&&Xt.visible}},he.prototype.getParentNodeWithListIndex=function(M,ue,We,Ze,at){ue===void 0&&(ue=this.root),We===void 0&&(We=0),Ze===void 0&&(Ze=!0),at===void 0&&(at=!0);var wt=M[0],zt=M.slice(1);if(wt<0||wt>ue.children.length)throw new L(this.user,"Invalid tree location");for(var Xt=0;Xt<wt;Xt++)We+=ue.children[Xt].renderNodeCount;return Ze=Ze&&!ue.collapsed,at=at&&ue.visible,zt.length===0?{parentNode:ue,listIndex:We,revealed:Ze,visible:at}:this.getParentNodeWithListIndex(zt,ue.children[wt],We+1,Ze,at)},he.prototype.getNode=function(M){return M===void 0&&(M=[]),this.getTreeNode(M)},he.prototype.getNodeLocation=function(M){for(var ue=[],We=M;We.parent;)ue.push(We.parent.children.indexOf(We)),We=We.parent;return ue.reverse()},he.prototype.getParentNodeLocation=function(M){return M.length===0?void 0:M.length===1?[]:Object(d.w)(M)[0]},he}(),ae=e("X+cX"),we=e("MNsG"),Me=e("QDVR"),Pe=e("Sdnv"),Be=e("vl9R"),Ke=function(){var he=function(M,ue){return he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,Ze){We.__proto__=Ze}||function(We,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(We[at]=Ze[at])},he(M,ue)};return function(M,ue){he(M,ue);function We(){this.constructor=M}M.prototype=ue===null?Object.create(ue):(We.prototype=ue.prototype,new We)}}(),Fe=function(){return Fe=Object.assign||function(he){for(var M,ue=1,We=arguments.length;ue<We;ue++){M=arguments[ue];for(var Ze in M)Object.prototype.hasOwnProperty.call(M,Ze)&&(he[Ze]=M[Ze])}return he},Fe.apply(this,arguments)},re=function(){for(var he=0,M=0,ue=arguments.length;M<ue;M++)he+=arguments[M].length;for(var We=Array(he),Ze=0,M=0;M<ue;M++)for(var at=arguments[M],wt=0,zt=at.length;wt<zt;wt++,Ze++)We[Ze]=at[wt];return We},ee=function(he){Ke(M,he);function M(ue){var We=he.call(this,ue.elements.map(function(Ze){return Ze.element}))||this;return We.data=ue,We}return M}(c.a);function ne(he){return he instanceof c.a?new ee(he):he}var q=function(){function he(M,ue){this.modelProvider=M,this.dnd=ue,this.autoExpandDisposable=J.a.None}return he.prototype.getDragURI=function(M){return this.dnd.getDragURI(M.element)},he.prototype.getDragLabel=function(M,ue){return this.dnd.getDragLabel?this.dnd.getDragLabel(M.map(function(We){return We.element}),ue):void 0},he.prototype.onDragStart=function(M,ue){this.dnd.onDragStart&&this.dnd.onDragStart(ne(M),ue)},he.prototype.onDragOver=function(M,ue,We,Ze,at){var wt=this;at===void 0&&(at=!0);var zt=this.dnd.onDragOver(ne(M),ue&&ue.element,We,Ze),Xt=this.autoExpandNode!==ue;if(Xt&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=ue),typeof ue=="undefined")return zt;if(Xt&&typeof zt!="boolean"&&zt.autoExpand&&(this.autoExpandDisposable=Object(ae.g)(function(){var hn=wt.modelProvider(),En=hn.getNodeLocation(ue);hn.isCollapsed(En)&&hn.setCollapsed(En,!1),wt.autoExpandNode=void 0},500)),typeof zt=="boolean"||!zt.accept||typeof zt.bubble=="undefined"||zt.feedback){if(!at){var no=typeof zt=="boolean"?zt:zt.accept,uo=typeof zt=="boolean"?void 0:zt.effect;return{accept:no,effect:uo,feedback:[We]}}return zt}if(zt.bubble===1){var go=this.modelProvider(),Ao=go.getNodeLocation(ue),To=go.getParentNodeLocation(Ao),_o=go.getNode(To),No=To&&go.getListIndex(To);return this.onDragOver(M,_o,No,Ze,!1)}var Qo=this.modelProvider(),Do=Qo.getNodeLocation(ue),Lo=Qo.getListIndex(Do),vn=Qo.getListRenderCount(Do);return Fe(Fe({},zt),{feedback:Object(d.u)(Lo,Lo+vn)})},he.prototype.drop=function(M,ue,We,Ze){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ne(M),ue&&ue.element,We,Ze)},he.prototype.onDragEnd=function(M){this.dnd.onDragEnd&&this.dnd.onDragEnd(M)},he}();function le(he,M){return M&&Fe(Fe({},M),{identityProvider:M.identityProvider&&{getId:function(ue){return M.identityProvider.getId(ue.element)}},dnd:M.dnd&&new q(he,M.dnd),multipleSelectionController:M.multipleSelectionController&&{isSelectionSingleChangeEvent:function(ue){return M.multipleSelectionController.isSelectionSingleChangeEvent(Fe(Fe({},ue),{element:ue.element}))},isSelectionRangeChangeEvent:function(ue){return M.multipleSelectionController.isSelectionRangeChangeEvent(Fe(Fe({},ue),{element:ue.element}))}},accessibilityProvider:M.accessibilityProvider&&Fe(Fe({},M.accessibilityProvider),{getAriaLabel:function(ue){return M.accessibilityProvider.getAriaLabel(ue.element)},getAriaLevel:function(ue){return ue.depth},getActiveDescendantId:M.accessibilityProvider.getActiveDescendantId&&function(ue){return M.accessibilityProvider.getActiveDescendantId(ue.element)}}),keyboardNavigationLabelProvider:M.keyboardNavigationLabelProvider&&Fe(Fe({},M.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(ue){return M.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ue.element)}}),enableKeyboardNavigation:M.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(ue){var We=he(),Ze=We.getNodeLocation(ue),at=We.getParentNodeLocation(Ze),wt=We.getNode(at);return wt.visibleChildrenCount},getPosInSet:function(ue){return ue.visibleChildIndex+1},isChecked:M.ariaProvider&&M.ariaProvider.isChecked?function(ue){return M.ariaProvider.isChecked(ue.element)}:void 0,getRole:M.ariaProvider&&M.ariaProvider.getRole?function(ue){return M.ariaProvider.getRole(ue.element)}:void 0}})}var Z=function(){function he(M){this.delegate=M}return he.prototype.getHeight=function(M){return this.delegate.getHeight(M.element)},he.prototype.getTemplateId=function(M){return this.delegate.getTemplateId(M.element)},he.prototype.hasDynamicHeight=function(M){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(M.element)},he.prototype.setDynamicHeight=function(M,ue){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(M.element,ue)},he}(),ve;(function(he){he.None="none",he.OnHover="onHover",he.Always="always"})(ve||(ve={}));var Ne=function(){function he(M,ue){var We=this;ue===void 0&&(ue=[]),this._elements=ue,this.onDidChange=w.b.forEach(M,function(Ze){return We._elements=Ze})}return Object.defineProperty(he.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),he}(),Xe=function(){function he(M,ue,We,Ze,at){at===void 0&&(at={}),this.renderer=M,this.modelProvider=ue,this.activeNodes=Ze,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=he.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new Be.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=J.a.None,this.disposables=new J.b,this.templateId=M.templateId,this.updateOptions(at),w.b.map(We,function(wt){return wt.node})(this.onDidChangeNodeTwistieState,this,this.disposables),M.onDidChangeTwistieState&&M.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return he.prototype.updateOptions=function(M){if(M===void 0&&(M={}),typeof M.indent!="undefined"&&(this.indent=Object(Pe.a)(M.indent,0,40)),typeof M.renderIndentGuides!="undefined"){var ue=M.renderIndentGuides!==ve.None;if(ue!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=ue,this.indentGuidesDisposable.dispose(),ue)){var We=new J.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,We),this.indentGuidesDisposable=We,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof M.hideTwistiesOfChildlessElements!="undefined"&&(this.hideTwistiesOfChildlessElements=M.hideTwistiesOfChildlessElements)},he.prototype.renderTemplate=function(M){var ue=Object(T.q)(M,Object(T.a)(".monaco-tl-row")),We=Object(T.q)(ue,Object(T.a)(".monaco-tl-indent")),Ze=Object(T.q)(ue,Object(T.a)(".monaco-tl-twistie")),at=Object(T.q)(ue,Object(T.a)(".monaco-tl-contents")),wt=this.renderer.renderTemplate(at);return{container:M,indent:We,twistie:Ze,indentGuidesDisposable:J.a.None,templateData:wt}},he.prototype.renderElement=function(M,ue,We,Ze){typeof Ze=="number"&&(this.renderedNodes.set(M,{templateData:We,height:Ze}),this.renderedElements.set(M.element,M));var at=he.DefaultIndent+(M.depth-1)*this.indent;We.twistie.style.paddingLeft=at+"px",We.indent.style.width=at+this.indent-16+"px",this.renderTwistie(M,We),typeof Ze=="number"&&this.renderIndentGuides(M,We),this.renderer.renderElement(M,ue,We.templateData,Ze)},he.prototype.disposeElement=function(M,ue,We,Ze){We.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(M,ue,We.templateData,Ze),typeof Ze=="number"&&(this.renderedNodes.delete(M),this.renderedElements.delete(M.element))},he.prototype.disposeTemplate=function(M){this.renderer.disposeTemplate(M.templateData)},he.prototype.onDidChangeTwistieState=function(M){var ue=this.renderedElements.get(M);if(!ue)return;this.onDidChangeNodeTwistieState(ue)},he.prototype.onDidChangeNodeTwistieState=function(M){var ue=this.renderedNodes.get(M);if(!ue)return;this.renderTwistie(M,ue.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(M,ue.templateData)},he.prototype.renderTwistie=function(M,ue){this.renderer.renderTwistie&&this.renderer.renderTwistie(M.element,ue.twistie),M.collapsible&&(!this.hideTwistiesOfChildlessElements||M.visibleChildrenCount>0)?(Object(T.g)(ue.twistie,"codicon","codicon-chevron-down","collapsible"),Object(T.Y)(ue.twistie,"collapsed",M.collapsed)):Object(T.Q)(ue.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),M.collapsible?ue.container.setAttribute("aria-expanded",String(!M.collapsed)):ue.container.removeAttribute("aria-expanded")},he.prototype.renderIndentGuides=function(M,ue){var We=this;if(Object(T.t)(ue.indent),ue.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;for(var Ze=new J.b,at=this.modelProvider(),wt=M,zt=function(){var uo=at.getNodeLocation(wt),go=at.getParentNodeLocation(uo);if(!go)return"break";var Ao=at.getNode(go),To=Object(T.a)(".indent-guide",{style:"width: "+Xt.indent+"px"});Xt.activeIndentNodes.has(Ao)&&Object(T.f)(To,"active"),ue.indent.childElementCount===0?ue.indent.appendChild(To):ue.indent.insertBefore(To,ue.indent.firstElementChild),Xt.renderedIndentGuides.add(Ao,To),Ze.add(Object(J.h)(function(){return We.renderedIndentGuides.delete(Ao,To)})),wt=Ao},Xt=this;;){var no=zt();if(no==="break")break}ue.indentGuidesDisposable=Ze},he.prototype._onDidChangeActiveNodes=function(M){var ue=this;if(!this.shouldRenderIndentGuides)return;var We=new Set,Ze=this.modelProvider();M.forEach(function(at){var wt=Ze.getNodeLocation(at);try{var zt=Ze.getParentNodeLocation(wt);at.collapsible&&at.children.length>0&&!at.collapsed?We.add(at):zt&&We.add(Ze.getNode(zt))}catch(Xt){}}),this.activeIndentNodes.forEach(function(at){We.has(at)||ue.renderedIndentGuides.forEach(at,function(wt){return Object(T.P)(wt,"active")})}),We.forEach(function(at){ue.activeIndentNodes.has(at)||ue.renderedIndentGuides.forEach(at,function(wt){return Object(T.f)(wt,"active")})}),this.activeIndentNodes=We},he.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(J.f)(this.disposables)},he.DefaultIndent=8,he}(),de=function(){function he(M,ue,We){this.tree=M,this.keyboardNavigationLabelProvider=ue,this._filter=We,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new J.b,M.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(he.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"pattern",{set:function(M){this._pattern=M,this._lowercasePattern=M.toLowerCase()},enumerable:!0,configurable:!0}),he.prototype.filter=function(M,ue){if(this._filter){var We=this._filter.filter(M,ue);if(this.tree.options.simpleKeyboardNavigation)return We;var Ze=void 0;if(typeof We=="boolean"?Ze=We?1:0:Q(We)?Ze=V(We.visibility):Ze=We,Ze===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:f.a.Default,visibility:!0};var at=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(M),wt=at&&at.toString();if(typeof wt=="undefined")return{data:f.a.Default,visibility:!0};var zt=Object(f.d)(this._pattern,this._lowercasePattern,0,wt,wt.toLowerCase(),0,!0);return zt?(this._matchCount++,{data:zt,visibility:!0}):this.tree.options.filterOnType?2:{data:f.a.Default,visibility:!0}},he.prototype.reset=function(){this._totalCount=0,this._matchCount=0},he.prototype.dispose=function(){Object(J.f)(this.disposables)},he}(),ge=function(){function he(M,ue,We,Ze,at){this.tree=M,this.view=We,this.filter=Ze,this.keyboardNavigationDelegate=at,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new w.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new w.a,this.enabledDisposables=new J.b,this.disposables=new J.b,this.domNode=Object(T.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(u.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(T.q)(We.getHTMLElement(),Object(T.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(T.q)(this.domNode,Object(T.a)("span.label"));var wt=Object(T.q)(this.domNode,Object(T.a)(".controls"));this._filterOnType=!!M.options.filterOnType,this.filterOnTypeDomNode=Object(T.q)(wt,Object(T.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(u.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(T.q)(wt,Object(T.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(I.a)("clear","Clear"),this.keyboardNavigationEventFilter=M.options.keyboardNavigationEventFilter,ue.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(M.options)}return Object.defineProperty(he.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),he.prototype.updateOptions=function(M){M.simpleKeyboardNavigation?this.disable():this.enable(),typeof M.filterOnType!="undefined"&&(this._filterOnType=!!M.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),typeof M.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=M.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},he.prototype.enable=function(){var M=this;if(this._enabled)return;var ue=w.b.chain(Object(u.a)(this.view.getHTMLElement(),"keydown")).filter(function(Ze){return!Ee(Ze.target)||Ze.target===M.filterOnTypeDomNode}).filter(function(Ze){return Ze.key!=="Dead"&&!/^Media/.test(Ze.key)}).map(function(Ze){return new v.a(Ze)}).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter(function(){return M.automaticKeyboardNavigation||M.triggered}).filter(function(Ze){return M.keyboardNavigationDelegate.mightProducePrintableCharacter(Ze)||(M.pattern.length>0||M.triggered)&&((Ze.keyCode===9||Ze.keyCode===1)&&!Ze.altKey&&!Ze.ctrlKey)&&!Ze.metaKey||Ze.keyCode===1&&(we.e?Ze.altKey&&!Ze.metaKey:Ze.ctrlKey)&&!Ze.shiftKey}).forEach(function(Ze){Ze.stopPropagation(),Ze.preventDefault()}).event,We=Object(u.a)(this.clearDomNode,"click");w.b.chain(w.b.any(ue,We)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1},he.prototype.disable=function(){if(!this._enabled)return;this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1},he.prototype.onEventOrInput=function(M){typeof M=="string"?this.onInput(M):M instanceof MouseEvent||M.keyCode===9||M.keyCode===1&&(we.e?M.altKey:M.ctrlKey)?this.onInput(""):M.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+M.browserEvent.key)},he.prototype.onInput=function(M){var ue=this.view.getHTMLElement();M&&!this.domNode.parentElement?ue.append(this.domNode):!M&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=M,this._onDidChangePattern.fire(M),this.filter.pattern=M,this.tree.refilter(),M&&this.tree.focusNext(0,!0,void 0,function(at){return!f.a.isDefault(at.filterData)});var We=this.tree.getFocus();if(We.length>0){var Ze=We[0];this.tree.getRelativeTop(Ze)===null&&this.tree.reveal(Ze,.5)}this.render(),M||(this.triggered=!1)},he.prototype.onDragStart=function(){var M=this,ue=this.view.getHTMLElement(),We=Object(T.C)(ue).left,Ze=ue.clientWidth,at=Ze/2,wt=this.domNode.clientWidth,zt=new J.b,Xt=this.positionClassName,no=function(){switch(Xt){case"nw":M.domNode.style.top="4px",M.domNode.style.left="4px";break;case"ne":M.domNode.style.top="4px",M.domNode.style.left=Ze-wt-6+"px";break}},uo=function(Ao){Ao.preventDefault();var To=Ao.screenX-We;Ao.dataTransfer&&(Ao.dataTransfer.dropEffect="none"),To<at?Xt="nw":Xt="ne",no()},go=function(){M.positionClassName=Xt,M.domNode.className="monaco-list-type-filter "+M.positionClassName,M.domNode.style.top="",M.domNode.style.left="",Object(J.f)(zt)};no(),Object(T.P)(this.domNode,Xt),Object(T.f)(this.domNode,"dragging"),zt.add(Object(J.h)(function(){return Object(T.P)(M.domNode,"dragging")})),Object(u.a)(document,"dragover")(uo,null,zt),Object(u.a)(this.domNode,"dragend")(go,null,zt),p.c.CurrentDragAndDropData=new p.b("vscode-ui"),zt.add(Object(J.h)(function(){return p.c.CurrentDragAndDropData=void 0}))},he.prototype.onDidSpliceModel=function(){if(!this._enabled||this.pattern.length===0)return;this.tree.refilter(),this.render()},he.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},he.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(I.a)("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(I.a)("enable filter on type","Enable Filter on Type")},he.prototype.render=function(){var M=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&M?(this.messageDomNode.textContent=Object(I.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(T.Y)(this.domNode,"no-matches",M),this.domNode.title=Object(I.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},he.prototype.shouldAllowFocus=function(M){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!f.a.isDefault(M.filterData)},he.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(J.f)(this.disposables)},he}();function Ee(he){return he.tagName==="INPUT"||he.tagName==="TEXTAREA"}function Te(he){return{elements:he.elements.map(function(M){return M.element}),browserEvent:he.browserEvent}}function Ce(he,M){M(he),he.children.forEach(function(ue){return Ce(ue,M)})}var fe=function(){function he(M){this.identityProvider=M,this.nodes=[],this._onDidChange=new w.a,this.onDidChange=this._onDidChange.event}return Object.defineProperty(he.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),he.prototype.set=function(M,ue){if(Object(d.g)(this.nodes,M))return;this._set(M,!1,ue)},he.prototype._set=function(M,ue,We){if(this.nodes=re(M),this.elements=void 0,this._nodeSet=void 0,!ue){var Ze=this;this._onDidChange.fire({get elements(){return Ze.get()},browserEvent:We})}},he.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(M){return M.element})),re(this.elements)},he.prototype.getNodes=function(){return this.nodes},he.prototype.has=function(M){return this.nodeSet.has(M)},he.prototype.onDidModelSplice=function(M){var ue=this,We=M.insertedNodes,Ze=M.deletedNodes;if(!this.identityProvider){var at=this.createNodeSet(),wt=function(Lo){return at.delete(Lo)};Ze.forEach(function(Lo){return Ce(Lo,wt)}),this.set(Object(Me.e)(at));return}var zt=new Set,Xt=function(Lo){return zt.add(ue.identityProvider.getId(Lo.element).toString())};Ze.forEach(function(Lo){return Ce(Lo,Xt)});var no=new Map,uo=function(Lo){return no.set(ue.identityProvider.getId(Lo.element).toString(),Lo)};We.forEach(function(Lo){return Ce(Lo,uo)});for(var go=[],Ao=0,To=this.nodes;Ao<To.length;Ao++){var _o=To[Ao],No=this.identityProvider.getId(_o.element).toString(),Qo=zt.has(No);if(!Qo)go.push(_o);else{var Do=no.get(No);Do&&go.push(Do)}}this._set(go,!0)},he.prototype.createNodeSet=function(){for(var M=new Set,ue=0,We=this.nodes;ue<We.length;ue++){var Ze=We[ue];M.add(Ze)}return M},he}(),$=function(he){Ke(M,he);function M(ue,We){var Ze=he.call(this,ue)||this;return Ze.tree=We,Ze}return M.prototype.onPointer=function(ue){if(Ee(ue.browserEvent.target))return;var We=ue.element;if(!We)return he.prototype.onPointer.call(this,ue);if(this.isSelectionRangeChangeEvent(ue)||this.isSelectionSingleChangeEvent(ue))return he.prototype.onPointer.call(this,ue);var Ze=Object(T.I)(ue.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&ue.browserEvent.detail!==2&&!Ze)return he.prototype.onPointer.call(this,ue);var at=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?at=this.tree.expandOnlyOnTwistieClick(We.element):at=!!this.tree.expandOnlyOnTwistieClick,at&&!Ze)return he.prototype.onPointer.call(this,ue);if(We.collapsible){var wt=this.tree.model,zt=wt.getNodeLocation(We),Xt=ue.browserEvent.altKey;if(wt.setCollapsed(zt,void 0,Xt),at&&Ze)return}he.prototype.onPointer.call(this,ue)},M.prototype.onDoubleClick=function(ue){var We=Object(T.I)(ue.browserEvent.target,"monaco-tl-twistie");if(We)return;he.prototype.onDoubleClick.call(this,ue)},M}(pe.d),S=function(he){Ke(M,he);function M(ue,We,Ze,at,wt,zt,Xt){var no=he.call(this,ue,We,Ze,at,Xt)||this;return no.focusTrait=wt,no.selectionTrait=zt,no}return M.prototype.createMouseController=function(ue){return new $(this,ue.tree)},M.prototype.splice=function(ue,We,Ze){var at=this;if(Ze===void 0&&(Ze=[]),he.prototype.splice.call(this,ue,We,Ze),Ze.length===0)return;var wt=[],zt=[];Ze.forEach(function(Xt,no){at.focusTrait.has(Xt)&&wt.push(ue+no),at.selectionTrait.has(Xt)&&zt.push(ue+no)}),wt.length>0&&he.prototype.setFocus.call(this,Object(d.f)(re(he.prototype.getFocus.call(this),wt))),zt.length>0&&he.prototype.setSelection.call(this,Object(d.f)(re(he.prototype.getSelection.call(this),zt)))},M.prototype.setFocus=function(ue,We,Ze){var at=this;Ze===void 0&&(Ze=!1),he.prototype.setFocus.call(this,ue,We),Ze||this.focusTrait.set(ue.map(function(wt){return at.element(wt)}),We)},M.prototype.setSelection=function(ue,We,Ze){var at=this;Ze===void 0&&(Ze=!1),he.prototype.setSelection.call(this,ue,We),Ze||this.selectionTrait.set(ue.map(function(wt){return at.element(wt)}),We)},M}(pe.c),z=function(){function he(M,ue,We,Ze,at){var wt=this;at===void 0&&(at={}),this._options=at,this.eventBufferer=new w.c,this.disposables=new J.b,this._onWillRefilter=new w.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new w.a;var zt=new Z(We),Xt=new w.f,no=new w.f,uo=new Ne(no.event);this.renderers=Ze.map(function(Lo){return new Xe(Lo,function(){return wt.model},Xt.event,uo,at)});for(var go=0,Ao=this.renderers;go<Ao.length;go++){var To=Ao[go];this.disposables.add(To)}var _o;at.keyboardNavigationLabelProvider&&(_o=new de(this,at.keyboardNavigationLabelProvider,at.filter),at=Fe(Fe({},at),{filter:_o}),this.disposables.add(_o)),this.focus=new fe(at.identityProvider),this.selection=new fe(at.identityProvider),this.view=new S(M,ue,zt,this.renderers,this.focus,this.selection,Fe(Fe({},le(function(){return wt.model},at)),{tree:this})),this.model=this.createModel(M,this.view,at),Xt.input=this.model.onDidChangeCollapseState;var No=w.b.forEach(this.model.onDidSplice,function(Lo){wt.eventBufferer.bufferEvents(function(){wt.focus.onDidModelSplice(Lo),wt.selection.onDidModelSplice(Lo)})});if(No(function(){return null},null,this.disposables),no.input=w.b.chain(w.b.any(No,this.focus.onDidChange,this.selection.onDidChange)).debounce(function(){return null},0).map(function(){for(var Lo=new Set,vn=0,hn=wt.focus.getNodes();vn<hn.length;vn++){var En=hn[vn];Lo.add(En)}for(var qo=0,xn=wt.selection.getNodes();qo<xn.length;qo++){var En=xn[qo];Lo.add(En)}return Object(d.n)(Lo)}).event,at.keyboardSupport!==!1){var Qo=w.b.chain(this.view.onKeyDown).filter(function(Lo){return!Ee(Lo.target)}).map(function(Lo){return new v.a(Lo)});Qo.filter(function(Lo){return Lo.keyCode===15}).on(this.onLeftArrow,this,this.disposables),Qo.filter(function(Lo){return Lo.keyCode===17}).on(this.onRightArrow,this,this.disposables),Qo.filter(function(Lo){return Lo.keyCode===10}).on(this.onSpace,this,this.disposables)}if(at.keyboardNavigationLabelProvider){var Do=at.keyboardNavigationDelegate||pe.a;this.typeFilterController=new ge(this,this.model,this.view,_o,Do),this.focusNavigationFilter=function(Lo){return wt.typeFilterController.shouldAllowFocus(Lo)},this.disposables.add(this.typeFilterController)}this.styleElement=Object(T.w)(this.view.getHTMLElement()),Object(T.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===ve.Always)}return Object.defineProperty(he.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidOpen",{get:function(){return w.b.map(this.view.onDidOpen,Te)},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"openOnSingleClick",{get:function(){return typeof this._options.openOnSingleClick=="undefined"?!0:this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"expandOnlyOnTwistieClick",{get:function(){return typeof this._options.expandOnlyOnTwistieClick=="undefined"?!1:this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),he.prototype.updateOptions=function(M){M===void 0&&(M={}),this._options=Fe(Fe({},this._options),M);for(var ue=0,We=this.renderers;ue<We.length;ue++){var Ze=We[ue];Ze.updateOptions(M)}this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(T.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===ve.Always)},Object.defineProperty(he.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),he.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(he.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(M){this.view.scrollTop=M},enumerable:!0,configurable:!0}),he.prototype.domFocus=function(){this.view.domFocus()},he.prototype.layout=function(M,ue){this.view.layout(M,ue)},he.prototype.style=function(M){var ue="."+this.view.domId,We=[];M.treeIndentGuidesStroke&&(We.push(".monaco-list"+ue+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+ue+".always .monaco-tl-indent > .indent-guide { border-color: "+M.treeIndentGuidesStroke.transparent(.4)+"; }"),We.push(".monaco-list"+ue+" .monaco-tl-indent > .indent-guide.active { border-color: "+M.treeIndentGuidesStroke+"; }"));var Ze=We.join(`
`);Ze!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=Ze),this.view.style(M)},he.prototype.collapse=function(M,ue){return ue===void 0&&(ue=!1),this.model.setCollapsed(M,!0,ue)},he.prototype.expand=function(M,ue){return ue===void 0&&(ue=!1),this.model.setCollapsed(M,!1,ue)},he.prototype.isCollapsible=function(M){return this.model.isCollapsible(M)},he.prototype.setCollapsible=function(M,ue){return this.model.setCollapsible(M,ue)},he.prototype.isCollapsed=function(M){return this.model.isCollapsed(M)},he.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},he.prototype.setSelection=function(M,ue){var We=this,Ze=M.map(function(wt){return We.model.getNode(wt)});this.selection.set(Ze,ue);var at=M.map(function(wt){return We.model.getListIndex(wt)}).filter(function(wt){return wt>-1});this.view.setSelection(at,ue,!0)},he.prototype.getSelection=function(){return this.selection.get()},he.prototype.setFocus=function(M,ue){var We=this,Ze=M.map(function(wt){return We.model.getNode(wt)});this.focus.set(Ze,ue);var at=M.map(function(wt){return We.model.getListIndex(wt)}).filter(function(wt){return wt>-1});this.view.setFocus(at,ue,!0)},he.prototype.focusNext=function(M,ue,We,Ze){M===void 0&&(M=1),ue===void 0&&(ue=!1),Ze===void 0&&(Ze=this.focusNavigationFilter),this.view.focusNext(M,ue,We,Ze)},he.prototype.getFocus=function(){return this.focus.get()},he.prototype.reveal=function(M,ue){this.model.expandTo(M);var We=this.model.getListIndex(M);if(We===-1)return;this.view.reveal(We,ue)},he.prototype.getRelativeTop=function(M){var ue=this.model.getListIndex(M);return ue===-1?null:this.view.getRelativeTop(ue)},he.prototype.onLeftArrow=function(M){M.preventDefault(),M.stopPropagation();var ue=this.view.getFocusedElements();if(ue.length===0)return;var We=ue[0],Ze=this.model.getNodeLocation(We),at=this.model.setCollapsed(Ze,!0);if(!at){var wt=this.model.getParentNodeLocation(Ze);if(!wt)return;var zt=this.model.getListIndex(wt);this.view.reveal(zt),this.view.setFocus([zt])}},he.prototype.onRightArrow=function(M){M.preventDefault(),M.stopPropagation();var ue=this.view.getFocusedElements();if(ue.length===0)return;var We=ue[0],Ze=this.model.getNodeLocation(We),at=this.model.setCollapsed(Ze,!1);if(!at){if(!We.children.some(function(Xt){return Xt.visible}))return;var wt=this.view.getFocus()[0],zt=wt+1;this.view.reveal(zt),this.view.setFocus([zt])}},he.prototype.onSpace=function(M){M.preventDefault(),M.stopPropagation();var ue=this.view.getFocusedElements();if(ue.length===0)return;var We=ue[0],Ze=this.model.getNodeLocation(We),at=M.browserEvent.altKey;this.model.setCollapsed(Ze,void 0,at)},he.prototype.dispose=function(){Object(J.f)(this.disposables),this.view.dispose()},he}(),ce=function(){return ce=Object.assign||function(he){for(var M,ue=1,We=arguments.length;ue<We;ue++){M=arguments[ue];for(var Ze in M)Object.prototype.hasOwnProperty.call(M,Ze)&&(he[Ze]=M[Ze])}return he},ce.apply(this,arguments)},se=function(){for(var he=0,M=0,ue=arguments.length;M<ue;M++)he+=arguments[M].length;for(var We=Array(he),Ze=0,M=0;M<ue;M++)for(var at=arguments[M],wt=0,zt=at.length;wt<zt;wt++,Ze++)We[Ze]=at[wt];return We},ye=function(){function he(M,ue,We){We===void 0&&(We={}),this.user=M,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new B(M,ue,null,We),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,We.sorter&&(this.sorter={compare:function(Ze,at){return We.sorter.compare(Ze.element,at.element)}}),this.identityProvider=We.identityProvider}return he.prototype.setChildren=function(M,ue,We,Ze){var at=this.getElementLocation(M);this._setChildren(at,this.preserveCollapseState(ue),We,Ze)},he.prototype._setChildren=function(M,ue,We,Ze){var at=this,wt=new Set,zt=new Set,Xt=function(uo){if(wt.add(uo.element),at.nodes.set(uo.element,uo),at.identityProvider){var go=at.identityProvider.getId(uo.element).toString();zt.add(go),at.nodesByIdentity.set(go,uo)}We&&We(uo)},no=function(uo){if(wt.has(uo.element)||at.nodes.delete(uo.element),at.identityProvider){var go=at.identityProvider.getId(uo.element).toString();zt.has(go)||at.nodesByIdentity.delete(go)}Ze&&Ze(uo)};this.model.splice(se(M,[0]),Number.MAX_VALUE,ue,Xt,no)},he.prototype.preserveCollapseState=function(M){var ue=this,We=M?Object(P.f)(M):P.d.empty();return this.sorter&&(We=P.d.fromArray(Object(d.r)(P.d.collect(We),this.sorter.compare.bind(this.sorter)))),P.d.map(We,function(Ze){var at=ue.nodes.get(Ze.element);if(!at&&ue.identityProvider){var wt=ue.identityProvider.getId(Ze.element).toString();at=ue.nodesByIdentity.get(wt)}if(!at)return ce(ce({},Ze),{children:ue.preserveCollapseState(Ze.children)});var zt=typeof Ze.collapsible=="boolean"?Ze.collapsible:at.collapsible,Xt=typeof Ze.collapsed!="undefined"?Ze.collapsed:at.collapsed;return ce(ce({},Ze),{collapsible:zt,collapsed:Xt,children:ue.preserveCollapseState(Ze.children)})})},he.prototype.rerender=function(M){var ue=this.getElementLocation(M);this.model.rerender(ue)},he.prototype.has=function(M){return this.nodes.has(M)},he.prototype.getListIndex=function(M){var ue=this.getElementLocation(M);return this.model.getListIndex(ue)},he.prototype.getListRenderCount=function(M){var ue=this.getElementLocation(M);return this.model.getListRenderCount(ue)},he.prototype.isCollapsible=function(M){var ue=this.getElementLocation(M);return this.model.isCollapsible(ue)},he.prototype.setCollapsible=function(M,ue){var We=this.getElementLocation(M);return this.model.setCollapsible(We,ue)},he.prototype.isCollapsed=function(M){var ue=this.getElementLocation(M);return this.model.isCollapsed(ue)},he.prototype.setCollapsed=function(M,ue,We){var Ze=this.getElementLocation(M);return this.model.setCollapsed(Ze,ue,We)},he.prototype.expandTo=function(M){var ue=this.getElementLocation(M);this.model.expandTo(ue)},he.prototype.refilter=function(){this.model.refilter()},he.prototype.getNode=function(M){if(M===void 0&&(M=null),M===null)return this.model.getNode(this.model.rootRef);var ue=this.nodes.get(M);if(!ue)throw new L(this.user,"Tree element not found: "+M);return ue},he.prototype.getNodeLocation=function(M){return M.element},he.prototype.getParentNodeLocation=function(M){if(M===null)throw new L(this.user,"Invalid getParentNodeLocation call");var ue=this.nodes.get(M);if(!ue)throw new L(this.user,"Tree element not found: "+M);var We=this.model.getNodeLocation(ue),Ze=this.model.getParentNodeLocation(We),at=this.model.getNode(Ze);return at.element},he.prototype.getElementLocation=function(M){if(M===null)return[];var ue=this.nodes.get(M);if(!ue)throw new L(this.user,"Tree element not found: "+M);return this.model.getNodeLocation(ue)},he}(),Re=function(){return Re=Object.assign||function(he){for(var M,ue=1,We=arguments.length;ue<We;ue++){M=arguments[ue];for(var Ze in M)Object.prototype.hasOwnProperty.call(M,Ze)&&(he[Ze]=M[Ze])}return he},Re.apply(this,arguments)};function Le(he){var M=[he.element],ue=he.incompressible||!1;return{element:{elements:M,incompressible:ue},children:P.d.map(P.d.from(he.children),Le),collapsible:he.collapsible,collapsed:he.collapsed}}function Ue(he){for(var M=[he.element],ue=he.incompressible||!1,We,Ze;!(We=P.d.from(he.children),Ze=P.d.collect(We,2),Ze.length!==1);){if(he=Ze[0],he.incompressible)break;M.push(he.element)}return{element:{elements:M,incompressible:ue},children:P.d.map(P.d.concat(P.d.fromArray(Ze),We),Ue),collapsible:he.collapsible,collapsed:he.collapsed}}function Je(he,M){M===void 0&&(M=0);var ue;return M<he.element.elements.length-1?ue=P.d.single(Je(he,M+1)):ue=P.d.map(P.d.from(he.children),function(We){return Je(We,0)}),M===0&&he.element.incompressible?{element:he.element.elements[M],children:ue,incompressible:!0,collapsible:he.collapsible,collapsed:he.collapsed}:{element:he.element.elements[M],children:ue,collapsible:he.collapsible,collapsed:he.collapsed}}function nt(he){return Je(he,0)}function vt(he,M,ue){return he.element===M?Re(Re({},he),{children:ue}):Re(Re({},he),{children:P.d.map(P.d.from(he.children),function(We){return vt(We,M,ue)})})}var Rt=function(){function he(M,ue,We){We===void 0&&(We={}),this.user=M,this.nodes=new Map,this.model=new ye(M,ue,We),this.enabled=typeof We.compressionEnabled=="undefined"?!0:We.compressionEnabled}return Object.defineProperty(he.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),he.prototype.setChildren=function(M,ue){if(M===null){var We=P.d.map(P.d.from(ue),this.enabled?Ue:Le);this._setChildren(null,We);return}var Ze=this.nodes.get(M);if(!Ze)throw new Error("Unknown compressed tree node");var at=this.model.getNode(Ze),wt=this.model.getParentNodeLocation(Ze),zt=this.model.getNode(wt),Xt=nt(at),no=vt(Xt,M,P.d.from(ue)),uo=(this.enabled?Ue:Le)(no),go=zt.children.map(function(Ao){return Ao===at?uo:Ao});this._setChildren(zt.element,go)},he.prototype.setCompressionEnabled=function(M){if(M===this.enabled)return;this.enabled=M;var ue=this.model.getNode(),We=P.d.from(ue.children),Ze=P.d.map(We,nt),at=P.d.map(Ze,M?Ue:Le);this._setChildren(null,at)},he.prototype._setChildren=function(M,ue){var We=this,Ze=new Set,at=function(zt){for(var Xt=0,no=zt.element.elements;Xt<no.length;Xt++){var uo=no[Xt];Ze.add(uo),We.nodes.set(uo,zt.element)}},wt=function(zt){for(var Xt=0,no=zt.element.elements;Xt<no.length;Xt++){var uo=no[Xt];Ze.has(uo)||We.nodes.delete(uo)}};this.model.setChildren(M,ue,at,wt)},he.prototype.has=function(M){return this.nodes.has(M)},he.prototype.getListIndex=function(M){var ue=this.getCompressedNode(M);return this.model.getListIndex(ue)},he.prototype.getListRenderCount=function(M){var ue=this.getCompressedNode(M);return this.model.getListRenderCount(ue)},he.prototype.getNode=function(M){if(typeof M=="undefined")return this.model.getNode();var ue=this.getCompressedNode(M);return this.model.getNode(ue)},he.prototype.getNodeLocation=function(M){var ue=this.model.getNodeLocation(M);return ue===null?null:ue.elements[ue.elements.length-1]},he.prototype.getParentNodeLocation=function(M){var ue=this.getCompressedNode(M),We=this.model.getParentNodeLocation(ue);return We===null?null:We.elements[We.elements.length-1]},he.prototype.isCollapsible=function(M){var ue=this.getCompressedNode(M);return this.model.isCollapsible(ue)},he.prototype.setCollapsible=function(M,ue){var We=this.getCompressedNode(M);return this.model.setCollapsible(We,ue)},he.prototype.isCollapsed=function(M){var ue=this.getCompressedNode(M);return this.model.isCollapsed(ue)},he.prototype.setCollapsed=function(M,ue,We){var Ze=this.getCompressedNode(M);return this.model.setCollapsed(Ze,ue,We)},he.prototype.expandTo=function(M){var ue=this.getCompressedNode(M);this.model.expandTo(ue)},he.prototype.rerender=function(M){var ue=this.getCompressedNode(M);this.model.rerender(ue)},he.prototype.refilter=function(){this.model.refilter()},he.prototype.getCompressedNode=function(M){if(M===null)return null;var ue=this.nodes.get(M);if(!ue)throw new L(this.user,"Tree element not found: "+M);return ue},he}(),Ot=function(he){return he[he.length-1]},Kt=function(){function he(M,ue){this.unwrapper=M,this.node=ue}return Object.defineProperty(he.prototype,"element",{get:function(){return this.node.element===null?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"children",{get:function(){var M=this;return this.node.children.map(function(ue){return new he(M.unwrapper,ue)})},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),he}();function ao(he,M){return{splice:function(ue,We,Ze){M.splice(ue,We,Ze.map(function(at){return he.map(at)}))}}}function lo(he,M){return Re(Re({},M),{sorter:M.sorter&&{compare:function(ue,We){return M.sorter.compare(ue.elements[0],We.elements[0])}},identityProvider:M.identityProvider&&{getId:function(ue){return M.identityProvider.getId(he(ue))}},filter:M.filter&&{filter:function(ue,We){return M.filter.filter(he(ue),We)}}})}var so=function(){function he(M,ue,We){var Ze=this;We===void 0&&(We={}),this.elementMapper=We.elementMapper||Ot;var at=function(wt){return Ze.elementMapper(wt.elements)};this.nodeMapper=new R(function(wt){return new Kt(at,wt)}),this.model=new Rt(M,ao(this.nodeMapper,ue),lo(at,We))}return Object.defineProperty(he.prototype,"onDidSplice",{get:function(){var M=this;return w.b.map(this.model.onDidSplice,function(ue){var We=ue.insertedNodes,Ze=ue.deletedNodes;return{insertedNodes:We.map(function(at){return M.nodeMapper.map(at)}),deletedNodes:Ze.map(function(at){return M.nodeMapper.map(at)})}})},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidChangeCollapseState",{get:function(){var M=this;return w.b.map(this.model.onDidChangeCollapseState,function(ue){var We=ue.node,Ze=ue.deep;return{node:M.nodeMapper.map(We),deep:Ze}})},enumerable:!0,configurable:!0}),he.prototype.setChildren=function(M,ue){this.model.setChildren(M,ue)},he.prototype.setCompressionEnabled=function(M){this.model.setCompressionEnabled(M)},he.prototype.has=function(M){return this.model.has(M)},he.prototype.getListIndex=function(M){return this.model.getListIndex(M)},he.prototype.getListRenderCount=function(M){return this.model.getListRenderCount(M)},he.prototype.getNode=function(M){return this.nodeMapper.map(this.model.getNode(M))},he.prototype.getNodeLocation=function(M){return M.element},he.prototype.getParentNodeLocation=function(M){return this.model.getParentNodeLocation(M)},he.prototype.isCollapsible=function(M){return this.model.isCollapsible(M)},he.prototype.setCollapsible=function(M,ue){return this.model.setCollapsible(M,ue)},he.prototype.isCollapsed=function(M){return this.model.isCollapsed(M)},he.prototype.setCollapsed=function(M,ue,We){return this.model.setCollapsed(M,ue,We)},he.prototype.expandTo=function(M){return this.model.expandTo(M)},he.prototype.rerender=function(M){return this.model.rerender(M)},he.prototype.refilter=function(){return this.model.refilter()},he.prototype.getCompressedTreeNode=function(M){return M===void 0&&(M=null),this.model.getNode(M)},he}(),jt=e("ZCR3"),pt=function(){var he=function(M,ue){return he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,Ze){We.__proto__=Ze}||function(We,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(We[at]=Ze[at])},he(M,ue)};return function(M,ue){he(M,ue);function We(){this.constructor=M}M.prototype=ue===null?Object.create(ue):(We.prototype=ue.prototype,new We)}}(),gt=function(){return gt=Object.assign||function(he){for(var M,ue=1,We=arguments.length;ue<We;ue++){M=arguments[ue];for(var Ze in M)Object.prototype.hasOwnProperty.call(M,Ze)&&(he[Ze]=M[Ze])}return he},gt.apply(this,arguments)},Tt=function(he,M,ue,We){var Ze=arguments.length,at=Ze<3?M:We===null?We=Object.getOwnPropertyDescriptor(M,ue):We,wt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")at=Reflect.decorate(he,M,ue,We);else for(var zt=he.length-1;zt>=0;zt--)(wt=he[zt])&&(at=(Ze<3?wt(at):Ze>3?wt(M,ue,at):wt(M,ue))||at);return Ze>3&&at&&Object.defineProperty(M,ue,at),at},it=function(he){pt(M,he);function M(ue,We,Ze,at,wt){return wt===void 0&&(wt={}),he.call(this,ue,We,Ze,at,wt)||this}return Object.defineProperty(M.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),M.prototype.setChildren=function(ue,We){this.model.setChildren(ue,We)},M.prototype.rerender=function(ue){if(ue===void 0){this.view.rerender();return}this.model.rerender(ue)},M.prototype.hasElement=function(ue){return this.model.has(ue)},M.prototype.createModel=function(ue,We,Ze){return new ye(ue,We,Ze)},M}(z),et=function(){function he(M,ue){this._compressedTreeNodeProvider=M,this.renderer=ue,this.templateId=ue.templateId,ue.onDidChangeTwistieState&&(this.onDidChangeTwistieState=ue.onDidChangeTwistieState)}return Object.defineProperty(he.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),he.prototype.renderTemplate=function(M){var ue=this.renderer.renderTemplate(M);return{compressedTreeNode:void 0,data:ue}},he.prototype.renderElement=function(M,ue,We,Ze){var at=this.compressedTreeNodeProvider.getCompressedTreeNode(M.element);at.element.elements.length===1?(We.compressedTreeNode=void 0,this.renderer.renderElement(M,ue,We.data,Ze)):(We.compressedTreeNode=at,this.renderer.renderCompressedElements(at,ue,We.data,Ze))},he.prototype.disposeElement=function(M,ue,We,Ze){We.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(We.compressedTreeNode,ue,We.data,Ze):this.renderer.disposeElement&&this.renderer.disposeElement(M,ue,We.data,Ze)},he.prototype.disposeTemplate=function(M){this.renderer.disposeTemplate(M.data)},he.prototype.renderTwistie=function(M,ue){this.renderer.renderTwistie&&this.renderer.renderTwistie(M,ue)},Tt([jt.a],he.prototype,"compressedTreeNodeProvider",null),he}();function ut(he,M){return M&&gt(gt({},M),{keyboardNavigationLabelProvider:M.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(ue){var We;try{We=he().getCompressedTreeNode(ue)}catch(Ze){return M.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ue)}return We.element.elements.length===1?M.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ue):M.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(We.element.elements)}}})}var Ct=function(he){pt(M,he);function M(ue,We,Ze,at,wt){wt===void 0&&(wt={});var zt=this,Xt=function(){return zt},no=at.map(function(uo){return new et(Xt,uo)});return zt=he.call(this,ue,We,Ze,no,ut(Xt,wt))||this,zt}return M.prototype.setChildren=function(ue,We){this.model.setChildren(ue,We)},M.prototype.createModel=function(ue,We,Ze){return new so(ue,We,Ze)},M.prototype.updateOptions=function(ue){ue===void 0&&(ue={}),he.prototype.updateOptions.call(this,ue),typeof ue.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(ue.compressionEnabled)},M.prototype.getCompressedTreeNode=function(ue){return ue===void 0&&(ue=null),this.model.getCompressedTreeNode(ue)},M}(it),ht=e("/cxE"),Et=function(){var he=function(M,ue){return he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,Ze){We.__proto__=Ze}||function(We,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(We[at]=Ze[at])},he(M,ue)};return function(M,ue){he(M,ue);function We(){this.constructor=M}M.prototype=ue===null?Object.create(ue):(We.prototype=ue.prototype,new We)}}(),Yt=function(){return Yt=Object.assign||function(he){for(var M,ue=1,We=arguments.length;ue<We;ue++){M=arguments[ue];for(var Ze in M)Object.prototype.hasOwnProperty.call(M,Ze)&&(he[Ze]=M[Ze])}return he},Yt.apply(this,arguments)},Nt=function(he,M,ue,We){function Ze(at){return at instanceof ue?at:new ue(function(wt){wt(at)})}return new(ue||(ue=Promise))(function(at,wt){function zt(uo){try{no(We.next(uo))}catch(go){wt(go)}}function Xt(uo){try{no(We.throw(uo))}catch(go){wt(go)}}function no(uo){uo.done?at(uo.value):Ze(uo.value).then(zt,Xt)}no((We=We.apply(he,M||[])).next())})},bt=function(he,M){var ue={label:0,sent:function(){if(at[0]&1)throw at[1];return at[1]},trys:[],ops:[]},We,Ze,at,wt;return wt={next:zt(0),throw:zt(1),return:zt(2)},typeof Symbol=="function"&&(wt[Symbol.iterator]=function(){return this}),wt;function zt(no){return function(uo){return Xt([no,uo])}}function Xt(no){if(We)throw new TypeError("Generator is already executing.");for(;ue;)try{if(We=1,Ze&&(at=no[0]&2?Ze.return:no[0]?Ze.throw||((at=Ze.return)&&at.call(Ze),0):Ze.next)&&!(at=at.call(Ze,no[1])).done)return at;(Ze=0,at)&&(no=[no[0]&2,at.value]);switch(no[0]){case 0:case 1:at=no;break;case 4:return ue.label++,{value:no[1],done:!1};case 5:ue.label++,Ze=no[1],no=[0];continue;case 7:no=ue.ops.pop(),ue.trys.pop();continue;default:if(!(at=ue.trys,at=at.length>0&&at[at.length-1])&&(no[0]===6||no[0]===2)){ue=0;continue}if(no[0]===3&&(!at||no[1]>at[0]&&no[1]<at[3])){ue.label=no[1];break}if(no[0]===6&&ue.label<at[1]){ue.label=at[1],at=no;break}if(at&&ue.label<at[2]){ue.label=at[2],ue.ops.push(no);break}at[2]&&ue.ops.pop(),ue.trys.pop();continue}no=M.call(he,ue)}catch(uo){no=[6,uo],Ze=0}finally{We=at=0}if(no[0]&5)throw no[1];return{value:no[0]?no[1]:void 0,done:!0}}},$e=function(){for(var he=0,M=0,ue=arguments.length;M<ue;M++)he+=arguments[M].length;for(var We=Array(he),Ze=0,M=0;M<ue;M++)for(var at=arguments[M],wt=0,zt=at.length;wt<zt;wt++,Ze++)We[Ze]=at[wt];return We};function Ye(he){return Yt(Yt({},he),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function Ve(he,M){return M.parent?M.parent===he?!0:Ve(he,M.parent):!1}function ze(he,M){return he===M||Ve(he,M)||Ve(M,he)}var me=function(){function he(M){this.node=M}return Object.defineProperty(he.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"children",{get:function(){return this.node.children.map(function(M){return new he(M)})},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),he}(),G=function(){function he(M,ue,We){this.renderer=M,this.nodeMapper=ue,this.onDidChangeTwistieState=We,this.renderedNodes=new Map,this.templateId=M.templateId}return he.prototype.renderTemplate=function(M){var ue=this.renderer.renderTemplate(M);return{templateData:ue}},he.prototype.renderElement=function(M,ue,We,Ze){this.renderer.renderElement(this.nodeMapper.map(M),ue,We.templateData,Ze)},he.prototype.renderTwistie=function(M,ue){return Object(T.Y)(ue,"codicon-loading",M.slow),!1},he.prototype.disposeElement=function(M,ue,We,Ze){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(M),ue,We.templateData,Ze)},he.prototype.disposeTemplate=function(M){this.renderer.disposeTemplate(M.templateData)},he.prototype.dispose=function(){this.renderedNodes.clear()},he}();function oe(he){return{browserEvent:he.browserEvent,elements:he.elements.map(function(M){return M.element})}}var Y=function(he){Et(M,he);function M(ue){var We=he.call(this,ue.elements.map(function(Ze){return Ze.element}))||this;return We.data=ue,We}return M}(c.a);function ie(he){return he instanceof c.a?new Y(he):he}var je=function(){function he(M){this.dnd=M}return he.prototype.getDragURI=function(M){return this.dnd.getDragURI(M.element)},he.prototype.getDragLabel=function(M,ue){return this.dnd.getDragLabel?this.dnd.getDragLabel(M.map(function(We){return We.element}),ue):void 0},he.prototype.onDragStart=function(M,ue){this.dnd.onDragStart&&this.dnd.onDragStart(ie(M),ue)},he.prototype.onDragOver=function(M,ue,We,Ze,at){return at===void 0&&(at=!0),this.dnd.onDragOver(ie(M),ue&&ue.element,We,Ze)},he.prototype.drop=function(M,ue,We,Ze){this.dnd.drop(ie(M),ue&&ue.element,We,Ze)},he.prototype.onDragEnd=function(M){this.dnd.onDragEnd&&this.dnd.onDragEnd(M)},he}();function dt(he){return he&&Yt(Yt({},he),{collapseByDefault:!0,identityProvider:he.identityProvider&&{getId:function(M){return he.identityProvider.getId(M.element)}},dnd:he.dnd&&new je(he.dnd),multipleSelectionController:he.multipleSelectionController&&{isSelectionSingleChangeEvent:function(M){return he.multipleSelectionController.isSelectionSingleChangeEvent(Yt(Yt({},M),{element:M.element}))},isSelectionRangeChangeEvent:function(M){return he.multipleSelectionController.isSelectionRangeChangeEvent(Yt(Yt({},M),{element:M.element}))}},accessibilityProvider:he.accessibilityProvider&&Yt(Yt({},he.accessibilityProvider),{getAriaLabel:function(M){return he.accessibilityProvider.getAriaLabel(M.element)},getAriaLevel:he.accessibilityProvider.getAriaLevel&&function(M){return he.accessibilityProvider.getAriaLevel(M.element)},getActiveDescendantId:he.accessibilityProvider.getActiveDescendantId&&function(M){return he.accessibilityProvider.getActiveDescendantId(M.element)}}),filter:he.filter&&{filter:function(M,ue){return he.filter.filter(M.element,ue)}},keyboardNavigationLabelProvider:he.keyboardNavigationLabelProvider&&Yt(Yt({},he.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(M){return he.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(M.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof he.expandOnlyOnTwistieClick=="undefined"?void 0:typeof he.expandOnlyOnTwistieClick!="function"?he.expandOnlyOnTwistieClick:function(M){return he.expandOnlyOnTwistieClick(M.element)},ariaProvider:he.ariaProvider&&{getPosInSet:function(M,ue){return he.ariaProvider.getPosInSet(M.element,ue)},getSetSize:function(M,ue,We){return he.ariaProvider.getSetSize(M.element,ue,We)},getRole:he.ariaProvider.getRole?function(M){return he.ariaProvider.getRole(M.element)}:void 0,isChecked:he.ariaProvider.isChecked?function(M){var ue;return((ue=he.ariaProvider)===null||ue===void 0?void 0:ue.isChecked)(M.element)}:void 0},additionalScrollHeight:he.additionalScrollHeight})}function Dt(he,M){M(he),he.children.forEach(function(ue){return Dt(ue,M)})}var Qt=function(){function he(M,ue,We,Ze,at,wt){wt===void 0&&(wt={}),this.user=M,this.dataSource=at,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new w.a,this._onDidChangeNodeSlowState=new w.a,this.nodeMapper=new R(function(zt){return new me(zt)}),this.disposables=new J.b,this.identityProvider=wt.identityProvider,this.autoExpandSingleChildren=typeof wt.autoExpandSingleChildren=="undefined"?!1:wt.autoExpandSingleChildren,this.sorter=wt.sorter,this.collapseByDefault=wt.collapseByDefault,this.tree=this.createTree(M,ue,We,Ze,wt),this.root=Ye({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Yt(Yt({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return Object.defineProperty(he.prototype,"onDidChangeFocus",{get:function(){return w.b.map(this.tree.onDidChangeFocus,oe)},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidChangeSelection",{get:function(){return w.b.map(this.tree.onDidChangeSelection,oe)},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidOpen",{get:function(){return w.b.map(this.tree.onDidOpen,oe)},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),he.prototype.createTree=function(M,ue,We,Ze,at){var wt=this,zt=new Z(We),Xt=Ze.map(function(uo){return new G(uo,wt.nodeMapper,wt._onDidChangeNodeSlowState.event)}),no=dt(at)||{};return new it(M,ue,zt,Xt,no)},he.prototype.updateOptions=function(M){M===void 0&&(M={}),this.tree.updateOptions(M)},he.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(he.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(M){this.tree.scrollTop=M},enumerable:!0,configurable:!0}),he.prototype.domFocus=function(){this.tree.domFocus()},he.prototype.layout=function(M,ue){this.tree.layout(M,ue)},he.prototype.style=function(M){this.tree.style(M)},he.prototype.getInput=function(){return this.root.element},he.prototype.setInput=function(M,ue){return Nt(this,void 0,void 0,function(){var We;return bt(this,function(Ze){switch(Ze.label){case 0:return this.refreshPromises.forEach(function(at){return at.cancel()}),this.refreshPromises.clear(),this.root.element=M,We=ue&&{viewState:ue,focus:[],selection:[]},[4,this._updateChildren(M,!0,!1,We)];case 1:return Ze.sent(),We&&(this.tree.setFocus(We.focus),this.tree.setSelection(We.selection)),ue&&typeof ue.scrollTop=="number"&&(this.scrollTop=ue.scrollTop),[2]}})})},he.prototype._updateChildren=function(M,ue,We,Ze){return M===void 0&&(M=this.root.element),ue===void 0&&(ue=!0),We===void 0&&(We=!1),Nt(this,void 0,void 0,function(){var at;return bt(this,function(wt){switch(wt.label){case 0:if(typeof this.root.element=="undefined")throw new L(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return wt.sent(),[4,w.b.toPromise(this._onDidRender.event)];case 2:wt.sent(),wt.label=3;case 3:return at=this.getDataNode(M),[4,this.refreshAndRenderNode(at,ue,Ze)];case 4:if(wt.sent(),We)try{this.tree.rerender(at)}catch(zt){}return[2]}})})},he.prototype.rerender=function(M){if(M===void 0||M===this.root.element){this.tree.rerender();return}var ue=this.getDataNode(M);this.tree.rerender(ue)},he.prototype.collapse=function(M,ue){ue===void 0&&(ue=!1);var We=this.getDataNode(M);return this.tree.collapse(We===this.root?null:We,ue)},he.prototype.expand=function(M,ue){return ue===void 0&&(ue=!1),Nt(this,void 0,void 0,function(){var We,Ze;return bt(this,function(at){switch(at.label){case 0:if(typeof this.root.element=="undefined")throw new L(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return at.sent(),[4,w.b.toPromise(this._onDidRender.event)];case 2:at.sent(),at.label=3;case 3:return We=this.getDataNode(M),this.tree.hasElement(We)&&!this.tree.isCollapsible(We)?[2,!1]:We.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return at.sent(),[4,w.b.toPromise(this._onDidRender.event)];case 5:at.sent(),at.label=6;case 6:return We!==this.root&&!We.refreshPromise&&!this.tree.isCollapsed(We)?[2,!1]:(Ze=this.tree.expand(We===this.root?null:We,ue),We.refreshPromise?[4,this.root.refreshPromise]:[3,9]);case 7:return at.sent(),[4,w.b.toPromise(this._onDidRender.event)];case 8:at.sent(),at.label=9;case 9:return[2,Ze]}})})},he.prototype.setSelection=function(M,ue){var We=this,Ze=M.map(function(at){return We.getDataNode(at)});this.tree.setSelection(Ze,ue)},he.prototype.getSelection=function(){var M=this.tree.getSelection();return M.map(function(ue){return ue.element})},he.prototype.setFocus=function(M,ue){var We=this,Ze=M.map(function(at){return We.getDataNode(at)});this.tree.setFocus(Ze,ue)},he.prototype.getFocus=function(){var M=this.tree.getFocus();return M.map(function(ue){return ue.element})},he.prototype.reveal=function(M,ue){this.tree.reveal(this.getDataNode(M),ue)},he.prototype.getDataNode=function(M){var ue=this.nodes.get(M===this.root.element?null:M);if(!ue)throw new L(this.user,"Data tree node not found: "+M);return ue},he.prototype.refreshAndRenderNode=function(M,ue,We){return Nt(this,void 0,void 0,function(){return bt(this,function(Ze){switch(Ze.label){case 0:return[4,this.refreshNode(M,ue,We)];case 1:return Ze.sent(),this.render(M,We),[2]}})})},he.prototype.refreshNode=function(M,ue,We){return Nt(this,void 0,void 0,function(){var Ze,at=this;return bt(this,function(wt){return this.subTreeRefreshPromises.forEach(function(zt,Xt){!Ze&&ze(Xt,M)&&(Ze=zt.then(function(){return at.refreshNode(M,ue,We)}))}),Ze?[2,Ze]:[2,this.doRefreshSubTree(M,ue,We)]})})},he.prototype.doRefreshSubTree=function(M,ue,We){return Nt(this,void 0,void 0,function(){var Ze,at,wt=this;return bt(this,function(zt){switch(zt.label){case 0:M.refreshPromise=new Promise(function(Xt){return Ze=Xt}),this.subTreeRefreshPromises.set(M,M.refreshPromise),M.refreshPromise.finally(function(){M.refreshPromise=void 0,wt.subTreeRefreshPromises.delete(M)}),zt.label=1;case 1:return zt.trys.push([1,,4,5]),[4,this.doRefreshNode(M,ue,We)];case 2:return at=zt.sent(),M.stale=!1,[4,Promise.all(at.map(function(Xt){return wt.doRefreshSubTree(Xt,ue,We)}))];case 3:return zt.sent(),[3,5];case 4:return Ze(),[7];case 5:return[2]}})})},he.prototype.doRefreshNode=function(M,ue,We){return Nt(this,void 0,void 0,function(){var Ze,at,wt,zt,Xt=this;return bt(this,function(no){switch(no.label){case 0:M.hasChildren=!!this.dataSource.hasChildren(M.element),M.hasChildren?(at=Object(ae.l)(800),at.then(function(){M.slow=!0,Xt._onDidChangeNodeSlowState.fire(M)},function(uo){return null}),Ze=this.doGetChildren(M).finally(function(){return at.cancel()})):Ze=Promise.resolve([]),no.label=1;case 1:return no.trys.push([1,3,4,5]),[4,Ze];case 2:return wt=no.sent(),[2,this.setChildren(M,wt,ue,We)];case 3:if(zt=no.sent(),M!==this.root&&this.tree.collapse(M===this.root?null:M),Object(ht.d)(zt))return[2,[]];throw zt;case 4:return M.slow&&(M.slow=!1,this._onDidChangeNodeSlowState.fire(M)),[7];case 5:return[2]}})})},he.prototype.doGetChildren=function(M){var ue=this,We=this.refreshPromises.get(M);return We||(We=Object(ae.f)(function(){return Nt(ue,void 0,void 0,function(){var Ze;return bt(this,function(at){switch(at.label){case 0:return[4,this.dataSource.getChildren(M.element)];case 1:return Ze=at.sent(),[2,this.processChildren(Ze)]}})})}),this.refreshPromises.set(M,We),We.finally(function(){return ue.refreshPromises.delete(M)}))},he.prototype._onDidChangeCollapseState=function(M){var ue=M.node,We=M.deep;!ue.collapsed&&ue.element.stale&&(We?this.collapse(ue.element.element):this.refreshAndRenderNode(ue.element,!1).catch(ht.e))},he.prototype.setChildren=function(M,ue,We,Ze){var at,wt=this;if(M.children.length===0&&ue.length===0)return[];for(var zt=new Map,Xt=new Map,no=0,uo=M.children;no<uo.length;no++){var go=uo[no];if(zt.set(go.element,go),this.identityProvider){var Ao=this.tree.isCollapsed(go);Xt.set(go.id,{node:go,collapsed:Ao})}}for(var To=[],_o=ue.map(function(hn){var En=!!wt.dataSource.hasChildren(hn);if(!wt.identityProvider){var qo=Ye({element:hn,parent:M,hasChildren:En});return En&&wt.collapseByDefault&&!wt.collapseByDefault(hn)&&(qo.collapsedByDefault=!1,To.push(qo)),qo}var xn=wt.identityProvider.getId(hn).toString(),Un=Xt.get(xn);if(Un){var qo=Un.node;return zt.delete(qo.element),wt.nodes.delete(qo.element),wt.nodes.set(hn,qo),qo.element=hn,qo.hasChildren=En,We?Un.collapsed?(qo.children.forEach(function(ai){return Dt(ai,function(Pn){return wt.nodes.delete(Pn.element)})}),qo.children.splice(0,qo.children.length),qo.stale=!0):To.push(qo):En&&wt.collapseByDefault&&!wt.collapseByDefault(hn)&&(qo.collapsedByDefault=!1,To.push(qo)),qo}var An=Ye({element:hn,parent:M,id:xn,hasChildren:En});return Ze&&Ze.viewState.focus&&Ze.viewState.focus.indexOf(xn)>-1&&Ze.focus.push(An),Ze&&Ze.viewState.selection&&Ze.viewState.selection.indexOf(xn)>-1&&Ze.selection.push(An),Ze&&Ze.viewState.expanded&&Ze.viewState.expanded.indexOf(xn)>-1?To.push(An):En&&wt.collapseByDefault&&!wt.collapseByDefault(hn)&&(An.collapsedByDefault=!1,To.push(An)),An}),No=0,Qo=Object(Me.e)(zt);No<Qo.length;No++){var Do=Qo[No];Dt(Do,function(hn){return wt.nodes.delete(hn.element)})}for(var Lo=0,vn=_o;Lo<vn.length;Lo++){var go=vn[Lo];this.nodes.set(go.element,go)}return(at=M.children).splice.apply(at,$e([0,M.children.length],_o)),M!==this.root&&this.autoExpandSingleChildren&&_o.length===1&&To.length===0&&(_o[0].collapsedByDefault=!1,To.push(_o[0])),To},he.prototype.render=function(M,ue){var We=this,Ze=M.children.map(function(at){return We.asTreeElement(at,ue)});this.tree.setChildren(M===this.root?null:M,Ze),M!==this.root&&this.tree.setCollapsible(M,M.hasChildren),this._onDidRender.fire()},he.prototype.asTreeElement=function(M,ue){var We=this;if(M.stale)return{element:M,collapsible:M.hasChildren,collapsed:!0};var Ze;return ue&&ue.viewState.expanded&&M.id&&ue.viewState.expanded.indexOf(M.id)>-1?Ze=!1:Ze=M.collapsedByDefault,M.collapsedByDefault=void 0,{element:M,children:M.hasChildren?P.d.map(P.d.fromArray(M.children),function(at){return We.asTreeElement(at,ue)}):[],collapsible:M.hasChildren,collapsed:Ze}},he.prototype.processChildren=function(M){return this.sorter&&M.sort(this.sorter.compare.bind(this.sorter)),M},he.prototype.dispose=function(){this.disposables.dispose()},he}(),to=function(){function he(M){this.node=M}return Object.defineProperty(he.prototype,"element",{get:function(){return{elements:this.node.element.elements.map(function(M){return M.element}),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"children",{get:function(){return this.node.children.map(function(M){return new he(M)})},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),he}(),fo=function(){function he(M,ue,We,Ze){this.renderer=M,this.nodeMapper=ue,this.compressibleNodeMapperProvider=We,this.onDidChangeTwistieState=Ze,this.renderedNodes=new Map,this.disposables=[],this.templateId=M.templateId}return he.prototype.renderTemplate=function(M){var ue=this.renderer.renderTemplate(M);return{templateData:ue}},he.prototype.renderElement=function(M,ue,We,Ze){this.renderer.renderElement(this.nodeMapper.map(M),ue,We.templateData,Ze)},he.prototype.renderCompressedElements=function(M,ue,We,Ze){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(M),ue,We.templateData,Ze)},he.prototype.renderTwistie=function(M,ue){return Object(T.Y)(ue,"codicon-loading",M.slow),!1},he.prototype.disposeElement=function(M,ue,We,Ze){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(M),ue,We.templateData,Ze)},he.prototype.disposeCompressedElements=function(M,ue,We,Ze){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(M),ue,We.templateData,Ze)},he.prototype.disposeTemplate=function(M){this.renderer.disposeTemplate(M.templateData)},he.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(J.f)(this.disposables)},he}();function ho(he){var M=he&&dt(he);return M&&Yt(Yt({},M),{keyboardNavigationLabelProvider:M.keyboardNavigationLabelProvider&&Yt(Yt({},M.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(ue){return he.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(ue.map(function(We){return We.element}))}})})}var wo=function(he){Et(M,he);function M(ue,We,Ze,at,wt,zt,Xt){Xt===void 0&&(Xt={});var no=he.call(this,ue,We,Ze,wt,zt,Xt)||this;return no.compressionDelegate=at,no.compressibleNodeMapper=new R(function(uo){return new to(uo)}),no.filter=Xt.filter,no}return M.prototype.createTree=function(ue,We,Ze,at,wt){var zt=this,Xt=new Z(Ze),no=at.map(function(go){return new fo(go,zt.nodeMapper,function(){return zt.compressibleNodeMapper},zt._onDidChangeNodeSlowState.event)}),uo=ho(wt)||{};return new Ct(ue,We,Xt,no,uo)},M.prototype.asTreeElement=function(ue,We){return Yt({incompressible:this.compressionDelegate.isIncompressible(ue.element)},he.prototype.asTreeElement.call(this,ue,We))},M.prototype.updateOptions=function(ue){ue===void 0&&(ue={}),this.tree.updateOptions(ue)},M.prototype.render=function(ue,We){var Ze=this;if(!this.identityProvider)return he.prototype.render.call(this,ue,We);var at=function(_o){return Ze.identityProvider.getId(_o).toString()},wt=function(_o){for(var No=new Set,Qo=0,Do=_o;Qo<Do.length;Qo++){var Lo=Do[Qo],vn=Ze.tree.getCompressedTreeNode(Lo===Ze.root?null:Lo);if(!vn.element)continue;for(var hn=0,En=vn.element.elements;hn<En.length;hn++){var qo=En[hn];No.add(at(qo.element))}}return No},zt=wt(this.tree.getSelection()),Xt=wt(this.tree.getFocus());he.prototype.render.call(this,ue,We);var no=this.getSelection(),uo=!1,go=this.getFocus(),Ao=!1,To=function(_o){var No=_o.element;if(No)for(var Qo=0;Qo<No.elements.length;Qo++){var Do=at(No.elements[Qo].element),Lo=No.elements[No.elements.length-1].element;zt.has(Do)&&no.indexOf(Lo)===-1&&(no.push(Lo),uo=!0),Xt.has(Do)&&go.indexOf(Lo)===-1&&(go.push(Lo),Ao=!0)}_o.children.forEach(To)};To(this.tree.getCompressedTreeNode(ue===this.root?null:ue)),uo&&this.setSelection(no),Ao&&this.setFocus(go)},M.prototype.processChildren=function(ue){var We=this;return this.filter&&(ue=ue.filter(function(Ze){var at=We.filter.filter(Ze,1),wt=Oo(at);if(wt===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return wt===1})),he.prototype.processChildren.call(this,ue)},M}(Qt);function Oo(he){return typeof he=="boolean"?he?1:0:Q(he)?V(he.visibility):V(he)}var Ro=function(){var he=function(M,ue){return he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,Ze){We.__proto__=Ze}||function(We,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(We[at]=Ze[at])},he(M,ue)};return function(M,ue){he(M,ue);function We(){this.constructor=M}M.prototype=ue===null?Object.create(ue):(We.prototype=ue.prototype,new We)}}(),jo=function(he){Ro(M,he);function M(ue,We,Ze,at,wt,zt){zt===void 0&&(zt={});var Xt=he.call(this,ue,We,Ze,at,zt)||this;return Xt.user=ue,Xt.dataSource=wt,Xt.identityProvider=zt.identityProvider,Xt}return M.prototype.createModel=function(ue,We,Ze){return new ye(ue,We,Ze)},M}(z),Eo=e("R3nR"),Wo=function(){var he=function(M,ue){return he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,Ze){We.__proto__=Ze}||function(We,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(We[at]=Ze[at])},he(M,ue)};return function(M,ue){he(M,ue);function We(){this.constructor=M}M.prototype=ue===null?Object.create(ue):(We.prototype=ue.prototype,new We)}}(),Ho=function(){return Ho=Object.assign||function(he){for(var M,ue=1,We=arguments.length;ue<We;ue++){M=arguments[ue];for(var Ze in M)Object.prototype.hasOwnProperty.call(M,Ze)&&(he[Ze]=M[Ze])}return he},Ho.apply(this,arguments)},Fo=function(he,M,ue,We){var Ze=arguments.length,at=Ze<3?M:We===null?We=Object.getOwnPropertyDescriptor(M,ue):We,wt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")at=Reflect.decorate(he,M,ue,We);else for(var zt=he.length-1;zt>=0;zt--)(wt=he[zt])&&(at=(Ze<3?wt(at):Ze>3?wt(M,ue,at):wt(M,ue))||at);return Ze>3&&at&&Object.defineProperty(M,ue,at),at},Io=function(he,M){return function(ue,We){M(ue,We,he)}},tn,un=Object(U.c)("listService"),Vo=function(){function he(M){this._themeService=M,this.disposables=new J.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return Object.defineProperty(he.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),he.prototype.register=function(M,ue){var We=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var Ze=new pe.b(Object(T.w)(),"");this.disposables.add(Object(b.b)(Ze,this._themeService))}if(this.lists.some(function(wt){return wt.widget===M}))throw new Error("Cannot register the same widget multiple times");var at={widget:M,extraContextKeys:ue};return this.lists.push(at),M.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=M),Object(J.e)(M.onDidFocus(function(){return We._lastFocusedWidget=M}),Object(J.h)(function(){return We.lists.splice(We.lists.indexOf(at),1)}),M.onDidDispose(function(){We.lists=We.lists.filter(function(wt){return wt!==at}),We._lastFocusedWidget===M&&(We._lastFocusedWidget=void 0)}))},he.prototype.dispose=function(){this.disposables.dispose()},he=Fo([Io(0,O.c)],he),he}(),Cn=new D.d("listFocus",!0),pn=new D.d("listSupportsMultiselect",!0),rn=D.a.and(Cn,D.a.not(m)),on=new D.d("listHasSelectionOrFocus",!1),dn=new D.d("listDoubleSelection",!1),Uo=new D.d("listMultiSelection",!1),Bo=new D.d("listSupportsKeyboardNavigation",!0),St="listAutomaticKeyboardNavigation",st=new D.d(St,!0),rt=!1;function Lt(he,M){var ue=he.createScoped(M.getHTMLElement());return Cn.bindTo(ue),ue}var be="workbench.list.multiSelectModifier",_="workbench.list.openMode",A="workbench.list.horizontalScrolling",X="workbench.list.keyboardNavigation",De="workbench.list.automaticKeyboardNavigation",xe="workbench.tree.indent",Ie="workbench.tree.renderIndentGuides";function lt(he){return Object(H.f)(he,A,"workbench.tree.horizontalScrolling")}function ft(he){return he.getValue(be)==="alt"}function At(he){return he.getValue(_)!=="doubleClick"}var Ft=function(he){Wo(M,he);function M(ue){var We=he.call(this)||this;return We.configurationService=ue,We.useAltAsMultipleSelectionModifier=ft(ue),We.registerListeners(),We}return M.prototype.registerListeners=function(){var ue=this;this._register(this.configurationService.onDidChangeConfiguration(function(We){We.affectsConfiguration(be)&&(ue.useAltAsMultipleSelectionModifier=ft(ue.configurationService))}))},M.prototype.isSelectionSingleChangeEvent=function(ue){return this.useAltAsMultipleSelectionModifier?ue.browserEvent.altKey:Object(pe.f)(ue)},M.prototype.isSelectionRangeChangeEvent=function(ue){return Object(pe.e)(ue)},M}(J.a),Ut=function(he){Wo(M,he);function M(ue,We){var Ze=he.call(this)||this;return Ze.configurationService=ue,Ze.existingOpenController=We,Ze.openOnSingleClick=At(ue),Ze.registerListeners(),Ze}return M.prototype.registerListeners=function(){var ue=this;this._register(this.configurationService.onDidChangeConfiguration(function(We){We.affectsConfiguration(_)&&(ue.openOnSingleClick=At(ue.configurationService))}))},M.prototype.shouldOpen=function(ue){if(ue instanceof MouseEvent){var We=ue.button===0,Ze=ue.detail===2;return We&&!this.openOnSingleClick&&!Ze?!1:We||ue.button===1?this.existingOpenController?this.existingOpenController.shouldOpen(ue):!0:!1}return this.existingOpenController?this.existingOpenController.shouldOpen(ue):!0},M}(J.a);function Vt(he,M,ue){var We=new J.b,Ze=Ho({},he);if(he.multipleSelectionSupport!==!1&&!he.multipleSelectionController){var at=new Ft(M);Ze.multipleSelectionController=at,We.add(at)}var wt=new Ut(M,he.openController);return Ze.openController=wt,We.add(wt),Ze.keyboardNavigationDelegate={mightProducePrintableCharacter:function(zt){return ue.mightProducePrintableCharacter(zt)}},[Ze,We]}function oo(he,M){var ue=!1;return function(We){if(ue)return ue=!1,!1;var Ze=M.softDispatch(We,he);return Ze&&Ze.enterChord?(ue=!0,!1):(ue=!1,!0)}}var Zt=function(he){Wo(M,he);function M(ue,We,Ze,at,wt,zt,Xt,no,uo,go,Ao){var To=this,_o=Oe(We,wt,zt,uo,go,Ao),No=_o.options,Qo=_o.getAutomaticKeyboardNavigation,Do=_o.disposable;return To=he.call(this,ue,We,Ze,at,No)||this,To.disposables.add(Do),To.internals=new ot(To,No,Qo,wt.overrideStyles,zt,Xt,no,uo,Ao),To.disposables.add(To.internals),To}return M=Fo([Io(5,D.c),Io(6,un),Io(7,O.c),Io(8,H.a),Io(9,j.a),Io(10,Eo.b)],M),M}(it),mo=function(he){Wo(M,he);function M(ue,We,Ze,at,wt,zt,Xt,no,uo,go,Ao,To){var _o=this,No=Oe(We,zt,Xt,go,Ao,To),Qo=No.options,Do=No.getAutomaticKeyboardNavigation,Lo=No.disposable;return _o=he.call(this,ue,We,Ze,at,wt,Qo)||this,_o.disposables.add(Lo),_o.internals=new ot(_o,Qo,Do,zt.overrideStyles,Xt,no,uo,go,To),_o.disposables.add(_o.internals),_o}return M.prototype.updateOptions=function(ue){ue===void 0&&(ue={}),he.prototype.updateOptions.call(this,ue),ue.overrideStyles&&this.internals.updateStyleOverrides(ue.overrideStyles)},M=Fo([Io(6,D.c),Io(7,un),Io(8,O.c),Io(9,H.a),Io(10,j.a),Io(11,Eo.b)],M),M}(jo),mt=function(he){Wo(M,he);function M(ue,We,Ze,at,wt,zt,Xt,no,uo,go,Ao,To){var _o=this,No=Oe(We,zt,Xt,go,Ao,To),Qo=No.options,Do=No.getAutomaticKeyboardNavigation,Lo=No.disposable;return _o=he.call(this,ue,We,Ze,at,wt,Qo)||this,_o.disposables.add(Lo),_o.internals=new ot(_o,Qo,Do,zt.overrideStyles,Xt,no,uo,go,To),_o.disposables.add(_o.internals),_o}return M.prototype.updateOptions=function(ue){ue===void 0&&(ue={}),he.prototype.updateOptions.call(this,ue),ue.overrideStyles&&this.internals.updateStyleOverrides(ue.overrideStyles)},M=Fo([Io(6,D.c),Io(7,un),Io(8,O.c),Io(9,H.a),Io(10,j.a),Io(11,Eo.b)],M),M}(Qt),He=function(he){Wo(M,he);function M(ue,We,Ze,at,wt,zt,Xt,no,uo,go,Ao,To,_o){var No=this,Qo=Oe(We,Xt,no,Ao,To,_o),Do=Qo.options,Lo=Qo.getAutomaticKeyboardNavigation,vn=Qo.disposable;return No=he.call(this,ue,We,Ze,at,wt,zt,Do)||this,No.disposables.add(vn),No.internals=new ot(No,Do,Lo,Xt.overrideStyles,no,uo,go,Ao,_o),No.disposables.add(No.internals),No}return M=Fo([Io(7,D.c),Io(8,un),Io(9,O.c),Io(10,H.a),Io(11,j.a),Io(12,Eo.b)],M),M}(wo);function Oe(he,M,ue,We,Ze,at){Bo.bindTo(ue),rt||(st.bindTo(ue),rt=!0);var wt=function(){var No=ue.getContextKeyValue(St);return No&&(No=We.getValue(De)),No},zt=at.isScreenReaderOptimized(),Xt=zt?"simple":We.getValue(X),no=typeof M.horizontalScrolling!="undefined"?M.horizontalScrolling:lt(We),uo=At(We),go=Vt(M,We,Ze),Ao=go[0],To=go[1],_o=M.additionalScrollHeight;return{getAutomaticKeyboardNavigation:wt,disposable:To,options:Ho(Ho({keyboardSupport:!1},Ao),{indent:We.getValue(xe),renderIndentGuides:We.getValue(Ie),automaticKeyboardNavigation:wt(),simpleKeyboardNavigation:Xt==="simple",filterOnType:Xt==="filter",horizontalScrolling:no,openOnSingleClick:uo,keyboardNavigationEventFilter:oo(he,Ze),additionalScrollHeight:_o,hideTwistiesOfChildlessElements:M.hideTwistiesOfChildlessElements})}}var ot=function(){function he(M,ue,We,Ze,at,wt,zt,Xt,no){var uo=this;this.tree=M,this.themeService=zt,this.disposables=[],this.contextKeyService=Lt(at,M);var go=pn.bindTo(this.contextKeyService);go.set(!(ue.multipleSelectionSupport===!1)),this.hasSelectionOrFocus=on.bindTo(this.contextKeyService),this.hasDoubleSelection=dn.bindTo(this.contextKeyService),this.hasMultiSelection=Uo.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=ft(Xt);var Ao=new Set;Ao.add(St);var To=function(){var _o=no.isScreenReaderOptimized(),No=_o?"simple":Xt.getValue(X);M.updateOptions({simpleKeyboardNavigation:No==="simple",filterOnType:No==="filter"})};this.updateStyleOverrides(Ze),this.disposables.push(this.contextKeyService,wt.register(M),M.onDidChangeSelection(function(){var _o=M.getSelection(),No=M.getFocus();uo.hasSelectionOrFocus.set(_o.length>0||No.length>0),uo.hasMultiSelection.set(_o.length>1),uo.hasDoubleSelection.set(_o.length===2)}),M.onDidChangeFocus(function(){var _o=M.getSelection(),No=M.getFocus();uo.hasSelectionOrFocus.set(_o.length>0||No.length>0)}),Xt.onDidChangeConfiguration(function(_o){if(_o.affectsConfiguration(_)&&M.updateOptions({openOnSingleClick:At(Xt)}),_o.affectsConfiguration(be)&&(uo._useAltAsMultipleSelectionModifier=ft(Xt)),_o.affectsConfiguration(xe)){var No=Xt.getValue(xe);M.updateOptions({indent:No})}if(_o.affectsConfiguration(Ie)){var Qo=Xt.getValue(Ie);M.updateOptions({renderIndentGuides:Qo})}_o.affectsConfiguration(X)&&To(),_o.affectsConfiguration(De)&&M.updateOptions({automaticKeyboardNavigation:We()})}),this.contextKeyService.onDidChangeContext(function(_o){_o.affectsSome(Ao)&&M.updateOptions({automaticKeyboardNavigation:We()})}),no.onDidChangeScreenReaderOptimized(function(){return To()}))}return he.prototype.updateStyleOverrides=function(M){Object(J.f)(this.styler),this.styler=M?Object(b.b)(this.tree,this.themeService,M):J.a.None},he.prototype.dispose=function(){this.disposables=Object(J.f)(this.disposables),this.styler=Object(J.f)(this.styler)},he=Fo([Io(4,D.c),Io(5,un),Io(6,O.c),Io(7,H.a),Io(8,Eo.b)],he),he}(),xt=h.a.as(K.a.Configuration);xt.registerConfiguration({id:"workbench",order:7,title:Object(I.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(tn={},tn[be]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(I.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(I.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(I.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},tn[_]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(I.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},tn[A]={type:"boolean",default:!1,description:Object(I.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},tn["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(I.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(I.a)("deprecated","This setting is deprecated, please use '{0}' instead.",A)},tn[xe]={type:"number",default:8,minimum:0,maximum:40,description:Object(I.a)("tree indent setting","Controls tree indentation in pixels.")},tn[Ie]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(I.a)("render tree indent guides","Controls whether the tree should render indent guides.")},tn[X]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(I.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(I.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(I.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(I.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},tn[De]={type:"boolean",default:!0,markdownDescription:Object(I.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},tn)})},kYye:function(Mt,F,e){"use strict";e.d(F,"i",function(){return H}),e.d(F,"j",function(){return K}),e.d(F,"g",function(){return b}),e.d(F,"f",function(){return O}),e.d(F,"h",function(){return C}),e.d(F,"a",function(){return w}),e.d(F,"k",function(){return v}),e.d(F,"b",function(){return d}),e.d(F,"m",function(){return c}),e.d(F,"e",function(){return u}),e.d(F,"c",function(){return f}),e.d(F,"d",function(){return E}),e.d(F,"l",function(){return L}),e.d(F,"n",function(){return P}),e.d(F,"o",function(){return x}),e.d(F,"p",function(){return Q}),e.d(F,"r",function(){return V}),e.d(F,"q",function(){return W});var T=e("3/fG"),pe=e("zrhQ"),J=e("MD5Z"),I=e("t9D7"),H=Object(J.Tb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},T.a("lineHighlight","Background color for the highlight of line at the cursor position.")),K=Object(J.Tb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},T.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),D=Object(J.Tb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},T.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),U=Object(J.Tb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:J.b},T.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),j=Object(J.Tb)("editor.symbolHighlightBackground",{dark:J.t,light:J.t,hc:null},T.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),h=Object(J.Tb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:J.b},T.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),b=Object(J.Tb)("editorCursor.foreground",{dark:"#AEAFAD",light:pe.a.black,hc:pe.a.white},T.a("caret","Color of the editor cursor.")),O=Object(J.Tb)("editorCursor.background",null,T.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),m=Object(J.Tb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},T.a("editorWhitespaces","Color of whitespace characters in the editor.")),C=Object(J.Tb)("editorIndentGuide.background",{dark:m,light:m,hc:m},T.a("editorIndentGuides","Color of the editor indentation guides.")),w=Object(J.Tb)("editorIndentGuide.activeBackground",{dark:m,light:m,hc:m},T.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),v=Object(J.Tb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:pe.a.white},T.a("editorLineNumbers","Color of editor line numbers.")),p=Object(J.Tb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:J.b},T.a("editorActiveLineNumber","Color of editor active line number"),!1,T.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),d=Object(J.Tb)("editorLineNumber.activeForeground",{dark:p,light:p,hc:p},T.a("editorActiveLineNumber","Color of editor active line number")),c=Object(J.Tb)("editorRuler.foreground",{dark:"#5A5A5A",light:pe.a.lightgrey,hc:pe.a.white},T.a("editorRuler","Color of the editor rulers.")),u=Object(J.Tb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},T.a("editorCodeLensForeground","Foreground color of editor code lenses")),f=Object(J.Tb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},T.a("editorBracketMatchBackground","Background color behind matching brackets")),E=Object(J.Tb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:J.e},T.a("editorBracketMatchBorder","Color for matching brackets boxes")),L=Object(J.Tb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},T.a("editorOverviewRulerBorder","Color of the overview ruler border.")),R=Object(J.Tb)("editorGutter.background",{dark:J.o,light:J.o,hc:J.o},T.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),P=Object(J.Tb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:pe.a.fromHex("#fff").transparent(.8)},T.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),x=Object(J.Tb)("editorUnnecessaryCode.opacity",{dark:pe.a.fromHex("#000a"),light:pe.a.fromHex("#0007"),hc:null},T.a("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),Q=Object(J.Tb)("editorOverviewRuler.errorForeground",{dark:new pe.a(new pe.c(255,18,18,.7)),light:new pe.a(new pe.c(255,18,18,.7)),hc:new pe.a(new pe.c(255,50,50,1))},T.a("overviewRuleError","Overview ruler marker color for errors.")),V=Object(J.Tb)("editorOverviewRuler.warningForeground",{dark:J.P,light:J.P,hc:J.O},T.a("overviewRuleWarning","Overview ruler marker color for warnings.")),W=Object(J.Tb)("editorOverviewRuler.infoForeground",{dark:J.H,light:J.H,hc:J.G},T.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(I.e)(function(B,ae){var we=B.getColor(J.o);we&&ae.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+we+"; }");var Me=B.getColor(J.x);Me&&ae.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+Me+"; }");var Pe=B.getColor(R);Pe&&ae.addRule(".monaco-editor .margin { background-color: "+Pe+"; }");var Be=B.getColor(D);Be&&ae.addRule(".monaco-editor .rangeHighlight { background-color: "+Be+"; }");var Ke=B.getColor(U);Ke&&ae.addRule(".monaco-editor .rangeHighlight { border: 1px "+(B.type==="hc"?"dotted":"solid")+" "+Ke+"; }");var Fe=B.getColor(j);Fe&&ae.addRule(".monaco-editor .symbolHighlight { background-color: "+Fe+"; }");var re=B.getColor(h);re&&ae.addRule(".monaco-editor .symbolHighlight { border: 1px "+(B.type==="hc"?"dotted":"solid")+" "+re+"; }");var ee=B.getColor(m);ee&&ae.addRule(".vs-whitespace { color: "+ee+" !important; }")})},kdPm:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return e.e(295).then(e.bind(null,"3VBA"))}})},kqbb:function(Mt,F,e){"use strict";e.r(F),e.d(F,"ColorDetector",function(){return p});var T=e("X+cX"),pe=e("zrhQ"),J=e("/cxE"),I=e("7afs"),H=e("pmY6"),K=e("sswD"),D=e("Vxe3"),U=e("aokT"),j=e("tX9W"),h=e("twdY"),b=e("ZIMw"),O=e("+7oY"),m=function(){var d=function(c,u){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,E){f.__proto__=E}||function(f,E){for(var L in E)E.hasOwnProperty(L)&&(f[L]=E[L])},d(c,u)};return function(c,u){d(c,u);function f(){this.constructor=c}c.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),C=function(d,c,u,f){var E=arguments.length,L=E<3?c:f===null?f=Object.getOwnPropertyDescriptor(c,u):f,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(d,c,u,f);else for(var P=d.length-1;P>=0;P--)(R=d[P])&&(L=(E<3?R(L):E>3?R(c,u,L):R(c,u))||L);return E>3&&L&&Object.defineProperty(c,u,L),L},w=function(d,c){return function(u,f){c(u,f,d)}},v=500,p=function(d){m(c,d);function c(u,f,E){var L=d.call(this)||this;return L._editor=u,L._codeEditorService=f,L._configurationService=E,L._localToDispose=L._register(new H.b),L._decorationsIds=[],L._colorDatas=new Map,L._colorDecoratorIds=[],L._decorationsTypes=new Set,L._register(u.onDidChangeModel(function(R){L._isEnabled=L.isEnabled(),L.onModelChanged()})),L._register(u.onDidChangeModelLanguage(function(R){return L.onModelChanged()})),L._register(h.c.onDidChange(function(R){return L.onModelChanged()})),L._register(u.onDidChangeConfiguration(function(R){var P=L._isEnabled;L._isEnabled=L.isEnabled(),P!==L._isEnabled&&(L._isEnabled?L.onModelChanged():L.removeAllDecorations())})),L._timeoutTimer=null,L._computePromise=null,L._isEnabled=L.isEnabled(),L.onModelChanged(),L}return c.prototype.isEnabled=function(){var u=this._editor.getModel();if(!u)return!1;var f=u.getLanguageIdentifier(),E=this._configurationService.getValue(f.language);if(E){var L=E.colorDecorators;if(L&&L.enable!==void 0&&!L.enable)return L.enable}return this._editor.getOption(12)},c.get=function(u){return u.getContribution(this.ID)},c.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),d.prototype.dispose.call(this)},c.prototype.onModelChanged=function(){var u=this;if(this.stop(),!this._isEnabled)return;var f=this._editor.getModel();if(!f||!h.c.has(f))return;this._localToDispose.add(this._editor.onDidChangeModelContent(function(E){u._timeoutTimer||(u._timeoutTimer=new T.e,u._timeoutTimer.cancelAndSet(function(){u._timeoutTimer=null,u.beginCompute()},c.RECOMPUTE_TIME))})),this.beginCompute()},c.prototype.beginCompute=function(){var u=this;this._computePromise=Object(T.f)(function(f){var E=u._editor.getModel();return E?Object(b.b)(E,f):Promise.resolve([])}),this._computePromise.then(function(f){u.updateDecorations(f),u.updateColorDecorators(f),u._computePromise=null},J.e)},c.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},c.prototype.updateDecorations=function(u){var f=this,E=u.map(function(L){return{range:{startLineNumber:L.colorInfo.range.startLineNumber,startColumn:L.colorInfo.range.startColumn,endLineNumber:L.colorInfo.range.endLineNumber,endColumn:L.colorInfo.range.endColumn},options:j.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,E),this._colorDatas=new Map,this._decorationsIds.forEach(function(L,R){return f._colorDatas.set(L,u[R])})},c.prototype.updateColorDecorators=function(u){for(var f=this,E=[],L={},R=0;R<u.length&&E.length<v;R++){var P=u[R].colorInfo.color,x=P.red,Q=P.green,V=P.blue,W=P.alpha,B=new pe.c(Math.round(x*255),Math.round(Q*255),Math.round(V*255),W),ae=Object(I.a)(B).toString(16),we="rgba("+B.r+", "+B.g+", "+B.b+", "+B.a+")",Me="colorBox-"+ae;!this._decorationsTypes.has(Me)&&!L[Me]&&this._codeEditorService.registerDecorationType(Me,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:we},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),L[Me]=!0,E.push({range:{startLineNumber:u[R].colorInfo.range.startLineNumber,startColumn:u[R].colorInfo.range.startColumn,endLineNumber:u[R].colorInfo.range.endLineNumber,endColumn:u[R].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(Me,!0)})}this._decorationsTypes.forEach(function(Pe){L[Pe]||f._codeEditorService.removeDecorationType(Pe)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,E)},c.prototype.removeAllDecorations=function(){var u=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(function(f){u._codeEditorService.removeDecorationType(f)})},c.prototype.getColorData=function(u){var f=this,E=this._editor.getModel();if(!E)return null;var L=E.getDecorationsInRange(U.a.fromPositions(u,u)).filter(function(R){return f._colorDatas.has(R.id)});return L.length===0?null:this._colorDatas.get(L[0].id)},c.ID="editor.contrib.colorDetector",c.RECOMPUTE_TIME=1e3,c=C([w(1,D.a),w(2,O.a)],c),c}(H.a);Object(K.h)(p.ID,p)},"kw+w":function(Mt,F,e){},l2gE:function(Mt,F,e){"use strict";e.d(F,"a",function(){return ae});var T=e("6OMU"),pe=e("N0LK"),J=e("PTeM"),I=e("MrjW"),H=e("QDVR"),K=e("X+cX"),D="**",U="/",j="[/\\\\]",h="[^/\\\\]",b=/\//g;function O(Fe){switch(Fe){case 0:return"";case 1:return h+"*?";default:return"(?:"+j+"|"+h+"+"+j+"|"+j+h+"+)*?"}}function m(Fe,re){if(!Fe)return[];for(var ee=[],ne=!1,q=!1,le="",Z=0,ve=Fe;Z<ve.length;Z++){var Ne=ve[Z];switch(Ne){case re:if(!ne&&!q){ee.push(le),le="";continue}break;case"{":ne=!0;break;case"}":ne=!1;break;case"[":q=!0;break;case"]":q=!1;break}le+=Ne}return le&&ee.push(le),ee}function C(Fe){if(!Fe)return"";var re="",ee=m(Fe,U);if(ee.every(function(q){return q===D}))re=".*";else{var ne=!1;ee.forEach(function(q,le){if(q===D){ne||(re+=O(2),ne=!0);return}for(var Z=!1,ve="",Ne=!1,Xe="",de=0,ge=q;de<ge.length;de++){var Ee=ge[de];if(Ee!=="}"&&Z){ve+=Ee;continue}if(Ne&&(Ee!=="]"||!Xe)){var Te=void 0;Ee==="-"?Te=Ee:(Ee==="^"||Ee==="!")&&!Xe?Te="^":Ee===U?Te="":Te=pe.p(Ee),Xe+=Te;continue}switch(Ee){case"{":Z=!0;continue;case"[":Ne=!0;continue;case"}":var Ce=m(ve,","),fe="(?:"+Ce.map(function($){return C($)}).join("|")+")";re+=fe,Z=!1,ve="";break;case"]":re+="["+Xe+"]",Ne=!1,Xe="";break;case"?":re+=h;continue;case"*":re+=O(1);continue;default:re+=pe.p(Ee)}}le<ee.length-1&&(ee[le+1]!==D||le+2<ee.length)&&(re+=j),ne=!1})}return re}var w=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,p=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,d=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,c=/^\*\*((\/[\w\.-]+)+)\/?$/,u=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,f=new H.a(1e4),E=function(){return!1},L=function(){return null};function R(Fe,re){if(!Fe)return L;var ee;typeof Fe!="string"?ee=Fe.pattern:ee=Fe,ee=ee.trim();var ne=ee+"_"+!!re.trimForExclusions,q=f.get(ne);if(q)return P(q,Fe);var le;if(w.test(ee)){var Z=ee.substr(4);q=function(ve,Ne){return typeof ve=="string"&&pe.m(ve,Z)?ee:null}}else(le=v.exec(x(ee,re)))?q=Q(le[1],ee):(re.trimForExclusions?d:p).test(ee)?q=V(ee,re):(le=c.exec(x(ee,re)))?q=W(le[1].substr(1),ee,!0):(le=u.exec(x(ee,re)))?q=W(le[1],ee,!1):q=B(ee);return f.set(ne,q),P(q,Fe)}function P(Fe,re){return typeof re=="string"?Fe:function(ee,ne){return J.a(ee,re.base)?Fe(I.relative(re.base,ee),ne):null}}function x(Fe,re){return re.trimForExclusions&&pe.m(Fe,"/**")?Fe.substr(0,Fe.length-2):Fe}function Q(Fe,re){var ee="/"+Fe,ne="\\"+Fe,q=function(Z,ve){return typeof Z!="string"?null:ve?ve===Fe?re:null:Z===Fe||pe.m(Z,ee)||pe.m(Z,ne)?re:null},le=[Fe];return q.basenames=le,q.patterns=[re],q.allBasenames=le,q}function V(Fe,re){var ee=Ke(Fe.slice(1,-1).split(",").map(function(ve){return R(ve,re)}).filter(function(ve){return ve!==L}),Fe),ne=ee.length;if(!ne)return L;if(ne===1)return ee[0];var q=function(ve,Ne){for(var Xe=0,de=ee.length;Xe<de;Xe++)if(ee[Xe](ve,Ne))return Fe;return null},le=T.j(ee,function(ve){return!!ve.allBasenames});le&&(q.allBasenames=le.allBasenames);var Z=ee.reduce(function(ve,Ne){return Ne.allPaths?ve.concat(Ne.allPaths):ve},[]);return Z.length&&(q.allPaths=Z),q}function W(Fe,re,ee){var ne=I.sep!==I.posix.sep?Fe.replace(b,I.sep):Fe,q=I.sep+ne,le=ee?function(Z,ve){return typeof Z=="string"&&(Z===ne||pe.m(Z,q))?re:null}:function(Z,ve){return typeof Z=="string"&&Z===ne?re:null};return le.allPaths=[(ee?"*/":"./")+Fe],le}function B(Fe){try{var re=new RegExp("^"+C(Fe)+"$");return function(ee,ne){return re.lastIndex=0,typeof ee=="string"&&re.test(ee)?Fe:null}}catch(ee){return L}}function ae(Fe,re,ee){return!Fe||typeof re!="string"?!1:we(Fe)(re,void 0,ee)}function we(Fe,re){if(re===void 0&&(re={}),!Fe)return E;if(typeof Fe=="string"||Me(Fe)){var ee=R(Fe,re);if(ee===L)return E;var ne=function(q,le){return!!ee(q,le)};return ee.allBasenames&&(ne.allBasenames=ee.allBasenames),ee.allPaths&&(ne.allPaths=ee.allPaths),ne}return Pe(Fe,re)}function Me(Fe){var re=Fe;return re&&typeof re.base=="string"&&typeof re.pattern=="string"}function Pe(Fe,re){var ee=Ke(Object.getOwnPropertyNames(Fe).map(function(de){return Be(de,Fe[de],re)}).filter(function(de){return de!==L})),ne=ee.length;if(!ne)return L;if(!ee.some(function(de){return!!de.requiresSiblings})){if(ne===1)return ee[0];var q=function(de,ge){for(var Ee=0,Te=ee.length;Ee<Te;Ee++){var Ce=ee[Ee](de,ge);if(Ce)return Ce}return null},le=T.j(ee,function(de){return!!de.allBasenames});le&&(q.allBasenames=le.allBasenames);var Z=ee.reduce(function(de,ge){return ge.allPaths?de.concat(ge.allPaths):de},[]);return Z.length&&(q.allPaths=Z),q}var ve=function(de,ge,Ee){for(var Te=void 0,Ce=0,fe=ee.length;Ce<fe;Ce++){var $=ee[Ce];$.requiresSiblings&&Ee&&(ge||(ge=I.basename(de)),Te||(Te=ge.substr(0,ge.length-I.extname(de).length)));var S=$(de,ge,Te,Ee);if(S)return S}return null},Ne=T.j(ee,function(de){return!!de.allBasenames});Ne&&(ve.allBasenames=Ne.allBasenames);var Xe=ee.reduce(function(de,ge){return ge.allPaths?de.concat(ge.allPaths):de},[]);return Xe.length&&(ve.allPaths=Xe),ve}function Be(Fe,re,ee){if(re===!1)return L;var ne=R(Fe,ee);if(ne===L)return L;if(typeof re=="boolean")return ne;if(re){var q=re.when;if(typeof q=="string"){var le=function(Z,ve,Ne,Xe){if(!Xe||!ne(Z,ve))return null;var de=q.replace("$(basename)",Ne),ge=Xe(de);return Object(K.i)(ge)?ge.then(function(Ee){return Ee?Fe:null}):ge?Fe:null};return le.requiresSiblings=!0,le}}return ne}function Ke(Fe,re){var ee=Fe.filter(function(Xe){return!!Xe.basenames});if(ee.length<2)return Fe;var ne=ee.reduce(function(Xe,de){var ge=de.basenames;return ge?Xe.concat(ge):Xe},[]),q;if(re){q=[];for(var le=0,Z=ne.length;le<Z;le++)q.push(re)}else q=ee.reduce(function(Xe,de){var ge=de.patterns;return ge?Xe.concat(ge):Xe},[]);var ve=function(Xe,de){if(typeof Xe!="string")return null;if(!de){var ge=void 0;for(ge=Xe.length;ge>0;ge--){var Ee=Xe.charCodeAt(ge-1);if(Ee===47||Ee===92)break}de=Xe.substr(ge)}var Te=ne.indexOf(de);return Te!==-1?q[Te]:null};ve.basenames=ne,ve.patterns=q,ve.allBasenames=ne;var Ne=Fe.filter(function(Xe){return!Xe.basenames});return Ne.push(ve),Ne}},lKfe:function(Mt,F,e){},"lY/7":function(Mt,F,e){"use strict";e.r(F),e.d(F,"MarkerController",function(){return ve}),e.d(F,"NextMarkerAction",function(){return Xe});var T=e("3/fG"),pe=e("MI8n"),J=e("pmY6"),I=e("T8No"),H=e("tADe"),K=e("aokT"),D=e("sswD"),U=e("t9D7"),j=e("wQH0"),h=e("/oaI"),b=e("EffR"),O=e("MD5Z"),m=e("zrhQ"),C=e("GJhM"),w=e("3rx1"),v=e("6OMU"),p=e("iNS8"),d=e("gslv"),c=e("S3by"),u;(function(fe){function $(S){switch(S){case c.a.Ignore:return"severity-ignore codicon-info";case c.a.Info:return"codicon-info";case c.a.Warning:return"codicon-warning";case c.a.Error:return"codicon-error"}return""}fe.className=$})(u||(u={})),Object(U.e)(function(fe,$){var S=fe.getColor(O.Pb);S&&$.addRule(`
.monaco-editor .zone-widget .codicon-error,
.markers-panel .marker-icon.codicon-error,
.extensions-viewlet > .extensions .codicon-error,
.monaco-dialog-box .dialog-message-row .codicon-error {
color: `+S+`;
}
`);var z=fe.getColor(O.Rb);S&&$.addRule(`
.monaco-editor .zone-widget .codicon-warning,
.markers-panel .marker-icon.codicon-warning,
.extensions-viewlet > .extensions .codicon-warning,
.extension-editor .codicon-warning,
.monaco-dialog-box .dialog-message-row .codicon-warning {
color: `+z+`;
}
`);var ce=fe.getColor(O.Qb);S&&$.addRule(`
.monaco-editor .zone-widget .codicon-info,
.markers-panel .marker-icon.codicon-info,
.extensions-viewlet > .extensions .codicon-info,
.extension-editor .codicon-info,
.monaco-dialog-box .dialog-message-row .codicon-info {
color: `+ce+`;
}
`)});var f=function(){var fe=function($,S){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,ce){z.__proto__=ce}||function(z,ce){for(var se in ce)ce.hasOwnProperty(se)&&(z[se]=ce[se])},fe($,S)};return function($,S){fe($,S);function z(){this.constructor=$}$.prototype=S===null?Object.create(S):(z.prototype=S.prototype,new z)}}(),E=function(){function fe($,S,z,ce){var se=this;this._openerService=ce,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new J.b,this._editor=S;var ye=document.createElement("div");ye.className="descriptioncontainer",ye.setAttribute("aria-live","assertive"),ye.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),b.f(this._messageBlock,"message"),ye.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),ye.appendChild(this._relatedBlock),this._disposables.add(b.o(this._relatedBlock,"click",function(Re){Re.preventDefault();var Le=se._relatedDiagnostics.get(Re.target);Le&&z(Le)})),this._scrollable=new C.b(ye,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),$.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(function(Re){ye.style.left="-"+Re.scrollLeft+"px",ye.style.top="-"+Re.scrollTop+"px"})),this._disposables.add(this._scrollable)}return fe.prototype.dispose=function(){Object(J.f)(this._disposables)},fe.prototype.update=function($){var S=this,z=$.source,ce=$.message,se=$.relatedInformation,ye=$.code,Re=((z==null?void 0:z.length)||0)+"()".length;ye&&(typeof ye=="string"?Re+=ye.length:Re+=ye.value.length);var Le=ce.split(/\r\n|\r|\n/g);this._lines=Le.length,this._longestLineLength=0;for(var Ue=0,Je=Le;Ue<Je.length;Ue++){var nt=Je[Ue];this._longestLineLength=Math.max(nt.length+Re,this._longestLineLength)}b.t(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var vt=this._messageBlock,Rt=0,Ot=Le;Rt<Ot.length;Rt++){var nt=Ot[Rt];vt=document.createElement("div"),vt.innerText=nt,nt===""&&(vt.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(vt)}if(z||ye){var Kt=document.createElement("span");if(b.f(Kt,"details"),vt.appendChild(Kt),z){var ao=document.createElement("span");ao.innerText=z,b.f(ao,"source"),Kt.appendChild(ao)}if(ye)if(typeof ye=="string"){var lo=document.createElement("span");lo.innerText="("+ye+")",b.f(lo,"code"),Kt.appendChild(lo)}else{this._codeLink=b.a("a.code-link"),this._codeLink.setAttribute("href",""+ye.link.toString()),this._codeLink.onclick=function(Yt){S._openerService.open(ye.link),Yt.preventDefault(),Yt.stopPropagation()};var lo=b.q(this._codeLink,b.a("span"));lo.innerText=ye.value,Kt.appendChild(this._codeLink)}}if(b.t(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(v.q)(se)){var so=this._relatedBlock.appendChild(document.createElement("div"));so.style.paddingTop=Math.floor(this._editor.getOption(49)*.66)+"px",this._lines+=1;for(var jt=0,pt=se;jt<pt.length;jt++){var gt=pt[jt],Tt=document.createElement("div"),it=document.createElement("a");b.f(it,"filename"),it.innerHTML=Object(w.a)(gt.resource)+"("+gt.startLineNumber+", "+gt.startColumn+"): ",it.title=Object(w.b)(gt.resource,void 0),this._relatedDiagnostics.set(it,gt);var et=document.createElement("span");et.innerText=gt.message,Tt.appendChild(it),Tt.appendChild(et),this._lines+=1,so.appendChild(Tt)}}var ut=this._editor.getOption(34),Ct=Math.ceil(ut.typicalFullwidthCharacterWidth*this._longestLineLength*.75),ht=ut.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:Ct,scrollHeight:ht})},fe.prototype.layout=function($,S){this._scrollable.getDomNode().style.height=$+"px",this._scrollable.getDomNode().style.width=S+"px",this._scrollable.setScrollDimensions({width:S,height:$})},fe.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},fe}(),L=function(fe){f($,fe);function $(S,z,ce,se){var ye=fe.call(this,S,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return ye.actions=z,ye._themeService=ce,ye._openerService=se,ye._callOnDispose=new J.b,ye._onDidSelectRelatedInformation=new pe.a,ye.onDidSelectRelatedInformation=ye._onDidSelectRelatedInformation.event,ye._severity=H.c.Warning,ye._backgroundColor=m.a.white,ye._applyTheme(ce.getTheme()),ye._callOnDispose.add(ce.onThemeChange(ye._applyTheme.bind(ye))),ye.create(),ye}return $.prototype._applyTheme=function(S){this._backgroundColor=S.getColor(B);var z=Q;this._severity===H.c.Warning?z=V:this._severity===H.c.Info&&(z=W);var ce=S.getColor(z);this.style({arrowColor:ce,frameColor:ce,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:S.getColor(p.q),secondaryHeadingColor:S.getColor(p.r)})},$.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),fe.prototype._applyStyles.call(this)},$.prototype.dispose=function(){this._callOnDispose.dispose(),fe.prototype.dispose.call(this)},$.prototype._fillHead=function(S){fe.prototype._fillHead.call(this,S),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},$.prototype._fillTitleIcon=function(S){this._icon=b.q(S,b.a(""))},$.prototype._getActionBarOptions=function(){return{orientation:0}},$.prototype._fillBody=function(S){var z=this;this._parentContainer=S,b.f(S,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),S.appendChild(this._container),this._message=new E(this._container,this.editor,function(ce){return z._onDidSelectRelatedInformation.fire(ce)},this._openerService),this._disposables.add(this._message)},$.prototype.show=function(S,z){throw new Error("call showAtMarker")},$.prototype.showAtMarker=function(S,z,ce){this._container.classList.remove("stale"),this._message.update(S),this._severity=S.severity,this._applyTheme(this._themeService.getTheme());var se=K.a.lift(S),ye=this.editor.getPosition(),Re=ye&&se.containsPosition(ye)?ye:se.getStartPosition();fe.prototype.show.call(this,Re,this.computeRequiredHeight());var Le=this.editor.getModel();if(Le){var Ue=ce>1?T.a("problems","{0} of {1} problems",z,ce):T.a("change","{0} of {1} problem",z,ce);this.setTitle(Object(d.b)(Le.uri),Ue)}this._icon.className="codicon "+u.className(H.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(Re,0),this.editor.focus()},$.prototype.updateMarker=function(S){this._container.classList.remove("stale"),this._message.update(S)},$.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},$.prototype._doLayoutBody=function(S,z){fe.prototype._doLayoutBody.call(this,S,z),this._heightInPixel=S,this._message.layout(S,z),this._container.style.height=S+"px"},$.prototype._onWidth=function(S){this._message.layout(this._heightInPixel,S)},$.prototype._relayout=function(){fe.prototype._relayout.call(this,this.computeRequiredHeight())},$.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},$}(p.c),R=Object(O.Kb)(O.q,O.p),P=Object(O.Kb)(O.P,O.O),x=Object(O.Kb)(O.H,O.G),Q=Object(O.Tb)("editorMarkerNavigationError.background",{dark:R,light:R,hc:R},T.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),V=Object(O.Tb)("editorMarkerNavigationWarning.background",{dark:P,light:P,hc:P},T.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),W=Object(O.Tb)("editorMarkerNavigationInfo.background",{dark:x,light:x,hc:x},T.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),B=Object(O.Tb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:m.a.white,hc:"#0C141F"},T.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(U.e)(function(fe,$){var S=fe.getColor(O.ec);S&&($.addRule(".monaco-editor .marker-widget a { color: "+S+"; }"),$.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+S+"; }"))});var ae=e("N0LK"),we=e("Vxe3"),Me=e("/cxE"),Pe=e("fjLI"),Be=e("8HAY"),Ke=e("bexQ"),Fe=e("W9cx"),re=function(){var fe=function($,S){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,ce){z.__proto__=ce}||function(z,ce){for(var se in ce)ce.hasOwnProperty(se)&&(z[se]=ce[se])},fe($,S)};return function($,S){fe($,S);function z(){this.constructor=$}$.prototype=S===null?Object.create(S):(z.prototype=S.prototype,new z)}}(),ee=function(fe,$,S,z){var ce=arguments.length,se=ce<3?$:z===null?z=Object.getOwnPropertyDescriptor($,S):z,ye;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(fe,$,S,z);else for(var Re=fe.length-1;Re>=0;Re--)(ye=fe[Re])&&(se=(ce<3?ye(se):ce>3?ye($,S,se):ye($,S))||se);return ce>3&&se&&Object.defineProperty($,S,se),se},ne=function(fe,$){return function(S,z){$(S,z,fe)}},q=function(fe,$,S,z){function ce(se){return se instanceof S?se:new S(function(ye){ye(se)})}return new(S||(S=Promise))(function(se,ye){function Re(Je){try{Ue(z.next(Je))}catch(nt){ye(nt)}}function Le(Je){try{Ue(z.throw(Je))}catch(nt){ye(nt)}}function Ue(Je){Je.done?se(Je.value):ce(Je.value).then(Re,Le)}Ue((z=z.apply(fe,$||[])).next())})},le=function(fe,$){var S={label:0,sent:function(){if(se[0]&1)throw se[1];return se[1]},trys:[],ops:[]},z,ce,se,ye;return ye={next:Re(0),throw:Re(1),return:Re(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function Re(Ue){return function(Je){return Le([Ue,Je])}}function Le(Ue){if(z)throw new TypeError("Generator is already executing.");for(;S;)try{if(z=1,ce&&(se=Ue[0]&2?ce.return:Ue[0]?ce.throw||((se=ce.return)&&se.call(ce),0):ce.next)&&!(se=se.call(ce,Ue[1])).done)return se;(ce=0,se)&&(Ue=[Ue[0]&2,se.value]);switch(Ue[0]){case 0:case 1:se=Ue;break;case 4:return S.label++,{value:Ue[1],done:!1};case 5:S.label++,ce=Ue[1],Ue=[0];continue;case 7:Ue=S.ops.pop(),S.trys.pop();continue;default:if(!(se=S.trys,se=se.length>0&&se[se.length-1])&&(Ue[0]===6||Ue[0]===2)){S=0;continue}if(Ue[0]===3&&(!se||Ue[1]>se[0]&&Ue[1]<se[3])){S.label=Ue[1];break}if(Ue[0]===6&&S.label<se[1]){S.label=se[1],se=Ue;break}if(se&&S.label<se[2]){S.label=se[2],S.ops.push(Ue);break}se[2]&&S.ops.pop(),S.trys.pop();continue}Ue=$.call(fe,S)}catch(Je){Ue=[6,Je],ce=0}finally{z=se=0}if(Ue[0]&5)throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}},Z=function(){function fe($,S){var z=this;this._toUnbind=new J.b,this._editor=$,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new pe.a,this._onMarkerSetChanged=new pe.a,this.setMarkers(S),this._toUnbind.add(this._editor.onDidDispose(function(){return z.dispose()})),this._toUnbind.add(this._editor.onDidChangeCursorPosition(function(){if(z._ignoreSelectionChange)return;if(z.currentMarker&&z._editor.getPosition()&&K.a.containsPosition(z.currentMarker,z._editor.getPosition()))return;z._nextIdx=-1}))}return Object.defineProperty(fe.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),fe.prototype.setMarkers=function($){var S=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=$||[],this._markers.sort(Ne.compareMarker),S?this._nextIdx=Math.max(-1,Object(v.c)(this._markers,S,Ne.compareMarker)):this._nextIdx=-1,this._onMarkerSetChanged.fire(this)},fe.prototype.withoutWatchingEditorPosition=function($){this._ignoreSelectionChange=!0;try{$()}finally{this._ignoreSelectionChange=!1}},fe.prototype._initIdx=function($){for(var S=!1,z=this._editor.getPosition(),ce=0;ce<this._markers.length;ce++){var se=K.a.lift(this._markers[ce]);if(se.isEmpty()&&this._editor.getModel()){var ye=this._editor.getModel().getWordAtPosition(se.getStartPosition());ye&&(se=new K.a(se.startLineNumber,ye.startColumn,se.startLineNumber,ye.endColumn))}if(z&&(se.containsPosition(z)||z.isBeforeOrEqual(se.getStartPosition()))){this._nextIdx=ce,S=!0;break}}S||(this._nextIdx=$?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)},Object.defineProperty(fe.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0},set:function($){var S=this._nextIdx;this._nextIdx=-1,$&&(this._nextIdx=this.indexOf($)),this._nextIdx!==S&&this._onCurrentMarkerChanged.fire($)},enumerable:!0,configurable:!0}),fe.prototype.move=function($,S){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!S;var z=this._nextIdx,ce=!1;if(this._nextIdx===-1?this._initIdx($):$?S||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:ce=!0:$||(S||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:ce=!0),z!==this._nextIdx){var se=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(se)}return ce},fe.prototype.canNavigate=function(){return this._markers.length>0},fe.prototype.findMarkerAtPosition=function($){return Object(v.h)(this._markers,function(S){return K.a.containsPosition(S,$)})},Object.defineProperty(fe.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),fe.prototype.indexOf=function($){return 1+this._markers.indexOf($)},fe.prototype.dispose=function(){this._toUnbind.dispose()},fe}(),ve=function(){function fe($,S,z,ce,se,ye,Re){this._markerService=S,this._contextKeyService=z,this._themeService=ce,this._editorService=se,this._keybindingService=ye,this._openerService=Re,this._model=null,this._widget=null,this._disposeOnClose=new J.b,this._editor=$,this._widgetVisible=Te.bindTo(this._contextKeyService)}return fe.get=function($){return $.getContribution(fe.ID)},fe.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},fe.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},fe.prototype.getOrCreateModel=function(){var $=this;if(this._model)return this._model;var S=this._getMarkers();this._model=new Z(this._editor,S),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var z=this._keybindingService.lookupKeybinding(de.ID),ce=this._keybindingService.lookupKeybinding(Xe.ID),se=[new Be.a(Xe.ID,Xe.LABEL+(ce?" ("+ce.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),function(){return q($,void 0,void 0,function(){return le(this,function(Ue){return this._model&&this._model.move(!0,!0),[2]})})}),new Be.a(de.ID,de.LABEL+(z?" ("+z.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return q($,void 0,void 0,function(){return le(this,function(Ue){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new L(this._editor,se,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return $.closeMarkersNavigation()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var ye=0,Re=se;ye<Re.length;ye++){var Le=Re[ye];this._disposeOnClose.add(Le)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation(function(Ue){$._editorService.openCodeEditor({resource:Ue.resource,options:{pinned:!0,revealIfOpened:!0,selection:K.a.lift(Ue).collapseToStart()}},$._editor).then(void 0,Me.e),$.closeMarkersNavigation(!1)})),this._disposeOnClose.add(this._editor.onDidChangeModel(function(){return $._cleanUp()})),this._disposeOnClose.add(this._model.onCurrentMarkerChanged(function(Ue){!Ue||!$._model?$._cleanUp():$._model.withoutWatchingEditorPosition(function(){if(!$._widget||!$._model)return;$._widget.showAtMarker(Ue,$._model.indexOf(Ue),$._model.total)})})),this._disposeOnClose.add(this._model.onMarkerSetChanged(function(){if(!$._widget||!$._widget.position||!$._model)return;var Ue=$._model.findMarkerAtPosition($._widget.position);Ue?$._widget.updateMarker(Ue):$._widget.showStale()})),this._model},fe.prototype.closeMarkersNavigation=function($){$===void 0&&($=!0),this._cleanUp(),$&&this._editor.focus()},fe.prototype.show=function($){var S=this.getOrCreateModel();S.currentMarker=$},fe.prototype._onMarkerChanged=function($){var S=this._editor.getModel();if(!S)return;if(!this._model)return;if(!$.some(function(z){return Object(d.e)(S.uri,z)}))return;this._model.setMarkers(this._getMarkers())},fe.prototype._getMarkers=function(){var $=this._editor.getModel();return $?this._markerService.read({resource:$.uri,severities:H.c.Error|H.c.Warning|H.c.Info}):[]},fe.ID="editor.contrib.markerController",fe=ee([ne(1,H.b),ne(2,I.c),ne(3,U.c),ne(4,we.a),ne(5,Ke.a),ne(6,Fe.a)],fe),fe}(),Ne=function(fe){re($,fe);function $(S,z,ce){var se=fe.call(this,ce)||this;return se._isNext=S,se._multiFile=z,se}return $.prototype.run=function(S,z){var ce=this,se=S.get(H.b),ye=S.get(we.a),Re=ve.get(z);if(!Re)return Promise.resolve(void 0);var Le=Re.getOrCreateModel(),Ue=Le.move(this._isNext,!this._multiFile);if(!Ue||!this._multiFile)return Promise.resolve(void 0);var Je=se.read({severities:H.c.Error|H.c.Warning|H.c.Info}).sort($.compareMarker);if(Je.length===0)return Promise.resolve(void 0);var nt=z.getModel();if(!nt)return Promise.resolve(void 0);var vt=Le.currentMarker||{resource:nt.uri,severity:H.c.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},Rt=Object(v.c)(Je,vt,$.compareMarker);Rt<0?(Rt=~Rt,Rt%=Je.length):this._isNext?Rt=(Rt+1)%Je.length:Rt=(Rt+Je.length-1)%Je.length;var Ot=Je[Rt];return Object(d.e)(Ot.resource,nt.uri)?(Le.move(this._isNext,!0),Promise.resolve(void 0)):(Re.closeMarkersNavigation(),ye.openCodeEditor({resource:Ot.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:Ot}},z).then(function(Kt){return Kt?Kt.getAction(ce.id).run():void 0}))},$.compareMarker=function(S,z){var ce=Object(ae.e)(S.resource.toString(),z.resource.toString());return ce===0&&(ce=H.c.compare(S.severity,z.severity)),ce===0&&(ce=K.a.compareRangesUsingStarts(S,z)),ce},$}(D.b),Xe=function(fe){re($,fe);function $(){return fe.call(this,!0,!1,{id:$.ID,label:$.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:j.a.writable,kbOpts:{kbExpr:j.a.focus,primary:512|66,weight:100}})||this}return $.ID="editor.action.marker.next",$.LABEL=T.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),$}(Ne),de=function(fe){re($,fe);function $(){return fe.call(this,!1,!1,{id:$.ID,label:$.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:j.a.writable,kbOpts:{kbExpr:j.a.focus,primary:1024|512|66,weight:100}})||this}return $.ID="editor.action.marker.prev",$.LABEL=T.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),$}(Ne),ge=function(fe){re($,fe);function $(){return fe.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:T.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:j.a.writable,kbOpts:{kbExpr:j.a.focus,primary:66,weight:100}})||this}return $}(Ne),Ee=function(fe){re($,fe);function $(){return fe.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:T.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:j.a.writable,kbOpts:{kbExpr:j.a.focus,primary:1024|66,weight:100}})||this}return $}(Ne);Object(D.h)(ve.ID,ve),Object(D.f)(Xe),Object(D.f)(de),Object(D.f)(ge),Object(D.f)(Ee);var Te=new I.d("markersNavigationVisible",!1),Ce=D.c.bindToContribution(ve.get);Object(D.g)(new Ce({id:"closeMarkersNavigation",precondition:Te,handler:function(fe){return fe.closeMarkersNavigation()},kbOpts:{weight:100+50,kbExpr:j.a.focus,primary:9,secondary:[1024|9]}})),Pe.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:T.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),Pe.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:T.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2})},li8W:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return e.e(294).then(e.bind(null,"7s2V"))}})},lrmC:function(Mt,F,e){},n01l:function(Mt,F,e){"use strict";e.r(F);var T=e("3/fG"),pe=e("/kV6"),J=e("sswD"),I=e("wQH0"),H=e("0/Sa"),K=e("cGHE"),D=e("aokT"),U=e("gCVg"),j=e("cMvZ"),h=function(){function c(u,f){this._selection=u,this._insertSpace=f,this._usedEndToken=null}return c._haystackHasNeedleAtOffset=function(u,f,E){if(E<0)return!1;var L=f.length,R=u.length;if(E+L>R)return!1;for(var P=0;P<L;P++){var x=u.charCodeAt(E+P),Q=f.charCodeAt(P);if(x===Q)continue;if(x>=65&&x<=90&&x+32===Q)continue;if(Q>=65&&Q<=90&&Q+32===x)continue;return!1}return!0},c.prototype._createOperationsForBlockComment=function(u,f,E,L,R,P){var x=u.startLineNumber,Q=u.startColumn,V=u.endLineNumber,W=u.endColumn,B=R.getLineContent(x),ae=R.getLineContent(V),we=B.lastIndexOf(f,Q-1+f.length),Me=ae.indexOf(E,W-1-E.length);if(we!==-1&&Me!==-1)if(x===V){var Pe=B.substring(we+f.length,Me);Pe.indexOf(E)>=0&&(we=-1,Me=-1)}else{var Be=B.substring(we+f.length),Ke=ae.substring(0,Me);(Be.indexOf(E)>=0||Ke.indexOf(E)>=0)&&(we=-1,Me=-1)}var Fe;we!==-1&&Me!==-1?(L&&we+f.length<B.length&&B.charCodeAt(we+f.length)===32&&(f=f+" "),L&&Me>0&&ae.charCodeAt(Me-1)===32&&(E=" "+E,Me-=1),Fe=c._createRemoveBlockCommentOperations(new D.a(x,we+f.length+1,V,Me+1),f,E)):(Fe=c._createAddBlockCommentOperations(u,f,E,this._insertSpace),this._usedEndToken=Fe.length===1?E:null);for(var re=0,ee=Fe;re<ee.length;re++){var ne=ee[re];P.addTrackedEditOperation(ne.range,ne.text)}},c._createRemoveBlockCommentOperations=function(u,f,E){var L=[];return D.a.isEmpty(u)?L.push(H.a.delete(new D.a(u.startLineNumber,u.startColumn-f.length,u.endLineNumber,u.endColumn+E.length))):(L.push(H.a.delete(new D.a(u.startLineNumber,u.startColumn-f.length,u.startLineNumber,u.startColumn))),L.push(H.a.delete(new D.a(u.endLineNumber,u.endColumn,u.endLineNumber,u.endColumn+E.length)))),L},c._createAddBlockCommentOperations=function(u,f,E,L){var R=[];return D.a.isEmpty(u)?R.push(H.a.replace(new D.a(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn),f+" "+E)):(R.push(H.a.insert(new K.a(u.startLineNumber,u.startColumn),f+(L?" ":""))),R.push(H.a.insert(new K.a(u.endLineNumber,u.endColumn),(L?" ":"")+E))),R},c.prototype.getEditOperations=function(u,f){var E=this._selection.startLineNumber,L=this._selection.startColumn;u.tokenizeIfCheap(E);var R=u.getLanguageIdAtPosition(E,L),P=j.a.getComments(R);if(!P||!P.blockCommentStartToken||!P.blockCommentEndToken)return;this._createOperationsForBlockComment(this._selection,P.blockCommentStartToken,P.blockCommentEndToken,this._insertSpace,u,f)},c.prototype.computeCursorState=function(u,f){var E=f.getInverseEditOperations();if(E.length===2){var L=E[0],R=E[1];return new U.a(L.range.endLineNumber,L.range.endColumn,R.range.startLineNumber,R.range.startColumn)}else{var P=E[0].range,x=this._usedEndToken?-this._usedEndToken.length-1:0;return new U.a(P.endLineNumber,P.endColumn+x,P.endLineNumber,P.endColumn+x)}},c}(),b=e("N0LK"),O=function(){function c(u,f,E,L){this._selection=u,this._tabSize=f,this._type=E,this._insertSpace=L,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}return c._gatherPreflightCommentStrings=function(u,f,E){u.tokenizeIfCheap(f);var L=u.getLanguageIdAtPosition(f,1),R=j.a.getComments(L),P=R?R.lineCommentToken:null;if(!P)return null;for(var x=[],Q=0,V=E-f+1;Q<V;Q++)x[Q]={ignore:!1,commentStr:P,commentStrOffset:0,commentStrLength:P.length};return x},c._analyzeLines=function(u,f,E,L,R){var P=!0,x;u===0?x=!0:u===1?x=!1:x=!0;for(var Q=0,V=L.length;Q<V;Q++){var W=L[Q],B=R+Q,ae=E.getLineContent(B),we=b.q(ae);if(we===-1){u===0||u===1,W.ignore=!0,W.commentStrOffset=ae.length;continue}if(P=!1,W.ignore=!1,W.commentStrOffset=we,x&&!h._haystackHasNeedleAtOffset(ae,W.commentStr,we)&&(u===0?x=!1:u===1||(W.ignore=!0)),x&&f){var Me=we+W.commentStrLength;Me<ae.length&&ae.charCodeAt(Me)===32&&(W.commentStrLength+=1)}}if(u===0&&P){x=!1;for(var Q=0,V=L.length;Q<V;Q++)L[Q].ignore=!1}return{supported:!0,shouldRemoveComments:x,lines:L}},c._gatherPreflightData=function(u,f,E,L,R){var P=c._gatherPreflightCommentStrings(E,L,R);return P===null?{supported:!1}:c._analyzeLines(u,f,E,P,L)},c.prototype._executeLineComments=function(u,f,E,L){var R;E.shouldRemoveComments?R=c._createRemoveLineCommentsOperations(E.lines,L.startLineNumber):(c._normalizeInsertionPoint(u,E.lines,L.startLineNumber,this._tabSize),R=this._createAddLineCommentsOperations(E.lines,L.startLineNumber));for(var P=new K.a(L.positionLineNumber,L.positionColumn),x=0,Q=R.length;x<Q;x++)if(f.addEditOperation(R[x].range,R[x].text),R[x].range.isEmpty()&&R[x].range.getStartPosition().equals(P)){var V=u.getLineContent(P.lineNumber);V.length+1===P.column&&(this._deltaColumn=(R[x].text||"").length)}this._selectionId=f.trackSelection(L)},c.prototype._attemptRemoveBlockComment=function(u,f,E,L){var R=f.startLineNumber,P=f.endLineNumber,x=L.length+Math.max(u.getLineFirstNonWhitespaceColumn(f.startLineNumber),f.startColumn),Q=u.getLineContent(R).lastIndexOf(E,x-1),V=u.getLineContent(P).indexOf(L,f.endColumn-1-E.length);return Q!==-1&&V===-1&&(V=u.getLineContent(R).indexOf(L,Q+E.length),P=R),Q===-1&&V!==-1&&(Q=u.getLineContent(P).lastIndexOf(E,V),R=P),f.isEmpty()&&(Q===-1||V===-1)&&(Q=u.getLineContent(R).indexOf(E),Q!==-1&&(V=u.getLineContent(R).indexOf(L,Q+E.length))),Q!==-1&&u.getLineContent(R).charCodeAt(Q+E.length)===32&&(E+=" "),V!==-1&&u.getLineContent(P).charCodeAt(V-1)===32&&(L=" "+L,V-=1),Q!==-1&&V!==-1?h._createRemoveBlockCommentOperations(new D.a(R,Q+E.length+1,P,V+1),E,L):null},c.prototype._executeBlockComment=function(u,f,E){u.tokenizeIfCheap(E.startLineNumber);var L=u.getLanguageIdAtPosition(E.startLineNumber,1),R=j.a.getComments(L);if(!R||!R.blockCommentStartToken||!R.blockCommentEndToken)return;var P=R.blockCommentStartToken,x=R.blockCommentEndToken,Q=this._attemptRemoveBlockComment(u,E,P,x);if(!Q){if(E.isEmpty()){var V=u.getLineContent(E.startLineNumber),W=b.q(V);W===-1&&(W=V.length),Q=h._createAddBlockCommentOperations(new D.a(E.startLineNumber,W+1,E.startLineNumber,V.length+1),P,x,this._insertSpace)}else Q=h._createAddBlockCommentOperations(new D.a(E.startLineNumber,u.getLineFirstNonWhitespaceColumn(E.startLineNumber),E.endLineNumber,u.getLineMaxColumn(E.endLineNumber)),P,x,this._insertSpace);Q.length===1&&(this._deltaColumn=P.length+1)}this._selectionId=f.trackSelection(E);for(var B=0,ae=Q;B<ae.length;B++){var we=ae[B];f.addEditOperation(we.range,we.text)}},c.prototype.getEditOperations=function(u,f){var E=this._selection;this._moveEndPositionDown=!1,E.startLineNumber<E.endLineNumber&&E.endColumn===1&&(this._moveEndPositionDown=!0,E=E.setEndPosition(E.endLineNumber-1,u.getLineMaxColumn(E.endLineNumber-1)));var L=c._gatherPreflightData(this._type,this._insertSpace,u,E.startLineNumber,E.endLineNumber);return L.supported?this._executeLineComments(u,f,L,E):this._executeBlockComment(u,f,E)},c.prototype.computeCursorState=function(u,f){var E=f.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(E=E.setEndPosition(E.endLineNumber+1,1)),new U.a(E.selectionStartLineNumber,E.selectionStartColumn+this._deltaColumn,E.positionLineNumber,E.positionColumn+this._deltaColumn)},c._createRemoveLineCommentsOperations=function(u,f){for(var E=[],L=0,R=u.length;L<R;L++){var P=u[L];if(P.ignore)continue;E.push(H.a.delete(new D.a(f+L,P.commentStrOffset+1,f+L,P.commentStrOffset+P.commentStrLength+1)))}return E},c.prototype._createAddLineCommentsOperations=function(u,f){for(var E=[],L=this._insertSpace?" ":"",R=0,P=u.length;R<P;R++){var x=u[R];if(x.ignore)continue;E.push(H.a.insert(new K.a(f+R,x.commentStrOffset+1),x.commentStr+L))}return E},c.nextVisibleColumn=function(u,f,E,L){return E?u+(f-u%f):u+L},c._normalizeInsertionPoint=function(u,f,E,L){for(var R=1073741824,P,x,Q=0,V=f.length;Q<V;Q++){if(f[Q].ignore)continue;for(var W=u.getLineContent(E+Q),B=0,ae=0,we=f[Q].commentStrOffset;B<R&&ae<we;ae++)B=c.nextVisibleColumn(B,L,W.charCodeAt(ae)===9,1);B<R&&(R=B)}R=Math.floor(R/L)*L;for(var Q=0,V=f.length;Q<V;Q++){if(f[Q].ignore)continue;var W=u.getLineContent(E+Q),B=0;for(P=0,x=f[Q].commentStrOffset;B<R&&P<x;P++)B=c.nextVisibleColumn(B,L,W.charCodeAt(P)===9,1);B>R?f[Q].commentStrOffset=P-1:f[Q].commentStrOffset=P}},c}(),m=function(){var c=function(u,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var R in L)L.hasOwnProperty(R)&&(E[R]=L[R])},c(u,f)};return function(u,f){c(u,f);function E(){this.constructor=u}u.prototype=f===null?Object.create(f):(E.prototype=f.prototype,new E)}}(),C=function(c){m(u,c);function u(f,E){var L=c.call(this,E)||this;return L._type=f,L}return u.prototype.run=function(f,E){if(!E.hasModel())return;for(var L=E.getModel(),R=[],P=E.getSelections(),x=L.getOptions(),Q=E.getOption(13),V=0,W=P;V<W.length;V++){var B=W[V];R.push(new O(B,x.tabSize,this._type,Q.insertSpace))}E.pushUndoStop(),E.executeCommands(this.id,R),E.pushUndoStop()},u}(J.b),w=function(c){m(u,c);function u(){return c.call(this,0,{id:"editor.action.commentLine",label:T.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|85,weight:100},menuOpts:{menuId:17,group:"5_insert",title:T.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}return u}(C),v=function(c){m(u,c);function u(){return c.call(this,1,{id:"editor.action.addCommentLine",label:T.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:Object(pe.a)(2048|41,2048|33),weight:100}})||this}return u}(C),p=function(c){m(u,c);function u(){return c.call(this,2,{id:"editor.action.removeCommentLine",label:T.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:Object(pe.a)(2048|41,2048|51),weight:100}})||this}return u}(C),d=function(c){m(u,c);function u(){return c.call(this,{id:"editor.action.blockComment",label:T.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:1024|512|31,linux:{primary:2048|1024|31},weight:100},menuOpts:{menuId:17,group:"5_insert",title:T.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}return u.prototype.run=function(f,E){if(!E.hasModel())return;for(var L=E.getOption(13),R=[],P=E.getSelections(),x=0,Q=P;x<Q.length;x++){var V=Q[x];R.push(new h(V,L.insertSpace))}E.pushUndoStop(),E.executeCommands(this.id,R),E.pushUndoStop()},u}(J.b);Object(J.f)(w),Object(J.f)(v),Object(J.f)(p),Object(J.f)(d)},n18v:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return e.e(344).then(e.bind(null,"nNVF"))}})},nB0o:function(Mt,F,e){"use strict";e.d(F,"a",function(){return ks});var T=e("lrmC"),pe=e("3/fG"),J=e("EffR"),I=e("/cxE"),H=e("MI8n"),K=e("pmY6"),D=e("tYmi"),U=e("HdwC"),j=e("sswD"),h=e("Vxe3"),b=e("ZlPH"),O=e("MNsG"),m=e("pg8w"),C=e("D3Dy"),w=e("XSiN"),v=e("X+cX"),p=e("AKMP"),d=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),c=function(){function k(o,t){this.x=o,this.y=t}return k.prototype.toClientCoordinates=function(){return new u(this.x-J.e.scrollX,this.y-J.e.scrollY)},k}(),u=function(){function k(o,t){this.clientX=o,this.clientY=t}return k.prototype.toPageCoordinates=function(){return new c(this.clientX+J.e.scrollX,this.clientY+J.e.scrollY)},k}(),f=function(){function k(o,t,i,l){this.x=o,this.y=t,this.width=i,this.height=l}return k}();function E(k){var o=J.C(k);return new f(o.left,o.top,o.width,o.height)}var L=function(k){d(o,k);function o(t,i){var l=k.call(this,t)||this;return l.pos=new c(l.posx,l.posy),l.editorPos=E(i),l}return o}(w.b),R=function(){function k(o){this._editorViewDomNode=o}return k.prototype._create=function(o){return new L(o,this._editorViewDomNode)},k.prototype.onContextMenu=function(o,t){var i=this;return J.j(o,"contextmenu",function(l){t(i._create(l))})},k.prototype.onMouseUp=function(o,t){var i=this;return J.j(o,"mouseup",function(l){t(i._create(l))})},k.prototype.onMouseDown=function(o,t){var i=this;return J.j(o,"mousedown",function(l){t(i._create(l))})},k.prototype.onMouseLeave=function(o,t){var i=this;return J.k(o,function(l){t(i._create(l))})},k.prototype.onMouseMoveThrottled=function(o,t,i,l){var g=this,te=function(Ae,Se){return i(Ae,g._create(Se))};return J.m(o,"mousemove",t,te,l)},k}(),P=function(){function k(o){this._editorViewDomNode=o}return k.prototype._create=function(o){return new L(o,this._editorViewDomNode)},k.prototype.onPointerUp=function(o,t){var i=this;return J.j(o,"pointerup",function(l){t(i._create(l))})},k.prototype.onPointerDown=function(o,t){var i=this;return J.j(o,"pointerdown",function(l){t(i._create(l))})},k.prototype.onPointerLeave=function(o,t){var i=this;return J.l(o,function(l){t(i._create(l))})},k.prototype.onPointerMoveThrottled=function(o,t,i,l){var g=this,te=function(Ae,Se){return i(Ae,g._create(Se))};return J.m(o,"pointermove",t,te,l)},k}(),x=function(k){d(o,k);function o(t){var i=k.call(this)||this;return i._editorViewDomNode=t,i._globalMouseMoveMonitor=i._register(new p.a),i._keydownListener=null,i}return o.prototype.startMonitoring=function(t,i,l,g,te){var Ae=this;this._keydownListener=J.o(document,"keydown",function(qe){var ct=qe.toKeybinding();if(ct.isModifierKey())return;Ae._globalMouseMoveMonitor.stopMonitoring(!0)},!0);var Se=function(qe,ct){return l(qe,new L(ct,Ae._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(t,i,Se,g,function(){Ae._keydownListener.dispose(),te()})},o}(K.a),Q=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),V=function(k){Q(o,k);function o(){var t=k.call(this)||this;return t._shouldRender=!0,t}return o.prototype.shouldRender=function(){return this._shouldRender},o.prototype.forceShouldRender=function(){this._shouldRender=!0},o.prototype.setShouldRender=function(){this._shouldRender=!0},o.prototype.onDidRender=function(){this._shouldRender=!1},o.prototype.onConfigurationChanged=function(t){return!1},o.prototype.onContentSizeChanged=function(t){return!1},o.prototype.onCursorStateChanged=function(t){return!1},o.prototype.onDecorationsChanged=function(t){return!1},o.prototype.onFlushed=function(t){return!1},o.prototype.onFocusChanged=function(t){return!1},o.prototype.onLanguageConfigurationChanged=function(t){return!1},o.prototype.onLineMappingChanged=function(t){return!1},o.prototype.onLinesChanged=function(t){return!1},o.prototype.onLinesDeleted=function(t){return!1},o.prototype.onLinesInserted=function(t){return!1},o.prototype.onRevealRangeRequest=function(t){return!1},o.prototype.onScrollChanged=function(t){return!1},o.prototype.onThemeChanged=function(t){return!1},o.prototype.onTokensChanged=function(t){return!1},o.prototype.onTokensColorsChanged=function(t){return!1},o.prototype.onZonesChanged=function(t){return!1},o.prototype.handleEvents=function(t){for(var i=!1,l=0,g=t.length;l<g;l++){var te=t[l];switch(te.type){case 1:this.onConfigurationChanged(te)&&(i=!0);break;case 2:this.onContentSizeChanged(te)&&(i=!0);break;case 3:this.onCursorStateChanged(te)&&(i=!0);break;case 4:this.onDecorationsChanged(te)&&(i=!0);break;case 5:this.onFlushed(te)&&(i=!0);break;case 6:this.onFocusChanged(te)&&(i=!0);break;case 7:this.onLanguageConfigurationChanged(te)&&(i=!0);break;case 8:this.onLineMappingChanged(te)&&(i=!0);break;case 9:this.onLinesChanged(te)&&(i=!0);break;case 10:this.onLinesDeleted(te)&&(i=!0);break;case 11:this.onLinesInserted(te)&&(i=!0);break;case 12:this.onRevealRangeRequest(te)&&(i=!0);break;case 13:this.onScrollChanged(te)&&(i=!0);break;case 15:this.onTokensChanged(te)&&(i=!0);break;case 14:this.onThemeChanged(te)&&(i=!0);break;case 16:this.onTokensColorsChanged(te)&&(i=!0);break;case 17:this.onZonesChanged(te)&&(i=!0);break;default:console.info("View received unknown event: "),console.info(te)}}i&&(this._shouldRender=!0)},o}(K.a),W=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),B=function(k){W(o,k);function o(t){var i=k.call(this)||this;return i._context=t,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),k.prototype.dispose.call(this)},o}(V),ae=function(){function k(){}return k.write=function(o,t){o instanceof b.a,o.setAttribute("data-mprt",String(t))},k.read=function(o){var t=o.getAttribute("data-mprt");return t===null?0:parseInt(t,10)},k.collect=function(o,t){for(var i=[],l=0;o&&o!==document.body&&!(o===t);)o.nodeType===o.ELEMENT_NODE&&(i[l++]=this.read(o)),o=o.parentElement;for(var g=new Uint8Array(l),te=0;te<l;te++)g[te]=i[l-te-1];return g},k}(),we=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Me=function(){function k(o,t){this._viewLayout=o,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}return k.prototype.getScrolledTopFromAbsoluteTop=function(o){return o-this.scrollTop},k.prototype.getVerticalOffsetForLineNumber=function(o){return this._viewLayout.getVerticalOffsetForLineNumber(o)},k.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},k}(),Pe=function(k){we(o,k);function o(t,i,l){var g=k.call(this,t,i)||this;return g._viewLines=l,g}return o.prototype.linesVisibleRangesForRange=function(t,i){return this._viewLines.linesVisibleRangesForRange(t,i)},o.prototype.visibleRangeForPosition=function(t){return this._viewLines.visibleRangeForPosition(t)},o}(Me),Be=function(){function k(o,t,i){this.outsideRenderedLine=o,this.lineNumber=t,this.ranges=i}return k}(),Ke=function(){function k(o,t){this.left=Math.round(o),this.width=Math.round(t)}return k.prototype.toString=function(){return"["+this.left+","+this.width+"]"},k}(),Fe=function(){function k(o,t){this.outsideRenderedLine=o,this.left=Math.round(t)}return k}(),re=function(){function k(o,t){this.outsideRenderedLine=o,this.ranges=t}return k}(),ee=function(){function k(o,t){this.left=o,this.width=t}return k.prototype.toString=function(){return"["+this.left+","+this.width+"]"},k.compare=function(o,t){return o.left-t.left},k}(),ne=function(){function k(){}return k._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},k._detachRange=function(o,t){o.selectNodeContents(t)},k._readClientRects=function(o,t,i,l,g){var te=this._createRange();try{return te.setStart(o,t),te.setEnd(i,l),te.getClientRects()}catch(Ae){return null}finally{this._detachRange(te,g)}},k._mergeAdjacentRanges=function(o){if(o.length===1)return[new Ke(o[0].left,o[0].width)];o.sort(ee.compare);for(var t=[],i=0,l=o[0].left,g=o[0].width,te=1,Ae=o.length;te<Ae;te++){var Se=o[te],qe=Se.left,ct=Se.width;l+g+.9>=qe?g=Math.max(g,qe+ct-l):(t[i++]=new Ke(l,g),l=qe,g=ct)}return t[i++]=new Ke(l,g),t},k._createHorizontalRangesFromClientRects=function(o,t){if(!o||o.length===0)return null;for(var i=[],l=0,g=o.length;l<g;l++){var te=o[l];i[l]=new ee(Math.max(0,te.left-t),te.width)}return this._mergeAdjacentRanges(i)},k.readHorizontalRanges=function(o,t,i,l,g,te,Ae){var Se=0,qe=o.children.length-1;if(Se>qe)return null;t=Math.min(qe,Math.max(Se,t)),l=Math.min(qe,Math.max(Se,l)),t!==l&&(l>0&&g===0&&(l--,g=1073741824));var ct=o.children[t].firstChild,_t=o.children[l].firstChild;if((!ct||!_t)&&(!ct&&i===0&&t>0&&(ct=o.children[t-1].firstChild,i=1073741824),!_t&&g===0&&l>0&&(_t=o.children[l-1].firstChild,g=1073741824)),!ct||!_t)return null;i=Math.min(ct.textContent.length,Math.max(0,i)),g=Math.min(_t.textContent.length,Math.max(0,g));var tt=this._readClientRects(ct,i,_t,g,Ae);return this._createHorizontalRangesFromClientRects(tt,te)},k}(),q=e("dBaI"),le=e("baJR"),Z=e("t9D7"),ve=e("/UlZ"),Ne=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Xe=function(){return O.f?!0:!(O.d||C.h||C.k)}(),de=C.f,ge=function(){function k(o,t){this._domNode=o,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(k.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),k}(),Ee=function(){function k(o,t){this.themeType=t;var i=o.options,l=i.get(34);this.renderWhitespace=i.get(74),this.renderControlCharacters=i.get(69),this.spaceWidth=l.spaceWidth,this.middotWidth=l.middotWidth,this.useMonospaceOptimizations=l.isMonospace&&!i.get(23),this.canUseHalfwidthRightwardsArrow=l.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(49),this.stopRenderingLineAfter=i.get(88),this.fontLigatures=i.get(35)}return k.prototype.equals=function(o){return this.themeType===o.themeType&&this.renderWhitespace===o.renderWhitespace&&this.renderControlCharacters===o.renderControlCharacters&&this.spaceWidth===o.spaceWidth&&this.middotWidth===o.middotWidth&&this.useMonospaceOptimizations===o.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===o.canUseHalfwidthRightwardsArrow&&this.lineHeight===o.lineHeight&&this.stopRenderingLineAfter===o.stopRenderingLineAfter&&this.fontLigatures===o.fontLigatures},k}(),Te=function(){function k(o){this._options=o,this._isMaybeInvalid=!0,this._renderedViewLine=null}return k.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},k.prototype.setDomNode=function(o){if(this._renderedViewLine)this._renderedViewLine.domNode=Object(b.b)(o);else throw new Error("I have no rendered view line to set the dom node to...")},k.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},k.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},k.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},k.prototype.onOptionsChanged=function(o){this._isMaybeInvalid=!0,this._options=o},k.prototype.onSelectionChanged=function(){return de||this._options.themeType===Z.b||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1},k.prototype.renderLine=function(o,t,i,l){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var g=i.getViewLineRenderingData(o),te=this._options,Ae=q.a.filter(g.inlineDecorations,o,g.minColumn,g.maxColumn),Se=null;if(de||te.themeType===Z.b||this._options.renderWhitespace==="selection")for(var qe=i.selections,ct=0,_t=qe;ct<_t.length;ct++){var tt=_t[ct];if(tt.endLineNumber<o||tt.startLineNumber>o)continue;var kt=tt.startLineNumber===o?tt.startColumn:g.minColumn,Bt=tt.endLineNumber===o?tt.endColumn:g.maxColumn;kt<Bt&&(this._options.renderWhitespace!=="selection"?Ae.push(new q.a(kt,Bt,"inline-selected-text",0)):(Se||(Se=[]),Se.push(new le.b(kt-1,Bt-1))))}var Ht=new le.c(te.useMonospaceOptimizations,te.canUseHalfwidthRightwardsArrow,g.content,g.continuesWithWrappedLine,g.isBasicASCII,g.containsRTL,g.minColumn-1,g.tokens,Ae,g.tabSize,g.startVisibleColumn,te.spaceWidth,te.middotWidth,te.stopRenderingLineAfter,te.renderWhitespace,te.renderControlCharacters,te.fontLigatures!==ve.d.OFF,Se);if(this._renderedViewLine&&this._renderedViewLine.input.equals(Ht))return!1;l.appendASCIIString('<div style="top:'),l.appendASCIIString(String(t)),l.appendASCIIString("px;height:"),l.appendASCIIString(String(this._options.lineHeight)),l.appendASCIIString('px;" class="'),l.appendASCIIString(k.CLASS_NAME),l.appendASCIIString('">');var qt=Object(le.d)(Ht,l);l.appendASCIIString("</div>");var $t=null;return Xe&&g.isBasicASCII&&te.useMonospaceOptimizations&&qt.containsForeignElements===0&&(g.content.length<300&&Ht.lineTokens.getCount()<100&&($t=new Ce(this._renderedViewLine?this._renderedViewLine.domNode:null,Ht,qt.characterMapping))),$t||($t=S(this._renderedViewLine?this._renderedViewLine.domNode:null,Ht,qt.characterMapping,qt.containsRTL,qt.containsForeignElements)),this._renderedViewLine=$t,!0},k.prototype.layoutLine=function(o,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},k.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},k.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},k.prototype.getVisibleRangesForRange=function(o,t,i){if(!this._renderedViewLine)return null;o=o|0,t=t|0,o=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,o)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var l=this._renderedViewLine.input.stopRenderingLineAfter|0,g=!1;l!==-1&&o>l+1&&t>l+1&&(g=!0),l!==-1&&o>l+1&&(o=l+1),l!==-1&&t>l+1&&(t=l+1);var te=this._renderedViewLine.getVisibleRangesForRange(o,t,i);return te&&te.length>0?new re(g,te):null},k.prototype.getColumnOfNodeOffset=function(o,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(o,t,i):1},k.CLASS_NAME="view-line",k}(),Ce=function(){function k(o,t,i){this.domNode=o,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}return k.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},k.prototype.getWidthIsFast=function(){return!0},k.prototype.getVisibleRangesForRange=function(o,t,i){var l=this._getCharPosition(o),g=this._getCharPosition(t);return[new Ke(l,g-l)]},k.prototype._getCharPosition=function(o){var t=this._characterMapping.getAbsoluteOffsets();return t.length===0?0:Math.round(this._charWidth*t[o-1])},k.prototype.getColumnOfNodeOffset=function(o,t,i){for(var l=t.textContent.length,g=-1;t;)t=t.previousSibling,g++;var te=this._characterMapping.partDataToCharOffset(g,l,i);return te+1},k}(),fe=function(){function k(o,t,i,l,g){if(this.domNode=o,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=g,this._cachedWidth=-1,this._pixelOffsetCache=null,!l||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var te=0,Ae=this._characterMapping.length;te<=Ae;te++)this._pixelOffsetCache[te]=-1}}return k.prototype._getReadingTarget=function(o){return o.domNode.firstChild},k.prototype.getWidth=function(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},k.prototype.getWidthIsFast=function(){return!(this._cachedWidth===-1)},k.prototype.getVisibleRangesForRange=function(o,t,i){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){var l=this._readPixelOffset(this.domNode,o,i);if(l===-1)return null;var g=this._readPixelOffset(this.domNode,t,i);return g===-1?null:[new Ke(l,g-l)]}return this._readVisibleRangesForRange(this.domNode,o,t,i)},k.prototype._readVisibleRangesForRange=function(o,t,i,l){if(t===i){var g=this._readPixelOffset(o,t,l);return g===-1?null:[new Ke(g,0)]}else return this._readRawVisibleRangesForRange(o,t,i,l)},k.prototype._readPixelOffset=function(o,t,i){if(this._characterMapping.length===0){if(this._containsForeignElements===0)return 0;if(this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();var l=this._getReadingTarget(o);return l.firstChild?l.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){var g=this._pixelOffsetCache[t];if(g!==-1)return g;var te=this._actualReadPixelOffset(o,t,i);return this._pixelOffsetCache[t]=te,te}return this._actualReadPixelOffset(o,t,i)},k.prototype._actualReadPixelOffset=function(o,t,i){if(this._characterMapping.length===0){var l=ne.readHorizontalRanges(this._getReadingTarget(o),0,0,0,0,i.clientRectDeltaLeft,i.endNode);return!l||l.length===0?-1:l[0].left}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var g=this._characterMapping.charOffsetToPartData(t-1),te=le.a.getPartIndex(g),Ae=le.a.getCharIndex(g),Se=ne.readHorizontalRanges(this._getReadingTarget(o),te,Ae,te,Ae,i.clientRectDeltaLeft,i.endNode);return!Se||Se.length===0?-1:Se[0].left},k.prototype._readRawVisibleRangesForRange=function(o,t,i,l){if(t===1&&i===this._characterMapping.length)return[new Ke(0,this.getWidth())];var g=this._characterMapping.charOffsetToPartData(t-1),te=le.a.getPartIndex(g),Ae=le.a.getCharIndex(g),Se=this._characterMapping.charOffsetToPartData(i-1),qe=le.a.getPartIndex(Se),ct=le.a.getCharIndex(Se);return ne.readHorizontalRanges(this._getReadingTarget(o),te,Ae,qe,ct,l.clientRectDeltaLeft,l.endNode)},k.prototype.getColumnOfNodeOffset=function(o,t,i){for(var l=t.textContent.length,g=-1;t;)t=t.previousSibling,g++;var te=this._characterMapping.partDataToCharOffset(g,l,i);return te+1},k}(),$=function(k){Ne(o,k);function o(){return k!==null&&k.apply(this,arguments)||this}return o.prototype._readVisibleRangesForRange=function(t,i,l,g){var te=k.prototype._readVisibleRangesForRange.call(this,t,i,l,g);if(!te||te.length===0||i===l||i===1&&l===this._characterMapping.length)return te;if(!this.input.containsRTL){var Ae=this._readPixelOffset(t,l,g);if(Ae!==-1){var Se=te[te.length-1];Se.left<Ae&&(Se.width=Ae-Se.left)}}return te},o}(fe),S=function(){return C.m?z:ce}();function z(k,o,t,i,l){return new $(k,o,t,i,l)}function ce(k,o,t,i,l){return new fe(k,o,t,i,l)}var se=e("cGHE"),ye=e("aokT"),Re=e("Ll0s"),Le=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ue=function(){function k(o,t){this.lastViewCursorsRenderData=o,this.lastTextareaPosition=t}return k}(),Je=function(){function k(o,t,i,l,g,te){i===void 0&&(i=0),l===void 0&&(l=null),g===void 0&&(g=null),te===void 0&&(te=null),this.element=o,this.type=t,this.mouseColumn=i,this.position=l,!g&&l&&(g=new ye.a(l.lineNumber,l.column,l.lineNumber,l.column)),this.range=g,this.detail=te}return k._typeToString=function(o){return o===1?"TEXTAREA":o===2?"GUTTER_GLYPH_MARGIN":o===3?"GUTTER_LINE_NUMBERS":o===4?"GUTTER_LINE_DECORATIONS":o===5?"GUTTER_VIEW_ZONE":o===6?"CONTENT_TEXT":o===7?"CONTENT_EMPTY":o===8?"CONTENT_VIEW_ZONE":o===9?"CONTENT_WIDGET":o===10?"OVERVIEW_RULER":o===11?"SCROLLBAR":o===12?"OVERLAY_WIDGET":"UNKNOWN"},k.toString=function(o){return this._typeToString(o.type)+": "+o.position+" - "+o.range+" - "+o.detail},k.prototype.toString=function(){return k.toString(this)},k}(),nt=function(){function k(){}return k.isTextArea=function(o){return o.length===2&&o[0]===3&&o[1]===6},k.isChildOfViewLines=function(o){return o.length>=4&&o[0]===3&&o[3]===7},k.isStrictChildOfViewLines=function(o){return o.length>4&&o[0]===3&&o[3]===7},k.isChildOfScrollableElement=function(o){return o.length>=2&&o[0]===3&&o[1]===5},k.isChildOfMinimap=function(o){return o.length>=2&&o[0]===3&&o[1]===8},k.isChildOfContentWidgets=function(o){return o.length>=4&&o[0]===3&&o[3]===1},k.isChildOfOverflowingContentWidgets=function(o){return o.length>=1&&o[0]===2},k.isChildOfOverlayWidgets=function(o){return o.length>=2&&o[0]===3&&o[1]===4},k}(),vt=function(){function k(o,t,i){this.model=o.model;var l=o.configuration.options;this.layoutInfo=l.get(107),this.viewDomNode=t.viewDomNode,this.lineHeight=l.get(49),this.typicalHalfwidthCharacterWidth=l.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=o,this._viewHelper=t}return k.prototype.getZoneAtCoord=function(o){return k.getZoneAtCoord(this._context,o)},k.getZoneAtCoord=function(o,t){var i=o.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){var l=i.verticalOffset+i.height/2,g=o.model.getLineCount(),te=null,Ae=void 0,Se=null;return i.afterLineNumber!==g&&(Se=new se.a(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(te=new se.a(i.afterLineNumber,o.model.getLineMaxColumn(i.afterLineNumber))),Se===null?Ae=te:te===null?Ae=Se:t<l?Ae=te:Ae=Se,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:te,positionAfter:Se,position:Ae}}return null},k.prototype.getFullLineRangeAtCoord=function(o){if(this._context.viewLayout.isAfterLines(o)){var t=this._context.model.getLineCount(),i=this._context.model.getLineMaxColumn(t);return{range:new ye.a(t,i,t,i),isAfterLines:!0}}var l=this._context.viewLayout.getLineNumberAtVerticalOffset(o),g=this._context.model.getLineMaxColumn(l);return{range:new ye.a(l,1,l,g),isAfterLines:!1}},k.prototype.getLineNumberAtVerticalOffset=function(o){return this._context.viewLayout.getLineNumberAtVerticalOffset(o)},k.prototype.isAfterLines=function(o){return this._context.viewLayout.isAfterLines(o)},k.prototype.getVerticalOffsetForLineNumber=function(o){return this._context.viewLayout.getVerticalOffsetForLineNumber(o)},k.prototype.findAttribute=function(o,t){return k._findAttribute(o,t,this._viewHelper.viewDomNode)},k._findAttribute=function(o,t,i){for(;o&&o!==document.body;){if(o.hasAttribute&&o.hasAttribute(t))return o.getAttribute(t);if(o===i)return null;o=o.parentNode}return null},k.prototype.getLineWidth=function(o){return this._viewHelper.getLineWidth(o)},k.prototype.visibleRangeForPosition=function(o,t){return this._viewHelper.visibleRangeForPosition(o,t)},k.prototype.getPositionFromDOMInfo=function(o,t){return this._viewHelper.getPositionFromDOMInfo(o,t)},k.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},k.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},k}(),Rt=function(){function k(o,t,i){this.editorPos=t,this.pos=i,this.mouseVerticalOffset=Math.max(0,o.getCurrentScrollTop()+i.y-t.y),this.mouseContentHorizontalOffset=o.getCurrentScrollLeft()+i.x-t.x-o.layoutInfo.contentLeft,this.isInMarginArea=i.x-t.x<o.layoutInfo.contentLeft&&i.x-t.x>=o.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,lo._getMouseColumn(this.mouseContentHorizontalOffset,o.typicalHalfwidthCharacterWidth))}return k}(),Ot=function(k){Le(o,k);function o(t,i,l,g){var te=k.call(this,t,i,l)||this;return te._ctx=t,g?(te.target=g,te.targetPath=ae.collect(g,t.viewDomNode)):(te.target=null,te.targetPath=new Uint8Array(0)),te}return o.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+`
target: `+(this.target?this.target.outerHTML:null)},o.prototype.fulfill=function(t,i,l,g){i===void 0&&(i=null),l===void 0&&(l=null),g===void 0&&(g=null);var te=this.mouseColumn;return i&&i.column<this._ctx.model.getLineMaxColumn(i.lineNumber)&&(te=Re.a.visibleColumnFromColumn(this._ctx.model.getLineContent(i.lineNumber),i.column,this._ctx.model.getOptions().tabSize)+1),new Je(this.target,t,te,i,l,g)},o.prototype.withTarget=function(t){return new o(this._ctx,this.editorPos,this.pos,t)},o}(Rt),Kt={isAfterLines:!0};function ao(k){return{isAfterLines:!1,horizontalDistanceToText:k}}var lo=function(){function k(o,t){this._context=o,this._viewHelper=t}return k.prototype.mouseTargetIsWidget=function(o){var t=o.target,i=ae.collect(t,this._viewHelper.viewDomNode);return nt.isChildOfContentWidgets(i)||nt.isChildOfOverflowingContentWidgets(i)?!0:!!nt.isChildOfOverlayWidgets(i)},k.prototype.createMouseTarget=function(o,t,i,l){var g=new vt(this._context,this._viewHelper,o),te=new Ot(g,t,i,l);try{var Ae=k._createMouseTarget(g,te,!1);return Ae}catch(Se){return te.fulfill(0)}},k._createMouseTarget=function(o,t,i){if(t.target===null){if(i)return t.fulfill(0);var l=k._doHitTest(o,t);return l.position?k.createMouseTargetFromHitTestPosition(o,t,l.position.lineNumber,l.position.column):this._createMouseTarget(o,t.withTarget(l.hitTarget),!0)}var g=t,te=null;return te=te||k._hitTestContentWidget(o,g),te=te||k._hitTestOverlayWidget(o,g),te=te||k._hitTestMinimap(o,g),te=te||k._hitTestScrollbarSlider(o,g),te=te||k._hitTestViewZone(o,g),te=te||k._hitTestMargin(o,g),te=te||k._hitTestViewCursor(o,g),te=te||k._hitTestTextArea(o,g),te=te||k._hitTestViewLines(o,g,i),te=te||k._hitTestScrollbar(o,g),te||t.fulfill(0)},k._hitTestContentWidget=function(o,t){if(nt.isChildOfContentWidgets(t.targetPath)||nt.isChildOfOverflowingContentWidgets(t.targetPath)){var i=o.findAttribute(t.target,"widgetId");return i?t.fulfill(9,null,null,i):t.fulfill(0)}return null},k._hitTestOverlayWidget=function(o,t){if(nt.isChildOfOverlayWidgets(t.targetPath)){var i=o.findAttribute(t.target,"widgetId");return i?t.fulfill(12,null,null,i):t.fulfill(0)}return null},k._hitTestViewCursor=function(o,t){if(t.target)for(var i=o.lastRenderData.lastViewCursorsRenderData,l=0,g=i;l<g.length;l++){var te=g[l];if(t.target===te.domNode)return t.fulfill(6,te.position)}if(t.isInContentArea)for(var i=o.lastRenderData.lastViewCursorsRenderData,Ae=t.mouseContentHorizontalOffset,Se=t.mouseVerticalOffset,qe=0,ct=i;qe<ct.length;qe++){var te=ct[qe];if(Ae<te.contentLeft)continue;if(Ae>te.contentLeft+te.width)continue;var _t=o.getVerticalOffsetForLineNumber(te.position.lineNumber);if(_t<=Se&&Se<=_t+te.height)return t.fulfill(6,te.position)}return null},k._hitTestViewZone=function(o,t){var i=o.getZoneAtCoord(t.mouseVerticalOffset);if(i){var l=t.isInContentArea?8:5;return t.fulfill(l,i.position,null,i)}return null},k._hitTestTextArea=function(o,t){return nt.isTextArea(t.targetPath)?o.lastRenderData.lastTextareaPosition?t.fulfill(6,o.lastRenderData.lastTextareaPosition):t.fulfill(1,o.lastRenderData.lastTextareaPosition):null},k._hitTestMargin=function(o,t){if(t.isInMarginArea){var i=o.getFullLineRangeAtCoord(t.mouseVerticalOffset),l=i.range.getStartPosition(),g=Math.abs(t.pos.x-t.editorPos.x),te={isAfterLines:i.isAfterLines,glyphMarginLeft:o.layoutInfo.glyphMarginLeft,glyphMarginWidth:o.layoutInfo.glyphMarginWidth,lineNumbersWidth:o.layoutInfo.lineNumbersWidth,offsetX:g};return g-=o.layoutInfo.glyphMarginLeft,g<=o.layoutInfo.glyphMarginWidth?t.fulfill(2,l,i.range,te):(g-=o.layoutInfo.glyphMarginWidth,g<=o.layoutInfo.lineNumbersWidth?t.fulfill(3,l,i.range,te):(g-=o.layoutInfo.lineNumbersWidth,t.fulfill(4,l,i.range,te)))}return null},k._hitTestViewLines=function(o,t,i){if(!nt.isChildOfViewLines(t.targetPath))return null;if(o.isAfterLines(t.mouseVerticalOffset)){var l=o.model.getLineCount(),g=o.model.getLineMaxColumn(l);return t.fulfill(7,new se.a(l,g),void 0,Kt)}if(i){if(nt.isStrictChildOfViewLines(t.targetPath)){var te=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(o.model.getLineLength(te)===0){var Ae=o.getLineWidth(te),Se=ao(t.mouseContentHorizontalOffset-Ae);return t.fulfill(7,new se.a(te,1),void 0,Se)}var qe=o.getLineWidth(te);if(t.mouseContentHorizontalOffset>=qe){var Se=ao(t.mouseContentHorizontalOffset-qe),ct=new se.a(te,o.model.getLineMaxColumn(te));return t.fulfill(7,ct,void 0,Se)}}return t.fulfill(0)}var _t=k._doHitTest(o,t);return _t.position?k.createMouseTargetFromHitTestPosition(o,t,_t.position.lineNumber,_t.position.column):this._createMouseTarget(o,t.withTarget(_t.hitTarget),!0)},k._hitTestMinimap=function(o,t){if(nt.isChildOfMinimap(t.targetPath)){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),l=o.model.getLineMaxColumn(i);return t.fulfill(11,new se.a(i,l))}return null},k._hitTestScrollbarSlider=function(o,t){if(nt.isChildOfScrollableElement(t.targetPath)&&(t.target&&t.target.nodeType===1)){var i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var l=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),g=o.model.getLineMaxColumn(l);return t.fulfill(11,new se.a(l,g))}}return null},k._hitTestScrollbar=function(o,t){if(nt.isChildOfScrollableElement(t.targetPath)){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),l=o.model.getLineMaxColumn(i);return t.fulfill(11,new se.a(i,l))}return null},k.prototype.getMouseColumn=function(o,t){var i=this._context.configuration.options,l=i.get(107),g=this._context.viewLayout.getCurrentScrollLeft()+t.x-o.x-l.contentLeft;return k._getMouseColumn(g,i.get(34).typicalHalfwidthCharacterWidth)},k._getMouseColumn=function(o,t){if(o<0)return 1;var i=Math.round(o/t);return i+1},k.createMouseTargetFromHitTestPosition=function(o,t,i,l){var g=new se.a(i,l),te=o.getLineWidth(i);if(t.mouseContentHorizontalOffset>te){if(C.e&&g.column===1){var Ae=ao(t.mouseContentHorizontalOffset-te);return t.fulfill(7,new se.a(i,o.model.getLineMaxColumn(i)),void 0,Ae)}var Se=ao(t.mouseContentHorizontalOffset-te);return t.fulfill(7,g,void 0,Se)}var qe=o.visibleRangeForPosition(i,l);if(!qe)return t.fulfill(0,g);var ct=qe.left;if(t.mouseContentHorizontalOffset===ct)return t.fulfill(6,g);var _t=[];if(_t.push({offset:qe.left,column:l}),l>1){var tt=o.visibleRangeForPosition(i,l-1);tt&&_t.push({offset:tt.left,column:l-1})}var kt=o.model.getLineMaxColumn(i);if(l<kt){var Bt=o.visibleRangeForPosition(i,l+1);Bt&&_t.push({offset:Bt.left,column:l+1})}_t.sort(function(yo,po){return yo.offset-po.offset});for(var Ht=1;Ht<_t.length;Ht++){var qt=_t[Ht-1],$t=_t[Ht];if(qt.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=$t.offset){var io=new ye.a(i,qt.column,i,$t.column);return t.fulfill(6,g,io)}}return t.fulfill(6,g)},k._doHitTestWithCaretRangeFromPoint=function(o,t){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),l=o.getVerticalOffsetForLineNumber(i),g=l+Math.floor(o.lineHeight/2),te=t.pos.y+(g-t.mouseVerticalOffset);te<=t.editorPos.y&&(te=t.editorPos.y+1),te>=t.editorPos.y+o.layoutInfo.height&&(te=t.editorPos.y+o.layoutInfo.height-1);var Ae=new c(t.pos.x,te),Se=this._actualDoHitTestWithCaretRangeFromPoint(o,Ae.toClientCoordinates());return Se.position?Se:this._actualDoHitTestWithCaretRangeFromPoint(o,t.pos.toClientCoordinates())},k._actualDoHitTestWithCaretRangeFromPoint=function(o,t){var i=J.E(o.viewDomNode),l;if(i?typeof i.caretRangeFromPoint=="undefined"?l=so(i,t.clientX,t.clientY):l=i.caretRangeFromPoint(t.clientX,t.clientY):l=document.caretRangeFromPoint(t.clientX,t.clientY),!l||!l.startContainer)return{position:null,hitTarget:null};var g=l.startContainer,te=null;if(g.nodeType===g.TEXT_NODE){var Ae=g.parentNode,Se=Ae?Ae.parentNode:null,qe=Se?Se.parentNode:null,ct=qe&&qe.nodeType===qe.ELEMENT_NODE?qe.className:null;if(ct===Te.CLASS_NAME){var _t=o.getPositionFromDOMInfo(Ae,l.startOffset);return{position:_t,hitTarget:null}}else te=g.parentNode}else if(g.nodeType===g.ELEMENT_NODE){var Ae=g.parentNode,Se=Ae?Ae.parentNode:null,tt=Se&&Se.nodeType===Se.ELEMENT_NODE?Se.className:null;if(tt===Te.CLASS_NAME){var _t=o.getPositionFromDOMInfo(g,g.textContent.length);return{position:_t,hitTarget:null}}else te=g}return{position:null,hitTarget:te}},k._doHitTestWithCaretPositionFromPoint=function(o,t){var i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var l=i.offsetNode.parentNode,g=l?l.parentNode:null,te=g?g.parentNode:null,Ae=te&&te.nodeType===te.ELEMENT_NODE?te.className:null;if(Ae===Te.CLASS_NAME){var Se=o.getPositionFromDOMInfo(i.offsetNode.parentNode,i.offset);return{position:Se,hitTarget:null}}else return{position:null,hitTarget:i.offsetNode.parentNode}}return{position:null,hitTarget:i.offsetNode}},k._doHitTestWithMoveToPoint=function(o,t){var i=null,l=null,g=document.body.createTextRange();try{g.moveToPoint(t.clientX,t.clientY)}catch(_t){return{position:null,hitTarget:null}}g.collapse(!0);var te=g?g.parentElement():null,Ae=te?te.parentNode:null,Se=Ae?Ae.parentNode:null,qe=Se&&Se.nodeType===Se.ELEMENT_NODE?Se.className:"";if(qe===Te.CLASS_NAME){var ct=g.duplicate();ct.moveToElementText(te),ct.setEndPoint("EndToStart",g),i=o.getPositionFromDOMInfo(te,ct.text.length),ct.moveToElementText(o.viewDomNode)}else l=te;return g.moveToElementText(o.viewDomNode),{position:i,hitTarget:l}},k._doHitTest=function(o,t){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(o,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(o,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(o,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},k}();function so(k,o,t){var i=document.createRange(),l=k.elementFromPoint(o,t);if(l!==null){for(;l&&l.firstChild&&l.firstChild.nodeType!==l.firstChild.TEXT_NODE;)l=l.lastChild;var g=l.getBoundingClientRect(),te=window.getComputedStyle(l,null).getPropertyValue("font"),Ae=l.innerText,Se=g.left,qe=0,ct=void 0;if(o>g.left+g.width)qe=Ae.length;else for(var _t=jt.getInstance(),tt=0;tt<Ae.length+1;tt++){if(ct=_t.getCharWidth(Ae.charAt(tt),te)/2,Se+=ct,o<Se){qe=tt;break}Se+=ct}i.setStart(l.firstChild,qe),i.setEnd(l.firstChild,qe)}return i}var jt=function(){function k(){this._cache={},this._canvas=document.createElement("canvas")}return k.getInstance=function(){return k._INSTANCE||(k._INSTANCE=new k),k._INSTANCE},k.prototype.getCharWidth=function(o,t){var i=o+t;if(this._cache[i])return this._cache[i];var l=this._canvas.getContext("2d");l.font=t;var g=l.measureText(o),te=g.width;return this._cache[i]=te,te},k._INSTANCE=null,k}(),pt=e("Yr1X"),gt=e("gCVg"),Tt=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function it(k){return function(o,t){var i=!1;return k&&(i=k.mouseTargetIsWidget(t)),i||t.preventDefault(),t}}var et=function(k){Tt(o,k);function o(t,i,l){var g=k.call(this)||this;g._isFocused=!1,g._context=t,g.viewController=i,g.viewHelper=l,g.mouseTargetFactory=new lo(g._context,l),g._mouseDownOperation=g._register(new ut(g._context,g.viewController,g.viewHelper,function(Se,qe){return g._createMouseTarget(Se,qe)},function(Se){return g._getMouseColumn(Se)})),g._asyncFocus=g._register(new v.d(function(){return g.viewHelper.focusTextArea()},0)),g.lastMouseLeaveTime=-1;var te=new R(g.viewHelper.viewDomNode);g._register(te.onContextMenu(g.viewHelper.viewDomNode,function(Se){return g._onContextMenu(Se,!0)})),g._register(te.onMouseMoveThrottled(g.viewHelper.viewDomNode,function(Se){return g._onMouseMove(Se)},it(g.mouseTargetFactory),o.MOUSE_MOVE_MINIMUM_TIME)),g._register(te.onMouseUp(g.viewHelper.viewDomNode,function(Se){return g._onMouseUp(Se)})),g._register(te.onMouseLeave(g.viewHelper.viewDomNode,function(Se){return g._onMouseLeave(Se)})),g._register(te.onMouseDown(g.viewHelper.viewDomNode,function(Se){return g._onMouseDown(Se)}));var Ae=function(Se){if(g.viewController.emitMouseWheel(Se),!g._context.configuration.options.get(57))return;var qe=new w.c(Se);if(qe.browserEvent.ctrlKey||qe.browserEvent.metaKey){var ct=pt.a.getZoomLevel(),_t=qe.deltaY>0?1:-1;pt.a.setZoomLevel(ct+_t),qe.preventDefault(),qe.stopPropagation()}};return g._register(J.j(g.viewHelper.viewDomNode,C.f?"mousewheel":"wheel",Ae,{capture:!0,passive:!1})),g._context.addEventHandler(g),g}return o.prototype.dispose=function(){this._context.removeEventHandler(this),k.prototype.dispose.call(this)},o.prototype.onCursorStateChanged=function(t){return this._mouseDownOperation.onCursorStateChanged(t),!1},o.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!1},o.prototype.onScrollChanged=function(t){return this._mouseDownOperation.onScrollChanged(),!1},o.prototype.getTargetAtClientPoint=function(t,i){var l=new u(t,i),g=l.toPageCoordinates(),te=E(this.viewHelper.viewDomNode);return g.y<te.y||g.y>te.y+te.height||g.x<te.x||g.x>te.x+te.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),te,g,null)},o.prototype._createMouseTarget=function(t,i){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),t.editorPos,t.pos,i?t.target:null)},o.prototype._getMouseColumn=function(t){return this.mouseTargetFactory.getMouseColumn(t.editorPos,t.pos)},o.prototype._onContextMenu=function(t,i){this.viewController.emitContextMenu({event:t,target:this._createMouseTarget(t,i)})},o.prototype._onMouseMove=function(t){if(this._mouseDownOperation.isActive())return;var i=t.timestamp;if(i<this.lastMouseLeaveTime)return;this.viewController.emitMouseMove({event:t,target:this._createMouseTarget(t,!0)})},o.prototype._onMouseLeave=function(t){this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:t,target:null})},o.prototype._onMouseUp=function(t){this.viewController.emitMouseUp({event:t,target:this._createMouseTarget(t,!0)})},o.prototype._onMouseDown=function(t){var i=this,l=this._createMouseTarget(t,!0),g=l.type===6||l.type===7,te=l.type===2||l.type===3||l.type===4,Ae=l.type===3,Se=this._context.configuration.options.get(83),qe=l.type===8||l.type===5,ct=l.type===9,_t=t.leftButton||t.middleButton;O.e&&t.leftButton&&t.ctrlKey&&(_t=!1);var tt=function(){C.i&&!i._isFocused?i._asyncFocus.schedule():(t.preventDefault(),i.viewHelper.focusTextArea())};if(_t&&(g||Ae&&Se))tt(),this._mouseDownOperation.start(l.type,t);else if(te)t.preventDefault();else if(qe){var kt=l.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(kt.viewZoneId)&&(tt(),this._mouseDownOperation.start(l.type,t),t.preventDefault())}else ct&&this.viewHelper.shouldSuppressMouseDownOnWidget(l.detail)&&(tt(),t.preventDefault());this.viewController.emitMouseDown({event:t,target:l})},o.MOUSE_MOVE_MINIMUM_TIME=100,o}(V),ut=function(k){Tt(o,k);function o(t,i,l,g,te){var Ae=k.call(this)||this;return Ae._context=t,Ae._viewController=i,Ae._viewHelper=l,Ae._createMouseTarget=g,Ae._getMouseColumn=te,Ae._mouseMoveMonitor=Ae._register(new x(Ae._viewHelper.viewDomNode)),Ae._onScrollTimeout=Ae._register(new v.e),Ae._mouseState=new Ct,Ae._currentSelection=new gt.a(1,1,1,1),Ae._isActive=!1,Ae._lastMouseEvent=null,Ae}return o.prototype.dispose=function(){k.prototype.dispose.call(this)},o.prototype.isActive=function(){return this._isActive},o.prototype._onMouseDownThenMove=function(t){this._lastMouseEvent=t,this._mouseState.setModifiers(t);var i=this._findMousePosition(t,!0);if(!i)return;this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:t,target:i}):this._dispatchMouse(i,!0)},o.prototype.start=function(t,i){var l=this;this._lastMouseEvent=i,this._mouseState.setStartedOnLineNumbers(t===3),this._mouseState.setStartButtons(i),this._mouseState.setModifiers(i);var g=this._findMousePosition(i,!0);if(!g||!g.position)return;this._mouseState.trySetCount(i.detail,g.position),i.detail=this._mouseState.count;var te=this._context.configuration.options;if(!te.get(68)&&te.get(24)&&!this._mouseState.altKey&&i.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&g.type===6&&g.position&&this._currentSelection.containsPosition(g.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,it(null),function(Ae){return l._onMouseDownThenMove(Ae)},function(){var Ae=l._findMousePosition(l._lastMouseEvent,!0);l._viewController.emitMouseDrop({event:l._lastMouseEvent,target:Ae?l._createMouseTarget(l._lastMouseEvent,!0):null}),l._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(g,i.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,it(null),function(Ae){return l._onMouseDownThenMove(Ae)},function(){return l._stop()}))},o.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},o.prototype.onScrollChanged=function(){var t=this;if(!this._isActive)return;this._onScrollTimeout.setIfNotSet(function(){if(!t._lastMouseEvent)return;var i=t._findMousePosition(t._lastMouseEvent,!1);if(!i)return;if(t._mouseState.isDragAndDrop)return;t._dispatchMouse(i,!0)},10)},o.prototype.onCursorStateChanged=function(t){this._currentSelection=t.selections[0]},o.prototype._getPositionOutsideEditor=function(t){var i=t.editorPos,l=this._context.model,g=this._context.viewLayout,te=this._getMouseColumn(t);if(t.posy<i.y){var Ae=Math.max(g.getCurrentScrollTop()-(i.y-t.posy),0),Se=vt.getZoneAtCoord(this._context,Ae);if(Se){var qe=this._helpPositionJumpOverViewZone(Se);if(qe)return new Je(null,13,te,qe)}var ct=g.getLineNumberAtVerticalOffset(Ae);return new Je(null,13,te,new se.a(ct,1))}if(t.posy>i.y+i.height){var Ae=g.getCurrentScrollTop()+(t.posy-i.y),Se=vt.getZoneAtCoord(this._context,Ae);if(Se){var qe=this._helpPositionJumpOverViewZone(Se);if(qe)return new Je(null,13,te,qe)}var _t=g.getLineNumberAtVerticalOffset(Ae);return new Je(null,13,te,new se.a(_t,l.getLineMaxColumn(_t)))}var tt=g.getLineNumberAtVerticalOffset(g.getCurrentScrollTop()+(t.posy-i.y));return t.posx<i.x?new Je(null,13,te,new se.a(tt,1)):t.posx>i.x+i.width?new Je(null,13,te,new se.a(tt,l.getLineMaxColumn(tt))):null},o.prototype._findMousePosition=function(t,i){var l=this._getPositionOutsideEditor(t);if(l)return l;var g=this._createMouseTarget(t,i),te=g.position;if(!te)return null;if(g.type===8||g.type===5){var Ae=this._helpPositionJumpOverViewZone(g.detail);if(Ae)return new Je(g.element,g.type,g.mouseColumn,Ae,null,g.detail)}return g},o.prototype._helpPositionJumpOverViewZone=function(t){var i=new se.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),l=t.positionBefore,g=t.positionAfter;return l&&g?l.isBefore(i)?l:g:null},o.prototype._dispatchMouse=function(t,i){if(!t.position)return;this._viewController.dispatchMouse({position:t.position,mouseColumn:t.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:i,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},o}(K.a),Ct=function(){function k(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(k.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),k.prototype.setModifiers=function(o){this._altKey=o.altKey,this._ctrlKey=o.ctrlKey,this._metaKey=o.metaKey,this._shiftKey=o.shiftKey},k.prototype.setStartButtons=function(o){this._leftButton=o.leftButton,this._middleButton=o.middleButton},k.prototype.setStartedOnLineNumbers=function(o){this._startedOnLineNumbers=o},k.prototype.trySetCount=function(o,t){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>k.CLEAR_MOUSE_DOWN_COUNT_TIME&&(o=1),this._lastSetMouseDownCountTime=i,o>this._lastMouseDownCount+1&&(o=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(o,this._lastMouseDownPositionEqualCount)},k.CLEAR_MOUSE_DOWN_COUNT_TIME=400,k}(),ht=e("CjF5"),Et=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Yt(k,o){var t={translationY:o.translationY,translationX:o.translationX};return k&&(t.translationY+=k.translationY,t.translationX+=k.translationX),t}var Nt=function(k){Et(o,k);function o(t,i,l){var g=k.call(this,t,i,l)||this;return g.viewHelper.linesContentDomNode.style.msTouchAction="none",g.viewHelper.linesContentDomNode.style.msContentZooming="none",g._installGestureHandlerTimeout=window.setTimeout(function(){if(g._installGestureHandlerTimeout=-1,window.MSGesture){var te=new MSGesture,Ae=new MSGesture;te.target=g.viewHelper.linesContentDomNode,Ae.target=g.viewHelper.linesContentDomNode,g.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(Se){var qe=Se.pointerType;if(qe===(Se.MSPOINTER_TYPE_MOUSE||"mouse")){g._lastPointerType="mouse";return}else qe===(Se.MSPOINTER_TYPE_TOUCH||"touch")?(g._lastPointerType="touch",te.addPointer(Se.pointerId)):(g._lastPointerType="pen",Ae.addPointer(Se.pointerId))}),g._register(J.m(g.viewHelper.linesContentDomNode,"MSGestureChange",function(Se){return g._onGestureChange(Se)},Yt)),g._register(J.j(g.viewHelper.linesContentDomNode,"MSGestureTap",function(Se){return g._onCaptureGestureTap(Se)},!0))}},100),g._lastPointerType="mouse",g}return o.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&k.prototype._onMouseDown.call(this,t)},o.prototype._onCaptureGestureTap=function(t){var i=this,l=new L(t,this.viewHelper.viewDomNode),g=this._createMouseTarget(l,!1);g.position&&this.viewController.moveTo(g.position),l.browserEvent.fromElement?(l.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},o.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),k.prototype.dispose.call(this)},o}(et),bt=function(k){Et(o,k);function o(t,i,l){var g=k.call(this,t,i,l)||this;return g.viewHelper.linesContentDomNode.style.touchAction="none",g._installGestureHandlerTimeout=window.setTimeout(function(){if(g._installGestureHandlerTimeout=-1,window.MSGesture){var te=new MSGesture,Ae=new MSGesture;te.target=g.viewHelper.linesContentDomNode,Ae.target=g.viewHelper.linesContentDomNode,g.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(Se){var qe=Se.pointerType;if(qe==="mouse"){g._lastPointerType="mouse";return}else qe==="touch"?(g._lastPointerType="touch",te.addPointer(Se.pointerId)):(g._lastPointerType="pen",Ae.addPointer(Se.pointerId))}),g._register(J.m(g.viewHelper.linesContentDomNode,"MSGestureChange",function(Se){return g._onGestureChange(Se)},Yt)),g._register(J.j(g.viewHelper.linesContentDomNode,"MSGestureTap",function(Se){return g._onCaptureGestureTap(Se)},!0))}},100),g._lastPointerType="mouse",g}return o.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&k.prototype._onMouseDown.call(this,t)},o.prototype._onCaptureGestureTap=function(t){var i=this,l=new L(t,this.viewHelper.viewDomNode),g=this._createMouseTarget(l,!1);g.position&&this.viewController.moveTo(g.position),l.browserEvent.fromElement?(l.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},o.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),k.prototype.dispose.call(this)},o}(et),$e=function(k){Et(o,k);function o(t,i,l){var g=k.call(this,t,i,l)||this;g._register(m.b.addTarget(g.viewHelper.linesContentDomNode)),g._register(J.j(g.viewHelper.linesContentDomNode,m.a.Tap,function(Ae){return g.onTap(Ae)})),g._register(J.j(g.viewHelper.linesContentDomNode,m.a.Change,function(Ae){return g.onChange(Ae)})),g._register(J.j(g.viewHelper.linesContentDomNode,m.a.Contextmenu,function(Ae){return g._onContextMenu(new L(Ae,g.viewHelper.viewDomNode),!1)})),g._lastPointerType="mouse",g._register(J.j(g.viewHelper.linesContentDomNode,"pointerdown",function(Ae){var Se=Ae.pointerType;if(Se==="mouse"){g._lastPointerType="mouse";return}else Se==="touch"?g._lastPointerType="touch":g._lastPointerType="pen"}));var te=new P(g.viewHelper.viewDomNode);return g._register(te.onPointerMoveThrottled(g.viewHelper.viewDomNode,function(Ae){return g._onMouseMove(Ae)},it(g.mouseTargetFactory),et.MOUSE_MOVE_MINIMUM_TIME)),g._register(te.onPointerUp(g.viewHelper.viewDomNode,function(Ae){return g._onMouseUp(Ae)})),g._register(te.onPointerLeave(g.viewHelper.viewDomNode,function(Ae){return g._onMouseLeave(Ae)})),g._register(te.onPointerDown(g.viewHelper.viewDomNode,function(Ae){return g._onMouseDown(Ae)})),g}return o.prototype.onTap=function(t){if(!t.initialTarget||!this.viewHelper.linesContentDomNode.contains(t.initialTarget))return;t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new L(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,mouseDownCount:t.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})},o.prototype.onChange=function(t){this._lastPointerType==="touch"&&this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype._onMouseDown=function(t){if(t.target&&this.viewHelper.linesContentDomNode.contains(t.target)&&this._lastPointerType==="touch")return;k.prototype._onMouseDown.call(this,t)},o}(et),Ye=function(k){Et(o,k);function o(t,i,l){var g=k.call(this,t,i,l)||this;return g._register(m.b.addTarget(g.viewHelper.linesContentDomNode)),g._register(J.j(g.viewHelper.linesContentDomNode,m.a.Tap,function(te){return g.onTap(te)})),g._register(J.j(g.viewHelper.linesContentDomNode,m.a.Change,function(te){return g.onChange(te)})),g._register(J.j(g.viewHelper.linesContentDomNode,m.a.Contextmenu,function(te){return g._onContextMenu(new L(te,g.viewHelper.viewDomNode),!1)})),g}return o.prototype.onTap=function(t){t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new L(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.moveTo(i.position)},o.prototype.onChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o}(et),Ve=function(k){Et(o,k);function o(t,i,l){var g=k.call(this)||this;return window.navigator.msPointerEnabled?g.handler=g._register(new Nt(t,i,l)):O.c&&ht.a.pointerEvents?g.handler=g._register(new $e(t,i,l)):window.TouchEvent?g.handler=g._register(new Ye(t,i,l)):window.navigator.pointerEnabled||window.PointerEvent?g.handler=g._register(new bt(t,i,l)):g.handler=g._register(new et(t,i,l)),g}return o.prototype.getTargetAtClientPoint=function(t,i){return this.handler.getTargetAtClientPoint(t,i)},o}(K.a),ze=e("VvMK"),me=e("N0LK"),G=e("5TxY"),oe=e("Comh"),Y=e("Krc3"),ie=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),je=function(k){ie(o,k);function o(){return k!==null&&k.apply(this,arguments)||this}return o}(V),dt=e("kYye"),Dt=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Qt=function(k){Dt(o,k);function o(t){var i=k.call(this)||this;return i._context=t,i._readConfig(),i._lastCursorModelPosition=new se.a(1,1),i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype._readConfig=function(){var t=this._context.configuration.options;this._lineHeight=t.get(49);var i=t.get(50);this._renderLineNumbers=i.renderType,this._renderCustomLineNumbers=i.renderFn,this._renderFinalNewline=t.get(71);var l=t.get(107);this._lineNumbersLeft=l.lineNumbersLeft,this._lineNumbersWidth=l.lineNumbersWidth},o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,k.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){return this._readConfig(),!0},o.prototype.onCursorStateChanged=function(t){var i=t.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(i),this._renderLineNumbers===2||this._renderLineNumbers===3},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getLineRenderLineNumber=function(t){var i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new se.a(t,1));if(i.column!==1)return"";var l=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(l);if(this._renderLineNumbers===2){var g=Math.abs(this._lastCursorModelPosition.lineNumber-l);return g===0?'<span class="relative-current-line-number">'+l+"</span>":String(g)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===l||l%10===0?String(l):"":String(l)},o.prototype.prepareRender=function(t){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var i=O.d?this._lineHeight%2===0?" lh-even":" lh-odd":"",l=t.visibleRange.startLineNumber,g=t.visibleRange.endLineNumber,te='<div class="'+o.CLASS_NAME+i+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',Ae=this._context.model.getLineCount(),Se=[],qe=l;qe<=g;qe++){var ct=qe-l;if(!this._renderFinalNewline&&(qe===Ae&&this._context.model.getLineLength(qe)===0)){Se[ct]="";continue}var _t=this._getLineRenderLineNumber(qe);_t?Se[ct]=te+_t+"</div>":Se[ct]=""}this._renderResult=Se},o.prototype.render=function(t,i){if(!this._renderResult)return"";var l=i-t;return l<0||l>=this._renderResult.length?"":this._renderResult[l]},o.CLASS_NAME="line-numbers",o}(je);Object(Z.e)(function(k,o){var t=k.getColor(dt.k);t&&o.addRule(".monaco-editor .line-numbers { color: "+t+"; }");var i=k.getColor(dt.b);i&&o.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var to=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),fo=function(k){to(o,k);function o(t){var i=k.call(this,t)||this,l=i._context.configuration.options,g=l.get(107);return i._canUseLayerHinting=!l.get(22),i._contentLeft=g.contentLeft,i._glyphMarginLeft=g.glyphMarginLeft,i._glyphMarginWidth=g.glyphMarginWidth,i._domNode=Object(b.b)(document.createElement("div")),i._domNode.setClassName(o.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Object(b.b)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(o.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return o.prototype.dispose=function(){k.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,l=i.get(107);return this._canUseLayerHinting=!i.get(22),this._contentLeft=l.contentLeft,this._glyphMarginLeft=l.glyphMarginLeft,this._glyphMarginWidth=l.glyphMarginWidth,!0},o.prototype.onScrollChanged=function(t){return k.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var i=t.scrollTop-t.bigNumbersDelta;this._domNode.setTop(-i);var l=Math.min(t.scrollHeight,1e6);this._domNode.setHeight(l),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(l)},o.CLASS_NAME="glyph-margin",o.OUTER_CLASS_NAME="margin",o}(B),ho=e("5v8Y"),wo=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Oo=function(){function k(o){this.type=1,this._source=o}return k.prototype.hasChanged=function(o){return this._source.hasChanged(o)},k}(),Ro=function(){function k(o){this.type=2,this.contentWidth=o.contentWidth,this.contentHeight=o.contentHeight,this.contentWidthChanged=o.contentWidthChanged,this.contentHeightChanged=o.contentHeightChanged}return k}(),jo=function(){function k(o,t){this.type=3,this.selections=o,this.modelSelections=t}return k}(),Eo=function(){function k(){this.type=4}return k}(),Wo=function(){function k(){this.type=5}return k}(),Ho=function(){function k(o){this.type=6,this.isFocused=o}return k}(),Fo=function(){function k(){this.type=7}return k}(),Io=function(){function k(){this.type=8}return k}(),tn=function(){function k(o,t){this.type=9,this.fromLineNumber=o,this.toLineNumber=t}return k}(),un=function(){function k(o,t){this.type=10,this.fromLineNumber=o,this.toLineNumber=t}return k}(),Vo=function(){function k(o,t){this.type=11,this.fromLineNumber=o,this.toLineNumber=t}return k}(),Cn=function(){function k(o,t,i,l,g){this.type=12,this.source=o,this.range=t,this.verticalType=i,this.revealHorizontal=l,this.scrollType=g}return k}(),pn=function(){function k(o){this.type=13,this.scrollWidth=o.scrollWidth,this.scrollLeft=o.scrollLeft,this.scrollHeight=o.scrollHeight,this.scrollTop=o.scrollTop,this.scrollWidthChanged=o.scrollWidthChanged,this.scrollLeftChanged=o.scrollLeftChanged,this.scrollHeightChanged=o.scrollHeightChanged,this.scrollTopChanged=o.scrollTopChanged}return k}(),rn=function(){function k(){this.type=14}return k}(),on=function(){function k(o){this.type=15,this.ranges=o}return k}(),dn=function(){function k(){this.type=16}return k}(),Uo=function(){function k(){this.type=17}return k}(),Bo=function(k){wo(o,k);function o(){var t=k.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return o.prototype.dispose=function(){this._listeners=[],k.prototype.dispose.call(this)},o.prototype._beginEmit=function(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new St),this._collector},o.prototype._endEmit=function(){if(this._collectorCnt--,this._collectorCnt===0){var t=this._collector.finalize();this._collector=null,t.length>0&&this._emit(t)}},o.prototype._emit=function(t){for(var i=this._listeners.slice(0),l=0,g=i.length;l<g;l++)st(i[l],t)},o.prototype.addEventListener=function(t){var i=this;return this._listeners.push(t),Object(K.h)(function(){for(var l=i._listeners,g=0,te=l.length;g<te;g++)if(l[g]===t){l.splice(g,1);break}})},o}(K.a),St=function(){function k(){this._eventsLen=0,this._events=[],this._eventsLen=0}return k.prototype.emit=function(o){this._events[this._eventsLen++]=o},k.prototype.finalize=function(){var o=this._events;return this._events=[],o},k}();function st(k,o){try{k(o)}catch(t){I.e(t)}}var rt=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Lt=function(){function k(o,t,i){this.top=o,this.left=t,this.width=i}return k.prototype.setWidth=function(o){return new k(this.top,this.left,o)},k}(),be=C.f||C.h,_=function(k){rt(o,k);function o(t,i,l){var g=k.call(this,t)||this;g._primaryCursorPosition=new se.a(1,1),g._primaryCursorVisibleRange=null,g._viewController=i,g._viewHelper=l,g._scrollLeft=0,g._scrollTop=0;var te=g._context.configuration.options,Ae=te.get(107);g._setAccessibilityOptions(te),g._contentLeft=Ae.contentLeft,g._contentWidth=Ae.contentWidth,g._contentHeight=Ae.height,g._fontInfo=te.get(34),g._lineHeight=te.get(49),g._emptySelectionClipboard=te.get(25),g._copyWithSyntaxHighlighting=te.get(15),g._visibleTextArea=null,g._selections=[new gt.a(1,1,1,1)],g._modelSelections=[new gt.a(1,1,1,1)],g._lastRenderPosition=null,g.textArea=Object(b.b)(document.createElement("textarea")),ae.write(g.textArea,6),g.textArea.setClassName("inputarea"),g.textArea.setAttribute("wrap","off"),g.textArea.setAttribute("autocorrect","off"),g.textArea.setAttribute("autocapitalize","off"),g.textArea.setAttribute("autocomplete","off"),g.textArea.setAttribute("spellcheck","false"),g.textArea.setAttribute("aria-label",g._getAriaLabel(te)),g.textArea.setAttribute("role","textbox"),g.textArea.setAttribute("aria-multiline","true"),g.textArea.setAttribute("aria-haspopup","false"),g.textArea.setAttribute("aria-autocomplete","both"),O.g&&te.get(68)&&g.textArea.setAttribute("readonly","true"),g.textAreaCover=Object(b.b)(document.createElement("div")),g.textAreaCover.setPosition("absolute");var Se={getLineCount:function(){return g._context.model.getLineCount()},getLineMaxColumn:function(ct){return g._context.model.getLineMaxColumn(ct)},getValueInRange:function(ct,_t){return g._context.model.getValueInRange(ct,_t)}},qe={getDataToCopy:function(ct){var _t=g._context.model.getPlainTextToCopy(g._modelSelections,g._emptySelectionClipboard,O.h),tt=g._context.model.getEOL(),kt=g._emptySelectionClipboard&&g._modelSelections.length===1&&g._modelSelections[0].isEmpty(),Bt=Array.isArray(_t)?_t:null,Ht=Array.isArray(_t)?_t.join(tt):_t,qt=void 0,$t=null;if(ct&&(G.a.forceCopyWithSyntaxHighlighting||g._copyWithSyntaxHighlighting&&Ht.length<65536)){var io=g._context.model.getRichTextToCopy(g._modelSelections,g._emptySelectionClipboard);io&&(qt=io.html,$t=io.mode)}return{isFromEmptySelection:kt,multicursorText:Bt,text:Ht,html:qt,mode:$t}},getScreenReaderContent:function(ct){if(C.j)return oe.b.EMPTY;if(g._accessibilitySupport===1){if(O.e){var _t=g._selections[0];if(_t.isEmpty()){var tt=_t.getStartPosition(),kt=g._getWordBeforePosition(tt);if(kt.length===0&&(kt=g._getCharacterBeforePosition(tt)),kt.length>0)return new oe.b(kt,kt.length,kt.length,tt,tt)}}return oe.b.EMPTY}return oe.a.fromEditorSelection(ct,Se,g._selections[0],g._accessibilityPageSize,g._accessibilitySupport===0)},deduceModelPosition:function(ct,_t,tt){return g._context.model.deduceModelPositionRelativeToViewPosition(ct,_t,tt)}};return g._textAreaInput=g._register(new G.b(qe,g.textArea)),g._register(g._textAreaInput.onKeyDown(function(ct){g._viewController.emitKeyDown(ct)})),g._register(g._textAreaInput.onKeyUp(function(ct){g._viewController.emitKeyUp(ct)})),g._register(g._textAreaInput.onPaste(function(ct){var _t=!1,tt=null,kt=null;ct.metadata&&(_t=g._emptySelectionClipboard&&!!ct.metadata.isFromEmptySelection,tt=typeof ct.metadata.multicursorText!="undefined"?ct.metadata.multicursorText:null,kt=ct.metadata.mode),g._viewController.paste("keyboard",ct.text,_t,tt,kt)})),g._register(g._textAreaInput.onCut(function(){g._viewController.cut("keyboard")})),g._register(g._textAreaInput.onType(function(ct){ct.replaceCharCnt?g._viewController.replacePreviousChar("keyboard",ct.text,ct.replaceCharCnt):g._viewController.type("keyboard",ct.text)})),g._register(g._textAreaInput.onSelectionChangeRequest(function(ct){g._viewController.setSelection("keyboard",ct)})),g._register(g._textAreaInput.onCompositionStart(function(){var ct=g._selections[0].startLineNumber,_t=g._selections[0].startColumn;g._context.privateViewEventBus.emit(new Cn("keyboard",new ye.a(ct,_t,ct,_t),0,!0,1));var tt=g._viewHelper.visibleRangeForPositionRelativeToEditor(ct,_t);tt&&(g._visibleTextArea=new Lt(g._context.viewLayout.getVerticalOffsetForLineNumber(ct),tt.left,be?0:1),g._render()),g.textArea.setClassName("inputarea ime-input"),g._viewController.compositionStart("keyboard")})),g._register(g._textAreaInput.onCompositionUpdate(function(ct){C.f?g._visibleTextArea=g._visibleTextArea.setWidth(0):g._visibleTextArea=g._visibleTextArea.setWidth(A(ct.data,g._fontInfo)),g._render()})),g._register(g._textAreaInput.onCompositionEnd(function(){g._visibleTextArea=null,g._render(),g.textArea.setClassName("inputarea"),g._viewController.compositionEnd("keyboard")})),g._register(g._textAreaInput.onFocus(function(){g._context.privateViewEventBus.emit(new Ho(!0))})),g._register(g._textAreaInput.onBlur(function(){g._context.privateViewEventBus.emit(new Ho(!1))})),g}return o.prototype.dispose=function(){k.prototype.dispose.call(this)},o.prototype._getWordBeforePosition=function(t){for(var i=this._context.model.getLineContent(t.lineNumber),l=Object(ho.a)(this._context.configuration.options.get(96)),g=t.column,te=0;g>1;){var Ae=i.charCodeAt(g-2),Se=l.get(Ae);if(Se!==0||te>50)return i.substring(g-1,t.column-1);te++,g--}return i.substring(0,t.column-1)},o.prototype._getCharacterBeforePosition=function(t){if(t.column>1){var i=this._context.model.getLineContent(t.lineNumber),l=i.charAt(t.column-2);if(!me.z(l.charCodeAt(0)))return l}return""},o.prototype._getAriaLabel=function(t){var i=t.get(2);return i===1?pe.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):t.get(4)},o.prototype._setAccessibilityOptions=function(t){this._accessibilitySupport=t.get(2);var i=t.get(3);this._accessibilitySupport===2&&i===ve.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=i},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,l=i.get(107);return this._setAccessibilityOptions(i),this._contentLeft=l.contentLeft,this._contentWidth=l.contentWidth,this._contentHeight=l.height,this._fontInfo=i.get(34),this._lineHeight=i.get(49),this._emptySelectionClipboard=i.get(25),this._copyWithSyntaxHighlighting=i.get(15),this.textArea.setAttribute("aria-label",this._getAriaLabel(i)),O.g&&t.hasChanged(68)&&(i.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),t.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),this._modelSelections=t.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0},o.prototype.onZonesChanged=function(t){return!0},o.prototype.isFocused=function(){return this._textAreaInput.isFocused()},o.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},o.prototype.getLastRenderData=function(){return this._lastRenderPosition},o.prototype.setAriaOptions=function(t){t.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",t.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},o.prototype.prepareRender=function(t){this._primaryCursorPosition=new se.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=t.visibleRangeForPosition(this._primaryCursorPosition)},o.prototype.render=function(t){this._textAreaInput.writeScreenReaderContent("render"),this._render()},o.prototype._render=function(){if(this._visibleTextArea){this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}var t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(t<this._contentLeft||t>this._contentLeft+this._contentWidth){this._renderAtTopLeft();return}var i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight){this._renderAtTopLeft();return}if(O.e){this._renderInsideEditor(this._primaryCursorPosition,i,t,be?0:1,this._lineHeight);return}this._renderInsideEditor(this._primaryCursorPosition,i,t,be?0:1,be?0:1)},o.prototype._renderInsideEditor=function(t,i,l,g,te){this._lastRenderPosition=t;var Ae=this.textArea,Se=this.textAreaCover;U.a.applyFontInfo(Ae,this._fontInfo),Ae.setTop(i),Ae.setLeft(l),Ae.setWidth(g),Ae.setHeight(te),Se.setTop(0),Se.setLeft(0),Se.setWidth(0),Se.setHeight(0)},o.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var t=this.textArea,i=this.textAreaCover;if(U.a.applyFontInfo(t,this._fontInfo),t.setTop(0),t.setLeft(0),i.setTop(0),i.setLeft(0),be){t.setWidth(0),t.setHeight(0),i.setWidth(0),i.setHeight(0);return}t.setWidth(1),t.setHeight(1),i.setWidth(1),i.setHeight(1);var l=this._context.configuration.options;l.get(40)?i.setClassName("monaco-editor-background textAreaCover "+fo.OUTER_CLASS_NAME):l.get(50).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Qt.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")},o}(B);function A(k,o){var t=document.createElement("canvas"),i=t.getContext("2d");i.font=X(o);var l=i.measureText(k);return C.h?l.width+2:l.width}function X(k){return De("normal",k.fontWeight,k.fontSize,k.lineHeight,k.fontFamily)}function De(k,o,t,i,l){return k+" normal "+o+" "+t+"px / "+i+"px "+l}var xe=e("1YUG"),Ie=function(){function k(o,t,i,l){this.configuration=o,this.viewModel=t,this.outgoingEvents=i,this.commandDelegate=l}return k.prototype._execMouseCommand=function(o,t){t.source="mouse",this.commandDelegate.executeEditorCommand(o,t)},k.prototype.paste=function(o,t,i,l,g){this.commandDelegate.paste(o,t,i,l,g)},k.prototype.type=function(o,t){this.commandDelegate.type(o,t)},k.prototype.replacePreviousChar=function(o,t,i){this.commandDelegate.replacePreviousChar(o,t,i)},k.prototype.compositionStart=function(o){this.commandDelegate.compositionStart(o)},k.prototype.compositionEnd=function(o){this.commandDelegate.compositionEnd(o)},k.prototype.cut=function(o){this.commandDelegate.cut(o)},k.prototype.setSelection=function(o,t){this.commandDelegate.executeEditorCommand(xe.CoreNavigationCommands.SetSelection,{source:o,selection:t})},k.prototype._validateViewColumn=function(o){var t=this.viewModel.getLineMinColumn(o.lineNumber);return o.column<t?new se.a(o.lineNumber,t):o},k.prototype._hasMulticursorModifier=function(o){switch(this.configuration.options.get(59)){case"altKey":return o.altKey;case"ctrlKey":return o.ctrlKey;case"metaKey":return o.metaKey}return!1},k.prototype._hasNonMulticursorModifier=function(o){switch(this.configuration.options.get(59)){case"altKey":return o.ctrlKey||o.metaKey;case"ctrlKey":return o.altKey||o.metaKey;case"metaKey":return o.ctrlKey||o.altKey}return!1},k.prototype.dispatchMouse=function(o){var t=O.d&&this.configuration.options.get(81);o.middleButton&&!t?this._columnSelect(o.position,o.mouseColumn,o.inSelectionMode):o.startedOnLineNumbers?this._hasMulticursorModifier(o)?o.inSelectionMode?this._lastCursorLineSelect(o.position):this._createCursor(o.position,!0):o.inSelectionMode?this._lineSelectDrag(o.position):this._lineSelect(o.position):o.mouseDownCount>=4?this._selectAll():o.mouseDownCount===3?this._hasMulticursorModifier(o)?o.inSelectionMode?this._lastCursorLineSelectDrag(o.position):this._lastCursorLineSelect(o.position):o.inSelectionMode?this._lineSelectDrag(o.position):this._lineSelect(o.position):o.mouseDownCount===2?this._hasMulticursorModifier(o)?this._lastCursorWordSelect(o.position):o.inSelectionMode?this._wordSelectDrag(o.position):this._wordSelect(o.position):this._hasMulticursorModifier(o)?this._hasNonMulticursorModifier(o)||(o.shiftKey?this._columnSelect(o.position,o.mouseColumn,!0):o.inSelectionMode?this._lastCursorMoveToSelect(o.position):this._createCursor(o.position,!1)):o.inSelectionMode?o.altKey?this._columnSelect(o.position,o.mouseColumn,!0):this._moveToSelect(o.position):this.moveTo(o.position)},k.prototype._usualArgs=function(o){return o=this._validateViewColumn(o),{position:this._convertViewToModelPosition(o),viewPosition:o}},k.prototype.moveTo=function(o){this._execMouseCommand(xe.CoreNavigationCommands.MoveTo,this._usualArgs(o))},k.prototype._moveToSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.MoveToSelect,this._usualArgs(o))},k.prototype._columnSelect=function(o,t,i){o=this._validateViewColumn(o),this._execMouseCommand(xe.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(o),viewPosition:o,mouseColumn:t,doColumnSelect:i})},k.prototype._createCursor=function(o,t){o=this._validateViewColumn(o),this._execMouseCommand(xe.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(o),viewPosition:o,wholeLine:t})},k.prototype._lastCursorMoveToSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(o))},k.prototype._wordSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.WordSelect,this._usualArgs(o))},k.prototype._wordSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.WordSelectDrag,this._usualArgs(o))},k.prototype._lastCursorWordSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(o))},k.prototype._lineSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LineSelect,this._usualArgs(o))},k.prototype._lineSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LineSelectDrag,this._usualArgs(o))},k.prototype._lastCursorLineSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(o))},k.prototype._lastCursorLineSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(o))},k.prototype._selectAll=function(){this._execMouseCommand(xe.CoreNavigationCommands.SelectAll,{})},k.prototype._convertViewToModelPosition=function(o){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(o)},k.prototype.emitKeyDown=function(o){this.outgoingEvents.emitKeyDown(o)},k.prototype.emitKeyUp=function(o){this.outgoingEvents.emitKeyUp(o)},k.prototype.emitContextMenu=function(o){this.outgoingEvents.emitContextMenu(o)},k.prototype.emitMouseMove=function(o){this.outgoingEvents.emitMouseMove(o)},k.prototype.emitMouseLeave=function(o){this.outgoingEvents.emitMouseLeave(o)},k.prototype.emitMouseUp=function(o){this.outgoingEvents.emitMouseUp(o)},k.prototype.emitMouseDown=function(o){this.outgoingEvents.emitMouseDown(o)},k.prototype.emitMouseDrag=function(o){this.outgoingEvents.emitMouseDrag(o)},k.prototype.emitMouseDrop=function(o){this.outgoingEvents.emitMouseDrop(o)},k.prototype.emitMouseWheel=function(o){this.outgoingEvents.emitMouseWheel(o)},k}(),lt=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ft=function(k){lt(o,k);function o(t){var i=k.call(this)||this;return i.onDidContentSizeChange=null,i.onDidScroll=null,i.onDidGainFocus=null,i.onDidLoseFocus=null,i.onKeyDown=null,i.onKeyUp=null,i.onContextMenu=null,i.onMouseMove=null,i.onMouseLeave=null,i.onMouseUp=null,i.onMouseDown=null,i.onMouseDrag=null,i.onMouseDrop=null,i.onMouseWheel=null,i._viewModel=t,i}return o.prototype.emitContentSizeChange=function(t){this.onDidContentSizeChange&&this.onDidContentSizeChange(t)},o.prototype.emitScrollChanged=function(t){this.onDidScroll&&this.onDidScroll(t)},o.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},o.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},o.prototype.emitKeyDown=function(t){this.onKeyDown&&this.onKeyDown(t)},o.prototype.emitKeyUp=function(t){this.onKeyUp&&this.onKeyUp(t)},o.prototype.emitContextMenu=function(t){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseMove=function(t){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseLeave=function(t){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseUp=function(t){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDown=function(t){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDrag=function(t){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDrop=function(t){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseWheel=function(t){this.onMouseWheel&&this.onMouseWheel(t)},o.prototype._convertViewToModelMouseEvent=function(t){return t.target?{event:t.event,target:this._convertViewToModelMouseTarget(t.target)}:t},o.prototype._convertViewToModelMouseTarget=function(t){return o.convertViewToModelMouseTarget(t,this._viewModel.coordinatesConverter)},o.convertViewToModelMouseTarget=function(t,i){return new At(t.element,t.type,t.mouseColumn,t.position?i.convertViewPositionToModelPosition(t.position):null,t.range?i.convertViewRangeToModelRange(t.range):null,t.detail)},o}(K.a),At=function(){function k(o,t,i,l,g,te){this.element=o,this.type=t,this.mouseColumn=i,this.position=l,this.range=g,this.detail=te}return k.prototype.toString=function(){return Je.toString(this)},k}(),Ft=e("erNZ"),Ut=function(){function k(o){this._createLine=o,this._set(1,[])}return k.prototype.flush=function(){this._set(1,[])},k.prototype._set=function(o,t){this._lines=t,this._rendLineNumberStart=o},k.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},k.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},k.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},k.prototype.getCount=function(){return this._lines.length},k.prototype.getLine=function(o){var t=o-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},k.prototype.onLinesDeleted=function(o,t){if(this.getCount()===0)return null;var i=this.getStartLineNumber(),l=this.getEndLineNumber();if(t<i){var g=t-o+1;return this._rendLineNumberStart-=g,null}if(o>l)return null;for(var te=0,Ae=0,Se=i;Se<=l;Se++){var qe=Se-this._rendLineNumberStart;o<=Se&&Se<=t&&(Ae===0?(te=qe,Ae=1):Ae++)}if(o<i){var ct=0;t<i?ct=t-o+1:ct=i-o,this._rendLineNumberStart-=ct}var _t=this._lines.splice(te,Ae);return _t},k.prototype.onLinesChanged=function(o,t){if(this.getCount()===0)return!1;for(var i=this.getStartLineNumber(),l=this.getEndLineNumber(),g=!1,te=o;te<=t;te++)te>=i&&te<=l&&(this._lines[te-this._rendLineNumberStart].onContentChanged(),g=!0);return g},k.prototype.onLinesInserted=function(o,t){if(this.getCount()===0)return null;var i=t-o+1,l=this.getStartLineNumber(),g=this.getEndLineNumber();if(o<=l)return this._rendLineNumberStart+=i,null;if(o>g)return null;if(i+o>g){var te=this._lines.splice(o-this._rendLineNumberStart,g-o+1);return te}for(var Ae=[],Se=0;Se<i;Se++)Ae[Se]=this._createLine();var qe=o-this._rendLineNumberStart,ct=this._lines.slice(0,qe),_t=this._lines.slice(qe,this._lines.length-i),tt=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=ct.concat(Ae).concat(_t),tt},k.prototype.onTokensChanged=function(o){if(this.getCount()===0)return!1;for(var t=this.getStartLineNumber(),i=this.getEndLineNumber(),l=!1,g=0,te=o.length;g<te;g++){var Ae=o[g];if(Ae.toLineNumber<t||Ae.fromLineNumber>i)continue;for(var Se=Math.max(t,Ae.fromLineNumber),qe=Math.min(i,Ae.toLineNumber),ct=Se;ct<=qe;ct++){var _t=ct-this._rendLineNumberStart;this._lines[_t].onTokensChanged(),l=!0}}return l},k}(),Vt=function(){function k(o){var t=this;this._host=o,this.domNode=this._createDomNode(),this._linesCollection=new Ut(function(){return t._host.createVisibleLine()})}return k.prototype._createDomNode=function(){var o=Object(b.b)(document.createElement("div"));return o.setClassName("view-layer"),o.setPosition("absolute"),o.domNode.setAttribute("role","presentation"),o.domNode.setAttribute("aria-hidden","true"),o},k.prototype.onConfigurationChanged=function(o){return!!o.hasChanged(107)},k.prototype.onFlushed=function(o){return this._linesCollection.flush(),!0},k.prototype.onLinesChanged=function(o){return this._linesCollection.onLinesChanged(o.fromLineNumber,o.toLineNumber)},k.prototype.onLinesDeleted=function(o){var t=this._linesCollection.onLinesDeleted(o.fromLineNumber,o.toLineNumber);if(t)for(var i=0,l=t.length;i<l;i++){var g=t[i].getDomNode();g&&this.domNode.domNode.removeChild(g)}return!0},k.prototype.onLinesInserted=function(o){var t=this._linesCollection.onLinesInserted(o.fromLineNumber,o.toLineNumber);if(t)for(var i=0,l=t.length;i<l;i++){var g=t[i].getDomNode();g&&this.domNode.domNode.removeChild(g)}return!0},k.prototype.onScrollChanged=function(o){return o.scrollTopChanged},k.prototype.onTokensChanged=function(o){return this._linesCollection.onTokensChanged(o.ranges)},k.prototype.onZonesChanged=function(o){return!0},k.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},k.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},k.prototype.getVisibleLine=function(o){return this._linesCollection.getLine(o)},k.prototype.renderLines=function(o){var t=this._linesCollection._get(),i=new oo(this.domNode.domNode,this._host,o),l={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},g=i.render(l,o.startLineNumber,o.endLineNumber,o.relativeVerticalOffset);this._linesCollection._set(g.rendLineNumberStart,g.lines)},k}(),oo=function(){function k(o,t,i){this.domNode=o,this.host=t,this.viewportData=i}return k.prototype.render=function(o,t,i,l){var g={rendLineNumberStart:o.rendLineNumberStart,lines:o.lines.slice(0),linesLength:o.linesLength};if(g.rendLineNumberStart+g.linesLength-1<t||i<g.rendLineNumberStart){g.rendLineNumberStart=t,g.linesLength=i-t+1,g.lines=[];for(var te=t;te<=i;te++)g.lines[te-t]=this.host.createVisibleLine();return this._finishRendering(g,!0,l),g}if(this._renderUntouchedLines(g,Math.max(t-g.rendLineNumberStart,0),Math.min(i-g.rendLineNumberStart,g.linesLength-1),l,t),g.rendLineNumberStart>t){var Ae=t,Se=Math.min(i,g.rendLineNumberStart-1);Ae<=Se&&(this._insertLinesBefore(g,Ae,Se,l,t),g.linesLength+=Se-Ae+1)}else if(g.rendLineNumberStart<t){var qe=Math.min(g.linesLength,t-g.rendLineNumberStart);qe>0&&(this._removeLinesBefore(g,qe),g.linesLength-=qe)}if(g.rendLineNumberStart=t,g.rendLineNumberStart+g.linesLength-1<i){var Ae=g.rendLineNumberStart+g.linesLength,Se=i;Ae<=Se&&(this._insertLinesAfter(g,Ae,Se,l,t),g.linesLength+=Se-Ae+1)}else if(g.rendLineNumberStart+g.linesLength-1>i){var Ae=Math.max(0,i-g.rendLineNumberStart+1),Se=g.linesLength-1,qe=Se-Ae+1;qe>0&&(this._removeLinesAfter(g,qe),g.linesLength-=qe)}return this._finishRendering(g,!1,l),g},k.prototype._renderUntouchedLines=function(o,t,i,l,g){for(var te=o.rendLineNumberStart,Ae=o.lines,Se=t;Se<=i;Se++){var qe=te+Se;Ae[Se].layoutLine(qe,l[qe-g])}},k.prototype._insertLinesBefore=function(o,t,i,l,g){for(var te=[],Ae=0,Se=t;Se<=i;Se++)te[Ae++]=this.host.createVisibleLine();o.lines=te.concat(o.lines)},k.prototype._removeLinesBefore=function(o,t){for(var i=0;i<t;i++){var l=o.lines[i].getDomNode();l&&this.domNode.removeChild(l)}o.lines.splice(0,t)},k.prototype._insertLinesAfter=function(o,t,i,l,g){for(var te=[],Ae=0,Se=t;Se<=i;Se++)te[Ae++]=this.host.createVisibleLine();o.lines=o.lines.concat(te)},k.prototype._removeLinesAfter=function(o,t){for(var i=o.linesLength-t,l=0;l<t;l++){var g=o.lines[i+l].getDomNode();g&&this.domNode.removeChild(g)}o.lines.splice(i,t)},k.prototype._finishRenderingNewLines=function(o,t,i,l){var g=this.domNode.lastChild;t||!g?this.domNode.innerHTML=i:g.insertAdjacentHTML("afterend",i);for(var te=this.domNode.lastChild,Ae=o.linesLength-1;Ae>=0;Ae--){var Se=o.lines[Ae];l[Ae]&&(Se.setDomNode(te),te=te.previousSibling)}},k.prototype._finishRenderingInvalidLines=function(o,t,i){var l=document.createElement("div");l.innerHTML=t;for(var g=0;g<o.linesLength;g++){var te=o.lines[g];if(i[g]){var Ae=l.firstChild,Se=te.getDomNode();Se.parentNode.replaceChild(Ae,Se),te.setDomNode(Ae)}}},k.prototype._finishRendering=function(o,t,i){var l=k._sb,g=o.linesLength,te=o.lines,Ae=o.rendLineNumberStart,Se=[];{l.reset();for(var qe=!1,ct=0;ct<g;ct++){var _t=te[ct];Se[ct]=!1;var tt=_t.getDomNode();if(tt)continue;var kt=_t.renderLine(ct+Ae,i[ct],this.viewportData,l);if(!kt)continue;Se[ct]=!0,qe=!0}qe&&this._finishRenderingNewLines(o,t,l.build(),Se)}{l.reset();for(var Bt=!1,Ht=[],ct=0;ct<g;ct++){var _t=te[ct];if(Ht[ct]=!1,Se[ct])continue;var kt=_t.renderLine(ct+Ae,i[ct],this.viewportData,l);if(!kt)continue;Ht[ct]=!0,Bt=!0}Bt&&this._finishRenderingInvalidLines(o,l.build(),Ht)}},k._sb=Object(Ft.a)(1e5),k}(),Zt=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),mo=function(k){Zt(o,k);function o(t){var i=k.call(this,t)||this;return i._visibleLines=new Vt(i),i.domNode=i._visibleLines.domNode,i._dynamicOverlays=[],i._isFocused=!1,i.domNode.setClassName("view-overlays"),i}return o.prototype.shouldRender=function(){if(k.prototype.shouldRender.call(this))return!0;for(var t=0,i=this._dynamicOverlays.length;t<i;t++){var l=this._dynamicOverlays[t];if(l.shouldRender())return!0}return!1},o.prototype.dispose=function(){k.prototype.dispose.call(this);for(var t=0,i=this._dynamicOverlays.length;t<i;t++){var l=this._dynamicOverlays[t];l.dispose()}this._dynamicOverlays=[]},o.prototype.getDomNode=function(){return this.domNode},o.prototype.createVisibleLine=function(){return new mt(this._context.configuration,this._dynamicOverlays)},o.prototype.addDynamicOverlay=function(t){this._dynamicOverlays.push(t)},o.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t);for(var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),g=i;g<=l;g++){var te=this._visibleLines.getVisibleLine(g);te.onConfigurationChanged(t)}return!0},o.prototype.onFlushed=function(t){return this._visibleLines.onFlushed(t)},o.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!0},o.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},o.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},o.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},o.prototype.onScrollChanged=function(t){return this._visibleLines.onScrollChanged(t)||!0},o.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},o.prototype.onZonesChanged=function(t){return this._visibleLines.onZonesChanged(t)},o.prototype.prepareRender=function(t){for(var i=this._dynamicOverlays.filter(function(Ae){return Ae.shouldRender()}),l=0,g=i.length;l<g;l++){var te=i[l];te.prepareRender(t),te.onDidRender()}},o.prototype.render=function(t){this._viewOverlaysRender(t),this.domNode.toggleClassName("focused",this._isFocused)},o.prototype._viewOverlaysRender=function(t){this._visibleLines.renderLines(t.viewportData)},o}(B),mt=function(){function k(o,t){this._configuration=o,this._lineHeight=this._configuration.options.get(49),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}return k.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},k.prototype.setDomNode=function(o){this._domNode=Object(b.b)(o)},k.prototype.onContentChanged=function(){},k.prototype.onTokensChanged=function(){},k.prototype.onConfigurationChanged=function(o){this._lineHeight=this._configuration.options.get(49)},k.prototype.renderLine=function(o,t,i,l){for(var g="",te=0,Ae=this._dynamicOverlays.length;te<Ae;te++){var Se=this._dynamicOverlays[te];g+=Se.render(i.startLineNumber,o)}return this._renderedContent===g?!1:(this._renderedContent=g,l.appendASCIIString('<div style="position:absolute;top:'),l.appendASCIIString(String(t)),l.appendASCIIString("px;width:100%;height:"),l.appendASCIIString(String(this._lineHeight)),l.appendASCIIString('px;">'),l.appendASCIIString(g),l.appendASCIIString("</div>"),!0)},k.prototype.layoutLine=function(o,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},k}(),He=function(k){Zt(o,k);function o(t){var i=k.call(this,t)||this,l=i._context.configuration.options,g=l.get(107);return i._contentWidth=g.contentWidth,i.domNode.setHeight(0),i}return o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,l=i.get(107);return this._contentWidth=l.contentWidth,k.prototype.onConfigurationChanged.call(this,t)||!0},o.prototype.onScrollChanged=function(t){return k.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},o.prototype._viewOverlaysRender=function(t){k.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},o}(mo),Oe=function(k){Zt(o,k);function o(t){var i=k.call(this,t)||this,l=i._context.configuration.options,g=l.get(107);return i._contentLeft=g.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),U.a.applyFontInfo(i.domNode,l.get(34)),i}return o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;U.a.applyFontInfo(this.domNode,i.get(34));var l=i.get(107);return this._contentLeft=l.contentLeft,k.prototype.onConfigurationChanged.call(this,t)||!0},o.prototype.onScrollChanged=function(t){return k.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},o.prototype._viewOverlaysRender=function(t){k.prototype._viewOverlaysRender.call(this,t);var i=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)},o}(mo),ot=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),xt=function(){function k(o,t){this.top=o,this.left=t}return k}(),he=function(k){ot(o,k);function o(t,i){var l=k.call(this,t)||this;return l._viewDomNode=i,l._widgets={},l.domNode=Object(b.b)(document.createElement("div")),ae.write(l.domNode,1),l.domNode.setClassName("contentWidgets"),l.domNode.setPosition("absolute"),l.domNode.setTop(0),l.overflowingContentWidgetsDomNode=Object(b.b)(document.createElement("div")),ae.write(l.overflowingContentWidgetsDomNode,2),l.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),l}return o.prototype.dispose=function(){k.prototype.dispose.call(this),this._widgets={}},o.prototype.onConfigurationChanged=function(t){for(var i=Object.keys(this._widgets),l=0,g=i;l<g.length;l++){var te=g[l];this._widgets[te].onConfigurationChanged(t)}return!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLineMappingChanged=function(t){for(var i=Object.keys(this._widgets),l=0,g=i;l<g.length;l++){var te=g[l];this._widgets[te].onLineMappingChanged(t)}return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onZonesChanged=function(t){return!0},o.prototype.addWidget=function(t){var i=new M(this._context,this._viewDomNode,t);this._widgets[i.id]=i,i.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(i.domNode):this.domNode.appendChild(i.domNode),this.setShouldRender()},o.prototype.setWidgetPosition=function(t,i,l){var g=this._widgets[t.getId()];g.setPosition(i,l),this.setShouldRender()},o.prototype.removeWidget=function(t){var i=t.getId();if(this._widgets.hasOwnProperty(i)){var l=this._widgets[i];delete this._widgets[i];var g=l.domNode.domNode;g.parentNode.removeChild(g),g.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},o.prototype.shouldSuppressMouseDownOnWidget=function(t){return this._widgets.hasOwnProperty(t)?this._widgets[t].suppressMouseDown:!1},o.prototype.onBeforeRender=function(t){for(var i=Object.keys(this._widgets),l=0,g=i;l<g.length;l++){var te=g[l];this._widgets[te].onBeforeRender(t)}},o.prototype.prepareRender=function(t){for(var i=Object.keys(this._widgets),l=0,g=i;l<g.length;l++){var te=g[l];this._widgets[te].prepareRender(t)}},o.prototype.render=function(t){for(var i=Object.keys(this._widgets),l=0,g=i;l<g.length;l++){var te=g[l];this._widgets[te].render(t)}},o}(B),M=function(){function k(o,t,i){this._context=o,this._viewDomNode=t,this._actual=i,this.domNode=Object(b.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var l=this._context.configuration.options,g=l.get(107);this._fixedOverflowWidgets=l.get(29),this._contentWidth=g.contentWidth,this._contentLeft=g.contentLeft,this._lineHeight=l.get(49),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}return k.prototype.onConfigurationChanged=function(o){var t=this._context.configuration.options;if(this._lineHeight=t.get(49),o.hasChanged(107)){var i=t.get(107);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}},k.prototype.onLineMappingChanged=function(o){this._setPosition(this._range)},k.prototype._setPosition=function(o){if(this._range=o,this._viewRange=null,this._range){var t=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(t))}},k.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},k.prototype.setPosition=function(o,t){this._setPosition(o),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},k.prototype._layoutBoxInViewport=function(o,t,i,l,g){var te=o.top,Ae=te,Se=t.top+this._lineHeight,qe=g.viewportHeight-Se,ct=te-l,_t=Ae>=l,tt=Se,kt=qe>=l,Bt=o.left,Ht=t.left;return Bt+i>g.scrollLeft+g.viewportWidth&&(Bt=g.scrollLeft+g.viewportWidth-i),Ht+i>g.scrollLeft+g.viewportWidth&&(Ht=g.scrollLeft+g.viewportWidth-i),Bt<g.scrollLeft&&(Bt=g.scrollLeft),Ht<g.scrollLeft&&(Ht=g.scrollLeft),{fitsAbove:_t,aboveTop:ct,aboveLeft:Bt,fitsBelow:kt,belowTop:tt,belowLeft:Ht}},k.prototype._layoutHorizontalSegmentInPage=function(o,t,i,l){var g=Math.max(0,t.left-l),te=Math.min(t.left+t.width+l,o.width),Ae=t.left+i-J.e.scrollX;if(Ae+l>te){var Se=Ae-(te-l);Ae-=Se,i-=Se}if(Ae<g){var Se=Ae-g;Ae-=Se,i-=Se}return[i,Ae]},k.prototype._layoutBoxInPage=function(o,t,i,l,g){var te=o.top-l,Ae=t.top+this._lineHeight,Se=J.C(this._viewDomNode.domNode),qe=Se.top+te-J.e.scrollY,ct=Se.top+Ae-J.e.scrollY,_t=J.y(document.body),tt=this._layoutHorizontalSegmentInPage(_t,Se,o.left-g.scrollLeft+this._contentLeft,i),kt=tt[0],Bt=tt[1],Ht=this._layoutHorizontalSegmentInPage(_t,Se,t.left-g.scrollLeft+this._contentLeft,i),qt=Ht[0],$t=Ht[1],io=22,yo=22,po=qe>=io,bo=ct+l<=_t.height-yo;return this._fixedOverflowWidgets?{fitsAbove:po,aboveTop:Math.max(qe,io),aboveLeft:Bt,fitsBelow:bo,belowTop:ct,belowLeft:$t}:{fitsAbove:po,aboveTop:Math.max(te,io),aboveLeft:kt,fitsBelow:bo,belowTop:Ae,belowLeft:qt}},k.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(o){return new xt(o.top,o.left+this._contentLeft)},k.prototype._getTopAndBottomLeft=function(o){if(!this._viewRange)return[null,null];var t=o.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];for(var i=t[0],l=t[0],g=0,te=t;g<te.length;g++){var Ae=te[g];Ae.lineNumber<i.lineNumber&&(i=Ae),Ae.lineNumber>l.lineNumber&&(l=Ae)}for(var Se=1073741824,qe=0,ct=i.ranges;qe<ct.length;qe++){var _t=ct[qe];_t.left<Se&&(Se=_t.left)}for(var tt=1073741824,kt=0,Bt=l.ranges;kt<Bt.length;kt++){var _t=Bt[kt];_t.left<tt&&(tt=_t.left)}var Ht=o.getVerticalOffsetForLineNumber(i.lineNumber)-o.scrollTop,qt=new xt(Ht,Se),$t=o.getVerticalOffsetForLineNumber(l.lineNumber)-o.scrollTop,io=new xt($t,tt);return[qt,io]},k.prototype._prepareRenderWidget=function(o){var t=this._getTopAndBottomLeft(o),i=t[0],l=t[1];if(!i||!l)return null;if(this._cachedDomNodeClientWidth===-1||this._cachedDomNodeClientHeight===-1){var g=this.domNode.domNode;this._cachedDomNodeClientWidth=g.clientWidth,this._cachedDomNodeClientHeight=g.clientHeight}var te;if(this.allowEditorOverflow?te=this._layoutBoxInPage(i,l,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,o):te=this._layoutBoxInViewport(i,l,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,o),this._preference)for(var Ae=1;Ae<=2;Ae++)for(var Se=0,qe=this._preference;Se<qe.length;Se++){var ct=qe[Se];if(ct===1){if(!te)return null;if(Ae===2||te.fitsAbove)return new xt(te.aboveTop,te.aboveLeft)}else if(ct===2){if(!te)return null;if(Ae===2||te.fitsBelow)return new xt(te.belowTop,te.belowLeft)}else return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i}return null},k.prototype.onBeforeRender=function(o){if(!this._viewRange||!this._preference)return;if(this._viewRange.endLineNumber<o.startLineNumber||this._viewRange.startLineNumber>o.endLineNumber)return;this.domNode.setMaxWidth(this._maxWidth)},k.prototype.prepareRender=function(o){this._renderData=this._prepareRenderWidget(o)},k.prototype.render=function(o){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"));return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+o.scrollTop-o.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)},k}(),ue=e("kw+w"),We=e("6OMU"),Ze=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),at=!0,wt=function(k){Ze(o,k);function o(t){var i=k.call(this)||this;i._context=t;var l=i._context.configuration.options,g=l.get(107);return i._lineHeight=l.get(49),i._renderLineHighlight=l.get(72),i._contentLeft=g.contentLeft,i._contentWidth=g.contentWidth,i._selectionIsEmpty=!0,i._cursorLineNumbers=[],i._selections=[],i._renderData=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),k.prototype.dispose.call(this)},o.prototype._readFromSelections=function(){var t=!1,i=at?this._selections.slice(0,1):this._selections,l=i.map(function(te){return te.positionLineNumber});l.sort(function(te,Ae){return te-Ae}),We.g(this._cursorLineNumbers,l)||(this._cursorLineNumbers=l,t=!0);var g=i.every(function(te){return te.isEmpty()});return this._selectionIsEmpty!==g&&(this._selectionIsEmpty=g,t=!0),t},o.prototype.onThemeChanged=function(t){return this._readFromSelections()},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,l=i.get(107);return this._lineHeight=i.get(49),this._renderLineHighlight=i.get(72),this._contentLeft=l.contentLeft,this._contentWidth=l.contentWidth,!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._readFromSelections()},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollWidthChanged||t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.prepareRender=function(t){if(!this._shouldRenderThis()){this._renderData=null;return}for(var i=this._renderOne(t),l=t.visibleRange.startLineNumber,g=t.visibleRange.endLineNumber,te=this._cursorLineNumbers.length,Ae=0,Se=[],qe=l;qe<=g;qe++){for(var ct=qe-l;Ae<te&&this._cursorLineNumbers[Ae]<qe;)Ae++;Ae<te&&this._cursorLineNumbers[Ae]===qe?Se[ct]=i:Se[ct]=""}this._renderData=Se},o.prototype.render=function(t,i){if(!this._renderData)return"";var l=i-t;return l>=this._renderData.length?"":this._renderData[l]},o}(je),zt=function(k){Ze(o,k);function o(){return k!==null&&k.apply(this,arguments)||this}return o.prototype._renderOne=function(t){var i="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'<div class="'+i+'" style="width:'+Math.max(t.scrollWidth,this._contentWidth)+"px; height:"+this._lineHeight+'px;"></div>'},o.prototype._shouldRenderThis=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},o.prototype._shouldRenderOther=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},o}(wt),Xt=function(k){Ze(o,k);function o(){return k!==null&&k.apply(this,arguments)||this}return o.prototype._renderOne=function(t){var i="current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"");return'<div class="'+i+'" style="width:'+this._contentLeft+"px; height:"+this._lineHeight+'px;"></div>'},o.prototype._shouldRenderThis=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},o.prototype._shouldRenderOther=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},o}(wt);Object(Z.e)(function(k,o){at=!1;var t=k.getColor(dt.i);if(t&&(o.addRule(".monaco-editor .view-overlays .current-line { background-color: "+t+"; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+t+"; border: none; }")),!t||t.isTransparent()||k.defines(dt.j)){var i=k.getColor(dt.j);i&&(at=!0,o.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),k.type==="hc"&&(o.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});var no=e("Vtyv"),uo=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),go=function(k){uo(o,k);function o(t){var i=k.call(this)||this;i._context=t;var l=i._context.configuration.options;return i._lineHeight=l.get(49),i._typicalHalfwidthCharacterWidth=l.get(34).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,k.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.prepareRender=function(t){for(var i=t.getDecorationsInViewport(),l=[],g=0,te=0,Ae=i.length;te<Ae;te++){var Se=i[te];Se.options.className&&(l[g++]=Se)}l=l.sort(function(Bt,Ht){if(Bt.options.zIndex<Ht.options.zIndex)return-1;if(Bt.options.zIndex>Ht.options.zIndex)return 1;var qt=Bt.options.className,$t=Ht.options.className;return qt<$t?-1:qt>$t?1:ye.a.compareRangesUsingStarts(Bt.range,Ht.range)});for(var qe=t.visibleRange.startLineNumber,ct=t.visibleRange.endLineNumber,_t=[],tt=qe;tt<=ct;tt++){var kt=tt-qe;_t[kt]=""}this._renderWholeLineDecorations(t,l,_t),this._renderNormalDecorations(t,l,_t),this._renderResult=_t},o.prototype._renderWholeLineDecorations=function(t,i,l){for(var g=String(this._lineHeight),te=t.visibleRange.startLineNumber,Ae=t.visibleRange.endLineNumber,Se=0,qe=i.length;Se<qe;Se++){var ct=i[Se];if(!ct.options.isWholeLine)continue;for(var _t='<div class="cdr '+ct.options.className+'" style="left:0;width:100%;height:'+g+'px;"></div>',tt=Math.max(ct.range.startLineNumber,te),kt=Math.min(ct.range.endLineNumber,Ae),Bt=tt;Bt<=kt;Bt++){var Ht=Bt-te;l[Ht]+=_t}}},o.prototype._renderNormalDecorations=function(t,i,l){for(var g=String(this._lineHeight),te=t.visibleRange.startLineNumber,Ae=null,Se=!1,qe=null,ct=0,_t=i.length;ct<_t;ct++){var tt=i[ct];if(tt.options.isWholeLine)continue;var kt=tt.options.className,Bt=Boolean(tt.options.showIfCollapsed),Ht=tt.range;if(Bt&&Ht.endColumn===1&&Ht.endLineNumber!==Ht.startLineNumber&&(Ht=new ye.a(Ht.startLineNumber,Ht.startColumn,Ht.endLineNumber-1,this._context.model.getLineMaxColumn(Ht.endLineNumber-1))),Ae===kt&&Se===Bt&&ye.a.areIntersectingOrTouching(qe,Ht)){qe=ye.a.plusRange(qe,Ht);continue}Ae!==null&&this._renderNormalDecoration(t,qe,Ae,Se,g,te,l),Ae=kt,Se=Bt,qe=Ht}Ae!==null&&this._renderNormalDecoration(t,qe,Ae,Se,g,te,l)},o.prototype._renderNormalDecoration=function(t,i,l,g,te,Ae,Se){var qe=t.linesVisibleRangesForRange(i,l==="findMatch");if(!qe)return;for(var ct=0,_t=qe.length;ct<_t;ct++){var tt=qe[ct];if(tt.outsideRenderedLine)continue;var kt=tt.lineNumber-Ae;if(g&&tt.ranges.length===1){var Bt=tt.ranges[0];Bt.width===0&&(tt.ranges[0]=new Ke(Bt.left,this._typicalHalfwidthCharacterWidth))}for(var Ht=0,qt=tt.ranges.length;Ht<qt;Ht++){var $t=tt.ranges[Ht],io='<div class="cdr '+l+'" style="left:'+String($t.left)+"px;width:"+String($t.width)+"px;height:"+te+'px;"></div>';Se[kt]+=io}}},o.prototype.render=function(t,i){if(!this._renderResult)return"";var l=i-t;return l<0||l>=this._renderResult.length?"":this._renderResult[l]},o}(je),Ao=e("GJhM"),To=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),_o=function(k){To(o,k);function o(t,i,l,g){var te=k.call(this,t)||this,Ae=te._context.configuration.options,Se=Ae.get(78),qe=Ae.get(56),ct=Ae.get(27),_t={listenOnDomNode:l.domNode,className:"editor-scrollable "+Object(Z.d)(t.theme.type),useShadows:!1,lazyRender:!0,vertical:Se.vertical,horizontal:Se.horizontal,verticalHasArrows:Se.verticalHasArrows,horizontalHasArrows:Se.horizontalHasArrows,verticalScrollbarSize:Se.verticalScrollbarSize,verticalSliderSize:Se.verticalSliderSize,horizontalScrollbarSize:Se.horizontalScrollbarSize,horizontalSliderSize:Se.horizontalSliderSize,handleMouseWheel:Se.handleMouseWheel,alwaysConsumeMouseWheel:Se.alwaysConsumeMouseWheel,arrowSize:Se.arrowSize,mouseWheelScrollSensitivity:qe,fastScrollSensitivity:ct};te.scrollbar=te._register(new Ao.c(i.domNode,_t,te._context.viewLayout.getScrollable())),ae.write(te.scrollbar.getDomNode(),5),te.scrollbarDomNode=Object(b.b)(te.scrollbar.getDomNode()),te.scrollbarDomNode.setPosition("absolute"),te._setLayout();var tt=function(kt,Bt,Ht){var qt={};if(Bt){var $t=kt.scrollTop;$t&&(qt.scrollTop=te._context.viewLayout.getCurrentScrollTop()+$t,kt.scrollTop=0)}if(Ht){var io=kt.scrollLeft;io&&(qt.scrollLeft=te._context.viewLayout.getCurrentScrollLeft()+io,kt.scrollLeft=0)}te._context.viewLayout.setScrollPositionNow(qt)};return te._register(J.j(l.domNode,"scroll",function(kt){return tt(l.domNode,!0,!0)})),te._register(J.j(i.domNode,"scroll",function(kt){return tt(i.domNode,!0,!1)})),te._register(J.j(g.domNode,"scroll",function(kt){return tt(g.domNode,!0,!1)})),te._register(J.j(te.scrollbarDomNode.domNode,"scroll",function(kt){return tt(te.scrollbarDomNode.domNode,!0,!1)})),te}return o.prototype.dispose=function(){k.prototype.dispose.call(this)},o.prototype._setLayout=function(){var t=this._context.configuration.options,i=t.get(107);this.scrollbarDomNode.setLeft(i.contentLeft);var l=t.get(54),g=l.side;g==="right"?this.scrollbarDomNode.setWidth(i.contentWidth+i.minimapWidth):this.scrollbarDomNode.setWidth(i.contentWidth),this.scrollbarDomNode.setHeight(i.height)},o.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},o.prototype.getDomNode=function(){return this.scrollbarDomNode},o.prototype.delegateVerticalScrollbarMouseDown=function(t){this.scrollbar.delegateVerticalScrollbarMouseDown(t)},o.prototype.onConfigurationChanged=function(t){if(t.hasChanged(78)||t.hasChanged(56)||t.hasChanged(27)){var i=this._context.configuration.options,l=i.get(78),g=i.get(56),te=i.get(27),Ae={handleMouseWheel:l.handleMouseWheel,mouseWheelScrollSensitivity:g,fastScrollSensitivity:te};this.scrollbar.updateOptions(Ae)}return t.hasChanged(107)&&this._setLayout(),!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onThemeChanged=function(t){return this.scrollbar.updateClassName("editor-scrollable "+Object(Z.d)(this._context.theme.type)),!0},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this.scrollbar.renderNow()},o}(B),No=e("hHjc"),Qo=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Do=function(){function k(o,t,i){this.startLineNumber=+o,this.endLineNumber=+t,this.className=String(i)}return k}(),Lo=function(k){Qo(o,k);function o(){return k!==null&&k.apply(this,arguments)||this}return o.prototype._render=function(t,i,l){for(var g=[],te=t;te<=i;te++){var Ae=te-t;g[Ae]=[]}if(l.length===0)return g;l.sort(function($t,io){return $t.className===io.className?$t.startLineNumber===io.startLineNumber?$t.endLineNumber-io.endLineNumber:$t.startLineNumber-io.startLineNumber:$t.className<io.className?-1:1});for(var Se=null,qe=0,ct=0,_t=l.length;ct<_t;ct++){var tt=l[ct],kt=tt.className,Bt=Math.max(tt.startLineNumber,t)-t,Ht=Math.min(tt.endLineNumber,i)-t;Se===kt?(Bt=Math.max(qe+1,Bt),qe=Math.max(qe,Ht)):(Se=kt,qe=Ht);for(var qt=Bt;qt<=qe;qt++)g[qt].push(Se)}return g},o}(je),vn=function(k){Qo(o,k);function o(t){var i=k.call(this)||this;i._context=t;var l=i._context.configuration.options,g=l.get(107);return i._lineHeight=l.get(49),i._glyphMargin=l.get(40),i._glyphMarginLeft=g.glyphMarginLeft,i._glyphMarginWidth=g.glyphMarginWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,k.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,l=i.get(107);return this._lineHeight=i.get(49),this._glyphMargin=i.get(40),this._glyphMarginLeft=l.glyphMarginLeft,this._glyphMarginWidth=l.glyphMarginWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),l=[],g=0,te=0,Ae=i.length;te<Ae;te++){var Se=i[te],qe=Se.options.glyphMarginClassName;qe&&(l[g++]=new Do(Se.range.startLineNumber,Se.range.endLineNumber,qe))}return l},o.prototype.prepareRender=function(t){if(!this._glyphMargin){this._renderResult=null;return}for(var i=t.visibleRange.startLineNumber,l=t.visibleRange.endLineNumber,g=this._render(i,l,this._getDecorations(t)),te=this._lineHeight.toString(),Ae=this._glyphMarginLeft.toString(),Se=this._glyphMarginWidth.toString(),qe='" style="left:'+Ae+"px;width:"+Se+"px;height:"+te+'px;"></div>',ct=[],_t=i;_t<=l;_t++){var tt=_t-i,kt=g[tt];kt.length===0?ct[tt]="":ct[tt]='<div class="cgmr codicon '+kt.join(" ")+qe}this._renderResult=ct},o.prototype.render=function(t,i){if(!this._renderResult)return"";var l=i-t;return l<0||l>=this._renderResult.length?"":this._renderResult[l]},o}(Lo),hn=e("C6rC"),En=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),qo=function(k){En(o,k);function o(t){var i=k.call(this)||this;i._context=t,i._primaryLineNumber=0;var l=i._context.configuration.options,g=l.get(108),te=l.get(34);return i._lineHeight=l.get(49),i._spaceWidth=te.spaceWidth,i._enabled=l.get(70),i._activeIndentEnabled=l.get(43),i._maxIndentLeft=g.wrappingColumn===-1?-1:g.wrappingColumn*te.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,k.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,l=i.get(108),g=i.get(34);return this._lineHeight=i.get(49),this._spaceWidth=g.spaceWidth,this._enabled=i.get(70),this._activeIndentEnabled=i.get(43),this._maxIndentLeft=l.wrappingColumn===-1?-1:l.wrappingColumn*g.typicalHalfwidthCharacterWidth,!0},o.prototype.onCursorStateChanged=function(t){var i=t.selections[0],l=i.isEmpty()?i.positionLineNumber:0;return this._primaryLineNumber!==l?(this._primaryLineNumber=l,!0):!1},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onLanguageConfigurationChanged=function(t){return!0},o.prototype.prepareRender=function(t){if(!this._enabled){this._renderResult=null;return}var i=t.visibleRange.startLineNumber,l=t.visibleRange.endLineNumber,g=this._context.model.getOptions().indentSize,te=g*this._spaceWidth,Ae=t.scrollWidth,Se=this._lineHeight,qe=this._context.model.getLinesIndentGuides(i,l),ct=0,_t=0,tt=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var kt=this._context.model.getActiveIndentGuide(this._primaryLineNumber,i,l);ct=kt.startLineNumber,_t=kt.endLineNumber,tt=kt.indent}for(var Bt=[],Ht=i;Ht<=l;Ht++){var qt=ct<=Ht&&Ht<=_t,$t=Ht-i,io=qe[$t],yo="";if(io>=1)for(var po=t.visibleRangeForPosition(new se.a(Ht,1)),bo=po?po.left:0,vo=1;vo<=io;vo++){var Co=qt&&vo===tt?"cigra":"cigr";if(yo+='<div class="'+Co+'" style="left:'+bo+"px;height:"+Se+"px;width:"+te+'px"></div>',bo+=te,bo>Ae||this._maxIndentLeft>0&&bo>this._maxIndentLeft)break}Bt[$t]=yo}this._renderResult=Bt},o.prototype.render=function(t,i){if(!this._renderResult)return"";var l=i-t;return l<0||l>=this._renderResult.length?"":this._renderResult[l]},o}(je);Object(Z.e)(function(k,o){var t=k.getColor(dt.h);t&&o.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+t+" inset; }");var i=k.getColor(dt.a)||t;i&&o.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});var xn=e("OKK6"),Un=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),An=function(){function k(){this._currentVisibleRange=new ye.a(1,1,1,1)}return k.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},k.prototype.setCurrentVisibleRange=function(o){this._currentVisibleRange=o},k}(),si=function(){function k(o,t,i,l,g,te){this.lineNumber=o,this.startColumn=t,this.endColumn=i,this.startScrollTop=l,this.stopScrollTop=g,this.scrollType=te}return k}(),ai=function(k){Un(o,k);function o(t,i){var l=k.call(this,t)||this;l._linesContent=i,l._textRangeRestingSpot=document.createElement("div"),l._visibleLines=new Vt(l),l.domNode=l._visibleLines.domNode;var g=l._context.configuration,te=l._context.configuration.options,Ae=te.get(34),Se=te.get(108);return l._lineHeight=te.get(49),l._typicalHalfwidthCharacterWidth=Ae.typicalHalfwidthCharacterWidth,l._isViewportWrapping=Se.isViewportWrapping,l._revealHorizontalRightPadding=te.get(75),l._cursorSurroundingLines=te.get(19),l._cursorSurroundingLinesStyle=te.get(20),l._canUseLayerHinting=!te.get(22),l._viewLineOptions=new Ee(g,l._context.theme.type),ae.write(l.domNode,7),l.domNode.setClassName("view-lines"),U.a.applyFontInfo(l.domNode,Ae),l._maxLineWidth=0,l._asyncUpdateLineWidths=new v.d(function(){l._updateLineWidthsSlow()},200),l._lastRenderedData=new An,l._horizontalRevealRequest=null,l}return o.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),k.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this.domNode},o.prototype.createVisibleLine=function(){return new Te(this._viewLineOptions)},o.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t),t.hasChanged(108)&&(this._maxLineWidth=0);var i=this._context.configuration.options,l=i.get(34),g=i.get(108);return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=l.typicalHalfwidthCharacterWidth,this._isViewportWrapping=g.isViewportWrapping,this._revealHorizontalRightPadding=i.get(75),this._cursorSurroundingLines=i.get(19),this._cursorSurroundingLinesStyle=i.get(20),this._canUseLayerHinting=!i.get(22),U.a.applyFontInfo(this.domNode,l),this._onOptionsMaybeChanged(),t.hasChanged(107)&&(this._maxLineWidth=0),!0},o.prototype._onOptionsMaybeChanged=function(){var t=this._context.configuration,i=new Ee(t,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;for(var l=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),te=l;te<=g;te++){var Ae=this._visibleLines.getVisibleLine(te);Ae.onOptionsChanged(this._viewLineOptions)}return!0}return!1},o.prototype.onCursorStateChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),g=!1,te=i;te<=l;te++)g=this._visibleLines.getVisibleLine(te).onSelectionChanged()||g;return g},o.prototype.onDecorationsChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),g=i;g<=l;g++)this._visibleLines.getVisibleLine(g).onDecorationsChanged();return!0},o.prototype.onFlushed=function(t){var i=this._visibleLines.onFlushed(t);return this._maxLineWidth=0,i},o.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},o.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},o.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},o.prototype.onRevealRangeRequest=function(t){var i=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),t.source,t.range,t.verticalType),l=this._context.viewLayout.validateScrollPosition({scrollTop:i});t.revealHorizontal?t.range.startLineNumber!==t.range.endLineNumber?l={scrollTop:l.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new si(t.range.startLineNumber,t.range.startColumn,t.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),l.scrollTop,t.scrollType):this._horizontalRevealRequest=null;var g=Math.abs(this._context.viewLayout.getCurrentScrollTop()-l.scrollTop);return t.scrollType===0&&g>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(l):this._context.viewLayout.setScrollPositionNow(l),!0},o.prototype.onScrollChanged=function(t){if(this._horizontalRevealRequest&&t.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&t.scrollTopChanged){var i=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),l=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(t.scrollTop<i||t.scrollTop>l)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(t.scrollWidth),this._visibleLines.onScrollChanged(t)||!0},o.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},o.prototype.onZonesChanged=function(t){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(t)},o.prototype.onThemeChanged=function(t){return this._onOptionsMaybeChanged()},o.prototype.getPositionFromDOMInfo=function(t,i){var l=this._getViewLineDomNode(t);if(l===null)return null;var g=this._getLineNumberFor(l);if(g===-1)return null;if(g<1||g>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(g)===1)return new se.a(g,1);var te=this._visibleLines.getStartLineNumber(),Ae=this._visibleLines.getEndLineNumber();if(g<te||g>Ae)return null;var Se=this._visibleLines.getVisibleLine(g).getColumnOfNodeOffset(g,t,i),qe=this._context.model.getLineMinColumn(g);return Se<qe&&(Se=qe),new se.a(g,Se)},o.prototype._getViewLineDomNode=function(t){for(;t&&t.nodeType===1;){if(t.className===Te.CLASS_NAME)return t;t=t.parentElement}return null},o.prototype._getLineNumberFor=function(t){for(var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),g=i;g<=l;g++){var te=this._visibleLines.getVisibleLine(g);if(t===te.getDomNode())return g}return-1},o.prototype.getLineWidth=function(t){var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber();return t<i||t>l?-1:this._visibleLines.getVisibleLine(t).getWidth()},o.prototype.linesVisibleRangesForRange=function(t,i){if(this.shouldRender())return null;var l=t.endLineNumber,g=ye.a.intersectRanges(t,this._lastRenderedData.getCurrentVisibleRange());if(!g)return null;var te=[],Ae=0,Se=new ge(this.domNode.domNode,this._textRangeRestingSpot),qe=0;i&&(qe=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new se.a(g.startLineNumber,1)).lineNumber);for(var ct=this._visibleLines.getStartLineNumber(),_t=this._visibleLines.getEndLineNumber(),tt=g.startLineNumber;tt<=g.endLineNumber;tt++){if(tt<ct||tt>_t)continue;var kt=tt===g.startLineNumber?g.startColumn:1,Bt=tt===g.endLineNumber?g.endColumn:this._context.model.getLineMaxColumn(tt),Ht=this._visibleLines.getVisibleLine(tt).getVisibleRangesForRange(kt,Bt,Se);if(!Ht)continue;if(i&&tt<l){var qt=qe;qe=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new se.a(tt+1,1)).lineNumber,qt!==qe&&(Ht.ranges[Ht.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}te[Ae++]=new Be(Ht.outsideRenderedLine,tt,Ht.ranges)}return Ae===0?null:te},o.prototype._visibleRangesForLineRange=function(t,i,l){return this.shouldRender()||(t<this._visibleLines.getStartLineNumber()||t>this._visibleLines.getEndLineNumber())?null:this._visibleLines.getVisibleLine(t).getVisibleRangesForRange(i,l,new ge(this.domNode.domNode,this._textRangeRestingSpot))},o.prototype.visibleRangeForPosition=function(t){var i=this._visibleRangesForLineRange(t.lineNumber,t.column,t.column);return i?new Fe(i.outsideRenderedLine,i.ranges[0].left):null},o.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},o.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},o.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},o.prototype._updateLineWidths=function(t){for(var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),g=1,te=!0,Ae=i;Ae<=l;Ae++){var Se=this._visibleLines.getVisibleLine(Ae);if(t&&!Se.getWidthIsFast()){te=!1;continue}g=Math.max(g,Se.getWidth())}return te&&i===1&&l===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(g),te},o.prototype.prepareRender=function(){throw new Error("Not supported")},o.prototype.render=function(){throw new Error("Not supported")},o.prototype.renderText=function(t){if(this._visibleLines.renderLines(t),this._lastRenderedData.setCurrentVisibleRange(t.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var i=this._horizontalRevealRequest.lineNumber,l=this._horizontalRevealRequest.startColumn,g=this._horizontalRevealRequest.endColumn,te=this._horizontalRevealRequest.scrollType;if(t.startLineNumber<=i&&i<=t.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var Ae=this._computeScrollLeftToRevealRange(i,l,g),Se=this._isViewportWrapping;Se||this._ensureMaxLineWidth(Ae.maxHorizontalOffset),te===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:Ae.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:Ae.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var qe=this._context.viewLayout.getCurrentScrollTop()-t.bigNumbersDelta;this._linesContent.setTop(-qe),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},o.prototype._ensureMaxLineWidth=function(t){var i=Math.ceil(t);this._maxLineWidth<i&&(this._maxLineWidth=i,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},o.prototype._computeScrollTopToRevealRange=function(t,i,l,g){var te=t.top,Ae=t.height,Se=te+Ae,qe,ct;qe=this._context.viewLayout.getVerticalOffsetForLineNumber(l.startLineNumber),ct=this._context.viewLayout.getVerticalOffsetForLineNumber(l.endLineNumber)+this._lineHeight;var _t=i==="mouse"&&this._cursorSurroundingLinesStyle==="default";if(!_t){var tt=Math.min(Ae/this._lineHeight/2,this._cursorSurroundingLines);qe-=tt*this._lineHeight,ct+=Math.max(0,tt-1)*this._lineHeight}(g===0||g===4)&&(ct+=this._lineHeight);var kt;if(ct-qe>Ae)kt=qe;else if(g===1||g===2)if(g===2&&te<=qe&&ct<=Se)kt=te;else{var Bt=(qe+ct)/2;kt=Math.max(0,Bt-Ae/2)}else kt=this._computeMinimumScrolling(te,Se,qe,ct,g===3,g===4);return kt},o.prototype._computeScrollLeftToRevealRange=function(t,i,l){var g=0,te=this._context.viewLayout.getCurrentViewport(),Ae=te.left,Se=Ae+te.width,qe=this._visibleRangesForLineRange(t,i,l),ct=1073741824,_t=0;if(!qe)return{scrollLeft:Ae,maxHorizontalOffset:g};for(var tt=0,kt=qe.ranges;tt<kt.length;tt++){var Bt=kt[tt];Bt.left<ct&&(ct=Bt.left),Bt.left+Bt.width>_t&&(_t=Bt.left+Bt.width)}g=_t,ct=Math.max(0,ct-o.HORIZONTAL_EXTRA_PX),_t+=this._revealHorizontalRightPadding;var Ht=this._computeMinimumScrolling(Ae,Se,ct,_t);return{scrollLeft:Ht,maxHorizontalOffset:g}},o.prototype._computeMinimumScrolling=function(t,i,l,g,te,Ae){t=t|0,i=i|0,l=l|0,g=g|0,te=!!te,Ae=!!Ae;var Se=i-t,qe=g-l;if(qe<Se){if(te)return l;if(Ae)return Math.max(0,g-Se);if(l<t)return l;if(g>i)return Math.max(0,g-Se)}else return l;return t},o.HORIZONTAL_EXTRA_PX=30,o}(B),Pn=e("J+ZK"),bi=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Yr=function(k){bi(o,k);function o(t){var i=k.call(this)||this;i._context=t;var l=i._context.configuration.options,g=l.get(107);return i._decorationsLeft=g.decorationsLeft,i._decorationsWidth=g.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,k.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,l=i.get(107);return this._decorationsLeft=l.decorationsLeft,this._decorationsWidth=l.decorationsWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),l=[],g=0,te=0,Ae=i.length;te<Ae;te++){var Se=i[te],qe=Se.options.linesDecorationsClassName;qe&&(l[g++]=new Do(Se.range.startLineNumber,Se.range.endLineNumber,qe))}return l},o.prototype.prepareRender=function(t){for(var i=t.visibleRange.startLineNumber,l=t.visibleRange.endLineNumber,g=this._render(i,l,this._getDecorations(t)),te=this._decorationsLeft.toString(),Ae=this._decorationsWidth.toString(),Se='" style="left:'+te+"px;width:"+Ae+'px;"></div>',qe=[],ct=i;ct<=l;ct++){for(var _t=ct-i,tt=g[_t],kt="",Bt=0,Ht=tt.length;Bt<Ht;Bt++)kt+='<div class="cldr '+tt[Bt]+Se;qe[_t]=kt}this._renderResult=qe},o.prototype.render=function(t,i){return this._renderResult?this._renderResult[i-t]:""},o}(Lo),oa=e("XXBq"),zi=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ki=function(k){zi(o,k);function o(t){var i=k.call(this)||this;return i._context=t,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,k.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){return!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),l=[],g=0,te=0,Ae=i.length;te<Ae;te++){var Se=i[te],qe=Se.options.marginClassName;qe&&(l[g++]=new Do(Se.range.startLineNumber,Se.range.endLineNumber,qe))}return l},o.prototype.prepareRender=function(t){for(var i=t.visibleRange.startLineNumber,l=t.visibleRange.endLineNumber,g=this._render(i,l,this._getDecorations(t)),te=[],Ae=i;Ae<=l;Ae++){for(var Se=Ae-i,qe=g[Se],ct="",_t=0,tt=qe.length;_t<tt;_t++)ct+='<div class="cmdr '+qe[_t]+'" style=""></div>';te[Se]=ct}this._renderResult=te},o.prototype.render=function(t,i){return this._renderResult?this._renderResult[i-t]:""},o}(Lo),Zr=e("8gvo"),Gi=function(){function k(o,t,i,l){this.r=k._clamp(o),this.g=k._clamp(t),this.b=k._clamp(i),this.a=k._clamp(l)}return k._clamp=function(o){return o<0?0:o>255?255:o|0},k.Empty=new k(0,0,0,0),k}(),$o=e("twdY"),li=function(){function k(){var o=this;this._onDidChange=new H.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),$o.B.onDidChange(function(t){t.changedColorMap&&o._updateColorMap()})}return k.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new k),this._INSTANCE},k.prototype._updateColorMap=function(){var o=$o.B.getColorMap();if(!o){this._colors=[Gi.Empty],this._backgroundIsLight=!0;return}this._colors=[Gi.Empty];for(var t=1;t<o.length;t++){var i=o[t].rgba;this._colors[t]=new Gi(i.r,i.g,i.b,Math.round(i.a*255))}var l=o[2].getRelativeLuminance();this._backgroundIsLight=l>=.5,this._onDidChange.fire(void 0)},k.prototype.getColor=function(o){return(o<1||o>=this._colors.length)&&(o=2),this._colors[o]},k.prototype.backgroundIsLight=function(){return this._backgroundIsLight},k._INSTANCE=null,k}(),On=e("MD5Z"),yr=function(){for(var k=[],o=32;o<=126;o++)k.push(o);return k.push(65533),k}(),Qr=function(k,o){return k-=32,k<0||k>96?o<=2?(k+96)%96:96-1:k},Dn=function(){function k(o,t){this.scale=t,this.charDataNormal=k.soften(o,12/15),this.charDataLight=k.soften(o,50/60)}return k.soften=function(o,t){for(var i=new Uint8ClampedArray(o.length),l=0,g=o.length;l<g;l++)i[l]=o[l]*t;return i},k.prototype.renderChar=function(o,t,i,l,g,te,Ae,Se){var qe=1*this.scale,ct=2*this.scale;if(t+qe>o.width||i+ct>o.height){console.warn("bad render request outside image data");return}for(var _t=Se?this.charDataLight:this.charDataNormal,tt=Qr(l,Ae),kt=o.width*4,Bt=te.r,Ht=te.g,qt=te.b,$t=g.r-Bt,io=g.g-Ht,yo=g.b-qt,po=o.data,bo=tt*qe*ct,vo=i*kt+t*4,Co=0;Co<ct;Co++){for(var Mo=vo,Ko=0;Ko<qe;Ko++){var zo=_t[bo++]/255;po[Mo++]=Bt+$t*zo,po[Mo++]=Ht+io*zo,po[Mo++]=qt+yo*zo,Mo++}vo+=kt}},k.prototype.blockRenderChar=function(o,t,i,l,g,te){var Ae=1*this.scale,Se=2*this.scale;if(t+Ae>o.width||i+Se>o.height){console.warn("bad render request outside image data");return}for(var qe=o.width*4,ct=.5,_t=g.r,tt=g.g,kt=g.b,Bt=l.r-_t,Ht=l.g-tt,qt=l.b-kt,$t=_t+Bt*ct,io=tt+Ht*ct,yo=kt+qt*ct,po=o.data,bo=i*qe+t*4,vo=0;vo<Se;vo++){for(var Co=bo,Mo=0;Mo<Ae;Mo++)po[Co++]=$t,po[Co++]=io,po[Co++]=yo,Co++;bo+=qe}},k}(),Qn=e("C/vA"),Xi={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,A:10,B:11,C:12,D:13,E:14,F:15},br=function(k){for(var o=new Uint8ClampedArray(k.length/2),t=0;t<k.length;t+=2)o[t>>1]=Xi[k[t]]<<4|Xi[k[t+1]]&15;return o},Yi={1:Object(Qn.a)(function(){return br("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")}),2:Object(Qn.a)(function(){return br("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")})},di=function(){function k(){}return k.create=function(o,t){if(this.lastCreated&&o===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;var i;return Yi[o]?i=new Dn(Yi[o](),o):i=k.createFromSampleData(k.createSampleData(t).data,o),this.lastFontFamily=t,this.lastCreated=i,i},k.createSampleData=function(o){var t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=16+"px",t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font="bold "+16+"px "+o,i.textBaseline="middle";for(var l=0,g=0,te=yr;g<te.length;g++){var Ae=te[g];i.fillText(String.fromCharCode(Ae),l,16/2),l+=10}return i.getImageData(0,0,96*10,16)},k.createFromSampleData=function(o,t){var i=16*10*4*96;if(o.length!==i)throw new Error("Unexpected source in MinimapCharRenderer");var l=k._downsample(o,t);return new Dn(l,t)},k._downsampleChar=function(o,t,i,l,g){for(var te=1*g,Ae=2*g,Se=l,qe=0,ct=0;ct<Ae;ct++)for(var _t=ct/Ae*16,tt=(ct+1)/Ae*16,kt=0;kt<te;kt++){for(var Bt=kt/te*10,Ht=(kt+1)/te*10,qt=0,$t=0,io=_t;io<tt;io++)for(var yo=t+Math.floor(io)*3840,po=1-(io-Math.floor(io)),bo=Bt;bo<Ht;bo++){var vo=1-(bo-Math.floor(bo)),Co=yo+Math.floor(bo)*4,Mo=vo*po;$t+=Mo,qt+=o[Co]*o[Co+3]/255*Mo}var Ko=qt/$t;qe=Math.max(qe,Ko),i[Se++]=Ko}return qe},k._downsample=function(o,t){for(var i=2*t*1*t,l=i*96,g=new Uint8ClampedArray(l),te=0,Ae=0,Se=0,qe=0;qe<96;qe++)Se=Math.max(Se,this._downsampleChar(o,Ae,g,te,t)),te+=i,Ae+=10*4;if(Se>0)for(var ct=255/Se,_t=0;_t<l;_t++)g[_t]*=ct;return g},k}(),Cr=e("M1Kb"),$r=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function _n(k,o){return k===1?2*o:(2+1)*o}function Zi(k,o){return k===1,1*o}var Jr=140,wn=2,Qi=function(){function k(o){var t=this,i=o.options,l=i.get(105),g=i.get(107),te=i.get(34);this.renderMinimap=g.renderMinimap|0,this.scrollBeyondLastLine=i.get(80);var Ae=i.get(54);this.showSlider=Ae.showSlider,this.fontScale=Math.round(Ae.scale*l),this.charRenderer=Object(Qn.a)(function(){return di.create(t.fontScale,te.fontFamily)}),this.pixelRatio=l,this.typicalHalfwidthCharacterWidth=te.typicalHalfwidthCharacterWidth,this.lineHeight=i.get(49),this.minimapLeft=g.minimapLeft,this.minimapWidth=g.minimapWidth,this.minimapHeight=g.height,this.canvasInnerWidth=Math.floor(l*this.minimapWidth),this.canvasInnerHeight=Math.floor(l*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/l,this.canvasOuterHeight=this.canvasInnerHeight/l}return k.prototype.equals=function(o){return this.renderMinimap===o.renderMinimap&&this.scrollBeyondLastLine===o.scrollBeyondLastLine&&this.showSlider===o.showSlider&&this.pixelRatio===o.pixelRatio&&this.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&this.lineHeight===o.lineHeight&&this.fontScale===o.fontScale&&this.minimapLeft===o.minimapLeft&&this.minimapWidth===o.minimapWidth&&this.minimapHeight===o.minimapHeight&&this.canvasInnerWidth===o.canvasInnerWidth&&this.canvasInnerHeight===o.canvasInnerHeight&&this.canvasOuterWidth===o.canvasOuterWidth&&this.canvasOuterHeight===o.canvasOuterHeight},k}(),qr=function(){function k(o,t,i,l,g,te,Ae){this.scrollTop=o,this.scrollHeight=t,this._computedSliderRatio=i,this.sliderTop=l,this.sliderHeight=g,this.startLineNumber=te,this.endLineNumber=Ae}return k.prototype.getDesiredScrollTopFromDelta=function(o){var t=this.sliderTop+o;return Math.round(t/this._computedSliderRatio)},k.prototype.getDesiredScrollTopFromTouchLocation=function(o){return Math.round((o-this.sliderHeight/2)/this._computedSliderRatio)},k.create=function(o,t,i,l,g,te,Ae,Se,qe){var ct=o.pixelRatio,_t=_n(o.renderMinimap,o.fontScale),tt=Math.floor(o.canvasInnerHeight/_t),kt=o.lineHeight,Bt;if(g&&i!==te){var Ht=i-t+1;Bt=Math.floor(Ht*_t/ct)}else{var qt=l/kt;Bt=Math.floor(qt*_t/ct)}var $t;o.scrollBeyondLastLine?$t=(te-1)*_t/ct:$t=Math.max(0,te*_t/ct-Bt),$t=Math.min(o.minimapHeight-Bt,$t);var io=$t/(Se-l),yo=Ae*io,po=0;if(o.scrollBeyondLastLine){var qt=l/kt;po=qt}if(tt>=te+po){var bo=1,vo=te;return new k(Ae,Se,io,yo,Bt,bo,vo)}else{var bo=Math.max(1,Math.floor(t-yo*ct/_t));qe&&qe.scrollHeight===Se&&(qe.scrollTop>Ae&&(bo=Math.min(bo,qe.startLineNumber)),qe.scrollTop<Ae&&(bo=Math.max(bo,qe.startLineNumber)));var vo=Math.min(te,bo+tt-1);return new k(Ae,Se,io,yo,Bt,bo,vo)}},k}(),$i=function(){function k(o){this.dy=o}return k.prototype.onContentChanged=function(){this.dy=-1},k.prototype.onTokensChanged=function(){this.dy=-1},k.INVALID=new k(-1),k}(),Er=function(){function k(o,t,i){this.renderedLayout=o,this._imageData=t,this._renderedLines=new Ut(function(){return $i.INVALID}),this._renderedLines._set(o.startLineNumber,i)}return k.prototype.linesEquals=function(o){if(!this.scrollEquals(o))return!1;for(var t=this._renderedLines._get(),i=t.lines,l=0,g=i.length;l<g;l++)if(i[l].dy===-1)return!1;return!0},k.prototype.scrollEquals=function(o){return this.renderedLayout.startLineNumber===o.startLineNumber&&this.renderedLayout.endLineNumber===o.endLineNumber},k.prototype._get=function(){var o=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:o.rendLineNumberStart,lines:o.lines}},k.prototype.onLinesChanged=function(o){return this._renderedLines.onLinesChanged(o.fromLineNumber,o.toLineNumber)},k.prototype.onLinesDeleted=function(o){this._renderedLines.onLinesDeleted(o.fromLineNumber,o.toLineNumber)},k.prototype.onLinesInserted=function(o){this._renderedLines.onLinesInserted(o.fromLineNumber,o.toLineNumber)},k.prototype.onTokensChanged=function(o){return this._renderedLines.onTokensChanged(o.ranges)},k}(),_r=function(){function k(o,t,i,l){this._backgroundFillData=k._createBackgroundFillData(t,i,l),this._buffers=[o.createImageData(t,i),o.createImageData(t,i)],this._lastUsedBuffer=0}return k.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var o=this._buffers[this._lastUsedBuffer];return o.data.set(this._backgroundFillData),o},k._createBackgroundFillData=function(o,t,i){for(var l=i.r,g=i.g,te=i.b,Ae=new Uint8ClampedArray(o*t*4),Se=0,qe=0;qe<t;qe++)for(var ct=0;ct<o;ct++)Ae[Se]=l,Ae[Se+1]=g,Ae[Se+2]=te,Ae[Se+3]=255,Se+=4;return Ae},k}(),es=function(k){$r(o,k);function o(t){var i=k.call(this,t)||this;return i._selections=[],i._renderDecorations=!1,i._gestureInProgress=!1,i._options=new Qi(i._context.configuration),i._lastRenderData=null,i._buffers=null,i._selectionColor=i._context.theme.getColor(On.Ib),i._domNode=Object(b.b)(document.createElement("div")),ae.write(i._domNode,8),i._domNode.setClassName(i._getMinimapDomNodeClassName()),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._shadow=Object(b.b)(document.createElement("div")),i._shadow.setClassName("minimap-shadow-hidden"),i._domNode.appendChild(i._shadow),i._canvas=Object(b.b)(document.createElement("canvas")),i._canvas.setPosition("absolute"),i._canvas.setLeft(0),i._domNode.appendChild(i._canvas),i._decorationsCanvas=Object(b.b)(document.createElement("canvas")),i._decorationsCanvas.setPosition("absolute"),i._decorationsCanvas.setClassName("minimap-decorations-layer"),i._decorationsCanvas.setLeft(0),i._domNode.appendChild(i._decorationsCanvas),i._slider=Object(b.b)(document.createElement("div")),i._slider.setPosition("absolute"),i._slider.setClassName("minimap-slider"),i._slider.setLayerHinting(!0),i._slider.setContain("strict"),i._domNode.appendChild(i._slider),i._sliderHorizontal=Object(b.b)(document.createElement("div")),i._sliderHorizontal.setPosition("absolute"),i._sliderHorizontal.setClassName("minimap-slider-horizontal"),i._slider.appendChild(i._sliderHorizontal),i._tokensColorTracker=li.getInstance(),i._applyLayout(),i._mouseDownListener=J.o(i._domNode.domNode,"mousedown",function(l){l.preventDefault();var g=i._options.renderMinimap;if(g===0)return;if(!i._lastRenderData)return;var te=_n(g,i._options.fontScale),Ae=i._options.pixelRatio*l.browserEvent.offsetY,Se=Math.floor(Ae/te),qe=Se+i._lastRenderData.renderedLayout.startLineNumber;qe=Math.min(qe,i._context.model.getLineCount()),i._context.privateViewEventBus.emit(new Cn("mouse",new ye.a(qe,1,qe,1),1,!1,0))}),i._sliderMouseMoveMonitor=new p.a,i._sliderMouseDownListener=J.o(i._slider.domNode,"mousedown",function(l){if(l.preventDefault(),l.stopPropagation(),l.leftButton&&i._lastRenderData){var g=l.posy,te=l.posx,Ae=i._lastRenderData.renderedLayout;i._slider.toggleClassName("active",!0),i._sliderMouseMoveMonitor.startMonitoring(l.target,l.buttons,p.b,function(Se){var qe=Math.abs(Se.posx-te);if(O.h&&qe>Jr){i._context.viewLayout.setScrollPositionNow({scrollTop:Ae.scrollTop});return}var ct=Se.posy-g;i._context.viewLayout.setScrollPositionNow({scrollTop:Ae.getDesiredScrollTopFromDelta(ct)})},function(){i._slider.toggleClassName("active",!1)})}}),i._gestureDisposable=m.b.addTarget(i._domNode.domNode),i._sliderTouchStartListener=J.j(i._domNode.domNode,m.a.Start,function(l){l.preventDefault(),l.stopPropagation(),i._lastRenderData&&(i._slider.toggleClassName("active",!0),i._gestureInProgress=!0,i.scrollDueToTouchEvent(l))}),i._sliderTouchMoveListener=J.o(i._domNode.domNode,m.a.Change,function(l){l.preventDefault(),l.stopPropagation(),i._lastRenderData&&i._gestureInProgress&&i.scrollDueToTouchEvent(l)}),i._sliderTouchEndListener=J.o(i._domNode.domNode,m.a.End,function(l){l.preventDefault(),l.stopPropagation(),i._gestureInProgress=!1,i._slider.toggleClassName("active",!1)}),i}return o.prototype.scrollDueToTouchEvent=function(t){var i=this._domNode.domNode.getBoundingClientRect().top,l=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(t.pageY-i);this._context.viewLayout.setScrollPositionNow({scrollTop:l})},o.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),k.prototype.dispose.call(this)},o.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},o.prototype.getDomNode=function(){return this._domNode},o.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},o.prototype._getBuffer=function(){return this._buffers||this._options.canvasInnerWidth>0&&this._options.canvasInnerHeight>0&&(this._buffers=new _r(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},o.prototype._onOptionsMaybeChanged=function(){var t=new Qi(this._context.configuration);return this._options.equals(t)?!1:(this._options=t,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},o.prototype.onConfigurationChanged=function(t){return this._onOptionsMaybeChanged()},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._renderDecorations=!0,!0},o.prototype.onFlushed=function(t){return this._lastRenderData=null,!0},o.prototype.onLinesChanged=function(t){return this._lastRenderData?this._lastRenderData.onLinesChanged(t):!1},o.prototype.onLinesDeleted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(t),!0},o.prototype.onLinesInserted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(t),!0},o.prototype.onScrollChanged=function(t){return this._renderDecorations=!0,!0},o.prototype.onTokensChanged=function(t){return this._lastRenderData?this._lastRenderData.onTokensChanged(t):!1},o.prototype.onTokensColorsChanged=function(t){return this._lastRenderData=null,this._buffers=null,!0},o.prototype.onZonesChanged=function(t){return this._lastRenderData=null,!0},o.prototype.onDecorationsChanged=function(t){return this._renderDecorations=!0,!0},o.prototype.onThemeChanged=function(t){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(On.Ib),this._renderDecorations=!0,!0},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){var i=this._options.renderMinimap;if(i===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}t.scrollLeft+t.viewportWidth>=t.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var l=qr.create(this._options,t.visibleRange.startLineNumber,t.visibleRange.endLineNumber,t.viewportHeight,t.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),t.scrollTop,t.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(l.sliderTop),this._slider.setHeight(l.sliderHeight);var g=t.scrollLeft/this._options.typicalHalfwidthCharacterWidth,te=Math.min(this._options.minimapWidth,Math.round(g*Zi(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(te),this._sliderHorizontal.setWidth(this._options.minimapWidth-te),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(l.sliderHeight),this.renderDecorations(l),this._lastRenderData=this.renderLines(l)},o.prototype.renderDecorations=function(t){if(this._renderDecorations){this._renderDecorations=!1;var i=this._context.model.getDecorationsInViewport(new ye.a(t.startLineNumber,1,t.endLineNumber,this._context.model.getLineMaxColumn(t.endLineNumber))),l=this._options,g=l.renderMinimap,te=l.canvasInnerWidth,Ae=l.canvasInnerHeight,Se=_n(g,this._options.fontScale),qe=Zi(g,this._options.fontScale),ct=this._context.model.getOptions().tabSize,_t=this._decorationsCanvas.domNode.getContext("2d");_t.clearRect(0,0,te,Ae);for(var tt=new Map,kt=0;kt<this._selections.length;kt++)for(var Bt=this._selections[kt],Ht=Bt.startLineNumber;Ht<=Bt.endLineNumber;Ht++)this.renderDecorationOnLine(_t,tt,Bt,this._selectionColor,t,Ht,Se,Se,ct,qe);for(var kt=0;kt<i.length;kt++){var qt=i[kt];if(!qt.options.minimap)continue;for(var $t=qt.options.minimap.getColor(this._context.theme),Ht=qt.range.startLineNumber;Ht<=qt.range.endLineNumber;Ht++)switch(qt.options.minimap.position){case Cr.c.Inline:this.renderDecorationOnLine(_t,tt,qt.range,$t,t,Ht,Se,Se,ct,qe);continue;case Cr.c.Gutter:var io=(Ht-t.startLineNumber)*Se,yo=2;this.renderDecoration(_t,$t,yo,io,wn,Se);continue}}}},o.prototype.renderDecorationOnLine=function(t,i,l,g,te,Ae,Se,qe,ct,_t){var tt=(Ae-te.startLineNumber)*qe;if(tt+Se<0||tt>this._options.canvasInnerHeight)return;var kt=i.get(Ae),Bt=!kt;if(!kt){var Ht=this._context.model.getLineContent(Ae);kt=[ve.f];for(var qt=1;qt<Ht.length+1;qt++){var $t=Ht.charCodeAt(qt-1),io=$t===9?ct*_t:me.y($t)?2*_t:_t;kt[qt]=kt[qt-1]+io}i.set(Ae,kt)}var yo=l.startColumn,po=l.endColumn,bo=l.startLineNumber,vo=l.endLineNumber,Co=bo===Ae?kt[yo-1]:ve.f,Mo=vo>Ae?kt.length-1:po-1;if(Mo>0){var Ko=kt[Mo]-Co||2;this.renderDecoration(t,g,Co,tt,Ko,Se)}Bt&&this.renderLineHighlight(t,g,tt,Se)},o.prototype.renderLineHighlight=function(t,i,l,g){t.fillStyle=i&&i.transparent(.5).toString()||"",t.fillRect(ve.f,l,t.canvas.width,g)},o.prototype.renderDecoration=function(t,i,l,g,te,Ae){t.fillStyle=i&&i.toString()||"",t.fillRect(l,g,te,Ae)},o.prototype.renderLines=function(t){var i=this._options.renderMinimap,l=this._options.charRenderer(),g=t.startLineNumber,te=t.endLineNumber,Ae=_n(i,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(t)){var Se=this._lastRenderData._get();return new Er(t,Se.imageData,Se.lines)}var qe=this._getBuffer();if(!qe)return null;for(var ct=o._renderUntouchedLines(qe,g,te,Ae,this._lastRenderData),_t=ct[0],tt=ct[1],kt=ct[2],Bt=this._context.model.getMinimapLinesRenderingData(g,te,kt),Ht=Bt.tabSize,qt=this._tokensColorTracker.getColor(2),$t=this._tokensColorTracker.backgroundIsLight(),io=0,yo=[],po=0,bo=te-g+1;po<bo;po++)kt[po]&&o._renderLine(qe,qt,$t,i,this._tokensColorTracker,l,io,Ht,Bt.data[po],this._options.fontScale),yo[po]=new $i(io),io+=Ae;var vo=_t===-1?0:_t,Co=tt===-1?qe.height:tt,Mo=Co-vo,Ko=this._canvas.domNode.getContext("2d");return Ko.putImageData(qe,0,0,0,vo,qe.width,Mo),new Er(t,qe,yo)},o._renderUntouchedLines=function(t,i,l,g,te){var Ae=[];if(!te){for(var Se=0,qe=l-i+1;Se<qe;Se++)Ae[Se]=!0;return[-1,-1,Ae]}for(var ct=te._get(),_t=ct.imageData.data,tt=ct.rendLineNumberStart,kt=ct.lines,Bt=kt.length,Ht=t.width,qt=t.data,$t=(l-i+1)*g*Ht*4,io=-1,yo=-1,po=-1,bo=-1,vo=-1,Co=-1,Mo=0,Ko=i;Ko<=l;Ko++){var zo=Ko-i,ko=Ko-tt,fn=ko>=0&&ko<Bt?kt[ko].dy:-1;if(fn===-1){Ae[zo]=!0,Mo+=g;continue}var In=fn*Ht*4,ln=(fn+g)*Ht*4,Nn=Mo*Ht*4,cn=(Mo+g)*Ht*4;bo===In&&Co===Nn?(bo=ln,Co=cn):(po!==-1&&(qt.set(_t.subarray(po,bo),vo),io===-1&&po===0&&po===vo&&(io=bo),yo===-1&&bo===$t&&po===vo&&(yo=po)),po=In,bo=ln,vo=Nn,Co=cn),Ae[zo]=!1,Mo+=g}po!==-1&&(qt.set(_t.subarray(po,bo),vo),io===-1&&po===0&&po===vo&&(io=bo),yo===-1&&bo===$t&&po===vo&&(yo=po));var Wn=io===-1?-1:io/(Ht*4),Fn=yo===-1?-1:yo/(Ht*4);return[Wn,Fn,Ae]},o._renderLine=function(t,i,l,g,te,Ae,Se,qe,ct,_t){for(var tt=ct.content,kt=ct.tokens,Bt=Zi(g,_t),Ht=t.width-Bt,qt=ve.f,$t=0,io=0,yo=0,po=kt.getCount();yo<po;yo++)for(var bo=kt.getEndOffset(yo),vo=kt.getForeground(yo),Co=te.getColor(vo);$t<bo;$t++){if(qt>Ht)return;var Mo=tt.charCodeAt($t);if(Mo===9){var Ko=qe-($t+io)%qe;io+=Ko-1,qt+=Ko*Bt}else if(Mo===32)qt+=Bt;else for(var zo=me.y(Mo)?2:1,ko=0;ko<zo;ko++)if(g===2?Ae.blockRenderChar(t,qt,Se,Co,i,l):Ae.renderChar(t,qt,Se,Mo,Co,i,_t,l),qt+=Bt,qt>Ht)return}},o}(B);Object(Z.e)(function(k,o){var t=k.getColor(On.Xb);if(t){var i=t.transparent(.5);o.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var l=k.getColor(On.Yb);if(l){var g=l.transparent(.5);o.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+g+"; }")}var te=k.getColor(On.Wb);if(te){var Ae=te.transparent(.5);o.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+Ae+"; }")}var Se=k.getColor(On.Vb);Se&&o.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+Se+" -6px 0 6px -6px inset; }")});var na=e("cl4r"),ts=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),wr=function(k){ts(o,k);function o(t){var i=k.call(this,t)||this,l=i._context.configuration.options,g=l.get(107);return i._widgets={},i._verticalScrollbarWidth=g.verticalScrollbarWidth,i._minimapWidth=g.minimapWidth,i._horizontalScrollbarHeight=g.horizontalScrollbarHeight,i._editorHeight=g.height,i._editorWidth=g.width,i._domNode=Object(b.b)(document.createElement("div")),ae.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return o.prototype.dispose=function(){k.prototype.dispose.call(this),this._widgets={}},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,l=i.get(107);return this._verticalScrollbarWidth=l.verticalScrollbarWidth,this._minimapWidth=l.minimapWidth,this._horizontalScrollbarHeight=l.horizontalScrollbarHeight,this._editorHeight=l.height,this._editorWidth=l.width,!0},o.prototype.addWidget=function(t){var i=Object(b.b)(t.getDomNode());this._widgets[t.getId()]={widget:t,preference:null,domNode:i},i.setPosition("absolute"),i.setAttribute("widgetId",t.getId()),this._domNode.appendChild(i),this.setShouldRender()},o.prototype.setWidgetPosition=function(t,i){var l=this._widgets[t.getId()];return l.preference===i?!1:(l.preference=i,this.setShouldRender(),!0)},o.prototype.removeWidget=function(t){var i=t.getId();if(this._widgets.hasOwnProperty(i)){var l=this._widgets[i],g=l.domNode.domNode;delete this._widgets[i],g.parentNode.removeChild(g),this.setShouldRender()}},o.prototype._renderWidget=function(t){var i=t.domNode;if(t.preference===null){i.unsetTop();return}if(t.preference===0)i.setTop(0),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(t.preference===1){var l=i.domNode.clientHeight;i.setTop(this._editorHeight-l-2*this._horizontalScrollbarHeight),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else t.preference===2&&(i.setTop(0),i.domNode.style.right="50%")},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setWidth(this._editorWidth);for(var i=Object.keys(this._widgets),l=0,g=i.length;l<g;l++){var te=i[l];this._renderWidget(this._widgets[te])}},o}(B),Hn=e("zrhQ"),Sr=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Di=function(){function k(o,t){var i=o.options;this.lineHeight=i.get(49),this.pixelRatio=i.get(105),this.overviewRulerLanes=i.get(63),this.renderBorder=i.get(62);var l=t.getColor(dt.l);this.borderColor=l?l.toString():null,this.hideCursor=i.get(42);var g=t.getColor(dt.g);this.cursorColor=g?g.transparent(.7).toString():null,this.themeType=t.type;var te=i.get(54),Ae=te.enabled,Se=te.side,qe=Ae?$o.B.getDefaultBackground():null;qe===null||Se==="left"?this.backgroundColor=null:this.backgroundColor=Hn.a.Format.CSS.formatHex(qe);var ct=i.get(107),_t=ct.overviewRuler;this.top=_t.top,this.right=_t.right,this.domWidth=_t.width,this.domHeight=_t.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);var tt=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),kt=tt[0],Bt=tt[1];this.x=kt,this.w=Bt}return k.prototype._initLanes=function(o,t,i){var l=t-o;if(i>=3){var g=Math.floor(l/3),te=Math.floor(l/3),Ae=l-g-te,Se=o,qe=Se+g,ct=Se+g+Ae;return[[0,Se,qe,Se,ct,Se,qe,Se],[0,g,Ae,g+Ae,te,g+Ae+te,Ae+te,g+Ae+te]]}else if(i===2){var g=Math.floor(l/2),te=l-g,Se=o,ct=Se+g;return[[0,Se,Se,Se,ct,Se,Se,Se],[0,g,g,g,te,g+te,g+te,g+te]]}else{var _t=o,tt=l;return[[0,_t,_t,_t,_t,_t,_t,_t],[0,tt,tt,tt,tt,tt,tt,tt]]}},k.prototype.equals=function(o){return this.lineHeight===o.lineHeight&&this.pixelRatio===o.pixelRatio&&this.overviewRulerLanes===o.overviewRulerLanes&&this.renderBorder===o.renderBorder&&this.borderColor===o.borderColor&&this.hideCursor===o.hideCursor&&this.cursorColor===o.cursorColor&&this.themeType===o.themeType&&this.backgroundColor===o.backgroundColor&&this.top===o.top&&this.right===o.right&&this.domWidth===o.domWidth&&this.domHeight===o.domHeight&&this.canvasWidth===o.canvasWidth&&this.canvasHeight===o.canvasHeight},k}(),os=function(k){Sr(o,k);function o(t){var i=k.call(this,t)||this;return i._domNode=Object(b.b)(document.createElement("canvas")),i._domNode.setClassName("decorationsOverviewRuler"),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._domNode.setContain("strict"),i._domNode.setAttribute("aria-hidden","true"),i._updateSettings(!1),i._tokensColorTrackerListener=$o.B.onDidChange(function(l){l.changedColorMap&&i._updateSettings(!0)}),i._cursorPositions=[],i}return o.prototype.dispose=function(){k.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},o.prototype._updateSettings=function(t){var i=new Di(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(i)?!1:(this._settings=i,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,t&&this._render(),!0)},o.prototype.onConfigurationChanged=function(t){return this._updateSettings(!1)},o.prototype.onCursorStateChanged=function(t){this._cursorPositions=[];for(var i=0,l=t.selections.length;i<l;i++)this._cursorPositions[i]=t.selections[i].getPosition();return this._cursorPositions.sort(se.a.compare),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onThemeChanged=function(t){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},o.prototype.getDomNode=function(){return this._domNode.domNode},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._render()},o.prototype._render=function(){if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"");return}var t=this._settings.canvasWidth,i=this._settings.canvasHeight,l=this._settings.lineHeight,g=this._context.viewLayout,te=this._context.viewLayout.getScrollHeight(),Ae=i/te,Se=this._context.model.getAllOverviewRulerDecorations(this._context.theme),qe=6*this._settings.pixelRatio|0,ct=qe/2|0,_t=this._domNode.domNode.getContext("2d");this._settings.backgroundColor===null?_t.clearRect(0,0,t,i):(_t.fillStyle=this._settings.backgroundColor,_t.fillRect(0,0,t,i));var tt=this._settings.x,kt=this._settings.w,Bt=Object.keys(Se);Bt.sort();for(var Ht=0,qt=Bt.length;Ht<qt;Ht++){var $t=Bt[Ht],io=Se[$t];_t.fillStyle=$t;for(var yo=0,po=0,bo=0,vo=0,Co=io.length;vo<Co;vo++){var Mo=io[3*vo],Ko=io[3*vo+1],zo=io[3*vo+2],ko=g.getVerticalOffsetForLineNumber(Ko)*Ae|0,fn=(g.getVerticalOffsetForLineNumber(zo)+l)*Ae|0,In=fn-ko;if(In<qe){var ln=(ko+fn)/2|0;ln<ct?ln=ct:ln+ct>i&&(ln=i-ct),ko=ln-ct,fn=ln+ct}ko>bo+1||Mo!==yo?(vo!==0&&_t.fillRect(tt[yo],po,kt[yo],bo-po),yo=Mo,po=ko,bo=fn):fn>bo&&(bo=fn)}_t.fillRect(tt[yo],po,kt[yo],bo-po)}if(!this._settings.hideCursor&&this._settings.cursorColor){var Nn=2*this._settings.pixelRatio|0,cn=Nn/2|0,Wn=this._settings.x[7],Fn=this._settings.w[7];_t.fillStyle=this._settings.cursorColor;for(var po=-100,bo=-100,vo=0,Co=this._cursorPositions.length;vo<Co;vo++){var Ui=this._cursorPositions[vo],ln=g.getVerticalOffsetForLineNumber(Ui.lineNumber)*Ae|0;ln<cn?ln=cn:ln+cn>i&&(ln=i-cn);var ko=ln-cn,fn=ko+Nn;ko>bo+1?(vo!==0&&_t.fillRect(Wn,po,Fn,bo-po),po=ko,bo=fn):fn>bo&&(bo=fn)}_t.fillRect(Wn,po,Fn,bo-po)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(_t.beginPath(),_t.lineWidth=1,_t.strokeStyle=this._settings.borderColor,_t.moveTo(0,0),_t.lineTo(0,i),_t.stroke(),_t.moveTo(0,0),_t.lineTo(t,0),_t.stroke())},o}(B),ns=e("MvK1"),is=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),rs=function(k){is(o,k);function o(t,i){var l=k.call(this)||this;l._context=t;var g=l._context.configuration.options;return l._domNode=Object(b.b)(document.createElement("canvas")),l._domNode.setClassName(i),l._domNode.setPosition("absolute"),l._domNode.setLayerHinting(!0),l._domNode.setContain("strict"),l._zoneManager=new ns.b(function(te){return l._context.viewLayout.getVerticalOffsetForLineNumber(te)}),l._zoneManager.setDOMWidth(0),l._zoneManager.setDOMHeight(0),l._zoneManager.setOuterHeight(l._context.viewLayout.getScrollHeight()),l._zoneManager.setLineHeight(g.get(49)),l._zoneManager.setPixelRatio(g.get(105)),l._context.addEventHandler(l),l}return o.prototype.dispose=function(){this._context.removeEventHandler(this),k.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return t.hasChanged(49)&&(this._zoneManager.setLineHeight(i.get(49)),this._render()),t.hasChanged(105)&&(this._zoneManager.setPixelRatio(i.get(105)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},o.prototype.onFlushed=function(t){return this._render(),!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged&&(this._zoneManager.setOuterHeight(t.scrollHeight),this._render()),!0},o.prototype.onZonesChanged=function(t){return this._render(),!0},o.prototype.getDomNode=function(){return this._domNode.domNode},o.prototype.setLayout=function(t){this._domNode.setTop(t.top),this._domNode.setRight(t.right);var i=!1;i=this._zoneManager.setDOMWidth(t.width)||i,i=this._zoneManager.setDOMHeight(t.height)||i,i&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},o.prototype.setZones=function(t){this._zoneManager.setZones(t),this._render()},o.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var t=this._zoneManager.getCanvasWidth(),i=this._zoneManager.getCanvasHeight(),l=this._zoneManager.resolveColorZones(),g=this._zoneManager.getId2Color(),te=this._domNode.domNode.getContext("2d");return te.clearRect(0,0,t,i),l.length>0&&this._renderOneLane(te,l,g,t),!0},o.prototype._renderOneLane=function(t,i,l,g){for(var te=0,Ae=0,Se=0,qe=0,ct=i;qe<ct.length;qe++){var _t=ct[qe],tt=_t.colorId,kt=_t.from,Bt=_t.to;tt!==te?(t.fillRect(0,Ae,g,Se-Ae),te=tt,t.fillStyle=l[te],Ae=kt,Se=Bt):Se>=kt?Se=Math.max(Se,Bt):(t.fillRect(0,Ae,g,Se-Ae),Ae=kt,Se=Bt)}t.fillRect(0,Ae,g,Se-Ae)},o}(V),ia=e("7zd4"),ss=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),as=function(k){ss(o,k);function o(t){var i=k.call(this,t)||this;i.domNode=Object(b.b)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var l=i._context.configuration.options;return i._rulers=l.get(77),i._typicalHalfwidthCharacterWidth=l.get(34).typicalHalfwidthCharacterWidth,i}return o.prototype.dispose=function(){k.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._rulers=i.get(77),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},o.prototype.prepareRender=function(t){},o.prototype._ensureRulersCount=function(){var t=this._renderedRulers.length,i=this._rulers.length;if(t===i)return;if(t<i){for(var l=this._context.model.getOptions().tabSize,g=l,te=i-t;te>0;){var Ae=Object(b.b)(document.createElement("div"));Ae.setClassName("view-ruler"),Ae.setWidth(g),this.domNode.appendChild(Ae),this._renderedRulers.push(Ae),te--}return}for(var Se=t-i;Se>0;){var Ae=this._renderedRulers.pop();this.domNode.removeChild(Ae),Se--}},o.prototype.render=function(t){this._ensureRulersCount();for(var i=0,l=this._rulers.length;i<l;i++){var g=this._renderedRulers[i];g.setHeight(Math.min(t.scrollHeight,1e6)),g.setLeft(this._rulers[i]*this._typicalHalfwidthCharacterWidth)}},o}(B);Object(Z.e)(function(k,o){var t=k.getColor(dt.m);t&&o.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+t+" inset; }")});var ra=e("2MPD"),ls=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ds=function(k){ls(o,k);function o(t){var i=k.call(this,t)||this;i._scrollTop=0,i._width=0,i._updateWidth(),i._shouldShow=!1;var l=i._context.configuration.options,g=l.get(78);return i._useShadows=g.useShadows,i._domNode=Object(b.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i}return o.prototype.dispose=function(){k.prototype.dispose.call(this)},o.prototype._updateShouldShow=function(){var t=this._useShadows&&this._scrollTop>0;return this._shouldShow!==t?(this._shouldShow=t,!0):!1},o.prototype.getDomNode=function(){return this._domNode},o.prototype._updateWidth=function(){var t=this._context.configuration.options,i=t.get(107);i.renderMinimap===0||i.minimapWidth>0&&i.minimapLeft===0?this._width=i.width:this._width=i.width-i.minimapWidth-i.verticalScrollbarWidth},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,l=i.get(78);return this._useShadows=l.useShadows,this._updateWidth(),this._updateShouldShow(),!0},o.prototype.onScrollChanged=function(t){return this._scrollTop=t.scrollTop,this._updateShouldShow()},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},o}(B);Object(Z.e)(function(k,o){var t=k.getColor(On.Vb);t&&o.addRule(".monaco-editor .scroll-decoration { box-shadow: "+t+" 0 6px 6px -6px inset; }")});var cs=e("eC1c"),Lr=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Mr=function(){function k(o){this.left=o.left,this.width=o.width,this.startStyle=null,this.endStyle=null}return k}(),Or=function(){function k(o,t){this.lineNumber=o,this.ranges=t}return k}();function us(k){return new Mr(k)}function hs(k){return new Or(k.lineNumber,k.ranges.map(us))}var fs=C.f,ms=function(k){Lr(o,k);function o(t){var i=k.call(this)||this;i._previousFrameVisibleRangesWithStyle=[],i._context=t;var l=i._context.configuration.options;return i._lineHeight=l.get(49),i._roundedSelection=l.get(76),i._typicalHalfwidthCharacterWidth=l.get(34).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,k.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._roundedSelection=i.get(76),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._visibleRangesHaveGaps=function(t){for(var i=0,l=t.length;i<l;i++){var g=t[i];if(g.ranges.length>1)return!0}return!1},o.prototype._enrichVisibleRangesWithStyle=function(t,i,l){var g=this._typicalHalfwidthCharacterWidth/4,te=null,Ae=null;if(l&&l.length>0&&i.length>0){var Se=i[0].lineNumber;if(Se===t.startLineNumber)for(var qe=0;!te&&qe<l.length;qe++)l[qe].lineNumber===Se&&(te=l[qe].ranges[0]);var ct=i[i.length-1].lineNumber;if(ct===t.endLineNumber)for(var qe=l.length-1;!Ae&&qe>=0;qe--)l[qe].lineNumber===ct&&(Ae=l[qe].ranges[0]);te&&!te.startStyle&&(te=null),Ae&&!Ae.startStyle&&(Ae=null)}for(var qe=0,_t=i.length;qe<_t;qe++){var tt=i[qe].ranges[0],kt=tt.left,Bt=tt.left+tt.width,Ht={top:0,bottom:0},qt={top:0,bottom:0};if(qe>0){var $t=i[qe-1].ranges[0].left,io=i[qe-1].ranges[0].left+i[qe-1].ranges[0].width;ti(kt-$t)<g?Ht.top=2:kt>$t&&(Ht.top=1),ti(Bt-io)<g?qt.top=2:$t<Bt&&Bt<io&&(qt.top=1)}else te&&(Ht.top=te.startStyle.top,qt.top=te.endStyle.top);if(qe+1<_t){var yo=i[qe+1].ranges[0].left,po=i[qe+1].ranges[0].left+i[qe+1].ranges[0].width;ti(kt-yo)<g?Ht.bottom=2:yo<kt&&kt<po&&(Ht.bottom=1),ti(Bt-po)<g?qt.bottom=2:Bt<po&&(qt.bottom=1)}else Ae&&(Ht.bottom=Ae.startStyle.bottom,qt.bottom=Ae.endStyle.bottom);tt.startStyle=Ht,tt.endStyle=qt}},o.prototype._getVisibleRangesWithStyle=function(t,i,l){var g=i.linesVisibleRangesForRange(t,!0)||[],te=g.map(hs),Ae=this._visibleRangesHaveGaps(te);return!fs&&!Ae&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(i.visibleRange,te,l),te},o.prototype._createSelectionPiece=function(t,i,l,g,te){return'<div class="cslr '+l+'" style="top:'+t.toString()+"px;left:"+g.toString()+"px;width:"+te.toString()+"px;height:"+i+'px;"></div>'},o.prototype._actualRenderOneSelection=function(t,i,l,g){if(g.length===0)return;for(var te=!!g[0].ranges[0].startStyle,Ae=this._lineHeight.toString(),Se=(this._lineHeight-1).toString(),qe=g[0].lineNumber,ct=g[g.length-1].lineNumber,_t=0,tt=g.length;_t<tt;_t++){for(var kt=g[_t],Bt=kt.lineNumber,Ht=Bt-i,qt=l&&(Bt===ct||Bt===qe)?Se:Ae,$t=l&&Bt===qe?1:0,io="",yo="",po=0,bo=kt.ranges.length;po<bo;po++){var vo=kt.ranges[po];if(te){var Co=vo.startStyle,Mo=vo.endStyle;if(Co.top===1||Co.bottom===1){io+=this._createSelectionPiece($t,qt,o.SELECTION_CLASS_NAME,vo.left-o.ROUNDED_PIECE_WIDTH,o.ROUNDED_PIECE_WIDTH);var Ko=o.EDITOR_BACKGROUND_CLASS_NAME;Co.top===1&&(Ko+=" "+o.SELECTION_TOP_RIGHT),Co.bottom===1&&(Ko+=" "+o.SELECTION_BOTTOM_RIGHT),io+=this._createSelectionPiece($t,qt,Ko,vo.left-o.ROUNDED_PIECE_WIDTH,o.ROUNDED_PIECE_WIDTH)}if(Mo.top===1||Mo.bottom===1){io+=this._createSelectionPiece($t,qt,o.SELECTION_CLASS_NAME,vo.left+vo.width,o.ROUNDED_PIECE_WIDTH);var zo=o.EDITOR_BACKGROUND_CLASS_NAME;Mo.top===1&&(zo+=" "+o.SELECTION_TOP_LEFT),Mo.bottom===1&&(zo+=" "+o.SELECTION_BOTTOM_LEFT),io+=this._createSelectionPiece($t,qt,zo,vo.left+vo.width,o.ROUNDED_PIECE_WIDTH)}}var ko=o.SELECTION_CLASS_NAME;if(te){var Co=vo.startStyle,Mo=vo.endStyle;Co.top===0&&(ko+=" "+o.SELECTION_TOP_LEFT),Co.bottom===0&&(ko+=" "+o.SELECTION_BOTTOM_LEFT),Mo.top===0&&(ko+=" "+o.SELECTION_TOP_RIGHT),Mo.bottom===0&&(ko+=" "+o.SELECTION_BOTTOM_RIGHT)}yo+=this._createSelectionPiece($t,qt,ko,vo.left,vo.width)}t[Ht][0]+=io,t[Ht][1]+=yo}},o.prototype.prepareRender=function(t){for(var i=[],l=t.visibleRange.startLineNumber,g=t.visibleRange.endLineNumber,te=l;te<=g;te++){var Ae=te-l;i[Ae]=["",""]}for(var Se=[],qe=0,ct=this._selections.length;qe<ct;qe++){var _t=this._selections[qe];if(_t.isEmpty()){Se[qe]=null;continue}var tt=this._getVisibleRangesWithStyle(_t,t,this._previousFrameVisibleRangesWithStyle[qe]);Se[qe]=tt,this._actualRenderOneSelection(i,l,this._selections.length>1,tt)}this._previousFrameVisibleRangesWithStyle=Se,this._renderResult=i.map(function(kt){var Bt=kt[0],Ht=kt[1];return Bt+Ht})},o.prototype.render=function(t,i){if(!this._renderResult)return"";var l=i-t;return l<0||l>=this._renderResult.length?"":this._renderResult[l]},o.SELECTION_CLASS_NAME="selected-text",o.SELECTION_TOP_LEFT="top-left-radius",o.SELECTION_BOTTOM_LEFT="bottom-left-radius",o.SELECTION_TOP_RIGHT="top-right-radius",o.SELECTION_BOTTOM_RIGHT="bottom-right-radius",o.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",o.ROUNDED_PIECE_WIDTH=10,o}(je);Object(Z.e)(function(k,o){var t=k.getColor(On.K);t&&o.addRule(".monaco-editor .focused .selected-text { background-color: "+t+"; }");var i=k.getColor(On.F);i&&o.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var l=k.getColor(On.L);l&&o.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+l+"; }")});function ti(k){return k<0?-k:k}var sa=e("2Tsy"),Dr=function(){function k(o,t,i,l,g,te){this.top=o,this.left=t,this.width=i,this.height=l,this.textContent=g,this.textContentClassName=te}return k}(),Tr=function(){function k(o){this._context=o;var t=this._context.configuration.options,i=t.get(34);this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(b.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),U.a.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new se.a(1,1),this._lastRenderedContent="",this._renderData=null}return k.prototype.getDomNode=function(){return this._domNode},k.prototype.getPosition=function(){return this._position},k.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},k.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},k.prototype.onConfigurationChanged=function(o){var t=this._context.configuration.options,i=t.get(34);return this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),U.a.applyFontInfo(this._domNode,i),!0},k.prototype.onCursorPositionChanged=function(o){return this._position=o,!0},k.prototype._prepareRender=function(o){var t="";if(this._cursorStyle===ve.g.Line||this._cursorStyle===ve.g.LineThin){var i=o.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;var l;if(this._cursorStyle===ve.g.Line){if(l=J.u(this._lineCursorWidth>0?this._lineCursorWidth:2),l>2){var g=this._context.model.getLineContent(this._position.lineNumber),te=me.E(g,this._position.column-1);t=g.substr(this._position.column-1,te)}}else l=J.u(1);var Ae=i.left;l>=2&&Ae>=1&&(Ae-=1);var Se=o.getVerticalOffsetForLineNumber(this._position.lineNumber)-o.bigNumbersDelta;return new Dr(Se,Ae,l,this._lineHeight,t,"")}var qe=this._context.model.getLineContent(this._position.lineNumber),ct=me.E(qe,this._position.column-1),_t=o.linesVisibleRangesForRange(new ye.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+ct),!1);if(!_t||_t.length===0)return null;var tt=_t[0];if(tt.outsideRenderedLine||tt.ranges.length===0)return null;var kt=tt.ranges[0],Bt=kt.width<1?this._typicalHalfwidthCharacterWidth:kt.width,Ht="";if(this._cursorStyle===ve.g.Block){var qt=this._context.model.getViewLineData(this._position.lineNumber);t=qe.substr(this._position.column-1,ct);var $t=qt.tokens.findTokenIndexAtOffset(this._position.column-1);Ht=qt.tokens.getClassName($t)}var io=o.getVerticalOffsetForLineNumber(this._position.lineNumber)-o.bigNumbersDelta,yo=this._lineHeight;return(this._cursorStyle===ve.g.Underline||this._cursorStyle===ve.g.UnderlineThin)&&(io+=this._lineHeight-2,yo=2),new Dr(io,kt.left,Bt,yo,t,Ht)},k.prototype.prepareRender=function(o){this._renderData=this._prepareRender(o)},k.prototype.render=function(o){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},k}(),ps=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),gs=function(k){ps(o,k);function o(t){var i=k.call(this,t)||this,l=i._context.configuration.options;return i._readOnly=l.get(68),i._cursorBlinking=l.get(16),i._cursorStyle=l.get(18),i._cursorSmoothCaretAnimation=l.get(17),i._selectionIsEmpty=!0,i._isVisible=!1,i._primaryCursor=new Tr(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=Object(b.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._updateDomClassName(),i._domNode.appendChild(i._primaryCursor.getDomNode()),i._startCursorBlinkAnimation=new v.e,i._cursorFlatBlinkInterval=new v.c,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return o.prototype.dispose=function(){k.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;this._readOnly=i.get(68),this._cursorBlinking=i.get(16),this._cursorStyle=i.get(18),this._cursorSmoothCaretAnimation=i.get(17),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(t);for(var l=0,g=this._secondaryCursors.length;l<g;l++)this._secondaryCursors[l].onConfigurationChanged(t);return!0},o.prototype._onCursorPositionChanged=function(t,i){if(this._primaryCursor.onCursorPositionChanged(t),this._updateBlinking(),this._secondaryCursors.length<i.length)for(var l=i.length-this._secondaryCursors.length,g=0;g<l;g++){var te=new Tr(this._context);this._domNode.domNode.insertBefore(te.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(te)}else if(this._secondaryCursors.length>i.length)for(var Ae=this._secondaryCursors.length-i.length,g=0;g<Ae;g++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1);for(var g=0;g<i.length;g++)this._secondaryCursors[g].onCursorPositionChanged(i[g])},o.prototype.onCursorStateChanged=function(t){for(var i=[],l=0,g=t.selections.length;l<g;l++)i[l]=t.selections[l].getPosition();this._onCursorPositionChanged(i[0],i.slice(1));var te=t.selections[0].isEmpty();return this._selectionIsEmpty!==te&&(this._selectionIsEmpty=te,this._updateDomClassName()),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onFocusChanged=function(t){return this._editorHasFocus=t.isFocused,this._updateBlinking(),!1},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onTokensChanged=function(t){var i=function(Ae){for(var Se=0,qe=t.ranges.length;Se<qe;Se++)if(t.ranges[Se].fromLineNumber<=Ae.lineNumber&&Ae.lineNumber<=t.ranges[Se].toLineNumber)return!0;return!1};if(i(this._primaryCursor.getPosition()))return!0;for(var l=0,g=this._secondaryCursors;l<g.length;l++){var te=g[l];if(i(te.getPosition()))return!0}return!1},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},o.prototype._updateBlinking=function(){var t=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var i=this._getCursorBlinking(),l=i===0,g=i===5;l?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!l&&!g&&(i===1?this._cursorFlatBlinkInterval.cancelAndSet(function(){t._isVisible?t._hide():t._show()},o.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(function(){t._blinkingEnabled=!0,t._updateDomClassName()},o.BLINK_INTERVAL))},o.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},o.prototype._getClassName=function(){var t="cursors-layer";this._selectionIsEmpty||(t+=" has-selection");switch(this._cursorStyle){case ve.g.Line:t+=" cursor-line-style";break;case ve.g.Block:t+=" cursor-block-style";break;case ve.g.Underline:t+=" cursor-underline-style";break;case ve.g.LineThin:t+=" cursor-line-thin-style";break;case ve.g.BlockOutline:t+=" cursor-block-outline-style";break;case ve.g.UnderlineThin:t+=" cursor-underline-thin-style";break;default:t+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:t+=" cursor-blink";break;case 2:t+=" cursor-smooth";break;case 3:t+=" cursor-phase";break;case 4:t+=" cursor-expand";break;case 5:t+=" cursor-solid";break;default:t+=" cursor-solid"}else t+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(t+=" cursor-smooth-caret-animation"),t},o.prototype._show=function(){this._primaryCursor.show();for(var t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].show();this._isVisible=!0},o.prototype._hide=function(){this._primaryCursor.hide();for(var t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].hide();this._isVisible=!1},o.prototype.prepareRender=function(t){this._primaryCursor.prepareRender(t);for(var i=0,l=this._secondaryCursors.length;i<l;i++)this._secondaryCursors[i].prepareRender(t)},o.prototype.render=function(t){var i=[],l=0,g=this._primaryCursor.render(t);g&&(i[l++]=g);for(var te=0,Ae=this._secondaryCursors.length;te<Ae;te++){var Se=this._secondaryCursors[te].render(t);Se&&(i[l++]=Se)}this._renderData=i},o.prototype.getLastRenderData=function(){return this._renderData},o.BLINK_INTERVAL=500,o}(B);Object(Z.e)(function(k,o){var t=k.getColor(dt.g);if(t){var i=k.getColor(dt.f);i||(i=t.opposite()),o.addRule(".monaco-editor .cursor { background-color: "+t+"; border-color: "+t+"; color: "+i+"; }"),k.type==="hc"&&o.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}});var xr=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ar=function(){throw new Error("Invalid change accessor")},Ci=function(k){xr(o,k);function o(t){var i=k.call(this,t)||this,l=i._context.configuration.options,g=l.get(107);return i._lineHeight=l.get(49),i._contentWidth=g.contentWidth,i._contentLeft=g.contentLeft,i.domNode=Object(b.b)(document.createElement("div")),i.domNode.setClassName("view-zones"),i.domNode.setPosition("absolute"),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.marginDomNode=Object(b.b)(document.createElement("div")),i.marginDomNode.setClassName("margin-view-zones"),i.marginDomNode.setPosition("absolute"),i.marginDomNode.setAttribute("role","presentation"),i.marginDomNode.setAttribute("aria-hidden","true"),i._zones={},i}return o.prototype.dispose=function(){k.prototype.dispose.call(this),this._zones={}},o.prototype._recomputeWhitespacesProps=function(){for(var t=this,i=this._context.viewLayout.getWhitespaces(),l=new Map,g=0,te=i;g<te.length;g++){var Ae=te[g];l.set(Ae.id,Ae)}return this._context.viewLayout.changeWhitespace(function(Se){for(var qe=!1,ct=Object.keys(t._zones),_t=0,tt=ct.length;_t<tt;_t++){var kt=ct[_t],Bt=t._zones[kt],Ht=t._computeWhitespaceProps(Bt.delegate),qt=l.get(kt);qt&&(qt.afterLineNumber!==Ht.afterViewLineNumber||qt.height!==Ht.heightInPx)&&(Se.changeOneWhitespace(kt,Ht.afterViewLineNumber,Ht.heightInPx),t._safeCallOnComputedHeight(Bt.delegate,Ht.heightInPx),qe=!0)}return qe})},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,l=i.get(107);return this._lineHeight=i.get(49),this._contentWidth=l.contentWidth,this._contentLeft=l.contentLeft,t.hasChanged(49)&&this._recomputeWhitespacesProps(),!0},o.prototype.onLineMappingChanged=function(t){var i=this._recomputeWhitespacesProps();return i&&this._context.viewLayout.onHeightMaybeChanged(),i},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype._getZoneOrdinal=function(t){return typeof t.afterColumn!="undefined"?t.afterColumn:1e4},o.prototype._computeWhitespaceProps=function(t){if(t.afterLineNumber===0)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(t),minWidthInPx:this._minWidthInPixels(t)};var i;if(typeof t.afterColumn!="undefined")i=this._context.model.validateModelPosition({lineNumber:t.afterLineNumber,column:t.afterColumn});else{var l=this._context.model.validateModelPosition({lineNumber:t.afterLineNumber,column:1}).lineNumber;i=new se.a(l,this._context.model.getModelLineMaxColumn(l))}var g;i.column===this._context.model.getModelLineMaxColumn(i.lineNumber)?g=this._context.model.validateModelPosition({lineNumber:i.lineNumber+1,column:1}):g=this._context.model.validateModelPosition({lineNumber:i.lineNumber,column:i.column+1});var te=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(i),Ae=this._context.model.coordinatesConverter.modelPositionIsVisible(g);return{afterViewLineNumber:te.lineNumber,heightInPx:Ae?this._heightInPixels(t):0,minWidthInPx:this._minWidthInPixels(t)}},o.prototype.changeViewZones=function(t){var i=this;return this._context.viewLayout.changeWhitespace(function(l){var g=!1,te={addZone:function(Ae){return g=!0,i._addZone(l,Ae)},removeZone:function(Ae){if(!Ae)return;g=i._removeZone(l,Ae)||g},layoutZone:function(Ae){if(!Ae)return;g=i._layoutZone(l,Ae)||g}};return vs(t,te),te.addZone=Ar,te.removeZone=Ar,te.layoutZone=Ar,g})},o.prototype._addZone=function(t,i){var l=this._computeWhitespaceProps(i),g=t.insertWhitespace(l.afterViewLineNumber,this._getZoneOrdinal(i),l.heightInPx,l.minWidthInPx),te={whitespaceId:g,delegate:i,isVisible:!1,domNode:Object(b.b)(i.domNode),marginDomNode:i.marginDomNode?Object(b.b)(i.marginDomNode):null};return this._safeCallOnComputedHeight(te.delegate,l.heightInPx),te.domNode.setPosition("absolute"),te.domNode.domNode.style.width="100%",te.domNode.setDisplay("none"),te.domNode.setAttribute("monaco-view-zone",te.whitespaceId),this.domNode.appendChild(te.domNode),te.marginDomNode&&(te.marginDomNode.setPosition("absolute"),te.marginDomNode.domNode.style.width="100%",te.marginDomNode.setDisplay("none"),te.marginDomNode.setAttribute("monaco-view-zone",te.whitespaceId),this.marginDomNode.appendChild(te.marginDomNode)),this._zones[te.whitespaceId]=te,this.setShouldRender(),te.whitespaceId},o.prototype._removeZone=function(t,i){if(this._zones.hasOwnProperty(i)){var l=this._zones[i];return delete this._zones[i],t.removeWhitespace(l.whitespaceId),l.domNode.removeAttribute("monaco-visible-view-zone"),l.domNode.removeAttribute("monaco-view-zone"),l.domNode.domNode.parentNode.removeChild(l.domNode.domNode),l.marginDomNode&&(l.marginDomNode.removeAttribute("monaco-visible-view-zone"),l.marginDomNode.removeAttribute("monaco-view-zone"),l.marginDomNode.domNode.parentNode.removeChild(l.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},o.prototype._layoutZone=function(t,i){if(this._zones.hasOwnProperty(i)){var l=this._zones[i],g=this._computeWhitespaceProps(l.delegate);return t.changeOneWhitespace(l.whitespaceId,g.afterViewLineNumber,g.heightInPx),this._safeCallOnComputedHeight(l.delegate,g.heightInPx),this.setShouldRender(),!0}return!1},o.prototype.shouldSuppressMouseDownOnViewZone=function(t){if(this._zones.hasOwnProperty(t)){var i=this._zones[t];return Boolean(i.delegate.suppressMouseDown)}return!1},o.prototype._heightInPixels=function(t){return typeof t.heightInPx=="number"?t.heightInPx:typeof t.heightInLines=="number"?this._lineHeight*t.heightInLines:this._lineHeight},o.prototype._minWidthInPixels=function(t){return typeof t.minWidthInPx=="number"?t.minWidthInPx:0},o.prototype._safeCallOnComputedHeight=function(t,i){if(typeof t.onComputedHeight=="function")try{t.onComputedHeight(i)}catch(l){Object(I.e)(l)}},o.prototype._safeCallOnDomNodeTop=function(t,i){if(typeof t.onDomNodeTop=="function")try{t.onDomNodeTop(i)}catch(l){Object(I.e)(l)}},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){for(var i=t.viewportData.whitespaceViewportData,l={},g=!1,te=0,Ae=i.length;te<Ae;te++)l[i[te].id]=i[te],g=!0;for(var Se=Object.keys(this._zones),te=0,Ae=Se.length;te<Ae;te++){var qe=Se[te],ct=this._zones[qe],_t=0,tt=0,kt="none";l.hasOwnProperty(qe)?(_t=l[qe].verticalOffset-t.bigNumbersDelta,tt=l[qe].height,kt="block",ct.isVisible||(ct.domNode.setAttribute("monaco-visible-view-zone","true"),ct.isVisible=!0),this._safeCallOnDomNodeTop(ct.delegate,t.getScrolledTopFromAbsoluteTop(l[qe].verticalOffset))):(ct.isVisible&&(ct.domNode.removeAttribute("monaco-visible-view-zone"),ct.isVisible=!1),this._safeCallOnDomNodeTop(ct.delegate,t.getScrolledTopFromAbsoluteTop(-1e6))),ct.domNode.setTop(_t),ct.domNode.setHeight(tt),ct.domNode.setDisplay(kt),ct.marginDomNode&&(ct.marginDomNode.setTop(_t),ct.marginDomNode.setHeight(tt),ct.marginDomNode.setDisplay(kt))}g&&(this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},o}(B);function vs(k,o){try{return k(o)}catch(t){Object(I.e)(t)}}var Ti=function(){function k(o,t,i,l){this.configuration=o,this.theme=t,this.model=i,this.viewLayout=i.viewLayout,this.privateViewEventBus=l}return k.prototype.addEventHandler=function(o){this.privateViewEventBus.addEventHandler(o)},k.prototype.removeEventHandler=function(o){this.privateViewEventBus.removeEventHandler(o)},k}(),ys=function(){function k(o){this._eventHandlerGateKeeper=o,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return k.prototype.addEventHandler=function(o){for(var t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===o&&console.warn("Detected duplicate listener in ViewEventDispatcher",o);this._eventHandlers.push(o)},k.prototype.removeEventHandler=function(o){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===o){this._eventHandlers.splice(t,1);break}},k.prototype.emit=function(o){this._eventQueue?this._eventQueue.push(o):this._eventQueue=[o],this._isConsumingQueue||this.consumeQueue()},k.prototype.emitMany=function(o){this._eventQueue?this._eventQueue=this._eventQueue.concat(o):this._eventQueue=o,this._isConsumingQueue||this.consumeQueue()},k.prototype.consumeQueue=function(){var o=this;this._eventHandlerGateKeeper(function(){try{o._isConsumingQueue=!0,o._doConsumeQueue()}finally{o._isConsumingQueue=!1}})},k.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var o=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),i=0,l=t.length;i<l;i++)t[i].handleEvents(o)}},k}(),aa=function(){function k(o,t,i,l){this.selections=o,this.startLineNumber=t.startLineNumber|0,this.endLineNumber=t.endLineNumber|0,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=t.bigNumbersDelta|0,this.whitespaceViewportData=i,this._model=l,this.visibleRange=new ye.a(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}return k.prototype.getViewLineRenderingData=function(o){return this._model.getViewLineRenderingData(this.visibleRange,o)},k.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},k}(),bs=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Cs=function(k){bs(o,k);function o(t,i,l,g,te,Ae){var Se=k.call(this)||this;Se._cursor=te,Se._renderAnimationFrame=null,Se.outgoingEvents=Ae;var qe=new Ie(i,g,Se.outgoingEvents,t);Se.eventDispatcher=new ys(function(io){return Se._renderOnce(io)}),Se.eventDispatcher.addEventHandler(Se),Se._context=new Ti(i,l.getTheme(),g,Se.eventDispatcher),Se._register(l.onThemeChange(function(io){Se._context.theme=io,Se.eventDispatcher.emit(new rn),Se.render(!0,!1)})),Se.viewParts=[],Se._textAreaHandler=new _(Se._context,qe,Se.createTextAreaHandlerHelper()),Se.viewParts.push(Se._textAreaHandler),Se.linesContent=Object(b.b)(document.createElement("div")),Se.linesContent.setClassName("lines-content monaco-editor-background"),Se.linesContent.setPosition("absolute"),Se.domNode=Object(b.b)(document.createElement("div")),Se.domNode.setClassName(Se.getEditorClassName()),Se.overflowGuardContainer=Object(b.b)(document.createElement("div")),ae.write(Se.overflowGuardContainer,3),Se.overflowGuardContainer.setClassName("overflow-guard"),Se._scrollbar=new _o(Se._context,Se.linesContent,Se.domNode,Se.overflowGuardContainer),Se.viewParts.push(Se._scrollbar),Se.viewLines=new ai(Se._context,Se.linesContent),Se.viewZones=new Ci(Se._context),Se.viewParts.push(Se.viewZones);var ct=new os(Se._context);Se.viewParts.push(ct);var _t=new ds(Se._context);Se.viewParts.push(_t);var tt=new He(Se._context);Se.viewParts.push(tt),tt.addDynamicOverlay(new zt(Se._context)),tt.addDynamicOverlay(new ms(Se._context)),tt.addDynamicOverlay(new qo(Se._context)),tt.addDynamicOverlay(new go(Se._context));var kt=new Oe(Se._context);Se.viewParts.push(kt),kt.addDynamicOverlay(new Xt(Se._context)),kt.addDynamicOverlay(new vn(Se._context)),kt.addDynamicOverlay(new Ki(Se._context)),kt.addDynamicOverlay(new Yr(Se._context)),kt.addDynamicOverlay(new Qt(Se._context));var Bt=new fo(Se._context);Bt.getDomNode().appendChild(Se.viewZones.marginDomNode),Bt.getDomNode().appendChild(kt.getDomNode()),Se.viewParts.push(Bt),Se.contentWidgets=new he(Se._context,Se.domNode),Se.viewParts.push(Se.contentWidgets),Se.viewCursors=new gs(Se._context),Se.viewParts.push(Se.viewCursors),Se.overlayWidgets=new wr(Se._context),Se.viewParts.push(Se.overlayWidgets);var Ht=new as(Se._context);Se.viewParts.push(Ht);var qt=new es(Se._context);if(Se.viewParts.push(qt),ct){var $t=Se._scrollbar.getOverviewRulerLayoutInfo();$t.parent.insertBefore(ct.getDomNode(),$t.insertBefore)}return Se.linesContent.appendChild(tt.getDomNode()),Se.linesContent.appendChild(Ht.domNode),Se.linesContent.appendChild(Se.viewZones.domNode),Se.linesContent.appendChild(Se.viewLines.getDomNode()),Se.linesContent.appendChild(Se.contentWidgets.domNode),Se.linesContent.appendChild(Se.viewCursors.getDomNode()),Se.overflowGuardContainer.appendChild(Bt.getDomNode()),Se.overflowGuardContainer.appendChild(Se._scrollbar.getDomNode()),Se.overflowGuardContainer.appendChild(_t.getDomNode()),Se.overflowGuardContainer.appendChild(Se._textAreaHandler.textArea),Se.overflowGuardContainer.appendChild(Se._textAreaHandler.textAreaCover),Se.overflowGuardContainer.appendChild(Se.overlayWidgets.getDomNode()),Se.overflowGuardContainer.appendChild(qt.getDomNode()),Se.domNode.appendChild(Se.overflowGuardContainer),Se.domNode.appendChild(Se.contentWidgets.overflowingContentWidgetsDomNode),Se._applyLayout(),Se.pointerHandler=Se._register(new Ve(Se._context,qe,Se.createPointerHandlerHelper())),Se._register(g.addEventListener(function(io){Se.eventDispatcher.emitMany(io)})),Se._register(Se._cursor.addEventListener(function(io){Se.eventDispatcher.emitMany(io)})),Se}return o.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},o.prototype.createPointerHandlerHelper=function(){var t=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){t.focus()},getLastRenderData:function(){var i=t.viewCursors.getLastRenderData()||[],l=t._textAreaHandler.getLastRenderData();return new Ue(i,l)},shouldSuppressMouseDownOnViewZone:function(i){return t.viewZones.shouldSuppressMouseDownOnViewZone(i)},shouldSuppressMouseDownOnWidget:function(i){return t.contentWidgets.shouldSuppressMouseDownOnWidget(i)},getPositionFromDOMInfo:function(i,l){return t._flushAccumulatedAndRenderNow(),t.viewLines.getPositionFromDOMInfo(i,l)},visibleRangeForPosition:function(i,l){return t._flushAccumulatedAndRenderNow(),t.viewLines.visibleRangeForPosition(new se.a(i,l))},getLineWidth:function(i){return t._flushAccumulatedAndRenderNow(),t.viewLines.getLineWidth(i)}}},o.prototype.createTextAreaHandlerHelper=function(){var t=this;return{visibleRangeForPositionRelativeToEditor:function(i,l){return t._flushAccumulatedAndRenderNow(),t.viewLines.visibleRangeForPosition(new se.a(i,l))}}},o.prototype._applyLayout=function(){var t=this._context.configuration.options,i=t.get(107);this.domNode.setWidth(i.width),this.domNode.setHeight(i.height),this.overflowGuardContainer.setWidth(i.width),this.overflowGuardContainer.setHeight(i.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},o.prototype.getEditorClassName=function(){var t=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(104)+" "+Object(Z.d)(this._context.theme.type)+t},o.prototype.onConfigurationChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},o.prototype.onContentSizeChanged=function(t){return this.outgoingEvents.emitContentSizeChange(t),!1},o.prototype.onFocusChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(t.isFocused),t.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},o.prototype.onScrollChanged=function(t){return this.outgoingEvents.emitScrollChanged(t),!1},o.prototype.onThemeChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),!1},o.prototype.dispose=function(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var t=0,i=this.viewParts.length;t<i;t++)this.viewParts[t].dispose();this.viewParts=[],k.prototype.dispose.call(this)},o.prototype._renderOnce=function(t){var i=ci(t);return this._scheduleRender(),i},o.prototype._scheduleRender=function(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=J.U(this._onRenderScheduled.bind(this),100))},o.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},o.prototype._renderNow=function(){var t=this;ci(function(){return t._actualRender()})},o.prototype._getViewPartsToRender=function(){for(var t=[],i=0,l=0,g=this.viewParts.length;l<g;l++){var te=this.viewParts[l];te.shouldRender()&&(t[i++]=te)}return t},o.prototype._actualRender=function(){if(!J.M(this.domNode.domNode))return;var t=this._getViewPartsToRender();if(!this.viewLines.shouldRender()&&t.length===0)return;var i=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(i.startLineNumber,i.endLineNumber,i.centeredLineNumber);var l=new aa(this._cursor.getViewSelections(),i,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(l),this.viewLines.shouldRender()&&(this.viewLines.renderText(l),this.viewLines.onDidRender(),t=this._getViewPartsToRender());for(var g=new Pe(this._context.viewLayout,l,this.viewLines),te=0,Ae=t.length;te<Ae;te++){var Se=t[te];Se.prepareRender(g)}for(var te=0,Ae=t.length;te<Ae;te++){var Se=t[te];Se.render(g),Se.onDidRender()}},o.prototype.delegateVerticalScrollbarMouseDown=function(t){this._scrollbar.delegateVerticalScrollbarMouseDown(t)},o.prototype.restoreState=function(t){this._context.viewLayout.setScrollPositionNow({scrollTop:t.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:t.scrollLeft})},o.prototype.getOffsetForColumn=function(t,i){var l=this._context.model.validateModelPosition({lineNumber:t,column:i}),g=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(l);this._flushAccumulatedAndRenderNow();var te=this.viewLines.visibleRangeForPosition(new se.a(g.lineNumber,g.column));return te?te.left:-1},o.prototype.getTargetAtClientPoint=function(t,i){var l=this.pointerHandler.getTargetAtClientPoint(t,i);return l?ft.convertViewToModelMouseTarget(l,this._context.model.coordinatesConverter):null},o.prototype.createOverviewRuler=function(t){return new rs(this._context,t)},o.prototype.change=function(t){var i=this;return this._renderOnce(function(){var l=i.viewZones.changeViewZones(t);return l&&(i._context.viewLayout.onHeightMaybeChanged(),i._context.privateViewEventBus.emit(new Uo)),l})},o.prototype.render=function(t,i){if(i){this.viewLines.forceShouldRender();for(var l=0,g=this.viewParts.length;l<g;l++){var te=this.viewParts[l];te.forceShouldRender()}}t?this._flushAccumulatedAndRenderNow():this._scheduleRender()},o.prototype.focus=function(){this._textAreaHandler.focusTextArea()},o.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},o.prototype.setAriaOptions=function(t){this._textAreaHandler.setAriaOptions(t)},o.prototype.addContentWidget=function(t){this.contentWidgets.addWidget(t.widget),this.layoutContentWidget(t),this._scheduleRender()},o.prototype.layoutContentWidget=function(t){var i=t.position&&t.position.range||null;if(i===null){var l=t.position?t.position.position:null;l!==null&&(i=new ye.a(l.lineNumber,l.column,l.lineNumber,l.column))}var g=t.position?t.position.preference:null;this.contentWidgets.setWidgetPosition(t.widget,i,g),this._scheduleRender()},o.prototype.removeContentWidget=function(t){this.contentWidgets.removeWidget(t.widget),this._scheduleRender()},o.prototype.addOverlayWidget=function(t){this.overlayWidgets.addWidget(t.widget),this.layoutOverlayWidget(t),this._scheduleRender()},o.prototype.layoutOverlayWidget=function(t){var i=t.position?t.position.preference:null,l=this.overlayWidgets.setWidgetPosition(t.widget,i);l&&this._scheduleRender()},o.prototype.removeOverlayWidget=function(t){this.overlayWidgets.removeWidget(t.widget),this._scheduleRender()},o}(V);function ci(k){try{return k()}catch(o){Object(I.e)(o)}}var ui=function(){function k(o){this._selTrackedRange=null,this._trackSelection=!0,this._setState(o,new Re.f(new ye.a(1,1,1,1),0,new se.a(1,1),0),new Re.f(new ye.a(1,1,1,1),0,new se.a(1,1),0))}return k.prototype.dispose=function(o){this._removeTrackedRange(o)},k.prototype.startTrackingSelection=function(o){this._trackSelection=!0,this._updateTrackedRange(o)},k.prototype.stopTrackingSelection=function(o){this._trackSelection=!1,this._removeTrackedRange(o)},k.prototype._updateTrackedRange=function(o){if(!this._trackSelection)return;this._selTrackedRange=o.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0)},k.prototype._removeTrackedRange=function(o){this._selTrackedRange=o.model._setTrackedRange(this._selTrackedRange,null,0)},k.prototype.asCursorState=function(){return new Re.d(this.modelState,this.viewState)},k.prototype.readSelectionFromMarkers=function(o){var t=o.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.getDirection()===0?new gt.a(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new gt.a(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},k.prototype.ensureValidState=function(o){this._setState(o,this.modelState,this.viewState)},k.prototype.setState=function(o,t,i){this._setState(o,t,i)},k.prototype._setState=function(o,t,i){if(t){var l=o.model.validateRange(t.selectionStart),te=t.selectionStart.equalsRange(l)?t.selectionStartLeftoverVisibleColumns:0,g=o.model.validatePosition(t.position),Ae=t.position.equals(g)?t.leftoverVisibleColumns:0;t=new Re.f(l,te,g,Ae)}else{if(!i)return;var l=o.model.validateRange(o.convertViewRangeToModelRange(i.selectionStart)),g=o.model.validatePosition(o.convertViewPositionToModelPosition(i.position.lineNumber,i.position.column));t=new Re.f(l,i.selectionStartLeftoverVisibleColumns,g,i.leftoverVisibleColumns)}if(i){var ct=o.validateViewRange(i.selectionStart,t.selectionStart),_t=o.validateViewPosition(i.position,t.position);i=new Re.f(ct,t.selectionStartLeftoverVisibleColumns,_t,t.leftoverVisibleColumns)}else{var Se=o.convertModelPositionToViewPosition(new se.a(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),qe=o.convertModelPositionToViewPosition(new se.a(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),ct=new ye.a(Se.lineNumber,Se.column,qe.lineNumber,qe.column),_t=o.convertModelPositionToViewPosition(t.position);i=new Re.f(ct,t.selectionStartLeftoverVisibleColumns,_t,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(o)},k}(),Vn=function(){function k(o){this.context=o,this.primaryCursor=new ui(o),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return k.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},k.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var o=0,t=this.secondaryCursors.length;o<t;o++)this.secondaryCursors[o].startTrackingSelection(this.context)},k.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var o=0,t=this.secondaryCursors.length;o<t;o++)this.secondaryCursors[o].stopTrackingSelection(this.context)},k.prototype.updateContext=function(o){this.context=o},k.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var o=0,t=this.secondaryCursors.length;o<t;o++)this.secondaryCursors[o].ensureValidState(this.context)},k.prototype.readSelectionFromMarkers=function(){var o=[];o[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return o},k.prototype.getAll=function(){var o=[];o[0]=this.primaryCursor.asCursorState();for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].asCursorState();return o},k.prototype.getViewPositions=function(){var o=[];o[0]=this.primaryCursor.viewState.position;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].viewState.position;return o},k.prototype.getSelections=function(){var o=[];o[0]=this.primaryCursor.modelState.selection;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].modelState.selection;return o},k.prototype.getViewSelections=function(){var o=[];o[0]=this.primaryCursor.viewState.selection;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].viewState.selection;return o},k.prototype.setSelections=function(o){this.setStates(Re.d.fromModelSelections(o))},k.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},k.prototype.setStates=function(o){if(o===null)return;this.primaryCursor.setState(this.context,o[0].modelState,o[0].viewState),this._setSecondaryStates(o.slice(1))},k.prototype._setSecondaryStates=function(o){var t=this.secondaryCursors.length,i=o.length;if(t<i)for(var l=i-t,g=0;g<l;g++)this._addSecondaryCursor();else if(t>i)for(var te=t-i,g=0;g<te;g++)this._removeSecondaryCursor(this.secondaryCursors.length-1);for(var g=0;g<i;g++)this.secondaryCursors[g].setState(this.context,o[g].modelState,o[g].viewState)},k.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},k.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new ui(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},k.prototype.getLastAddedCursorIndex=function(){return this.secondaryCursors.length===0||this.lastAddedCursorIndex===0?0:this.lastAddedCursorIndex},k.prototype._removeSecondaryCursor=function(o){this.lastAddedCursorIndex>=o+1&&this.lastAddedCursorIndex--,this.secondaryCursors[o].dispose(this.context),this.secondaryCursors.splice(o,1)},k.prototype._getAll=function(){var o=[];o[0]=this.primaryCursor;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t];return o},k.prototype.normalize=function(){if(this.secondaryCursors.length===0)return;for(var o=this._getAll(),t=[],i=0,l=o.length;i<l;i++)t.push({index:i,selection:o[i].modelState.selection});t.sort(function(zo,ko){return zo.selection.startLineNumber===ko.selection.startLineNumber?zo.selection.startColumn-ko.selection.startColumn:zo.selection.startLineNumber-ko.selection.startLineNumber});for(var g=0;g<t.length-1;g++){var te=t[g],Ae=t[g+1],Se=te.selection,qe=Ae.selection;if(!this.context.config.multiCursorMergeOverlapping)continue;var ct=void 0;if(qe.isEmpty()||Se.isEmpty()?ct=qe.getStartPosition().isBeforeOrEqual(Se.getEndPosition()):ct=qe.getStartPosition().isBefore(Se.getEndPosition()),ct){var _t=te.index<Ae.index?g:g+1,tt=te.index<Ae.index?g+1:g,kt=t[tt].index,Bt=t[_t].index,Ht=t[tt].selection,qt=t[_t].selection;if(!Ht.equalsSelection(qt)){var $t=Ht.plusRange(qt),io=Ht.selectionStartLineNumber===Ht.startLineNumber&&Ht.selectionStartColumn===Ht.startColumn,yo=qt.selectionStartLineNumber===qt.startLineNumber&&qt.selectionStartColumn===qt.startColumn,po=void 0;kt===this.lastAddedCursorIndex?(po=io,this.lastAddedCursorIndex=Bt):po=yo;var bo=void 0;po?bo=new gt.a($t.startLineNumber,$t.startColumn,$t.endLineNumber,$t.endColumn):bo=new gt.a($t.endLineNumber,$t.endColumn,$t.startLineNumber,$t.startColumn),t[_t].selection=bo;var vo=Re.d.fromModelSelection(bo);o[Bt].setState(this.context,vo.modelState,vo.viewState)}for(var Co=0,Mo=t;Co<Mo.length;Co++){var Ko=Mo[Co];Ko.index>kt&&Ko.index--}o.splice(kt,1),t.splice(tt,1),this._removeSecondaryCursor(kt-1),g--}}},k}(),gn=e("snIX"),Ln=e("GR/f"),Sn=e("iuje"),xi=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Ei(k){for(var o=0,t=k.length;o<t;o++)if(k[o].type===8)return!0;return!1}var Ji=function(){function k(o,t,i,l,g,te){this.selections=o,this.modelVersionId=t,this.oldSelections=i,this.oldModelVersionId=l,this.source=g,this.reason=te}return k}(),qi=function(){function k(o,t){this.modelVersionId=o.getVersionId(),this.cursorState=t.getAll()}return k.prototype.equals=function(o){if(!o)return!1;if(this.modelVersionId!==o.modelVersionId)return!1;if(this.cursorState.length!==o.cursorState.length)return!1;for(var t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(o.cursorState[t]))return!1;return!0},k}(),er=function(){function k(o,t,i){this._model=o,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}return k.getAllAutoClosedCharacters=function(o){for(var t=[],i=0,l=o;i<l.length;i++){var g=l[i];t=t.concat(g.getAutoClosedCharactersRanges())}return t},k.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},k.prototype.getAutoClosedCharactersRanges=function(){for(var o=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&o.push(i)}return o},k.prototype.isValid=function(o){for(var t=[],i=0;i<this._autoClosedEnclosingDecorations.length;i++){var l=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(l&&(t.push(l),l.startLineNumber!==l.endLineNumber))return!1}t.sort(ye.a.compareRangesUsingStarts),o.sort(ye.a.compareRangesUsingStarts);for(var i=0;i<o.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(o[i]))return!1}return!0},k}(),Rr=function(k){xi(o,k);function o(t,i,l){var g=k.call(this)||this;g._onDidReachMaxCursorCount=g._register(new H.a),g.onDidReachMaxCursorCount=g._onDidReachMaxCursorCount.event,g._onDidAttemptReadOnlyEdit=g._register(new H.a),g.onDidAttemptReadOnlyEdit=g._onDidAttemptReadOnlyEdit.event,g._onDidChange=g._register(new H.a),g.onDidChange=g._onDidChange.event,g._configuration=t,g._model=i,g._knownModelVersionId=g._model.getVersionId(),g._viewModel=l,g.context=new Re.c(g._configuration,g._model,g._viewModel),g._cursors=new Vn(g.context),g._isHandling=!1,g._isDoingComposition=!1,g._selectionsWhenCompositionStarted=null,g._columnSelectData=null,g._autoClosedActions=[],g._prevEditOperationType=0,g._register(g._model.onDidChangeRawContent(function(Ae){if(g._knownModelVersionId=Ae.versionId,g._isHandling)return;var Se=Ae.containsEvent(1);g._onModelContentChanged(Se)})),g._register(l.addEventListener(function(Ae){if(!Ei(Ae))return;if(g._knownModelVersionId!==g._model.getVersionId())return;g.setStates("viewModel",0,g.getAll())}));var te=function(){g.context=new Re.c(g._configuration,g._model,g._viewModel),g._cursors.updateContext(g.context)};return g._register(g._model.onDidChangeLanguage(function(Ae){te()})),g._register(g._model.onDidChangeLanguageConfiguration(function(){te()})),g._register(g._model.onDidChangeOptions(function(){te()})),g._register(g._configuration.onDidChange(function(Ae){Re.b.shouldRecreate(Ae)&&te()})),g}return o.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(K.f)(this._autoClosedActions),k.prototype.dispose.call(this)},o.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var t=this._cursors.getSelections(),i=0;i<this._autoClosedActions.length;i++){var l=this._autoClosedActions[i];l.isValid(t)||(l.dispose(),this._autoClosedActions.splice(i,1),i--)}},o.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},o.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},o.prototype.getAll=function(){return this._cursors.getAll()},o.prototype.setStates=function(t,i,l){l!==null&&l.length>o.MAX_CURSOR_COUNT&&(l=l.slice(0,o.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var g=new qi(this._model,this);this._cursors.setStates(l),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,g)},o.prototype.setColumnSelectData=function(t){this._columnSelectData=t},o.prototype.reveal=function(t,i,l,g){this._revealRange(t,l,0,i,g)},o.prototype.revealRange=function(t,i,l,g,te){this.emitCursorRevealRange(t,l,g,i,te)},o.prototype.scrollTo=function(t){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:t})},o.prototype.saveState=function(){for(var t=[],i=this._cursors.getSelections(),l=0,g=i.length;l<g;l++){var te=i[l];t.push({inSelectionMode:!te.isEmpty(),selectionStart:{lineNumber:te.selectionStartLineNumber,column:te.selectionStartColumn},position:{lineNumber:te.positionLineNumber,column:te.positionColumn}})}return t},o.prototype.restoreState=function(t){for(var i=[],l=0,g=t.length;l<g;l++){var te=t[l],Ae=1,Se=1;te.position&&te.position.lineNumber&&(Ae=te.position.lineNumber),te.position&&te.position.column&&(Se=te.position.column);var qe=Ae,ct=Se;te.selectionStart&&te.selectionStart.lineNumber&&(qe=te.selectionStart.lineNumber),te.selectionStart&&te.selectionStart.column&&(ct=te.selectionStart.column),i.push({selectionStartLineNumber:qe,selectionStartColumn:ct,positionLineNumber:Ae,positionColumn:Se})}this.setStates("restoreState",0,Re.d.fromModelSelections(i)),this.reveal("restoreState",!0,0,1)},o.prototype._onModelContentChanged=function(t){if(this._prevEditOperationType=0,t)this._cursors.dispose(),this._cursors=new Vn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var i=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,Re.d.fromModelSelections(i))}},o.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},o.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var t=this._cursors.getPrimaryCursor(),i=t.viewState.selectionStart.getStartPosition(),l=i.lineNumber,g=Re.a.visibleColumnFromColumn2(this.context.config,this.context.viewModel,i);return{isReal:!1,fromViewLineNumber:l,fromViewVisualColumn:g,toViewLineNumber:l,toViewVisualColumn:g}},o.prototype.getSelections=function(){return this._cursors.getSelections()},o.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},o.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},o.prototype.setSelections=function(t,i){this.setStates(t,0,Re.d.fromModelSelections(i))},o.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},o.prototype.setPrevEditOperationType=function(t){this._prevEditOperationType=t},o.prototype._pushAutoClosedAction=function(t,i){for(var l=[],g=[],te=0,Ae=t.length;te<Ae;te++)l.push({range:t[te],options:{inlineClassName:"auto-closed-character",stickiness:1}}),g.push({range:i[te],options:{stickiness:1}});var Se=this._model.deltaDecorations([],l),qe=this._model.deltaDecorations([],g);this._autoClosedActions.push(new er(this._model,Se,qe))},o.prototype._executeEditOperation=function(t){if(!t)return;t.shouldPushStackElementBefore&&this._model.pushStackElement();var i=Ir.executeCommands(this._model,this._cursors.getSelections(),t.commands);if(i){this._interpretCommandResult(i);for(var l=[],g=[],te=0;te<t.commands.length;te++){var Ae=t.commands[te];Ae instanceof Ln.b&&Ae.enclosingRange&&Ae.closeCharacterRange&&(l.push(Ae.closeCharacterRange),g.push(Ae.enclosingRange))}l.length>0&&this._pushAutoClosedAction(l,g),this._prevEditOperationType=t.type}t.shouldPushStackElementAfter&&this._model.pushStackElement()},o.prototype._interpretCommandResult=function(t){(!t||t.length===0)&&(t=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(t),this._cursors.normalize()},o.prototype._emitStateChangedIfNecessary=function(t,i,l){var g=new qi(this._model,this);if(g.equals(l))return!1;var te=this._cursors.getSelections(),Ae=this._cursors.getViewSelections();try{var Se=this._beginEmit();Se.emit(new jo(Ae,te))}finally{this._endEmit()}if(!l||l.cursorState.length!==g.cursorState.length||g.cursorState.some(function(_t,tt){return!_t.modelState.equals(l.cursorState[tt].modelState)})){var qe=l?l.cursorState.map(function(_t){return _t.modelState.selection}):null,ct=l?l.modelVersionId:0;this._onDidChange.fire(new Ji(te,g.modelVersionId,qe,ct,t||"keyboard",i))}return!0},o.prototype._revealRange=function(t,i,l,g,te){var Ae=this._cursors.getViewPositions(),Se=Ae[0];if(i===1)for(var qe=1;qe<Ae.length;qe++)Ae[qe].isBefore(Se)&&(Se=Ae[qe]);else if(i===2)for(var qe=1;qe<Ae.length;qe++)Se.isBeforeOrEqual(Ae[qe])&&(Se=Ae[qe]);else if(Ae.length>1)return;var ct=new ye.a(Se.lineNumber,Se.column,Se.lineNumber,Se.column);this.emitCursorRevealRange(t,ct,l,g,te)},o.prototype.emitCursorRevealRange=function(t,i,l,g,te){try{var Ae=this._beginEmit();Ae.emit(new Cn(t,i,l,g,te))}finally{this._endEmit()}},o.prototype._findAutoClosingPairs=function(t){if(!t.length)return null;for(var i=[],l=0,g=t.length;l<g;l++){var te=t[l];if(!te.text||te.text.indexOf(`
`)>=0)return null;var Ae=te.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!Ae)return null;var Se=Ae[1],qe=this.context.config.autoClosingPairsClose2.get(Se);if(!qe||qe.length!==1)return null;var ct=qe[0].open,_t=te.text.length-Ae[2].length-1,tt=te.text.lastIndexOf(ct,_t-1);if(tt===-1)return null;i.push([tt,_t])}return i},o.prototype.executeEdits=function(t,i,l){var g=this,te=null;t==="snippet"&&(te=this._findAutoClosingPairs(i)),te&&(i[0]._isTracked=!0);var Ae=[],Se=[],qe=this._model.pushEditOperations(this.getSelections(),i,function(ct){if(te)for(var _t=0,tt=te.length;_t<tt;_t++){var kt=te[_t],Bt=kt[0],Ht=kt[1],qt=ct[_t],$t=qt.range.startLineNumber,io=qt.range.startColumn-1+Bt,yo=qt.range.startColumn-1+Ht;Ae.push(new ye.a($t,yo+1,$t,yo+2)),Se.push(new ye.a($t,io+1,$t,yo+2))}var po=l(ct);return po&&(g._isHandling=!0),po});qe&&(this._isHandling=!1,this.setSelections(t,qe)),Ae.length>0&&this._pushAutoClosedAction(Ae,Se)},o.prototype.trigger=function(t,i,l){var g=Sn.b;if(i===g.CompositionStart){this._isDoingComposition=!0,this._selectionsWhenCompositionStarted=this.getSelections().slice(0);return}if(i===g.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68)){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var te=new qi(this._model,this),Ae=0;i!==g.Undo&&i!==g.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(i){case g.Type:this._type(t,l.text);break;case g.ReplacePreviousChar:this._replacePreviousChar(l.text,l.replaceCharCnt);break;case g.Paste:Ae=4,this._paste(l.text,l.pasteOnNewLine,l.multicursorText||[]);break;case g.Cut:this._cut();break;case g.Undo:Ae=5,this._interpretCommandResult(this._model.undo());break;case g.Redo:Ae=6,this._interpretCommandResult(this._model.redo());break;case g.ExecuteCommand:this._externalExecuteCommand(l);break;case g.ExecuteCommands:this._externalExecuteCommands(l);break;case g.CompositionEnd:this._interpretCompositionEnd(t);break}}catch(Se){Object(I.e)(Se)}this._isHandling=!1,i!==g.Undo&&i!==g.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,Ae,te)&&this._revealRange(t,0,0,!0,0)},o.prototype._interpretCompositionEnd=function(t){if(!this._isDoingComposition&&t==="keyboard"){var i=er.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Ln.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),i)),this._selectionsWhenCompositionStarted=null}},o.prototype._type=function(t,i){if(!this._isDoingComposition&&t==="keyboard")for(var l=i.length,g=0;g<l;){var te=me.E(i,g),Ae=i.substr(g,te),Se=er.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Ln.a.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),Se,Ae)),g+=te}else this._executeEditOperation(Ln.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),i))},o.prototype._replacePreviousChar=function(t,i){this._executeEditOperation(Ln.a.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t,i))},o.prototype._paste=function(t,i,l){this._executeEditOperation(Ln.a.paste(this.context.config,this.context.model,this.getSelections(),t,i,l))},o.prototype._cut=function(){this._executeEditOperation(gn.a.cut(this.context.config,this.context.model,this.getSelections()))},o.prototype._externalExecuteCommand=function(t){this._cursors.killSecondaryCursors(),this._executeEditOperation(new Re.e(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},o.prototype._externalExecuteCommands=function(t){this._executeEditOperation(new Re.e(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},o.MAX_CURSOR_COUNT=1e4,o}(Bo),Ir=function(){function k(){}return k.executeCommands=function(o,t,i){for(var l={model:o,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},g=this._innerExecuteCommands(l,i),te=0,Ae=l.trackedRanges.length;te<Ae;te++)l.model._setTrackedRange(l.trackedRanges[te],null,0);return g},k._innerExecuteCommands=function(o,t){if(this._arrayIsEmpty(t))return null;var i=this._getEditOperations(o,t);if(i.operations.length===0)return null;var l=i.operations,g=this._getLoserCursorMap(l);if(g.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var te=[],Ae=0,Se=l.length;Ae<Se;Ae++)g.hasOwnProperty(l[Ae].identifier.major.toString())||te.push(l[Ae]);i.hadTrackedEditOperation&&te.length>0&&(te[0]._isTracked=!0);var qe=o.model.pushEditOperations(o.selectionsBefore,te,function(Ht){for(var qt=[],$t=0;$t<o.selectionsBefore.length;$t++)qt[$t]=[];for(var io=0,yo=Ht;io<yo.length;io++){var po=yo[io];if(!po.identifier)continue;qt[po.identifier.major].push(po)}for(var bo=function(Mo,Ko){return Mo.identifier.minor-Ko.identifier.minor},vo=[],Co=function(Mo){qt[Mo].length>0?(qt[Mo].sort(bo),vo[Mo]=t[Mo].computeCursorState(o.model,{getInverseEditOperations:function(){return qt[Mo]},getTrackedSelection:function(Ko){var zo=parseInt(Ko,10),ko=o.model._getTrackedRange(o.trackedRanges[zo]);return o.trackedRangesDirection[zo]===0?new gt.a(ko.startLineNumber,ko.startColumn,ko.endLineNumber,ko.endColumn):new gt.a(ko.endLineNumber,ko.endColumn,ko.startLineNumber,ko.startColumn)}})):vo[Mo]=o.selectionsBefore[Mo]},$t=0;$t<o.selectionsBefore.length;$t++)Co($t);return vo});qe||(qe=o.selectionsBefore);var ct=[];for(var _t in g)g.hasOwnProperty(_t)&&ct.push(parseInt(_t,10));ct.sort(function(Ht,qt){return qt-Ht});for(var tt=0,kt=ct;tt<kt.length;tt++){var Bt=kt[tt];qe.splice(Bt,1)}return qe},k._arrayIsEmpty=function(o){for(var t=0,i=o.length;t<i;t++)if(o[t])return!1;return!0},k._getEditOperations=function(o,t){for(var i=[],l=!1,g=0,te=t.length;g<te;g++){var Ae=t[g];if(Ae){var Se=this._getEditOperationsFromCommand(o,g,Ae);i=i.concat(Se.operations),l=l||Se.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:l}},k._getEditOperationsFromCommand=function(o,t,i){var l=[],g=0,te=function(_t,tt,kt){if(kt===void 0&&(kt=!1),_t.isEmpty()&&tt==="")return;l.push({identifier:{major:t,minor:g++},range:_t,text:tt,forceMoveMarkers:kt,isAutoWhitespaceEdit:i.insertsAutoWhitespace})},Ae=!1,Se=function(_t,tt,kt){Ae=!0,te(_t,tt,kt)},qe=function(_t,tt){var kt;if(_t.isEmpty())if(typeof tt=="boolean")tt?kt=2:kt=3;else{var Bt=o.model.getLineMaxColumn(_t.startLineNumber);_t.startColumn===Bt?kt=2:kt=3}else kt=1;var Ht=o.trackedRanges.length,qt=o.model._setTrackedRange(null,_t,kt);return o.trackedRanges[Ht]=qt,o.trackedRangesDirection[Ht]=_t.getDirection(),Ht.toString()},ct={addEditOperation:te,addTrackedEditOperation:Se,trackSelection:qe};try{i.getEditOperations(o.model,ct)}catch(_t){return Object(I.e)(_t),{operations:[],hadTrackedEditOperation:!1}}return{operations:l,hadTrackedEditOperation:Ae}},k._getLoserCursorMap=function(o){o=o.slice(0),o.sort(function(Se,qe){return-ye.a.compareRangesUsingEnds(Se.range,qe.range)});for(var t={},i=1;i<o.length;i++){var l=o[i-1],g=o[i];if(l.range.getStartPosition().isBefore(g.range.getEndPosition())){var te=void 0;l.identifier.major>g.identifier.major?te=l.identifier.major:te=g.identifier.major,t[te.toString()]=!0;for(var Ae=0;Ae<o.length;Ae++)o[Ae].identifier.major===te&&(o.splice(Ae,1),Ae<i&&i--,Ae--);i>0&&i--}}return t},k}(),Es=e("9Y+e"),Jo=e("wQH0"),Ai=e("TQUy"),_s=e("QuOb"),Rn=function(){function k(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return k.prototype.insert=function(o){this._hasPending=!0,this._inserts.push(o)},k.prototype.change=function(o){this._hasPending=!0,this._changes.push(o)},k.prototype.remove=function(o){this._hasPending=!0,this._removes.push(o)},k.prototype.mustCommit=function(){return this._hasPending},k.prototype.commit=function(o){if(!this._hasPending)return;var t=this._inserts,i=this._changes,l=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],o._commitPendingChanges(t,i,l)},k}(),_i=function(){function k(o,t,i,l,g){this.id=o,this.afterLineNumber=t,this.ordinal=i,this.height=l,this.minWidth=g,this.prefixSum=0}return k}(),Xn=function(){function k(o,t){this._instanceId=me.M(++k.INSTANCE_COUNT),this._pendingChanges=new Rn,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=o,this._lineHeight=t}return k.findInsertionIndex=function(o,t,i){for(var l=0,g=o.length;l<g;){var te=l+g>>>1;t===o[te].afterLineNumber?i<o[te].ordinal?g=te:l=te+1:t<o[te].afterLineNumber?g=te:l=te+1}return l},k.prototype.setLineHeight=function(o){this._checkPendingChanges(),this._lineHeight=o},k.prototype.onFlushed=function(o){this._checkPendingChanges(),this._lineCount=o},k.prototype.changeWhitespace=function(o){var t=this;try{var i={insertWhitespace:function(l,g,te,Ae){l=l|0,g=g|0,te=te|0,Ae=Ae|0;var Se=t._instanceId+ ++t._lastWhitespaceId;return t._pendingChanges.insert(new _i(Se,l,g,te,Ae)),Se},changeOneWhitespace:function(l,g,te){g=g|0,te=te|0,t._pendingChanges.change({id:l,newAfterLineNumber:g,newHeight:te})},removeWhitespace:function(l){t._pendingChanges.remove({id:l})}};return o(i)}finally{this._pendingChanges.commit(this)}},k.prototype._commitPendingChanges=function(o,t,i){if((o.length>0||i.length>0)&&(this._minWidth=-1),o.length+t.length+i.length<=1){for(var l=0,g=o;l<g.length;l++){var te=g[l];this._insertWhitespace(te)}for(var Ae=0,Se=t;Ae<Se.length;Ae++){var qe=Se[Ae];this._changeOneWhitespace(qe.id,qe.newAfterLineNumber,qe.newHeight)}for(var ct=0,_t=i;ct<_t.length;ct++){var tt=_t[ct],kt=this._findWhitespaceIndex(tt.id);if(kt===-1)continue;this._removeWhitespace(kt)}return}for(var Bt=new Set,Ht=0,qt=i;Ht<qt.length;Ht++){var tt=qt[Ht];Bt.add(tt.id)}for(var $t=new Map,io=0,yo=t;io<yo.length;io++){var qe=yo[io];$t.set(qe.id,qe)}var po=function(vo){for(var Co=[],Mo=0,Ko=vo;Mo<Ko.length;Mo++){var zo=Ko[Mo];if(Bt.has(zo.id))continue;if($t.has(zo.id)){var ko=$t.get(zo.id);zo.afterLineNumber=ko.newAfterLineNumber,zo.height=ko.newHeight}Co.push(zo)}return Co},bo=po(this._arr).concat(po(o));bo.sort(function(vo,Co){return vo.afterLineNumber===Co.afterLineNumber?vo.ordinal-Co.ordinal:vo.afterLineNumber-Co.afterLineNumber}),this._arr=bo,this._prefixSumValidIndex=-1},k.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},k.prototype._insertWhitespace=function(o){var t=k.findInsertionIndex(this._arr,o.afterLineNumber,o.ordinal);this._arr.splice(t,0,o),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},k.prototype._findWhitespaceIndex=function(o){for(var t=this._arr,i=0,l=t.length;i<l;i++)if(t[i].id===o)return i;return-1},k.prototype._changeOneWhitespace=function(o,t,i){var l=this._findWhitespaceIndex(o);if(l===-1)return;if(this._arr[l].height!==i&&(this._arr[l].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,l-1)),this._arr[l].afterLineNumber!==t){var g=this._arr[l];this._removeWhitespace(l),g.afterLineNumber=t,this._insertWhitespace(g)}},k.prototype._removeWhitespace=function(o){this._arr.splice(o,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,o-1)},k.prototype.onLinesDeleted=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0,this._lineCount-=t-o+1;for(var i=0,l=this._arr.length;i<l;i++){var g=this._arr[i].afterLineNumber;o<=g&&g<=t?this._arr[i].afterLineNumber=o-1:g>t&&(this._arr[i].afterLineNumber-=t-o+1)}},k.prototype.onLinesInserted=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0,this._lineCount+=t-o+1;for(var i=0,l=this._arr.length;i<l;i++){var g=this._arr[i].afterLineNumber;o<=g&&(this._arr[i].afterLineNumber+=t-o+1)}},k.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},k.prototype.getWhitespacesAccumulatedHeight=function(o){this._checkPendingChanges(),o=o|0;var t=Math.max(0,this._prefixSumValidIndex+1);t===0&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(var i=t;i<=o;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,o),this._arr[o].prefixSum},k.prototype.getLinesTotalHeight=function(){this._checkPendingChanges();var o=this._lineHeight*this._lineCount,t=this.getWhitespacesTotalHeight();return o+t},k.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(o){this._checkPendingChanges(),o=o|0;var t=this._findLastWhitespaceBeforeLineNumber(o);return t===-1?0:this.getWhitespacesAccumulatedHeight(t)},k.prototype._findLastWhitespaceBeforeLineNumber=function(o){o=o|0;for(var t=this._arr,i=0,l=t.length-1;i<=l;){var g=l-i|0,te=g/2|0,Ae=i+te|0;if(t[Ae].afterLineNumber<o){if(Ae+1>=t.length||t[Ae+1].afterLineNumber>=o)return Ae;i=Ae+1|0}else l=Ae-1|0}return-1},k.prototype._findFirstWhitespaceAfterLineNumber=function(o){o=o|0;var t=this._findLastWhitespaceBeforeLineNumber(o),i=t+1;return i<this._arr.length?i:-1},k.prototype.getFirstWhitespaceIndexAfterLineNumber=function(o){return this._checkPendingChanges(),o=o|0,this._findFirstWhitespaceAfterLineNumber(o)},k.prototype.getVerticalOffsetForLineNumber=function(o){this._checkPendingChanges(),o=o|0;var t;o>1?t=this._lineHeight*(o-1):t=0;var i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(o);return t+i},k.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),this._minWidth===-1){for(var o=0,t=0,i=this._arr.length;t<i;t++)o=Math.max(o,this._arr[t].minWidth);this._minWidth=o}return this._minWidth},k.prototype.isAfterLines=function(o){this._checkPendingChanges();var t=this.getLinesTotalHeight();return o>t},k.prototype.getLineNumberAtOrAfterVerticalOffset=function(o){if(this._checkPendingChanges(),o=o|0,o<0)return 1;for(var t=this._lineCount|0,i=this._lineHeight,l=1,g=t;l<g;){var te=(l+g)/2|0,Ae=this.getVerticalOffsetForLineNumber(te)|0;if(o>=Ae+i)l=te+1;else{if(o>=Ae)return te;g=te}}return l>t?t:l},k.prototype.getLinesViewportData=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0;var i=this._lineHeight,l=this.getLineNumberAtOrAfterVerticalOffset(o)|0,g=this.getVerticalOffsetForLineNumber(l)|0,te=this._lineCount|0,Ae=this.getFirstWhitespaceIndexAfterLineNumber(l)|0,Se=this.getWhitespacesCount()|0,qe,ct;Ae===-1?(Ae=Se,ct=te+1,qe=0):(ct=this.getAfterLineNumberForWhitespaceIndex(Ae)|0,qe=this.getHeightForWhitespaceIndex(Ae)|0);var _t=g,tt=_t,kt=5e5,Bt=0;g>=kt&&(Bt=Math.floor(g/kt)*kt,Bt=Math.floor(Bt/i)*i,tt-=Bt);for(var Ht=[],qt=o+(t-o)/2,$t=-1,io=l;io<=te;io++){if($t===-1){var yo=_t,po=_t+i;(yo<=qt&&qt<po||yo>qt)&&($t=io)}for(_t+=i,Ht[io-l]=tt,tt+=i;ct===io;)tt+=qe,_t+=qe,Ae++,Ae>=Se?ct=te+1:(ct=this.getAfterLineNumberForWhitespaceIndex(Ae)|0,qe=this.getHeightForWhitespaceIndex(Ae)|0);if(_t>=t){te=io;break}}$t===-1&&($t=te);var bo=this.getVerticalOffsetForLineNumber(te)|0,vo=l,Co=te;return vo<Co&&(g<o&&vo++),vo<Co&&(bo+i>t&&Co--),{bigNumbersDelta:Bt,startLineNumber:l,endLineNumber:te,relativeVerticalOffset:Ht,centeredLineNumber:$t,completelyVisibleStartLineNumber:vo,completelyVisibleEndLineNumber:Co}},k.prototype.getVerticalOffsetForWhitespaceIndex=function(o){this._checkPendingChanges(),o=o|0;var t=this.getAfterLineNumberForWhitespaceIndex(o),i;t>=1?i=this._lineHeight*t:i=0;var l;return o>0?l=this.getWhitespacesAccumulatedHeight(o-1):l=0,i+l},k.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(o){this._checkPendingChanges(),o=o|0;var t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;var l=this.getVerticalOffsetForWhitespaceIndex(i),g=this.getHeightForWhitespaceIndex(i);if(o>=l+g)return-1;for(;t<i;){var te=Math.floor((t+i)/2),Ae=this.getVerticalOffsetForWhitespaceIndex(te),Se=this.getHeightForWhitespaceIndex(te);if(o>=Ae+Se)t=te+1;else{if(o>=Ae)return te;i=te}}return t},k.prototype.getWhitespaceAtVerticalOffset=function(o){this._checkPendingChanges(),o=o|0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(o);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>o)return null;var l=this.getHeightForWhitespaceIndex(t),g=this.getIdForWhitespaceIndex(t),te=this.getAfterLineNumberForWhitespaceIndex(t);return{id:g,afterLineNumber:te,verticalOffset:i,height:l}},k.prototype.getWhitespaceViewportData=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(o),l=this.getWhitespacesCount()-1;if(i<0)return[];for(var g=[],te=i;te<=l;te++){var Ae=this.getVerticalOffsetForWhitespaceIndex(te),Se=this.getHeightForWhitespaceIndex(te);if(Ae>=t)break;g.push({id:this.getIdForWhitespaceIndex(te),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(te),verticalOffset:Ae,height:Se})}return g},k.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},k.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},k.prototype.getIdForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].id},k.prototype.getAfterLineNumberForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].afterLineNumber},k.prototype.getHeightForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].height},k.INSTANCE_COUNT=0,k}(),zn=e("qNAo"),Ri=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),tr=125,wi=function(){function k(o,t,i,l){o=o|0,t=t|0,i=i|0,l=l|0,o<0&&(o=0),t<0&&(t=0),i<0&&(i=0),l<0&&(l=0),this.width=o,this.contentWidth=t,this.scrollWidth=Math.max(o,t),this.height=i,this.contentHeight=l,this.scrollHeight=Math.max(i,l)}return k.prototype.equals=function(o){return this.width===o.width&&this.contentWidth===o.contentWidth&&this.height===o.height&&this.contentHeight===o.contentHeight},k}(),Ii=function(k){Ri(o,k);function o(t,i){var l=k.call(this)||this;return l._onDidContentSizeChange=l._register(new H.a),l.onDidContentSizeChange=l._onDidContentSizeChange.event,l._dimensions=new wi(0,0,0,0),l._scrollable=l._register(new _s.a(t,i)),l.onDidScroll=l._scrollable.onScroll,l}return o.prototype.getScrollable=function(){return this._scrollable},o.prototype.setSmoothScrollDuration=function(t){this._scrollable.setSmoothScrollDuration(t)},o.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},o.prototype.getScrollDimensions=function(){return this._dimensions},o.prototype.setScrollDimensions=function(t){if(this._dimensions.equals(t))return;var i=this._dimensions;this._dimensions=t,this._scrollable.setScrollDimensions({width:t.width,scrollWidth:t.scrollWidth,height:t.height,scrollHeight:t.scrollHeight});var l=i.contentWidth!==t.contentWidth,g=i.contentHeight!==t.contentHeight;(l||g)&&this._onDidContentSizeChange.fire({contentWidth:t.contentWidth,contentHeight:t.contentHeight,contentWidthChanged:l,contentHeightChanged:g})},o.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},o.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},o.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},o}(K.a),ws=function(k){Ri(o,k);function o(t,i,l){var g=k.call(this)||this;g._configuration=t;var te=g._configuration.options,Ae=te.get(107);return g._linesLayout=new Xn(i,te.get(49)),g._scrollable=g._register(new Ii(0,l)),g._configureSmoothScrollDuration(),g._scrollable.setScrollDimensions(new wi(Ae.contentWidth,0,Ae.height,0)),g.onDidScroll=g._scrollable.onDidScroll,g.onDidContentSizeChange=g._scrollable.onDidContentSizeChange,g._updateHeight(),g}return o.prototype.dispose=function(){k.prototype.dispose.call(this)},o.prototype.getScrollable=function(){return this._scrollable.getScrollable()},o.prototype.onHeightMaybeChanged=function(){this._updateHeight()},o.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?tr:0)},o.prototype.onConfigurationChanged=function(t){var i=this._configuration.options;if(t.hasChanged(49)&&this._linesLayout.setLineHeight(i.get(49)),t.hasChanged(107)){var l=i.get(107),g=l.contentWidth,te=l.height,Ae=this._scrollable.getScrollDimensions(),Se=Ae.scrollWidth;this._scrollable.setScrollDimensions(new wi(g,Ae.contentWidth,te,this._getContentHeight(g,te,Se)))}else this._updateHeight();t.hasChanged(87)&&this._configureSmoothScrollDuration()},o.prototype.onFlushed=function(t){this._linesLayout.onFlushed(t)},o.prototype.onLinesDeleted=function(t,i){this._linesLayout.onLinesDeleted(t,i)},o.prototype.onLinesInserted=function(t,i){this._linesLayout.onLinesInserted(t,i)},o.prototype._getHorizontalScrollbarHeight=function(t,i){var l=this._configuration.options,g=l.get(78);return g.horizontal===2||t>=i?0:g.horizontalScrollbarSize},o.prototype._getContentHeight=function(t,i,l){var g=this._configuration.options,te=this._linesLayout.getLinesTotalHeight();return g.get(80)?te+=i-g.get(49):te+=this._getHorizontalScrollbarHeight(t,l),te},o.prototype._updateHeight=function(){var t=this._scrollable.getScrollDimensions(),i=t.width,l=t.height,g=t.scrollWidth;this._scrollable.setScrollDimensions(new wi(i,t.contentWidth,l,this._getContentHeight(i,l,g)))},o.prototype.getCurrentViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getCurrentScrollPosition();return new zn.f(i.scrollTop,i.scrollLeft,t.width,t.height)},o.prototype.getFutureViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getFutureScrollPosition();return new zn.f(i.scrollTop,i.scrollLeft,t.width,t.height)},o.prototype._computeContentWidth=function(t){var i=this._configuration.options,l=i.get(108),g=i.get(34);if(l.isViewportWrapping){var te=i.get(107),Ae=i.get(54);return t>te.contentWidth+g.typicalHalfwidthCharacterWidth&&(Ae.enabled&&Ae.side==="right")?t+te.verticalScrollbarWidth:t}else{var Se=i.get(79)*g.typicalHalfwidthCharacterWidth,qe=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+Se,qe)}},o.prototype.onMaxLineWidthChanged=function(t){var i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new wi(i.width,this._computeContentWidth(t),i.height,i.contentHeight)),this._updateHeight()},o.prototype.saveState=function(){var t=this._scrollable.getFutureScrollPosition(),i=t.scrollTop,l=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i),g=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(l);return{scrollTop:i,scrollTopWithoutViewZones:i-g,scrollLeft:t.scrollLeft}},o.prototype.changeWhitespace=function(t){return this._linesLayout.changeWhitespace(t)},o.prototype.getVerticalOffsetForLineNumber=function(t){return this._linesLayout.getVerticalOffsetForLineNumber(t)},o.prototype.isAfterLines=function(t){return this._linesLayout.isAfterLines(t)},o.prototype.getLineNumberAtVerticalOffset=function(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)},o.prototype.getWhitespaceAtVerticalOffset=function(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)},o.prototype.getLinesViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)},o.prototype.getLinesViewportDataAtScrollTop=function(t){var i=this._scrollable.getScrollDimensions();return t+i.height>i.scrollHeight&&(t=i.scrollHeight-i.height),t<0&&(t=0),this._linesLayout.getLinesViewportData(t,t+i.height)},o.prototype.getWhitespaceViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)},o.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},o.prototype.getContentWidth=function(){var t=this._scrollable.getScrollDimensions();return t.contentWidth},o.prototype.getScrollWidth=function(){var t=this._scrollable.getScrollDimensions();return t.scrollWidth},o.prototype.getContentHeight=function(){var t=this._scrollable.getScrollDimensions();return t.contentHeight},o.prototype.getScrollHeight=function(){var t=this._scrollable.getScrollDimensions();return t.scrollHeight},o.prototype.getCurrentScrollLeft=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollLeft},o.prototype.getCurrentScrollTop=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollTop},o.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},o.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},o.prototype.deltaScrollNow=function(t,i){var l=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:l.scrollLeft+t,scrollTop:l.scrollTop+i})},o}(K.a),hi=e("tX9W"),Ss=e("LeU+"),$n=function(){function k(o,t){this.outputLineIndex=o,this.outputOffset=t}return k}(),Jn=function(){function k(o,t,i){this.breakOffsets=o,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=i}return k.getInputOffsetOfOutputPosition=function(o,t,i){return t===0?i:o[t-1]+i},k.getOutputPositionOfInputOffset=function(o,t){for(var i=0,l=o.length-1,g=0,te=0;i<=l;){g=i+(l-i)/2|0;var Ae=o[g];if(te=g>0?o[g-1]:0,t<te)l=g-1;else if(t>=Ae)i=g+1;else break}return new $n(g,t-te)},k}(),Ls=function(){function k(o){this._lines=o}return k.prototype.convertViewPositionToModelPosition=function(o){return this._lines.convertViewPositionToModelPosition(o.lineNumber,o.column)},k.prototype.convertViewRangeToModelRange=function(o){return this._lines.convertViewRangeToModelRange(o)},k.prototype.validateViewPosition=function(o,t){return this._lines.validateViewPosition(o.lineNumber,o.column,t)},k.prototype.validateViewRange=function(o,t){return this._lines.validateViewRange(o,t)},k.prototype.convertModelPositionToViewPosition=function(o){return this._lines.convertModelPositionToViewPosition(o.lineNumber,o.column)},k.prototype.convertModelRangeToViewRange=function(o){return this._lines.convertModelRangeToViewRange(o)},k.prototype.modelPositionIsVisible=function(o){return this._lines.modelPositionIsVisible(o.lineNumber,o.column)},k}(),or=function(){function k(o){this._counts=o,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return k.prototype._invalidate=function(o){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,o-1)},k.prototype._ensureValid=function(){if(this._isValid)return;for(var o=this._validEndIndex+1,t=this._counts.length;o<t;o++){var i=this._counts[o],l=o>0?this._modelToView[o-1]:0;this._modelToView[o]=l+i;for(var g=0;g<i;g++)this._viewToModel[l+g]=o}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1},k.prototype.changeValue=function(o,t){if(this._counts[o]===t)return;this._counts[o]=t,this._invalidate(o)},k.prototype.removeValues=function(o,t){this._counts.splice(o,t),this._invalidate(o)},k.prototype.insertValues=function(o,t){this._counts=We.a(this._counts,o,t),this._invalidate(o)},k.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},k.prototype.getAccumulatedValue=function(o){return this._ensureValid(),this._modelToView[o]},k.prototype.getIndexOf=function(o){this._ensureValid();var t=this._viewToModel[o],i=t>0?this._modelToView[t-1]:0;return new Ss.b(t,o-i)},k}(),Nr=function(){function k(o,t,i,l,g,te,Ae,Se){this.model=o,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=l,this.tabSize=g,this.wrappingStrategy=te,this.wrappingColumn=Ae,this.wrappingIndent=Se,this._constructLines(!0,null)}return k.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},k.prototype.createCoordinatesConverter=function(){return new Ls(this)},k.prototype._constructLines=function(o,t){var i=this;this.lines=[],o&&(this.hiddenAreasIds=[]);for(var l=this.model.getLinesContent(),g=l.length,te=this.createLineBreaksComputer(),Ae=0;Ae<g;Ae++)te.addRequest(l[Ae],t?t[Ae]:null);for(var Se=te.finalize(),qe=[],ct=this.hiddenAreasIds.map(function(io){return i.model.getDecorationRange(io)}).sort(ye.a.compareRangesUsingStarts),_t=1,tt=0,kt=-1,Bt=kt+1<ct.length?tt+1:g+2,Ae=0;Ae<g;Ae++){var Ht=Ae+1;Ht===Bt&&(kt++,_t=ct[kt].startLineNumber,tt=ct[kt].endLineNumber,Bt=kt+1<ct.length?tt+1:g+2);var qt=Ht>=_t&&Ht<=tt,$t=Ni(Se[Ae],!qt);qe[Ae]=$t.getViewLineCount(),this.lines[Ae]=$t}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new or(qe)},k.prototype.getHiddenAreas=function(){var o=this;return this.hiddenAreasIds.map(function(t){return o.model.getDecorationRange(t)})},k.prototype._reduceRanges=function(o){var t=this;if(o.length===0)return[];for(var i=o.map(function(ct){return t.model.validateRange(ct)}).sort(ye.a.compareRangesUsingStarts),l=[],g=i[0].startLineNumber,te=i[0].endLineNumber,Ae=1,Se=i.length;Ae<Se;Ae++){var qe=i[Ae];qe.startLineNumber>te+1?(l.push(new ye.a(g,1,te,1)),g=qe.startLineNumber,te=qe.endLineNumber):qe.endLineNumber>te&&(te=qe.endLineNumber)}return l.push(new ye.a(g,1,te,1)),l},k.prototype.setHiddenAreas=function(o){var t=this,i=this._reduceRanges(o),l=this.hiddenAreasIds.map(function(po){return t.model.getDecorationRange(po)}).sort(ye.a.compareRangesUsingStarts);if(i.length===l.length){for(var g=!1,te=0;te<i.length;te++)if(!i[te].equalsRange(l[te])){g=!0;break}if(!g)return!1}for(var Ae=[],Se=0,qe=i;Se<qe.length;Se++){var ct=qe[Se];Ae.push({range:ct,options:hi.a.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,Ae);for(var _t=i,tt=1,kt=0,Bt=-1,Ht=Bt+1<_t.length?kt+1:this.lines.length+2,qt=!1,te=0;te<this.lines.length;te++){var $t=te+1;$t===Ht&&(Bt++,tt=_t[Bt].startLineNumber,kt=_t[Bt].endLineNumber,Ht=Bt+1<_t.length?kt+1:this.lines.length+2);var io=!1;if($t>=tt&&$t<=kt?this.lines[te].isVisible()&&(this.lines[te]=this.lines[te].setVisible(!1),io=!0):(qt=!0,this.lines[te].isVisible()||(this.lines[te]=this.lines[te].setVisible(!0),io=!0)),io){var yo=this.lines[te].getViewLineCount();this.prefixSumComputer.changeValue(te,yo)}}return qt||this.setHiddenAreas([]),!0},k.prototype.modelPositionIsVisible=function(o,t){return o<1||o>this.lines.length?!1:this.lines[o-1].isVisible()},k.prototype.setTabSize=function(o){return this.tabSize===o?!1:(this.tabSize=o,this._constructLines(!1,null),!0)},k.prototype.setWrappingSettings=function(o,t,i,l){var g=this.fontInfo.equals(o),te=this.wrappingStrategy===t,Ae=this.wrappingColumn===i,Se=this.wrappingIndent===l;if(g&&te&&Ae&&Se)return!1;var qe=g&&te&&!Ae&&Se;this.fontInfo=o,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=l;var ct=null;if(qe){ct=[];for(var _t=0,tt=this.lines.length;_t<tt;_t++)ct[_t]=this.lines[_t].getLineBreakData()}return this._constructLines(!1,ct),!0},k.prototype.createLineBreaksComputer=function(){var o=this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory;return o.createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},k.prototype.onModelFlushed=function(){this._constructLines(!0,null)},k.prototype.onModelLinesDeleted=function(o,t,i){if(o<=this._validModelVersionId)return null;var l=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,g=this.prefixSumComputer.getAccumulatedValue(i-1);return this.lines.splice(t-1,i-t+1),this.prefixSumComputer.removeValues(t-1,i-t+1),new un(l,g)},k.prototype.onModelLinesInserted=function(o,t,i,l){if(o<=this._validModelVersionId)return null;for(var g=this.getHiddenAreas(),te=!1,Ae=new se.a(t,1),Se=0,qe=g;Se<qe.length;Se++){var ct=qe[Se];if(ct.containsPosition(Ae)){te=!0;break}}for(var _t=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,tt=0,kt=[],Bt=[],Ht=0,qt=l.length;Ht<qt;Ht++){var $t=Ni(l[Ht],!te);kt.push($t);var io=$t.getViewLineCount();tt+=io,Bt[Ht]=io}return this.lines=this.lines.slice(0,t-1).concat(kt).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,Bt),new Vo(_t,_t+tt-1)},k.prototype.onModelLineChanged=function(o,t,i){if(o<=this._validModelVersionId)return[!1,null,null,null];var l=t-1,g=this.lines[l].getViewLineCount(),te=this.lines[l].isVisible(),Ae=Ni(i,te);this.lines[l]=Ae;var Se=this.lines[l].getViewLineCount(),qe=!1,ct=0,_t=-1,tt=0,kt=-1,Bt=0,Ht=-1;g>Se?(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,_t=ct+Se-1,Bt=_t+1,Ht=Bt+(g-Se)-1,qe=!0):g<Se?(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,_t=ct+g-1,tt=_t+1,kt=tt+(Se-g)-1,qe=!0):(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,_t=ct+Se-1),this.prefixSumComputer.changeValue(l,Se);var qt=ct<=_t?new tn(ct,_t):null,$t=tt<=kt?new Vo(tt,kt):null,io=Bt<=Ht?new un(Bt,Ht):null;return[qe,qt,$t,io]},k.prototype.acceptVersionId=function(o){this._validModelVersionId=o,this.lines.length===1&&!this.lines[0].isVisible()&&this.setHiddenAreas([])},k.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},k.prototype._toValidViewLineNumber=function(o){if(o<1)return 1;var t=this.getViewLineCount();return o>t?t:o|0},k.prototype.getActiveIndentGuide=function(o,t,i){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);var l=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),g=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),te=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),Ae=this.model.getActiveIndentGuide(l.lineNumber,g.lineNumber,te.lineNumber),Se=this.convertModelPositionToViewPosition(Ae.startLineNumber,1),qe=this.convertModelPositionToViewPosition(Ae.endLineNumber,this.model.getLineMaxColumn(Ae.endLineNumber));return{startLineNumber:Se.lineNumber,endLineNumber:qe.lineNumber,indent:Ae.indent}},k.prototype.getViewLinesIndentGuides=function(o,t){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t);for(var i=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),l=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),g=[],te=[],Ae=[],Se=i.lineNumber-1,qe=l.lineNumber-1,ct=null,_t=Se;_t<=qe;_t++){var tt=this.lines[_t];if(tt.isVisible()){var kt=tt.getViewLineNumberOfModelPosition(0,_t===Se?i.column:1),Bt=tt.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(_t+1)),Ht=Bt-kt+1,qt=0;Ht>1&&tt.getViewLineMinColumn(this.model,_t+1,Bt)===1&&(qt=kt===0?1:2),te.push(Ht),Ae.push(qt),ct===null&&(ct=new se.a(_t+1,0))}else ct!==null&&(g=g.concat(this.model.getLinesIndentGuides(ct.lineNumber,_t)),ct=null)}ct!==null&&(g=g.concat(this.model.getLinesIndentGuides(ct.lineNumber,l.lineNumber)),ct=null);for(var $t=t-o+1,io=new Array($t),yo=0,po=0,bo=g.length;po<bo;po++){var vo=g[po],Ht=Math.min($t-yo,te[po]),qt=Ae[po],Co=void 0;qt===2?Co=0:qt===1?Co=1:Co=Ht;for(var Mo=0;Mo<Ht;Mo++)Mo===Co&&(vo=0),io[yo++]=vo}return io},k.prototype.getViewLineContent=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,l=t.remainder;return this.lines[i].getViewLineContent(this.model,i+1,l)},k.prototype.getViewLineLength=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,l=t.remainder;return this.lines[i].getViewLineLength(this.model,i+1,l)},k.prototype.getViewLineMinColumn=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,l=t.remainder;return this.lines[i].getViewLineMinColumn(this.model,i+1,l)},k.prototype.getViewLineMaxColumn=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,l=t.remainder;return this.lines[i].getViewLineMaxColumn(this.model,i+1,l)},k.prototype.getViewLineData=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,l=t.remainder;return this.lines[i].getViewLineData(this.model,i+1,l)},k.prototype.getViewLinesData=function(o,t,i){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t);for(var l=this.prefixSumComputer.getIndexOf(o-1),g=o,te=l.index,Ae=l.remainder,Se=[],qe=te,ct=this.model.getLineCount();qe<ct;qe++){var _t=this.lines[qe];if(!_t.isVisible())continue;var tt=qe===te?Ae:0,kt=_t.getViewLineCount()-tt,Bt=!1;g+kt>t&&(Bt=!0,kt=t-g+1);var Ht=tt+kt;if(_t.getViewLinesData(this.model,qe+1,tt,Ht,g-o,i,Se),g+=kt,Bt)break}return Se},k.prototype.validateViewPosition=function(o,t,i){o=this._toValidViewLineNumber(o);var l=this.prefixSumComputer.getIndexOf(o-1),g=l.index,te=l.remainder,Ae=this.lines[g],Se=Ae.getViewLineMinColumn(this.model,g+1,te),qe=Ae.getViewLineMaxColumn(this.model,g+1,te);t<Se&&(t=Se),t>qe&&(t=qe);var ct=Ae.getModelColumnOfViewPosition(te,t),_t=this.model.validatePosition(new se.a(g+1,ct));return _t.equals(i)?new se.a(o,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},k.prototype.validateViewRange=function(o,t){var i=this.validateViewPosition(o.startLineNumber,o.startColumn,t.getStartPosition()),l=this.validateViewPosition(o.endLineNumber,o.endColumn,t.getEndPosition());return new ye.a(i.lineNumber,i.column,l.lineNumber,l.column)},k.prototype.convertViewPositionToModelPosition=function(o,t){o=this._toValidViewLineNumber(o);var i=this.prefixSumComputer.getIndexOf(o-1),l=i.index,g=i.remainder,te=this.lines[l].getModelColumnOfViewPosition(g,t);return this.model.validatePosition(new se.a(l+1,te))},k.prototype.convertViewRangeToModelRange=function(o){var t=this.convertViewPositionToModelPosition(o.startLineNumber,o.startColumn),i=this.convertViewPositionToModelPosition(o.endLineNumber,o.endColumn);return new ye.a(t.lineNumber,t.column,i.lineNumber,i.column)},k.prototype.convertModelPositionToViewPosition=function(o,t){for(var i=this.model.validatePosition(new se.a(o,t)),l=i.lineNumber,g=i.column,te=l-1,Ae=!1;te>0&&!this.lines[te].isVisible();)te--,Ae=!0;if(te===0&&!this.lines[te].isVisible())return new se.a(1,1);var Se=1+(te===0?0:this.prefixSumComputer.getAccumulatedValue(te-1)),qe;return Ae?qe=this.lines[te].getViewPositionOfModelPosition(Se,this.model.getLineMaxColumn(te+1)):qe=this.lines[l-1].getViewPositionOfModelPosition(Se,g),qe},k.prototype.convertModelRangeToViewRange=function(o){var t=this.convertModelPositionToViewPosition(o.startLineNumber,o.startColumn),i=this.convertModelPositionToViewPosition(o.endLineNumber,o.endColumn);return o.startLineNumber===o.endLineNumber&&t.lineNumber!==i.lineNumber&&i.column===this.getViewLineMinColumn(i.lineNumber)?new ye.a(t.lineNumber,t.column,i.lineNumber-1,this.getViewLineMaxColumn(i.lineNumber-1)):new ye.a(t.lineNumber,t.column,i.lineNumber,i.column)},k.prototype._getViewLineNumberForModelPosition=function(o,t){var i=o-1;if(this.lines[i].isVisible()){var l=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(l,t)}for(;i>0&&!this.lines[i].isVisible();)i--;if(i===0&&!this.lines[i].isVisible())return 1;var g=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(g,this.model.getLineMaxColumn(i+1))},k.prototype.getAllOverviewRulerDecorations=function(o,t,i){for(var l=this.model.getOverviewRulerDecorations(o,t),g=new oi,te=0,Ae=l;te<Ae.length;te++){var Se=Ae[te],qe=Se.options.overviewRuler,ct=qe?qe.position:0;if(ct===0)continue;var _t=qe.getColor(i),tt=this._getViewLineNumberForModelPosition(Se.range.startLineNumber,Se.range.startColumn),kt=this._getViewLineNumberForModelPosition(Se.range.endLineNumber,Se.range.endColumn);g.accept(_t,tt,kt,ct)}return g.result},k.prototype.getDecorationsInRange=function(o,t,i){var l=this.convertViewPositionToModelPosition(o.startLineNumber,o.startColumn),g=this.convertViewPositionToModelPosition(o.endLineNumber,o.endColumn);if(g.lineNumber-l.lineNumber<=o.endLineNumber-o.startLineNumber)return this.model.getDecorationsInRange(new ye.a(l.lineNumber,1,g.lineNumber,g.column),t,i);for(var te=[],Ae=l.lineNumber-1,Se=g.lineNumber-1,qe=null,ct=Ae;ct<=Se;ct++){var _t=this.lines[ct];if(_t.isVisible())qe===null&&(qe=new se.a(ct+1,ct===Ae?l.column:1));else if(qe!==null){var tt=this.model.getLineMaxColumn(ct);te=te.concat(this.model.getDecorationsInRange(new ye.a(qe.lineNumber,qe.column,ct,tt),t,i)),qe=null}}qe!==null&&(te=te.concat(this.model.getDecorationsInRange(new ye.a(qe.lineNumber,qe.column,g.lineNumber,g.column),t,i)),qe=null),te.sort(function(po,bo){var vo=ye.a.compareRangesUsingStarts(po.range,bo.range);return vo===0?po.id<bo.id?-1:po.id>bo.id?1:0:vo});for(var kt=[],Bt=0,Ht=null,qt=0,$t=te;qt<$t.length;qt++){var io=$t[qt],yo=io.id;if(Ht===yo)continue;Ht=yo,kt[Bt++]=io}return kt},k}(),nr=function(){function k(){}return k.prototype.isVisible=function(){return!0},k.prototype.setVisible=function(o){return o?this:ir.INSTANCE},k.prototype.getLineBreakData=function(){return null},k.prototype.getViewLineCount=function(){return 1},k.prototype.getViewLineContent=function(o,t,i){return o.getLineContent(t)},k.prototype.getViewLineLength=function(o,t,i){return o.getLineLength(t)},k.prototype.getViewLineMinColumn=function(o,t,i){return o.getLineMinColumn(t)},k.prototype.getViewLineMaxColumn=function(o,t,i){return o.getLineMaxColumn(t)},k.prototype.getViewLineData=function(o,t,i){var l=o.getLineTokens(t),g=l.getLineContent();return new zn.c(g,!1,1,g.length+1,0,l.inflate())},k.prototype.getViewLinesData=function(o,t,i,l,g,te,Ae){if(!te[g]){Ae[g]=null;return}Ae[g]=this.getViewLineData(o,t,0)},k.prototype.getModelColumnOfViewPosition=function(o,t){return t},k.prototype.getViewPositionOfModelPosition=function(o,t){return new se.a(o,t)},k.prototype.getViewLineNumberOfModelPosition=function(o,t){return o},k.INSTANCE=new k,k}(),ir=function(){function k(){}return k.prototype.isVisible=function(){return!1},k.prototype.setVisible=function(o){return o?nr.INSTANCE:this},k.prototype.getLineBreakData=function(){return null},k.prototype.getViewLineCount=function(){return 0},k.prototype.getViewLineContent=function(o,t,i){throw new Error("Not supported")},k.prototype.getViewLineLength=function(o,t,i){throw new Error("Not supported")},k.prototype.getViewLineMinColumn=function(o,t,i){throw new Error("Not supported")},k.prototype.getViewLineMaxColumn=function(o,t,i){throw new Error("Not supported")},k.prototype.getViewLineData=function(o,t,i){throw new Error("Not supported")},k.prototype.getViewLinesData=function(o,t,i,l,g,te,Ae){throw new Error("Not supported")},k.prototype.getModelColumnOfViewPosition=function(o,t){throw new Error("Not supported")},k.prototype.getViewPositionOfModelPosition=function(o,t){throw new Error("Not supported")},k.prototype.getViewLineNumberOfModelPosition=function(o,t){throw new Error("Not supported")},k.INSTANCE=new k,k}(),Yn=function(){function k(o,t){this._lineBreakData=o,this._isVisible=t}return k.prototype.isVisible=function(){return this._isVisible},k.prototype.setVisible=function(o){return this._isVisible=o,this},k.prototype.getLineBreakData=function(){return this._lineBreakData},k.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},k.prototype.getInputStartOffsetOfOutputLineIndex=function(o){return Jn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,o,0)},k.prototype.getInputEndOffsetOfOutputLineIndex=function(o,t,i){return i+1===this._lineBreakData.breakOffsets.length?o.getLineMaxColumn(t)-1:Jn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i+1,0)},k.prototype.getViewLineContent=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var l=this.getInputStartOffsetOfOutputLineIndex(i),g=this.getInputEndOffsetOfOutputLineIndex(o,t,i),te=o.getValueInRange({startLineNumber:t,startColumn:l+1,endLineNumber:t,endColumn:g+1});return i>0&&(te=rr(this._lineBreakData.wrappedTextIndentLength)+te),te},k.prototype.getViewLineLength=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var l=this.getInputStartOffsetOfOutputLineIndex(i),g=this.getInputEndOffsetOfOutputLineIndex(o,t,i),te=g-l;return i>0&&(te=this._lineBreakData.wrappedTextIndentLength+te),te},k.prototype.getViewLineMinColumn=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this._lineBreakData.wrappedTextIndentLength+1:1},k.prototype.getViewLineMaxColumn=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(o,t,i).length+1},k.prototype.getViewLineData=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var l=this.getInputStartOffsetOfOutputLineIndex(i),g=this.getInputEndOffsetOfOutputLineIndex(o,t,i),te=o.getValueInRange({startLineNumber:t,startColumn:l+1,endLineNumber:t,endColumn:g+1});i>0&&(te=rr(this._lineBreakData.wrappedTextIndentLength)+te);var Ae=i>0?this._lineBreakData.wrappedTextIndentLength+1:1,Se=te.length+1,qe=i+1<this.getViewLineCount(),ct=0;i>0&&(ct=this._lineBreakData.wrappedTextIndentLength);var _t=o.getLineTokens(t),tt=i===0?0:this._lineBreakData.breakOffsetsVisibleColumn[i-1];return new zn.c(te,qe,Ae,Se,tt,_t.sliceAndInflate(l,g,ct))},k.prototype.getViewLinesData=function(o,t,i,l,g,te,Ae){if(!this._isVisible)throw new Error("Not supported");for(var Se=i;Se<l;Se++){var qe=g+Se-i;if(!te[qe]){Ae[qe]=null;continue}Ae[qe]=this.getViewLineData(o,t,Se)}},k.prototype.getModelColumnOfViewPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=t-1;return o>0&&(i<this._lineBreakData.wrappedTextIndentLength?i=0:i-=this._lineBreakData.wrappedTextIndentLength),Jn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,o,i)+1},k.prototype.getViewPositionOfModelPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=Jn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1),l=i.outputLineIndex,g=i.outputOffset+1;return l>0&&(g+=this._lineBreakData.wrappedTextIndentLength),new se.a(o+l,g)},k.prototype.getViewLineNumberOfModelPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=Jn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1);return o+i.outputLineIndex},k}(),Tn=[""];function rr(k){if(k>=Tn.length)for(var o=1;o<=k;o++)Tn[o]=Ms(o);return Tn[k]}function Ms(k){return new Array(k+1).join(" ")}function Ni(k,o){return k===null?o?nr.INSTANCE:ir.INSTANCE:new Yn(k,o)}var Os=function(){function k(o){this._lines=o}return k.prototype._validPosition=function(o){return this._lines.model.validatePosition(o)},k.prototype._validRange=function(o){return this._lines.model.validateRange(o)},k.prototype.convertViewPositionToModelPosition=function(o){return this._validPosition(o)},k.prototype.convertViewRangeToModelRange=function(o){return this._validRange(o)},k.prototype.validateViewPosition=function(o,t){return this._validPosition(t)},k.prototype.validateViewRange=function(o,t){return this._validRange(t)},k.prototype.convertModelPositionToViewPosition=function(o){return this._validPosition(o)},k.prototype.convertModelRangeToViewRange=function(o){return this._validRange(o)},k.prototype.modelPositionIsVisible=function(o){var t=this._lines.model.getLineCount();return!(o.lineNumber<1||o.lineNumber>t)},k}(),fi=function(){function k(o){this.model=o}return k.prototype.dispose=function(){},k.prototype.createCoordinatesConverter=function(){return new Os(this)},k.prototype.getHiddenAreas=function(){return[]},k.prototype.setHiddenAreas=function(o){return!1},k.prototype.setTabSize=function(o){return!1},k.prototype.setWrappingSettings=function(o,t,i,l){return!1},k.prototype.createLineBreaksComputer=function(){var o=[];return{addRequest:function(t,i){o.push(null)},finalize:function(){return o}}},k.prototype.onModelFlushed=function(){},k.prototype.onModelLinesDeleted=function(o,t,i){return new un(t,i)},k.prototype.onModelLinesInserted=function(o,t,i,l){return new Vo(t,i)},k.prototype.onModelLineChanged=function(o,t,i){return[!1,new tn(t,t),null,null]},k.prototype.acceptVersionId=function(o){},k.prototype.getViewLineCount=function(){return this.model.getLineCount()},k.prototype.getActiveIndentGuide=function(o,t,i){return{startLineNumber:o,endLineNumber:o,indent:0}},k.prototype.getViewLinesIndentGuides=function(o,t){for(var i=t-o+1,l=new Array(i),g=0;g<i;g++)l[g]=0;return l},k.prototype.getViewLineContent=function(o){return this.model.getLineContent(o)},k.prototype.getViewLineLength=function(o){return this.model.getLineLength(o)},k.prototype.getViewLineMinColumn=function(o){return this.model.getLineMinColumn(o)},k.prototype.getViewLineMaxColumn=function(o){return this.model.getLineMaxColumn(o)},k.prototype.getViewLineData=function(o){var t=this.model.getLineTokens(o),i=t.getLineContent();return new zn.c(i,!1,1,i.length+1,0,t.inflate())},k.prototype.getViewLinesData=function(o,t,i){var l=this.model.getLineCount();o=Math.min(Math.max(1,o),l),t=Math.min(Math.max(1,t),l);for(var g=[],te=o;te<=t;te++){var Ae=te-o;i[Ae]||(g[Ae]=null),g[Ae]=this.getViewLineData(te)}return g},k.prototype.getAllOverviewRulerDecorations=function(o,t,i){for(var l=this.model.getOverviewRulerDecorations(o,t),g=new oi,te=0,Ae=l;te<Ae.length;te++){var Se=Ae[te],qe=Se.options.overviewRuler,ct=qe?qe.position:0;if(ct===0)continue;var _t=qe.getColor(i),tt=Se.range.startLineNumber,kt=Se.range.endLineNumber;g.accept(_t,tt,kt,ct)}return g.result},k.prototype.getDecorationsInRange=function(o,t,i){return this.model.getDecorationsInRange(o,t,i)},k}(),oi=function(){function k(){this.result=Object.create(null)}return k.prototype.accept=function(o,t,i,l){var g=this.result[o];if(g){var te=g[g.length-3],Ae=g[g.length-1];if(te===l&&Ae+1>=t){i>Ae&&(g[g.length-1]=i);return}g.push(l,t,i)}else this.result[o]=[l,t,i]},k}(),Ds=function(){function k(o,t,i,l,g){this.editorId=o,this.model=t,this.configuration=i,this._linesCollection=l,this._coordinatesConverter=g,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return k.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},k.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},k.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},k.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},k.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},k.prototype._getOrCreateViewModelDecoration=function(o){var t=o.id,i=this._decorationsCache[t];if(!i){var l=o.range,g=o.options,te=void 0;if(g.isWholeLine){var Ae=this._coordinatesConverter.convertModelPositionToViewPosition(new se.a(l.startLineNumber,1)),Se=this._coordinatesConverter.convertModelPositionToViewPosition(new se.a(l.endLineNumber,this.model.getLineMaxColumn(l.endLineNumber)));te=new ye.a(Ae.lineNumber,Ae.column,Se.lineNumber,Se.column)}else te=this._coordinatesConverter.convertModelRangeToViewRange(l);i=new zn.e(te,g),this._decorationsCache[t]=i}return i},k.prototype.getDecorationsViewportData=function(o){var t=this._cachedModelDecorationsResolver!==null;return t=t&&o.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(o),this._cachedModelDecorationsResolverViewRange=o),this._cachedModelDecorationsResolver},k.prototype._getDecorationsViewportData=function(o){for(var t=this._linesCollection.getDecorationsInRange(o,this.editorId,Object(ve.j)(this.configuration.options)),i=o.startLineNumber,l=o.endLineNumber,g=[],te=0,Ae=[],Se=i;Se<=l;Se++)Ae[Se-i]=[];for(var qe=0,ct=t.length;qe<ct;qe++){var _t=t[qe],tt=_t.options,kt=this._getOrCreateViewModelDecoration(_t),Bt=kt.range;if(g[te++]=kt,tt.inlineClassName)for(var Ht=new zn.a(Bt,tt.inlineClassName,tt.inlineClassNameAffectsLetterSpacing?3:0),qt=Math.max(i,Bt.startLineNumber),$t=Math.min(l,Bt.endLineNumber),Se=qt;Se<=$t;Se++)Ae[Se-i].push(Ht);if(tt.beforeContentClassName&&(i<=Bt.startLineNumber&&Bt.startLineNumber<=l)){var Ht=new zn.a(new ye.a(Bt.startLineNumber,Bt.startColumn,Bt.startLineNumber,Bt.startColumn),tt.beforeContentClassName,1);Ae[Bt.startLineNumber-i].push(Ht)}if(tt.afterContentClassName&&(i<=Bt.endLineNumber&&Bt.endLineNumber<=l)){var Ht=new zn.a(new ye.a(Bt.endLineNumber,Bt.endColumn,Bt.endLineNumber,Bt.endColumn),tt.afterContentClassName,2);Ae[Bt.endLineNumber-i].push(Ht)}}return{decorations:g,inlineDecorations:Ae}},k}(),Ts=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Si=!0,Kn=function(k){Ts(o,k);function o(t,i,l,g,te,Ae){var Se=k.call(this)||this;if(Se.editorId=t,Se.configuration=i,Se.model=l,Se._tokenizeViewportSoon=Se._register(new v.d(function(){return Se.tokenizeViewport()},50)),Se.hasFocus=!1,Se.viewportStartLine=-1,Se.viewportStartLineTrackedRange=null,Se.viewportStartLineDelta=0,Si&&Se.model.isTooLargeForTokenization())Se.lines=new fi(Se.model);else{var qe=Se.configuration.options,ct=qe.get(34),_t=qe.get(103),tt=qe.get(108),kt=qe.get(102);Se.lines=new Nr(Se.model,g,te,ct,Se.model.getOptions().tabSize,_t,tt.wrappingColumn,kt)}return Se.coordinatesConverter=Se.lines.createCoordinatesConverter(),Se.viewLayout=Se._register(new ws(Se.configuration,Se.getLineCount(),Ae)),Se._register(Se.viewLayout.onDidScroll(function(Bt){Bt.scrollTopChanged&&Se._tokenizeViewportSoon.schedule();try{var Ht=Se._beginEmit();Ht.emit(new pn(Bt))}finally{Se._endEmit()}})),Se._register(Se.viewLayout.onDidContentSizeChange(function(Bt){try{var Ht=Se._beginEmit();Ht.emit(new Ro(Bt))}finally{Se._endEmit()}})),Se.decorations=new Ds(Se.editorId,Se.model,Se.configuration,Se.lines,Se.coordinatesConverter),Se._registerModelEvents(),Se._register(Se.configuration.onDidChange(function(Bt){try{var Ht=Se._beginEmit();Se._onConfigurationChanged(Ht,Bt)}finally{Se._endEmit()}})),Se._register(li.getInstance().onDidChange(function(){try{var Bt=Se._beginEmit();Bt.emit(new dn)}finally{Se._endEmit()}})),Se}return o.prototype.dispose=function(){k.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.invalidateMinimapColorCache(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},o.prototype.tokenizeViewport=function(){var t=this.viewLayout.getLinesViewportData(),i=this.coordinatesConverter.convertViewPositionToModelPosition(new se.a(t.startLineNumber,1)),l=this.coordinatesConverter.convertViewPositionToModelPosition(new se.a(t.endLineNumber,1));this.model.tokenizeViewport(i.lineNumber,l.lineNumber)},o.prototype.setHasFocus=function(t){this.hasFocus=t},o.prototype._onConfigurationChanged=function(t,i){var l=null;if(this.viewportStartLine!==-1){var g=new se.a(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));l=this.coordinatesConverter.convertViewPositionToModelPosition(g)}var te=!1,Ae=this.configuration.options,Se=Ae.get(34),qe=Ae.get(103),ct=Ae.get(108),_t=Ae.get(102);if(this.lines.setWrappingSettings(Se,qe,ct.wrappingColumn,_t)&&(t.emit(new Wo),t.emit(new Io),t.emit(new Eo),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(te=!0)),i.hasChanged(68)&&(this.decorations.reset(),t.emit(new Eo)),t.emit(new Oo(i)),this.viewLayout.onConfigurationChanged(i),te&&l){var tt=this.coordinatesConverter.convertModelPositionToViewPosition(l),kt=this.viewLayout.getVerticalOffsetForLineNumber(tt.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:kt+this.viewportStartLineDelta})}},o.prototype._registerModelEvents=function(){var t=this;this._register(this.model.onDidChangeRawContentFast(function(i){try{for(var l=t._beginEmit(),g=!1,te=!1,Ae=i.changes,Se=i.versionId,qe=t.lines.createLineBreaksComputer(),ct=0,_t=Ae;ct<_t.length;ct++){var tt=_t[ct];switch(tt.changeType){case 4:{for(var kt=0,Bt=tt.detail;kt<Bt.length;kt++){var Ht=Bt[kt];qe.addRequest(Ht,null)}break}case 2:{qe.addRequest(tt.detail,null);break}}}for(var qt=qe.finalize(),$t=0,io=0,yo=Ae;io<yo.length;io++){var tt=yo[io];switch(tt.changeType){case 1:{t.lines.onModelFlushed(),l.emit(new Wo),t.decorations.reset(),t.viewLayout.onFlushed(t.getLineCount()),g=!0;break}case 3:{var po=t.lines.onModelLinesDeleted(Se,tt.fromLineNumber,tt.toLineNumber);po!==null&&(l.emit(po),t.viewLayout.onLinesDeleted(po.fromLineNumber,po.toLineNumber)),g=!0;break}case 4:{var bo=qt.slice($t,$t+tt.detail.length);$t+=tt.detail.length;var vo=t.lines.onModelLinesInserted(Se,tt.fromLineNumber,tt.toLineNumber,bo);vo!==null&&(l.emit(vo),t.viewLayout.onLinesInserted(vo.fromLineNumber,vo.toLineNumber)),g=!0;break}case 2:{var Co=qt[$t];$t++;var Mo=t.lines.onModelLineChanged(Se,tt.lineNumber,Co),Ko=Mo[0],zo=Mo[1],vo=Mo[2],po=Mo[3];te=Ko,zo&&l.emit(zo),vo&&(l.emit(vo),t.viewLayout.onLinesInserted(vo.fromLineNumber,vo.toLineNumber)),po&&(l.emit(po),t.viewLayout.onLinesDeleted(po.fromLineNumber,po.toLineNumber));break}case 5:break}}t.lines.acceptVersionId(Se),t.viewLayout.onHeightMaybeChanged(),!g&&te&&(l.emit(new Io),l.emit(new Eo),t.decorations.onLineMappingChanged())}finally{t._endEmit()}if(t.viewportStartLine=-1,t.configuration.setMaxLineNumber(t.model.getLineCount()),!t.hasFocus&&t.model.getAttachedEditorCount()>=2&&t.viewportStartLineTrackedRange){var ko=t.model._getTrackedRange(t.viewportStartLineTrackedRange);if(ko){var fn=t.coordinatesConverter.convertModelPositionToViewPosition(ko.getStartPosition()),In=t.viewLayout.getVerticalOffsetForLineNumber(fn.lineNumber);t.viewLayout.setScrollPositionNow({scrollTop:In+t.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(i){for(var l=[],g=0,te=i.ranges.length;g<te;g++){var Ae=i.ranges[g],Se=t.coordinatesConverter.convertModelPositionToViewPosition(new se.a(Ae.fromLineNumber,1)).lineNumber,qe=t.coordinatesConverter.convertModelPositionToViewPosition(new se.a(Ae.toLineNumber,t.model.getLineMaxColumn(Ae.toLineNumber))).lineNumber;l[g]={fromLineNumber:Se,toLineNumber:qe}}try{var ct=t._beginEmit();ct.emit(new on(l))}finally{t._endEmit()}i.tokenizationSupportChanged&&t._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(function(i){try{var l=t._beginEmit();l.emit(new Fo)}finally{t._endEmit()}})),this._register(this.model.onDidChangeOptions(function(i){if(t.lines.setTabSize(t.model.getOptions().tabSize)){t.decorations.onLineMappingChanged(),t.viewLayout.onFlushed(t.getLineCount());try{var l=t._beginEmit();l.emit(new Wo),l.emit(new Io),l.emit(new Eo)}finally{t._endEmit()}}})),this._register(this.model.onDidChangeDecorations(function(i){t.decorations.onModelDecorationsChanged();try{var l=t._beginEmit();l.emit(new Eo)}finally{t._endEmit()}}))},o.prototype.setHiddenAreas=function(t){try{var i=this._beginEmit(),l=this.lines.setHiddenAreas(t);l&&(i.emit(new Wo),i.emit(new Io),i.emit(new Eo),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},o.prototype.getVisibleRanges=function(){var t=this.getCompletelyVisibleViewRange(),i=this.coordinatesConverter.convertViewRangeToModelRange(t),l=this.lines.getHiddenAreas();if(l.length===0)return[i];for(var g=[],te=0,Ae=i.startLineNumber,Se=i.startColumn,qe=i.endLineNumber,ct=i.endColumn,_t=0,tt=l.length;_t<tt;_t++){var kt=l[_t].startLineNumber,Bt=l[_t].endLineNumber;if(Bt<Ae)continue;if(kt>qe)continue;Ae<kt&&(g[te++]=new ye.a(Ae,Se,kt-1,this.model.getLineMaxColumn(kt-1))),Ae=Bt+1,Se=1}return(Ae<qe||Ae===qe&&Se<ct)&&(g[te++]=new ye.a(Ae,Se,qe,ct)),g},o.prototype.getCompletelyVisibleViewRange=function(){var t=this.viewLayout.getLinesViewportData(),i=t.completelyVisibleStartLineNumber,l=t.completelyVisibleEndLineNumber;return new ye.a(i,this.getLineMinColumn(i),l,this.getLineMaxColumn(l))},o.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(t){var i=this.viewLayout.getLinesViewportDataAtScrollTop(t),l=i.completelyVisibleStartLineNumber,g=i.completelyVisibleEndLineNumber;return new ye.a(l,this.getLineMinColumn(l),g,this.getLineMaxColumn(g))},o.prototype.saveState=function(){var t=this.viewLayout.saveState(),i=t.scrollTop,l=this.viewLayout.getLineNumberAtVerticalOffset(i),g=this.coordinatesConverter.convertViewPositionToModelPosition(new se.a(l,this.getLineMinColumn(l))),te=this.viewLayout.getVerticalOffsetForLineNumber(l)-i;return{scrollLeft:t.scrollLeft,firstPosition:g,firstPositionDeltaTop:te}},o.prototype.reduceRestoreState=function(t){if(typeof t.firstPosition=="undefined")return this._reduceRestoreStateCompatibility(t);var i=this.model.validatePosition(t.firstPosition),l=this.coordinatesConverter.convertModelPositionToViewPosition(i),g=this.viewLayout.getVerticalOffsetForLineNumber(l.lineNumber)-t.firstPositionDeltaTop;return{scrollLeft:t.scrollLeft,scrollTop:g}},o.prototype._reduceRestoreStateCompatibility=function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTopWithoutViewZones}},o.prototype.getTabSize=function(){return this.model.getOptions().tabSize},o.prototype.getOptions=function(){return this.model.getOptions()},o.prototype.getLineCount=function(){return this.lines.getViewLineCount()},o.prototype.setViewport=function(t,i,l){this.viewportStartLine=t;var g=this.coordinatesConverter.convertViewPositionToModelPosition(new se.a(t,this.getLineMinColumn(t)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new ye.a(g.lineNumber,g.column,g.lineNumber,g.column),1);var te=this.viewLayout.getVerticalOffsetForLineNumber(t),Ae=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=Ae-te},o.prototype.getActiveIndentGuide=function(t,i,l){return this.lines.getActiveIndentGuide(t,i,l)},o.prototype.getLinesIndentGuides=function(t,i){return this.lines.getViewLinesIndentGuides(t,i)},o.prototype.getLineContent=function(t){return this.lines.getViewLineContent(t)},o.prototype.getLineLength=function(t){return this.lines.getViewLineLength(t)},o.prototype.getLineMinColumn=function(t){return this.lines.getViewLineMinColumn(t)},o.prototype.getLineMaxColumn=function(t){return this.lines.getViewLineMaxColumn(t)},o.prototype.getLineFirstNonWhitespaceColumn=function(t){var i=me.q(this.getLineContent(t));return i===-1?0:i+1},o.prototype.getLineLastNonWhitespaceColumn=function(t){var i=me.D(this.getLineContent(t));return i===-1?0:i+2},o.prototype.getDecorationsInViewport=function(t){return this.decorations.getDecorationsViewportData(t).decorations},o.prototype.getViewLineRenderingData=function(t,i){var l=this.model.mightContainRTL(),g=this.model.mightContainNonBasicASCII(),te=this.getTabSize(),Ae=this.lines.getViewLineData(i),Se=this.decorations.getDecorationsViewportData(t).inlineDecorations,qe=Se[i-t.startLineNumber];return new zn.d(Ae.minColumn,Ae.maxColumn,Ae.content,Ae.continuesWithWrappedLine,l,g,Ae.tokens,qe,te,Ae.startVisibleColumn)},o.prototype.getViewLineData=function(t){return this.lines.getViewLineData(t)},o.prototype.getMinimapLinesRenderingData=function(t,i,l){var g=this.lines.getViewLinesData(t,i,l);return new zn.b(this.getTabSize(),g)},o.prototype.getAllOverviewRulerDecorations=function(t){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(ve.j)(this.configuration.options),t)},o.prototype.invalidateOverviewRulerColorCache=function(){for(var t=this.model.getOverviewRulerDecorations(),i=0,l=t;i<l.length;i++){var g=l[i],te=g.options.overviewRuler;te&&te.invalidateCachedColor()}},o.prototype.invalidateMinimapColorCache=function(){for(var t=this.model.getAllDecorations(),i=0,l=t;i<l.length;i++){var g=l[i],te=g.options.minimap;te&&te.invalidateCachedColor()}},o.prototype.getValueInRange=function(t,i){var l=this.coordinatesConverter.convertViewRangeToModelRange(t);return this.model.getValueInRange(l,i)},o.prototype.getModelLineMaxColumn=function(t){return this.model.getLineMaxColumn(t)},o.prototype.validateModelPosition=function(t){return this.model.validatePosition(t)},o.prototype.validateModelRange=function(t){return this.model.validateRange(t)},o.prototype.deduceModelPositionRelativeToViewPosition=function(t,i,l){var g=this.coordinatesConverter.convertViewPositionToModelPosition(t);this.model.getEOL().length===2&&(i<0?i-=l:i+=l);var te=this.model.getOffsetAt(g),Ae=te+i;return this.model.getPositionAt(Ae)},o.prototype.getEOL=function(){return this.model.getEOL()},o.prototype.getPlainTextToCopy=function(t,i,l){var g=l?`\r
`:this.model.getEOL();t=t.slice(0),t.sort(ye.a.compareRangesUsingStarts);for(var te=!1,Ae=!1,Se=0,qe=t;Se<qe.length;Se++){var ct=qe[Se];ct.isEmpty()?te=!0:Ae=!0}if(!Ae){if(!i)return"";for(var _t=t.map(function(Co){return Co.startLineNumber}),tt="",kt=0;kt<_t.length;kt++){if(kt>0&&_t[kt-1]===_t[kt])continue;tt+=this.model.getLineContent(_t[kt])+g}return tt}if(te&&i){for(var Bt=[],Ht=0,qt=0,$t=t;qt<$t.length;qt++){var io=$t[qt],yo=io.startLineNumber;io.isEmpty()?yo!==Ht&&Bt.push(this.model.getLineContent(yo)):Bt.push(this.model.getValueInRange(io,l?2:0)),Ht=yo}return Bt.length===1?Bt[0]:Bt}for(var po=[],bo=0,vo=t;bo<vo.length;bo++){var io=vo[bo];io.isEmpty()||po.push(this.model.getValueInRange(io,l?2:0))}return po.length===1?po[0]:po},o.prototype.getRichTextToCopy=function(t,i){var l=this.model.getLanguageIdentifier();if(l.id===1)return null;if(t.length!==1)return null;var g=t[0];if(g.isEmpty()){if(!i)return null;var te=g.startLineNumber;g=new ye.a(te,this.model.getLineMinColumn(te),te,this.model.getLineMaxColumn(te))}var Ae=this.configuration.options.get(34),Se=this._getColorMap(),qe=Ae.fontFamily===ve.b.fontFamily?Ae.fontFamily:"'"+Ae.fontFamily+"', "+ve.b.fontFamily;return{mode:l.language,html:'<div style="'+("color: "+Se[1]+";")+("background-color: "+Se[2]+";")+("font-family: "+qe+";")+("font-weight: "+Ae.fontWeight+";")+("font-size: "+Ae.fontSize+"px;")+("line-height: "+Ae.lineHeight+"px;")+'white-space: pre;">'+this._getHTMLToCopy(g,Se)+"</div>"}},o.prototype._getHTMLToCopy=function(t,i){for(var l=t.startLineNumber,g=t.startColumn,te=t.endLineNumber,Ae=t.endColumn,Se=this.getTabSize(),qe="",ct=l;ct<=te;ct++){var _t=this.model.getLineTokens(ct),tt=_t.getLineContent(),kt=ct===l?g-1:0,Bt=ct===te?Ae-1:tt.length;tt===""?qe+="<br>":qe+=Object(Ai.a)(tt,_t.inflate(),i,kt,Bt,Se,O.h)}return qe},o.prototype._getColorMap=function(){var t=$o.B.getColorMap(),i=["#000000"];if(t)for(var l=1,g=t.length;l<g;l++)i[l]=Hn.a.Format.CSS.formatHex(t[l]);return i},o}(Bo),ni=e("nnTU"),mi=e("T8No"),xs=e("Cg/j"),sr=e("8HsV"),ar=e("sM1p"),sn=e("R3nR"),As=e("746U"),Rs=e("MXAL"),jr=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Is=function(k){jr(o,k);function o(t,i){for(var l=k.call(this,0)||this,g=0;g<t.length;g++)l.set(t.charCodeAt(g),1);for(var g=0;g<i.length;g++)l.set(i.charCodeAt(g),2);return l}return o.prototype.get=function(t){return t>=0&&t<256?this._asciiMap[t]:t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?3:this._map.get(t)||this._defaultValue},o}(Rs.a),ji=[],lr=[],Ns=function(){function k(o,t){this.classifier=new Is(o,t)}return k.create=function(o){return new k(o.get(99),o.get(98))},k.prototype.createLineBreaksComputer=function(o,t,i,l){var g=this;t=t|0,i=+i;var te=[],Ae=[];return{addRequest:function(Se,qe){te.push(Se),Ae.push(qe)},finalize:function(){for(var Se=o.typicalFullwidthCharacterWidth/o.typicalHalfwidthCharacterWidth,qe=[],ct=0,_t=te.length;ct<_t;ct++){var tt=Ae[ct];tt?qe[ct]=js(g.classifier,tt,te[ct],t,i,Se,l):qe[ct]=Ps(g.classifier,te[ct],t,i,Se,l)}return ji.length=0,lr.length=0,qe}}},k}();function js(k,o,t,i,l,g,te){if(l===-1)return null;var Ae=t.length;if(Ae<=1)return null;var Se=o.breakOffsets,qe=o.breakOffsetsVisibleColumn,ct=ki(t,i,l,g,te),_t=l-ct,tt=ji,kt=lr,Bt=0,Ht=l,qt=Se.length,$t=0;if($t>=0)for(var io=Math.abs(qe[$t]-Ht);$t+1<qt;){var yo=Math.abs(qe[$t+1]-Ht);if(yo>=io)break;io=yo,$t++}for(;$t<qt;){var po=$t<0?0:Se[$t],bo=$t<0?0:qe[$t],vo=0,Co=0,Mo=0,Ko=0;if(bo<=Ht){for(var zo=bo,ko=t.charCodeAt(po-1),fn=k.get(ko),In=!0,ln=po;ln<Ae;ln++){var Nn=ln,cn=t.charCodeAt(ln),Wn=void 0,Fn=void 0;if(me.z(cn)?(ln++,Wn=0,Fn=2):(Wn=k.get(cn),Fn=Pi(cn,zo,i,g)),cr(ko,fn,cn,Wn)&&(vo=Nn,Co=zo),zo+=Fn,zo>Ht){Mo=Nn,Ko=zo-Fn,zo-Co>_t&&(vo=0),In=!1;break}ko=cn,fn=Wn}if(In){Bt>0&&(tt[Bt]=Se[Se.length-1],kt[Bt]=qe[Se.length-1],Bt++);break}}if(vo===0){for(var zo=bo,cn=t.charCodeAt(po),Wn=k.get(cn),Ui=!1,ln=po-1;ln>=0;ln--){var Nn=ln+1,ko=t.charCodeAt(ln);if(ko===9){Ui=!0;break}var fn=void 0,fr=void 0;if(me.A(ko)?(ln--,fn=0,fr=2):(fn=k.get(ko),fr=me.y(ko)?g:1),zo<=Ht){if(Mo===0&&(Mo=Nn,Ko=zo),zo<=Ht-_t)break;if(cr(ko,fn,cn,Wn)){vo=Nn,Co=zo;break}}zo-=fr,cn=ko,Wn=fn}if(vo!==0){var Hr=_t-(Ko-Co);if(Hr<=i){var Zn=t.charCodeAt(Mo),Fn=void 0;me.z(Zn)?Fn=2:Fn=Pi(Zn,Ko,i,g),Hr-Fn<0&&(vo=0)}}if(Ui){$t--;continue}}for(vo===0&&(vo=Mo,Co=Ko),tt[Bt]=vo,kt[Bt]=Co,Bt++,Ht=Co+_t;$t<0||$t<qt&&qe[$t]<Co;)$t++;for(var io=Math.abs(qe[$t]-Ht);$t+1<qt;){var yo=Math.abs(qe[$t+1]-Ht);if(yo>=io)break;io=yo,$t++}}return Bt===0?null:(tt.length=Bt,kt.length=Bt,ji=o.breakOffsets,lr=o.breakOffsetsVisibleColumn,o.breakOffsets=tt,o.breakOffsetsVisibleColumn=kt,o.wrappedTextIndentLength=ct,o)}function Ps(k,o,t,i,l,g){if(i===-1)return null;var te=o.length;if(te<=1)return null;var Ae=ki(o,t,i,l,g),Se=i-Ae,qe=[],ct=[],_t=0,tt=0,kt=0,Bt=i,Ht=o.charCodeAt(0),qt=k.get(Ht),$t=Pi(Ht,0,t,l),io=1;me.z(Ht)&&($t+=1,Ht=o.charCodeAt(1),qt=k.get(Ht),io++);for(var yo=io;yo<te;yo++){var po=yo,bo=o.charCodeAt(yo),vo=void 0,Co=void 0;me.z(bo)?(yo++,vo=0,Co=2):(vo=k.get(bo),Co=Pi(bo,$t,t,l)),cr(Ht,qt,bo,vo)&&(tt=po,kt=$t),$t+=Co,$t>Bt&&((tt===0||$t-kt>Se)&&(tt=po,kt=$t-Co),qe[_t]=tt,ct[_t]=kt,_t++,Bt=kt+Se,tt=0),Ht=bo,qt=vo}return _t===0?null:(qe[_t]=te,ct[_t]=$t,new Jn(qe,ct,Ae))}function Pi(k,o,t,i){return k===9?t-o%t:me.y(k)?i:1}function dr(k,o){return o-k%o}function cr(k,o,t,i){return t!==32&&(o===2||o===3&&i!==2||i===1||i===3&&o!==1)}function ki(k,o,t,i,l){var g=0;if(l!==0){var te=me.q(k);if(te!==-1){for(var Ae=0;Ae<te;Ae++){var Se=k.charCodeAt(Ae)===9?dr(g,o):1;g+=Se}for(var qe=l===3?2:l===2?1:0,Ae=0;Ae<qe;Ae++){var Se=dr(g,o);g+=Se}g+i>t&&(g=0)}}return g}var Pr=function(){function k(){}return k.create=function(){return new k},k.prototype.createLineBreaksComputer=function(o,t,i,l){t=t|0,i=+i;var g=[];return{addRequest:function(te,Ae){g.push(te)},finalize:function(){return Fi(g,o,t,i,l)}}},k}();function Fi(k,o,t,i,l){if(i===-1){for(var g=[],te=0,Ae=k.length;te<Ae;te++)g[te]=null;return g}var Se=Math.round(i*o.typicalHalfwidthCharacterWidth);(l===2||l===3)&&(l=1);var qe=document.createElement("div");U.a.applyFontInfoSlow(qe,o);for(var ct=Object(Ft.a)(1e4),_t=[],tt=[],kt=[],Bt=[],Ht=[],te=0;te<k.length;te++){var qt=k[te],$t=0,io=0,yo=Se;if(l!==0)if($t=me.q(qt),$t===-1)$t=0;else{for(var po=0;po<$t;po++){var bo=qt.charCodeAt(po)===9?t-io%t:1;io+=bo}var vo=Math.ceil(o.spaceWidth*io);vo+o.typicalFullwidthCharacterWidth>Se?($t=0,io=0):yo=Se-vo}var Co=qt.substr($t),Mo=kr(Co,io,t,yo,ct);_t[te]=$t,tt[te]=io,kt[te]=Co,Bt[te]=Mo[0],Ht[te]=Mo[1]}qe.innerHTML=ct.build(),qe.style.position="absolute",qe.style.top="10000",qe.style.wordWrap="break-word",document.body.appendChild(qe);for(var Ko=document.createRange(),zo=Array.prototype.slice.call(qe.children,0),ko=[],te=0;te<k.length;te++){var fn=zo[te],In=Fr(Ko,fn,kt[te],Bt[te]);if(In===null){ko[te]=null;continue}for(var $t=_t[te],io=tt[te],ln=Ht[te],Nn=[],cn=0,Ae=In.length;cn<Ae;cn++)Nn[cn]=ln[In[cn]];if($t!==0)for(var cn=0,Ae=In.length;cn<Ae;cn++)In[cn]+=$t;ko[te]=new Jn(In,Nn,io)}return document.body.removeChild(qe),ko}function kr(k,o,t,i,l){l.appendASCIIString('<div style="width:'),l.appendASCIIString(String(i)),l.appendASCIIString('px;">');for(var g=k.length,te=o,Ae=0,Se=[],qe=[],ct=0<g?k.charCodeAt(0):0,_t=0;_t<g;_t++){Se[_t]=Ae,qe[_t]=te;var tt=ct;ct=_t+1<g?k.charCodeAt(_t+1):0;var kt=1,Bt=1;switch(tt){case 9:kt=t-te%t,Bt=kt;for(var Ht=1;Ht<=kt;Ht++)Ht<kt?l.write1(160):l.appendASCII(32);break;case 32:ct===32?l.write1(160):l.appendASCII(32);break;case 60:l.appendASCIIString("&lt;");break;case 62:l.appendASCIIString("&gt;");break;case 38:l.appendASCIIString("&amp;");break;case 0:l.appendASCIIString("&#00;");break;case 65279:case 8232:l.write1(65533);break;default:me.y(tt)&&Bt++,l.write1(tt)}Ae+=kt,te+=Bt}return Se[k.length]=Ae,qe[k.length]=te,l.appendASCIIString("</div>"),[Se,qe]}function Fr(k,o,t,i){if(t.length<=1)return null;var l=o.firstChild,g=[];return pi(k,l,i,0,null,t.length-1,null,g),g.length===0?null:(g.push(t.length),g)}function pi(k,o,t,i,l,g,te,Ae){if(i===g)return;if(l=l||ur(k,o,t[i],t[i+1]),te=te||ur(k,o,t[g],t[g+1]),Math.abs(l[0].top-te[0].top)<=.1)return;if(i+1===g){Ae.push(g);return}var Se=i+(g-i)/2|0,qe=ur(k,o,t[Se],t[Se+1]);pi(k,o,t,i,l,Se,qe,Ae),pi(k,o,t,Se,qe,g,te,Ae)}function ur(k,o,t,i){return k.setStart(o,t),k.setEnd(o,i),k.getClientRects()}var Li=function(){var k=function(o,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var g in l)l.hasOwnProperty(g)&&(i[g]=l[g])},k(o,t)};return function(o,t){k(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Wr=function(k,o,t,i){var l=arguments.length,g=l<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,t):i,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(k,o,t,i);else for(var Ae=k.length-1;Ae>=0;Ae--)(te=k[Ae])&&(g=(l<3?te(g):l>3?te(o,t,g):te(o,t))||g);return l>3&&g&&Object.defineProperty(o,t,g),g},ii=function(k,o){return function(t,i){o(t,i,k)}},gi=0,hr=function(){function k(o,t,i,l,g,te){this.model=o,this.viewModel=t,this.cursor=i,this.view=l,this.hasRealView=g,this.listenersToRemove=te}return k.prototype.dispose=function(){Object(K.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},k}(),ks=function(k){Li(o,k);function o(t,i,l,g,te,Ae,Se,qe,ct,_t){var tt=k.call(this)||this;tt._onDidDispose=tt._register(new H.a),tt.onDidDispose=tt._onDidDispose.event,tt._onDidChangeModelContent=tt._register(new H.a),tt.onDidChangeModelContent=tt._onDidChangeModelContent.event,tt._onDidChangeModelLanguage=tt._register(new H.a),tt.onDidChangeModelLanguage=tt._onDidChangeModelLanguage.event,tt._onDidChangeModelLanguageConfiguration=tt._register(new H.a),tt.onDidChangeModelLanguageConfiguration=tt._onDidChangeModelLanguageConfiguration.event,tt._onDidChangeModelOptions=tt._register(new H.a),tt.onDidChangeModelOptions=tt._onDidChangeModelOptions.event,tt._onDidChangeModelDecorations=tt._register(new H.a),tt.onDidChangeModelDecorations=tt._onDidChangeModelDecorations.event,tt._onDidChangeConfiguration=tt._register(new H.a),tt.onDidChangeConfiguration=tt._onDidChangeConfiguration.event,tt._onDidChangeModel=tt._register(new H.a),tt.onDidChangeModel=tt._onDidChangeModel.event,tt._onDidChangeCursorPosition=tt._register(new H.a),tt.onDidChangeCursorPosition=tt._onDidChangeCursorPosition.event,tt._onDidChangeCursorSelection=tt._register(new H.a),tt.onDidChangeCursorSelection=tt._onDidChangeCursorSelection.event,tt._onDidAttemptReadOnlyEdit=tt._register(new H.a),tt.onDidAttemptReadOnlyEdit=tt._onDidAttemptReadOnlyEdit.event,tt._onDidLayoutChange=tt._register(new H.a),tt.onDidLayoutChange=tt._onDidLayoutChange.event,tt._editorTextFocus=tt._register(new qn),tt.onDidFocusEditorText=tt._editorTextFocus.onDidChangeToTrue,tt.onDidBlurEditorText=tt._editorTextFocus.onDidChangeToFalse,tt._editorWidgetFocus=tt._register(new qn),tt.onDidFocusEditorWidget=tt._editorWidgetFocus.onDidChangeToTrue,tt.onDidBlurEditorWidget=tt._editorWidgetFocus.onDidChangeToFalse,tt._onWillType=tt._register(new H.a),tt.onWillType=tt._onWillType.event,tt._onDidType=tt._register(new H.a),tt.onDidType=tt._onDidType.event,tt._onDidCompositionStart=tt._register(new H.a),tt.onDidCompositionStart=tt._onDidCompositionStart.event,tt._onDidCompositionEnd=tt._register(new H.a),tt.onDidCompositionEnd=tt._onDidCompositionEnd.event,tt._onDidPaste=tt._register(new H.a),tt.onDidPaste=tt._onDidPaste.event,tt._onMouseUp=tt._register(new H.a),tt.onMouseUp=tt._onMouseUp.event,tt._onMouseDown=tt._register(new H.a),tt.onMouseDown=tt._onMouseDown.event,tt._onMouseDrag=tt._register(new H.a),tt.onMouseDrag=tt._onMouseDrag.event,tt._onMouseDrop=tt._register(new H.a),tt.onMouseDrop=tt._onMouseDrop.event,tt._onContextMenu=tt._register(new H.a),tt.onContextMenu=tt._onContextMenu.event,tt._onMouseMove=tt._register(new H.a),tt.onMouseMove=tt._onMouseMove.event,tt._onMouseLeave=tt._register(new H.a),tt.onMouseLeave=tt._onMouseLeave.event,tt._onMouseWheel=tt._register(new H.a),tt.onMouseWheel=tt._onMouseWheel.event,tt._onKeyUp=tt._register(new H.a),tt.onKeyUp=tt._onKeyUp.event,tt._onKeyDown=tt._register(new H.a),tt.onKeyDown=tt._onKeyDown.event,tt._onDidContentSizeChange=tt._register(new H.a),tt.onDidContentSizeChange=tt._onDidContentSizeChange.event,tt._onDidScrollChange=tt._register(new H.a),tt.onDidScrollChange=tt._onDidScrollChange.event,tt._onDidChangeViewZones=tt._register(new H.a),tt.onDidChangeViewZones=tt._onDidChangeViewZones.event,tt._domElement=t,tt._id=++gi,tt._decorationTypeKeysToIds={},tt._decorationTypeSubtypes={},tt.isSimpleWidget=l.isSimpleWidget||!1,tt._telemetryData=l.telemetryData,i=i||{},tt._configuration=tt._register(tt._createConfiguration(i,_t)),tt._register(tt._configuration.onDidChange(function(io){tt._onDidChangeConfiguration.fire(io);var yo=tt._configuration.options;if(io.hasChanged(107)){var po=yo.get(107);tt._onDidLayoutChange.fire(po)}})),tt._contextKeyService=tt._register(Se.createScoped(tt._domElement)),tt._notificationService=ct,tt._codeEditorService=te,tt._commandService=Ae,tt._themeService=qe,tt._register(new Fs(tt,tt._contextKeyService)),tt._register(new Ws(tt,tt._contextKeyService)),tt._instantiationService=g.createChild(new sr.a([mi.c,tt._contextKeyService])),tt._modelData=null,tt._contributions={},tt._actions={},tt._focusTracker=new Br(t),tt._focusTracker.onChange(function(){tt._editorWidgetFocus.setValue(tt._focusTracker.hasFocus())}),tt._contentWidgets={},tt._overlayWidgets={};var kt;Array.isArray(l.contributions)?kt=l.contributions:kt=j.d.getEditorContributions();for(var Bt=0,Ht=kt;Bt<Ht.length;Bt++){var qt=Ht[Bt];try{var $t=tt._instantiationService.createInstance(qt.ctor,tt);tt._contributions[qt.id]=$t}catch(io){Object(I.e)(io)}}return j.d.getEditorActions().forEach(function(io){var yo=new Es.a(io.id,io.label,io.alias,Object(As.n)(io.precondition),function(){return tt._instantiationService.invokeFunction(function(po){return Promise.resolve(io.runEditorCommand(po,tt,null))})},tt._contextKeyService);tt._actions[yo.id]=yo}),tt._codeEditorService.addCodeEditor(tt),tt}return o.prototype._createConfiguration=function(t,i){return new U.a(this.isSimpleWidget,t,this._domElement,i)},o.prototype.getId=function(){return this.getEditorType()+":"+this._id},o.prototype.getEditorType=function(){return Sn.a.ICodeEditor},o.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var t=Object.keys(this._contributions),i=0,l=t.length;i<l;i++){var g=t[i];this._contributions[g].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),k.prototype.dispose.call(this)},o.prototype.invokeWithinContext=function(t){return this._instantiationService.invokeFunction(t)},o.prototype.updateOptions=function(t){this._configuration.updateOptions(t)},o.prototype.getOptions=function(){return this._configuration.options},o.prototype.getOption=function(t){return this._configuration.options.get(t)},o.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},o.prototype.getValue=function(t){if(t===void 0&&(t=null),!this._modelData)return"";var i=!!(t&&t.preserveBOM),l=0;return t&&t.lineEnding&&t.lineEnding===`
`?l=1:t&&t.lineEnding&&t.lineEnding===`\r
`&&(l=2),this._modelData.model.getValue(l,i)},o.prototype.setValue=function(t){if(!this._modelData)return;this._modelData.model.setValue(t)},o.prototype.getModel=function(){return this._modelData?this._modelData.model:null},o.prototype.setModel=function(t){t===void 0&&(t=null);var i=t;if(this._modelData===null&&i===null)return;if(this._modelData&&this._modelData.model===i)return;var l=this.hasTextFocus(),g=this._detachModel();this._attachModel(i),l&&this.hasModel()&&this.focus();var te={oldModelUrl:g?g.uri:null,newModelUrl:i?i.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(te),this._postDetachModelCleanup(g)},o.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var t in this._decorationTypeSubtypes){var i=this._decorationTypeSubtypes[t];for(var l in i)this._removeDecorationType(t+"-"+l)}this._decorationTypeSubtypes={}}},o.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},o.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},o._getVerticalOffsetForPosition=function(t,i,l){var g=t.model.validatePosition({lineNumber:i,column:l}),te=t.viewModel.coordinatesConverter.convertModelPositionToViewPosition(g);return t.viewModel.viewLayout.getVerticalOffsetForLineNumber(te.lineNumber)},o.prototype.getTopForLineNumber=function(t){return this._modelData?o._getVerticalOffsetForPosition(this._modelData,t,1):-1},o.prototype.getTopForPosition=function(t,i){return this._modelData?o._getVerticalOffsetForPosition(this._modelData,t,i):-1},o.prototype.setHiddenAreas=function(t){this._modelData&&this._modelData.viewModel.setHiddenAreas(t.map(function(i){return ye.a.lift(i)}))},o.prototype.getVisibleColumnFromPosition=function(t){if(!this._modelData)return t.column;var i=this._modelData.model.validatePosition(t),l=this._modelData.model.getOptions().tabSize;return Re.a.visibleColumnFromColumn(this._modelData.model.getLineContent(i.lineNumber),i.column,l)+1},o.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},o.prototype.setPosition=function(t){if(!this._modelData)return;if(!se.a.isIPosition(t))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:t.lineNumber,selectionStartColumn:t.column,positionLineNumber:t.lineNumber,positionColumn:t.column}])},o.prototype._sendRevealRange=function(t,i,l,g){if(!this._modelData)return;if(!ye.a.isIRange(t))throw new Error("Invalid arguments");var te=this._modelData.model.validateRange(t),Ae=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(te);this._modelData.cursor.emitCursorRevealRange("api",Ae,i,l,g)},o.prototype.revealLine=function(t,i){i===void 0&&(i=0),this._revealLine(t,0,i)},o.prototype.revealLineInCenter=function(t,i){i===void 0&&(i=0),this._revealLine(t,1,i)},o.prototype.revealLineInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealLine(t,2,i)},o.prototype._revealLine=function(t,i,l){if(typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new ye.a(t,1,t,1),i,!1,l)},o.prototype.revealPosition=function(t,i){i===void 0&&(i=0),this._revealPosition(t,0,!0,i)},o.prototype.revealPositionInCenter=function(t,i){i===void 0&&(i=0),this._revealPosition(t,1,!0,i)},o.prototype.revealPositionInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealPosition(t,2,!0,i)},o.prototype._revealPosition=function(t,i,l,g){if(!se.a.isIPosition(t))throw new Error("Invalid arguments");this._sendRevealRange(new ye.a(t.lineNumber,t.column,t.lineNumber,t.column),i,l,g)},o.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},o.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},o.prototype.setSelection=function(t){var i=gt.a.isISelection(t),l=ye.a.isIRange(t);if(!i&&!l)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(t);else if(l){var g={selectionStartLineNumber:t.startLineNumber,selectionStartColumn:t.startColumn,positionLineNumber:t.endLineNumber,positionColumn:t.endColumn};this._setSelectionImpl(g)}},o.prototype._setSelectionImpl=function(t){if(!this._modelData)return;var i=new gt.a(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn);this._modelData.cursor.setSelections("api",[i])},o.prototype.revealLines=function(t,i,l){l===void 0&&(l=0),this._revealLines(t,i,0,l)},o.prototype.revealLinesInCenter=function(t,i,l){l===void 0&&(l=0),this._revealLines(t,i,1,l)},o.prototype.revealLinesInCenterIfOutsideViewport=function(t,i,l){l===void 0&&(l=0),this._revealLines(t,i,2,l)},o.prototype._revealLines=function(t,i,l,g){if(typeof t!="number"||typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new ye.a(t,1,i,1),l,!1,g)},o.prototype.revealRange=function(t,i,l,g){i===void 0&&(i=0),l===void 0&&(l=!1),g===void 0&&(g=!0),this._revealRange(t,l?1:0,g,i)},o.prototype.revealRangeInCenter=function(t,i){i===void 0&&(i=0),this._revealRange(t,1,!0,i)},o.prototype.revealRangeInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealRange(t,2,!0,i)},o.prototype.revealRangeAtTop=function(t,i){i===void 0&&(i=0),this._revealRange(t,3,!0,i)},o.prototype._revealRange=function(t,i,l,g){if(!ye.a.isIRange(t))throw new Error("Invalid arguments");this._sendRevealRange(ye.a.lift(t),i,l,g)},o.prototype.setSelections=function(t,i){if(i===void 0&&(i="api"),!this._modelData)return;if(!t||t.length===0)throw new Error("Invalid arguments");for(var l=0,g=t.length;l<g;l++)if(!gt.a.isISelection(t[l]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(i,t)},o.prototype.getContentWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1},o.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},o.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},o.prototype.getContentHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1},o.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},o.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},o.prototype.setScrollLeft=function(t){if(!this._modelData)return;if(typeof t!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:t})},o.prototype.setScrollTop=function(t){if(!this._modelData)return;if(typeof t!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:t})},o.prototype.setScrollPosition=function(t){if(!this._modelData)return;this._modelData.viewModel.viewLayout.setScrollPositionNow(t)},o.prototype.saveViewState=function(){if(!this._modelData)return null;for(var t={},i=Object.keys(this._contributions),l=0,g=i;l<g.length;l++){var te=g[l],Ae=this._contributions[te];typeof Ae.saveViewState=="function"&&(t[te]=Ae.saveViewState())}var Se=this._modelData.cursor.saveState(),qe=this._modelData.viewModel.saveState();return{cursorState:Se,viewState:qe,contributionsState:t}},o.prototype.restoreViewState=function(t){if(!this._modelData||!this._modelData.hasRealView)return;var i=t;if(i&&i.cursorState&&i.viewState){var l=i.cursorState;Array.isArray(l)?this._modelData.cursor.restoreState(l):this._modelData.cursor.restoreState([l]);for(var g=i.contributionsState||{},te=Object.keys(this._contributions),Ae=0,Se=te.length;Ae<Se;Ae++){var qe=te[Ae],ct=this._contributions[qe];typeof ct.restoreViewState=="function"&&ct.restoreViewState(g[qe])}var _t=this._modelData.viewModel.reduceRestoreState(i.viewState);this._modelData.view.restoreState(_t)}},o.prototype.getContribution=function(t){return this._contributions[t]||null},o.prototype.getActions=function(){for(var t=[],i=Object.keys(this._actions),l=0,g=i.length;l<g;l++){var te=i[l];t.push(this._actions[te])}return t},o.prototype.getSupportedActions=function(){var t=this.getActions();return t=t.filter(function(i){return i.isSupported()}),t},o.prototype.getAction=function(t){return this._actions[t]||null},o.prototype.trigger=function(t,i,l){if(l=l||{},i===Sn.b.Type){if(!this._modelData||typeof l.text!="string"||l.text.length===0)return;t==="keyboard"&&this._onWillType.fire(l.text),this._modelData.cursor.trigger(t,i,l),t==="keyboard"&&this._onDidType.fire(l.text);return}if(i===Sn.b.Paste){if(!this._modelData||typeof l.text!="string"||l.text.length===0)return;var g=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(t,i,l);var te=this._modelData.cursor.getSelection().getStartPosition();t==="keyboard"&&this._onDidPaste.fire({range:new ye.a(g.lineNumber,g.column,te.lineNumber,te.column),mode:l.mode});return}var Ae=this.getAction(i);if(Ae){Promise.resolve(Ae.run()).then(void 0,I.e);return}if(!this._modelData)return;if(this._triggerEditorCommand(t,i,l))return;this._modelData.cursor.trigger(t,i,l),i===Sn.b.CompositionStart&&this._onDidCompositionStart.fire(),i===Sn.b.CompositionEnd&&this._onDidCompositionEnd.fire()},o.prototype._triggerEditorCommand=function(t,i,l){var g=this,te=j.d.getEditorCommand(i);return te?(l=l||{},l.source=t,this._instantiationService.invokeFunction(function(Ae){Promise.resolve(te.runEditorCommand(Ae,g,l)).then(void 0,I.e)}),!0):!1},o.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},o.prototype.pushUndoStop=function(){return this._modelData?this._configuration.options.get(68)?!1:(this._modelData.model.pushStackElement(),!0):!1},o.prototype.executeEdits=function(t,i,l){if(!this._modelData)return!1;if(this._configuration.options.get(68))return!1;var g;return l?Array.isArray(l)?g=function(){return l}:g=l:g=function(){return null},this._modelData.cursor.executeEdits(t,i,g),!0},o.prototype.executeCommand=function(t,i){if(!this._modelData)return;this._modelData.cursor.trigger(t,Sn.b.ExecuteCommand,i)},o.prototype.executeCommands=function(t,i){if(!this._modelData)return;this._modelData.cursor.trigger(t,Sn.b.ExecuteCommands,i)},o.prototype.changeDecorations=function(t){return this._modelData?this._modelData.model.changeDecorations(t,this._id):null},o.prototype.getLineDecorations=function(t){return this._modelData?this._modelData.model.getLineDecorations(t,this._id,Object(ve.j)(this._configuration.options)):null},o.prototype.deltaDecorations=function(t,i){return this._modelData?t.length===0&&i.length===0?t:this._modelData.model.deltaDecorations(t,i,this._id):[]},o.prototype.removeDecorations=function(t){var i=this._decorationTypeKeysToIds[t];i&&this.deltaDecorations(i,[]),this._decorationTypeKeysToIds.hasOwnProperty(t)&&delete this._decorationTypeKeysToIds[t],this._decorationTypeSubtypes.hasOwnProperty(t)&&delete this._decorationTypeSubtypes[t]},o.prototype.getLayoutInfo=function(){var t=this._configuration.options,i=t.get(107);return i},o.prototype.createOverviewRuler=function(t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(t)},o.prototype.getContainerDomNode=function(){return this._domElement},o.prototype.getDomNode=function(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode},o.prototype.delegateVerticalScrollbarMouseDown=function(t){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.delegateVerticalScrollbarMouseDown(t)},o.prototype.layout=function(t){this._configuration.observeReferenceElement(t),this.render()},o.prototype.focus=function(){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.focus()},o.prototype.hasTextFocus=function(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()},o.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},o.prototype.addContentWidget=function(t){var i={widget:t,position:t.getPosition()};this._contentWidgets.hasOwnProperty(t.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[t.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(i)},o.prototype.layoutContentWidget=function(t){var i=t.getId();if(this._contentWidgets.hasOwnProperty(i)){var l=this._contentWidgets[i];l.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(l)}},o.prototype.removeContentWidget=function(t){var i=t.getId();if(this._contentWidgets.hasOwnProperty(i)){var l=this._contentWidgets[i];delete this._contentWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(l)}},o.prototype.addOverlayWidget=function(t){var i={widget:t,position:t.getPosition()};this._overlayWidgets.hasOwnProperty(t.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[t.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(i)},o.prototype.layoutOverlayWidget=function(t){var i=t.getId();if(this._overlayWidgets.hasOwnProperty(i)){var l=this._overlayWidgets[i];l.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(l)}},o.prototype.removeOverlayWidget=function(t){var i=t.getId();if(this._overlayWidgets.hasOwnProperty(i)){var l=this._overlayWidgets[i];delete this._overlayWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(l)}},o.prototype.changeViewZones=function(t){if(!this._modelData||!this._modelData.hasRealView)return;var i=this._modelData.view.change(t);i&&this._onDidChangeViewZones.fire()},o.prototype.getTargetAtClientPoint=function(t,i){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(t,i)},o.prototype.getScrolledVisiblePosition=function(t){if(!this._modelData||!this._modelData.hasRealView)return null;var i=this._modelData.model.validatePosition(t),l=this._configuration.options,g=l.get(107),te=o._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),Ae=this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+g.glyphMarginWidth+g.lineNumbersWidth+g.decorationsWidth-this.getScrollLeft();return{top:te,left:Ae,height:l.get(49)}},o.prototype.getOffsetForColumn=function(t,i){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(t,i)},o.prototype.render=function(t){if(t===void 0&&(t=!1),!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.render(!0,t)},o.prototype.setAriaOptions=function(t){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.setAriaOptions(t)},o.prototype.applyFontInfo=function(t){U.a.applyFontInfoSlow(t,this._configuration.options.get(34))},o.prototype._attachModel=function(t){var i=this;if(!t){this._modelData=null;return}var l=[];this._domElement.setAttribute("data-mode-id",t.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(t.isDominatedByLongLines()),this._configuration.setMaxLineNumber(t.getLineCount()),t.onBeforeAttached();var g=new Kn(this._id,this._configuration,t,Pr.create(),Ns.create(this._configuration.options),function(Bt){return J.W(Bt)});l.push(t.onDidChangeDecorations(function(Bt){return i._onDidChangeModelDecorations.fire(Bt)})),l.push(t.onDidChangeLanguage(function(Bt){i._domElement.setAttribute("data-mode-id",t.getLanguageIdentifier().language),i._onDidChangeModelLanguage.fire(Bt)})),l.push(t.onDidChangeLanguageConfiguration(function(Bt){return i._onDidChangeModelLanguageConfiguration.fire(Bt)})),l.push(t.onDidChangeContent(function(Bt){return i._onDidChangeModelContent.fire(Bt)})),l.push(t.onDidChangeOptions(function(Bt){return i._onDidChangeModelOptions.fire(Bt)})),l.push(t.onWillDispose(function(){return i.setModel(null)}));var te=new Rr(this._configuration,t,g);l.push(te.onDidReachMaxCursorCount(function(){i._notificationService.warn(pe.a("cursors.maximum","The number of cursors has been limited to {0}.",Rr.MAX_CURSOR_COUNT))})),l.push(te.onDidAttemptReadOnlyEdit(function(){i._onDidAttemptReadOnlyEdit.fire(void 0)})),l.push(te.onDidChange(function(Bt){for(var Ht=[],qt=0,$t=Bt.selections.length;qt<$t;qt++)Ht[qt]=Bt.selections[qt].getPosition();var io={position:Ht[0],secondaryPositions:Ht.slice(1),reason:Bt.reason,source:Bt.source};i._onDidChangeCursorPosition.fire(io);var yo={selection:Bt.selections[0],secondarySelections:Bt.selections.slice(1),modelVersionId:Bt.modelVersionId,oldSelections:Bt.oldSelections,oldModelVersionId:Bt.oldModelVersionId,source:Bt.source,reason:Bt.reason};i._onDidChangeCursorSelection.fire(yo)}));var Ae=this._createView(g,te),Se=Ae[0],qe=Ae[1];if(qe){this._domElement.appendChild(Se.domNode.domNode);for(var ct=Object.keys(this._contentWidgets),_t=0,tt=ct.length;_t<tt;_t++){var kt=ct[_t];Se.addContentWidget(this._contentWidgets[kt])}ct=Object.keys(this._overlayWidgets);for(var _t=0,tt=ct.length;_t<tt;_t++){var kt=ct[_t];Se.addOverlayWidget(this._overlayWidgets[kt])}Se.render(!1,!0),Se.domNode.domNode.setAttribute("data-uri",t.uri.toString())}this._modelData=new hr(t,g,te,Se,qe,l)},o.prototype._createView=function(t,i){var l=this,g;this.isSimpleWidget?g={executeEditorCommand:function(Se,qe){Se.runCoreEditorCommand(i,qe)},paste:function(Se,qe,ct,_t,tt){l.trigger(Se,Sn.b.Paste,{text:qe,pasteOnNewLine:ct,multicursorText:_t,mode:tt})},type:function(Se,qe){l.trigger(Se,Sn.b.Type,{text:qe})},replacePreviousChar:function(Se,qe,ct){l.trigger(Se,Sn.b.ReplacePreviousChar,{text:qe,replaceCharCnt:ct})},compositionStart:function(Se){l.trigger(Se,Sn.b.CompositionStart,void 0)},compositionEnd:function(Se){l.trigger(Se,Sn.b.CompositionEnd,void 0)},cut:function(Se){l.trigger(Se,Sn.b.Cut,void 0)}}:g={executeEditorCommand:function(Se,qe){Se.runCoreEditorCommand(i,qe)},paste:function(Se,qe,ct,_t,tt){l._commandService.executeCommand(Sn.b.Paste,{text:qe,pasteOnNewLine:ct,multicursorText:_t,mode:tt})},type:function(Se,qe){l._commandService.executeCommand(Sn.b.Type,{text:qe})},replacePreviousChar:function(Se,qe,ct){l._commandService.executeCommand(Sn.b.ReplacePreviousChar,{text:qe,replaceCharCnt:ct})},compositionStart:function(Se){l._commandService.executeCommand(Sn.b.CompositionStart,{})},compositionEnd:function(Se){l._commandService.executeCommand(Sn.b.CompositionEnd,{})},cut:function(Se){l._commandService.executeCommand(Sn.b.Cut,{})}};var te=new ft(t);te.onDidContentSizeChange=function(Se){return l._onDidContentSizeChange.fire(Se)},te.onDidScroll=function(Se){return l._onDidScrollChange.fire(Se)},te.onDidGainFocus=function(){return l._editorTextFocus.setValue(!0)},te.onDidLoseFocus=function(){return l._editorTextFocus.setValue(!1)},te.onContextMenu=function(Se){return l._onContextMenu.fire(Se)},te.onMouseDown=function(Se){return l._onMouseDown.fire(Se)},te.onMouseUp=function(Se){return l._onMouseUp.fire(Se)},te.onMouseDrag=function(Se){return l._onMouseDrag.fire(Se)},te.onMouseDrop=function(Se){return l._onMouseDrop.fire(Se)},te.onKeyUp=function(Se){return l._onKeyUp.fire(Se)},te.onMouseMove=function(Se){return l._onMouseMove.fire(Se)},te.onMouseLeave=function(Se){return l._onMouseLeave.fire(Se)},te.onMouseWheel=function(Se){return l._onMouseWheel.fire(Se)},te.onKeyDown=function(Se){return l._onKeyDown.fire(Se)};var Ae=new Cs(g,this._configuration,this._themeService,t,i,te);return[Ae,!0]},o.prototype._postDetachModelCleanup=function(t){t&&t.removeAllDecorationsWithOwnerId(this._id)},o.prototype._detachModel=function(){if(!this._modelData)return null;var t=this._modelData.model,i=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),i&&this._domElement.removeChild(i),t},o.prototype._removeDecorationType=function(t){this._codeEditorService.removeDecorationType(t)},o.prototype.hasModel=function(){return this._modelData!==null},o=Wr([ii(3,xs.a),ii(4,h.a),ii(5,ni.b),ii(6,mi.c),ii(7,Z.c),ii(8,ar.a),ii(9,sn.b)],o),o}(K.a),qn=function(k){Li(o,k);function o(){var t=k.call(this)||this;return t._onDidChangeToTrue=t._register(new H.a),t.onDidChangeToTrue=t._onDidChangeToTrue.event,t._onDidChangeToFalse=t._register(new H.a),t.onDidChangeToFalse=t._onDidChangeToFalse.event,t._value=0,t}return o.prototype.setValue=function(t){var i=t?2:1;if(this._value===i)return;this._value=i,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire()},o}(K.a),Fs=function(k){Li(o,k);function o(t,i){var l=k.call(this)||this;return l._editor=t,i.createKey("editorId",t.getId()),l._editorSimpleInput=Jo.a.editorSimpleInput.bindTo(i),l._editorFocus=Jo.a.focus.bindTo(i),l._textInputFocus=Jo.a.textInputFocus.bindTo(i),l._editorTextFocus=Jo.a.editorTextFocus.bindTo(i),l._editorTabMovesFocus=Jo.a.tabMovesFocus.bindTo(i),l._editorReadonly=Jo.a.readOnly.bindTo(i),l._hasMultipleSelections=Jo.a.hasMultipleSelections.bindTo(i),l._hasNonEmptySelection=Jo.a.hasNonEmptySelection.bindTo(i),l._canUndo=Jo.a.canUndo.bindTo(i),l._canRedo=Jo.a.canRedo.bindTo(i),l._register(l._editor.onDidChangeConfiguration(function(){return l._updateFromConfig()})),l._register(l._editor.onDidChangeCursorSelection(function(){return l._updateFromSelection()})),l._register(l._editor.onDidFocusEditorWidget(function(){return l._updateFromFocus()})),l._register(l._editor.onDidBlurEditorWidget(function(){return l._updateFromFocus()})),l._register(l._editor.onDidFocusEditorText(function(){return l._updateFromFocus()})),l._register(l._editor.onDidBlurEditorText(function(){return l._updateFromFocus()})),l._register(l._editor.onDidChangeModel(function(){return l._updateFromModel()})),l._register(l._editor.onDidChangeConfiguration(function(){return l._updateFromModel()})),l._updateFromConfig(),l._updateFromSelection(),l._updateFromFocus(),l._updateFromModel(),l._editorSimpleInput.set(l._editor.isSimpleWidget),l}return o.prototype._updateFromConfig=function(){var t=this._editor.getOptions();this._editorTabMovesFocus.set(t.get(106)),this._editorReadonly.set(t.get(68))},o.prototype._updateFromSelection=function(){var t=this._editor.getSelections();t?(this._hasMultipleSelections.set(t.length>1),this._hasNonEmptySelection.set(t.some(function(i){return!i.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},o.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},o.prototype._updateFromModel=function(){var t=this._editor.getModel();this._canUndo.set(Boolean(t&&t.canUndo())),this._canRedo.set(Boolean(t&&t.canRedo()))},o}(K.a),Ws=function(k){Li(o,k);function o(t,i){var l=k.call(this)||this;l._editor=t,l._contextKeyService=i,l._langId=Jo.a.languageId.bindTo(i),l._hasCompletionItemProvider=Jo.a.hasCompletionItemProvider.bindTo(i),l._hasCodeActionsProvider=Jo.a.hasCodeActionsProvider.bindTo(i),l._hasCodeLensProvider=Jo.a.hasCodeLensProvider.bindTo(i),l._hasDefinitionProvider=Jo.a.hasDefinitionProvider.bindTo(i),l._hasDeclarationProvider=Jo.a.hasDeclarationProvider.bindTo(i),l._hasImplementationProvider=Jo.a.hasImplementationProvider.bindTo(i),l._hasTypeDefinitionProvider=Jo.a.hasTypeDefinitionProvider.bindTo(i),l._hasHoverProvider=Jo.a.hasHoverProvider.bindTo(i),l._hasDocumentHighlightProvider=Jo.a.hasDocumentHighlightProvider.bindTo(i),l._hasDocumentSymbolProvider=Jo.a.hasDocumentSymbolProvider.bindTo(i),l._hasReferenceProvider=Jo.a.hasReferenceProvider.bindTo(i),l._hasRenameProvider=Jo.a.hasRenameProvider.bindTo(i),l._hasSignatureHelpProvider=Jo.a.hasSignatureHelpProvider.bindTo(i),l._hasDocumentFormattingProvider=Jo.a.hasDocumentFormattingProvider.bindTo(i),l._hasDocumentSelectionFormattingProvider=Jo.a.hasDocumentSelectionFormattingProvider.bindTo(i),l._hasMultipleDocumentFormattingProvider=Jo.a.hasMultipleDocumentFormattingProvider.bindTo(i),l._hasMultipleDocumentSelectionFormattingProvider=Jo.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),l._isInWalkThrough=Jo.a.isInEmbeddedEditor.bindTo(i);var g=function(){return l._update()};return l._register(t.onDidChangeModel(g)),l._register(t.onDidChangeModelLanguage(g)),l._register($o.d.onDidChange(g)),l._register($o.a.onDidChange(g)),l._register($o.b.onDidChange(g)),l._register($o.f.onDidChange(g)),l._register($o.e.onDidChange(g)),l._register($o.q.onDidChange(g)),l._register($o.C.onDidChange(g)),l._register($o.p.onDidChange(g)),l._register($o.i.onDidChange(g)),l._register($o.m.onDidChange(g)),l._register($o.u.onDidChange(g)),l._register($o.v.onDidChange(g)),l._register($o.g.onDidChange(g)),l._register($o.j.onDidChange(g)),l._register($o.x.onDidChange(g)),g(),l}return o.prototype.dispose=function(){k.prototype.dispose.call(this)},o.prototype.reset=function(){var t=this;this._contextKeyService.bufferChangeEvents(function(){t._langId.reset(),t._hasCompletionItemProvider.reset(),t._hasCodeActionsProvider.reset(),t._hasCodeLensProvider.reset(),t._hasDefinitionProvider.reset(),t._hasDeclarationProvider.reset(),t._hasImplementationProvider.reset(),t._hasTypeDefinitionProvider.reset(),t._hasHoverProvider.reset(),t._hasDocumentHighlightProvider.reset(),t._hasDocumentSymbolProvider.reset(),t._hasReferenceProvider.reset(),t._hasRenameProvider.reset(),t._hasDocumentFormattingProvider.reset(),t._hasDocumentSelectionFormattingProvider.reset(),t._hasSignatureHelpProvider.reset(),t._isInWalkThrough.reset()})},o.prototype._update=function(){var t=this,i=this._editor.getModel();if(!i){this.reset();return}this._contextKeyService.bufferChangeEvents(function(){t._langId.set(i.getLanguageIdentifier().language),t._hasCompletionItemProvider.set($o.d.has(i)),t._hasCodeActionsProvider.set($o.a.has(i)),t._hasCodeLensProvider.set($o.b.has(i)),t._hasDefinitionProvider.set($o.f.has(i)),t._hasDeclarationProvider.set($o.e.has(i)),t._hasImplementationProvider.set($o.q.has(i)),t._hasTypeDefinitionProvider.set($o.C.has(i)),t._hasHoverProvider.set($o.p.has(i)),t._hasDocumentHighlightProvider.set($o.i.has(i)),t._hasDocumentSymbolProvider.set($o.m.has(i)),t._hasReferenceProvider.set($o.u.has(i)),t._hasRenameProvider.set($o.v.has(i)),t._hasSignatureHelpProvider.set($o.x.has(i)),t._hasDocumentFormattingProvider.set($o.g.has(i)||$o.j.has(i)),t._hasDocumentSelectionFormattingProvider.set($o.j.has(i)),t._hasMultipleDocumentFormattingProvider.set($o.g.all(i).length+$o.j.all(i).length>1),t._hasMultipleDocumentSelectionFormattingProvider.set($o.j.all(i).length>1),t._isInWalkThrough.set(i.uri.scheme===D.b.walkThroughSnippet)})},o}(K.a),Br=function(k){Li(o,k);function o(t){var i=k.call(this)||this;return i._onChange=i._register(new H.a),i.onChange=i._onChange.event,i._hasFocus=!1,i._domFocusTracker=i._register(J.Z(t)),i._register(i._domFocusTracker.onDidFocus(function(){i._hasFocus=!0,i._onChange.fire(void 0)})),i._register(i._domFocusTracker.onDidBlur(function(){i._hasFocus=!1,i._onChange.fire(void 0)})),i}return o.prototype.hasFocus=function(){return this._hasFocus},o}(K.a),Bs=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),Ur=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function vi(k){return Bs+encodeURIComponent(k.toString())+Ur}var Us=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),Wi=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');function Bi(k){return Us+encodeURIComponent(k.toString())+Wi}Object(Z.e)(function(k,o){var t=k.getColor(On.p);t&&o.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+t+"; }");var i=k.getColor(On.q);i&&o.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+vi(i)+'") repeat-x bottom left; }');var l=k.getColor(On.O);l&&o.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+l+"; }");var g=k.getColor(On.P);g&&o.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+vi(g)+'") repeat-x bottom left; }');var te=k.getColor(On.G);te&&o.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+te+"; }");var Ae=k.getColor(On.H);Ae&&o.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+vi(Ae)+'") repeat-x bottom left; }');var Se=k.getColor(On.y);Se&&o.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+Se+"; }");var qe=k.getColor(On.z);qe&&o.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+Bi(qe)+'") no-repeat bottom left; }');var ct=k.getColor(dt.o);ct&&o.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+ct.rgba.a+"; }");var _t=k.getColor(dt.n);_t&&o.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+_t+"; }");var tt=k.getColor(On.x)||"inherit";o.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+tt+"}")})},nD70:function(Mt,F,e){"use strict";e.d(F,"a",function(){return T}),e.d(F,"b",function(){return pe});var T=function(){function J(I){this._prefix=I,this._lastId=0}return J.prototype.nextId=function(){return this._prefix+ ++this._lastId},J}(),pe=new T("id#")},nlbu:function(Mt,F,e){"use strict";e.d(F,"b",function(){return pe}),e.d(F,"d",function(){return J}),e.d(F,"c",function(){return I}),e.d(F,"a",function(){return K});var T=e("N0LK"),pe=function(){function D(U){this.value=U}return D.prototype.equals=function(U){return this.value===U.value},D.prototype.contains=function(U){return this.equals(U)||this.value===""||Object(T.N)(U.value,this.value+D.sep)},D.prototype.intersects=function(U){return this.contains(U)||U.contains(this)},D.prototype.append=function(U){return new D(this.value+D.sep+U)},D.sep=".",D.None=new D("@@none@@"),D.Empty=new D(""),D.QuickFix=new D("quickfix"),D.Refactor=new D("refactor"),D.Source=new D("source"),D.SourceOrganizeImports=D.Source.append("organizeImports"),D.SourceFixAll=D.Source.append("fixAll"),D}();function J(D,U){return D.include&&!D.include.intersects(U)||D.excludes&&D.excludes.some(function(j){return H(U,j,D.include)})?!1:!(!D.includeSourceActions&&pe.Source.contains(U))}function I(D,U){var j=U.kind?new pe(U.kind):void 0;return D.include&&(!j||!D.include.contains(j))||(D.excludes&&(j&&D.excludes.some(function(h){return H(j,h,D.include)}))||!D.includeSourceActions&&(j&&pe.Source.contains(j)))?!1:!(D.onlyIncludePreferredActions&&!U.isPreferred)}function H(D,U,j){return U.contains(D)?!(j&&U.contains(j)):!1}var K=function(){function D(U,j,h){this.kind=U,this.apply=j,this.preferred=h}return D.fromUser=function(U,j){return!U||typeof U!="object"?new D(j.kind,j.apply,!1):new D(D.getKindFromUser(U,j.kind),D.getApplyFromUser(U,j.apply),D.getPreferredUser(U))},D.getApplyFromUser=function(U,j){switch(typeof U.apply=="string"?U.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return j}},D.getKindFromUser=function(U,j){return typeof U.kind=="string"?new pe(U.kind):j},D.getPreferredUser=function(U){return typeof U.preferred=="boolean"?U.preferred:!1},D}()},nn6Y:function(Mt,F,e){},nrBJ:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return e.e(346).then(e.bind(null,"eXtt"))}})},nrhi:function(Mt,F,e){"use strict";e.d(F,"a",function(){return K});var T=e("/kV6"),pe=e("MNsG"),J=e("nnTU"),I=e("ic2d"),H=function(){function j(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return j.bindToCurrentPlatform=function(h){if(pe.a===1){if(h&&h.win)return h.win}else if(pe.a===2){if(h&&h.mac)return h.mac}else if(h&&h.linux)return h.linux;return h},j.prototype.registerKeybindingRule=function(h){var b=j.bindToCurrentPlatform(h);if(b&&b.primary){var O=Object(T.f)(b.primary,pe.a);O&&this._registerDefaultKeybinding(O,h.id,h.args,h.weight,0,h.when)}if(b&&Array.isArray(b.secondary))for(var m=0,C=b.secondary.length;m<C;m++){var w=b.secondary[m],O=Object(T.f)(w,pe.a);O&&this._registerDefaultKeybinding(O,h.id,h.args,h.weight,-m-1,h.when)}},j.prototype.registerCommandAndKeybindingRule=function(h){this.registerKeybindingRule(h),J.a.registerCommand(h)},j._mightProduceChar=function(h){return h>=21&&h<=30||h>=31&&h<=56?!0:h===80||h===81||h===82||h===83||h===84||h===85||h===86||h===110||h===111||h===87||h===88||h===89||h===90||h===91||h===92},j.prototype._assertNoCtrlAlt=function(h,b){h.ctrlKey&&h.altKey&&!h.metaKey&&(j._mightProduceChar(h.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",h," for ",b))},j.prototype._registerDefaultKeybinding=function(h,b,O,m,C,w){pe.a===1&&this._assertNoCtrlAlt(h.parts[0],b),this._coreKeybindings.push({keybinding:h,command:b,commandArgs:O,when:w,weight1:m,weight2:C}),this._cachedMergedKeybindings=null},j.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(U)),this._cachedMergedKeybindings.slice(0)},j}(),K=new H,D={EditorModes:"platform.keybindingsRegistry"};I.a.add(D.EditorModes,K);function U(j,h){return j.weight1!==h.weight1?j.weight1-h.weight1:j.command<h.command?-1:j.command>h.command?1:j.weight2-h.weight2}},nuFA:function(Mt,F,e){"use strict";e.d(F,"a",function(){return T});var T;(function(pe){function J(D,U){if(D.start>=U.end||U.start>=D.end)return{start:0,end:0};var j=Math.max(D.start,U.start),h=Math.min(D.end,U.end);return h-j<=0?{start:0,end:0}:{start:j,end:h}}pe.intersect=J;function I(D){return D.end-D.start<=0}pe.isEmpty=I;function H(D,U){return!I(J(D,U))}pe.intersects=H;function K(D,U){var j=[],h={start:D.start,end:Math.min(U.start,D.end)},b={start:Math.max(U.end,D.start),end:D.end};return I(h)||j.push(h),I(b)||j.push(b),j}pe.relativeComplement=K})(T||(T={}))},o39E:function(Mt,F,e){"use strict";e.d(F,"a",function(){return I});var T=e("pmY6"),pe=e("EffR"),J=function(){var H=function(K,D){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,j){U.__proto__=j}||function(U,j){for(var h in j)j.hasOwnProperty(h)&&(U[h]=j[h])},H(K,D)};return function(K,D){H(K,D);function U(){this.constructor=K}K.prototype=D===null?Object.create(D):(U.prototype=D.prototype,new U)}}(),I=function(H){J(K,H);function K(D,U,j){var h=H.call(this)||this;return h.referenceDomElement=D,h.changeCallback=j,h.width=-1,h.height=-1,h.mutationObserver=null,h.windowSizeListener=null,h.measureReferenceDomElement(!1,U),h}return K.prototype.dispose=function(){this.stopObserving(),H.prototype.dispose.call(this)},K.prototype.getWidth=function(){return this.width},K.prototype.getHeight=function(){return this.height},K.prototype.startObserving=function(){var D=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver(function(){return D._onDidMutate()}),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=pe.j(window,"resize",function(){return D._onDidResizeWindow()}))},K.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},K.prototype.observe=function(D){this.measureReferenceDomElement(!0,D)},K.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},K.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},K.prototype.measureReferenceDomElement=function(D,U){var j=0,h=0;U?(j=U.width,h=U.height):this.referenceDomElement&&(j=this.referenceDomElement.clientWidth,h=this.referenceDomElement.clientHeight),j=Math.max(5,j),h=Math.max(5,h),(this.width!==j||this.height!==h)&&(this.width=j,this.height=h,D&&this.changeCallback())},K}(T.a)},oAeH:function(Mt,F,e){"use strict";e.d(F,"b",function(){return D}),e.d(F,"a",function(){return U});var T=e("746U"),pe=e("Ll0s"),J=e("+Fos"),I=e("1I1M"),H=e("cGHE"),K=e("aokT"),D=function(){function j(){}return j.addCursorDown=function(h,b,O){for(var m=[],C=0,w=0,v=b.length;w<v;w++){var p=b[w];m[C++]=new pe.d(p.modelState,p.viewState),O?m[C++]=pe.d.fromModelState(J.a.translateDown(h.config,h.model,p.modelState)):m[C++]=pe.d.fromViewState(J.a.translateDown(h.config,h.viewModel,p.viewState))}return m},j.addCursorUp=function(h,b,O){for(var m=[],C=0,w=0,v=b.length;w<v;w++){var p=b[w];m[C++]=new pe.d(p.modelState,p.viewState),O?m[C++]=pe.d.fromModelState(J.a.translateUp(h.config,h.model,p.modelState)):m[C++]=pe.d.fromViewState(J.a.translateUp(h.config,h.viewModel,p.viewState))}return m},j.moveToBeginningOfLine=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C];m[C]=this._moveToLineStart(h,v,O)}return m},j._moveToLineStart=function(h,b,O){var m=b.viewState.position.column,C=b.modelState.position.column,w=m===C,v=b.viewState.position.lineNumber,p=h.viewModel.getLineFirstNonWhitespaceColumn(v),d=m===p;return!w&&!d?this._moveToLineStartByView(h,b,O):this._moveToLineStartByModel(h,b,O)},j._moveToLineStartByView=function(h,b,O){return pe.d.fromViewState(J.a.moveToBeginningOfLine(h.config,h.viewModel,b.viewState,O))},j._moveToLineStartByModel=function(h,b,O){return pe.d.fromModelState(J.a.moveToBeginningOfLine(h.config,h.model,b.modelState,O))},j.moveToEndOfLine=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C];m[C]=this._moveToLineEnd(h,v,O)}return m},j._moveToLineEnd=function(h,b,O){var m=b.viewState.position,C=h.viewModel.getLineMaxColumn(m.lineNumber),w=m.column===C,v=b.modelState.position,p=h.model.getLineMaxColumn(v.lineNumber),d=C-m.column===p-v.column;return w||d?this._moveToLineEndByModel(h,b,O):this._moveToLineEndByView(h,b,O)},j._moveToLineEndByView=function(h,b,O){return pe.d.fromViewState(J.a.moveToEndOfLine(h.config,h.viewModel,b.viewState,O))},j._moveToLineEndByModel=function(h,b,O){return pe.d.fromModelState(J.a.moveToEndOfLine(h.config,h.model,b.modelState,O))},j.expandLineSelection=function(h,b){for(var O=[],m=0,C=b.length;m<C;m++){var w=b[m],v=w.modelState.selection.startLineNumber,p=h.model.getLineCount(),d=w.modelState.selection.endLineNumber,c=void 0;d===p?c=h.model.getLineMaxColumn(p):(d++,c=1),O[m]=pe.d.fromModelState(new pe.f(new K.a(v,1,v,1),0,new H.a(d,c),0))}return O},j.moveToBeginningOfBuffer=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C];m[C]=pe.d.fromModelState(J.a.moveToBeginningOfBuffer(h.config,h.model,v.modelState,O))}return m},j.moveToEndOfBuffer=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C];m[C]=pe.d.fromModelState(J.a.moveToEndOfBuffer(h.config,h.model,v.modelState,O))}return m},j.selectAll=function(h,b){var O=h.model.getLineCount(),m=h.model.getLineMaxColumn(O);return pe.d.fromModelState(new pe.f(new K.a(1,1,1,1),0,new H.a(O,m),0))},j.line=function(h,b,O,m,C){var w=h.model.validatePosition(m),v=C?h.validateViewPosition(new H.a(C.lineNumber,C.column),w):h.convertModelPositionToViewPosition(w);if(!O||!b.modelState.hasSelection()){var p=h.model.getLineCount(),d=w.lineNumber+1,c=1;return d>p&&(d=p,c=h.model.getLineMaxColumn(d)),pe.d.fromModelState(new pe.f(new K.a(w.lineNumber,1,d,c),0,new H.a(d,c),0))}var u=b.modelState.selectionStart.getStartPosition().lineNumber;if(w.lineNumber<u)return pe.d.fromViewState(b.viewState.move(b.modelState.hasSelection(),v.lineNumber,1,0));if(w.lineNumber>u){var p=h.viewModel.getLineCount(),f=v.lineNumber+1,E=1;return f>p&&(f=p,E=h.viewModel.getLineMaxColumn(f)),pe.d.fromViewState(b.viewState.move(b.modelState.hasSelection(),f,E,0))}else{var L=b.modelState.selectionStart.getEndPosition();return pe.d.fromModelState(b.modelState.move(b.modelState.hasSelection(),L.lineNumber,L.column,0))}},j.word=function(h,b,O,m){var C=h.model.validatePosition(m);return pe.d.fromModelState(I.a.word(h.config,h.model,b.modelState,O,C))},j.cancelSelection=function(h,b){if(!b.modelState.hasSelection())return new pe.d(b.modelState,b.viewState);var O=b.viewState.position.lineNumber,m=b.viewState.position.column;return pe.d.fromViewState(new pe.f(new K.a(O,m,O,m),0,new H.a(O,m),0))},j.moveTo=function(h,b,O,m,C){var w=h.model.validatePosition(m),v=C?h.validateViewPosition(new H.a(C.lineNumber,C.column),w):h.convertModelPositionToViewPosition(w);return pe.d.fromViewState(b.viewState.move(O,v.lineNumber,v.column,0))},j.move=function(h,b,O){var m=O.select,C=O.value;switch(O.direction){case 0:return O.unit===4?this._moveHalfLineLeft(h,b,m):this._moveLeft(h,b,m,C);case 1:return O.unit===4?this._moveHalfLineRight(h,b,m):this._moveRight(h,b,m,C);case 2:return O.unit===2?this._moveUpByViewLines(h,b,m,C):this._moveUpByModelLines(h,b,m,C);case 3:return O.unit===2?this._moveDownByViewLines(h,b,m,C):this._moveDownByModelLines(h,b,m,C);case 4:return this._moveToViewMinColumn(h,b,m);case 5:return this._moveToViewFirstNonWhitespaceColumn(h,b,m);case 6:return this._moveToViewCenterColumn(h,b,m);case 7:return this._moveToViewMaxColumn(h,b,m);case 8:return this._moveToViewLastNonWhitespaceColumn(h,b,m);case 9:{var w=b[0],v=h.getCompletelyVisibleModelRange(),p=this._firstLineNumberInRange(h.model,v,C),d=h.model.getLineFirstNonWhitespaceColumn(p);return[this._moveToModelPosition(h,w,m,p,d)]}case 11:{var w=b[0],v=h.getCompletelyVisibleModelRange(),p=this._lastLineNumberInRange(h.model,v,C),d=h.model.getLineFirstNonWhitespaceColumn(p);return[this._moveToModelPosition(h,w,m,p,d)]}case 10:{var w=b[0],v=h.getCompletelyVisibleModelRange(),p=Math.round((v.startLineNumber+v.endLineNumber)/2),d=h.model.getLineFirstNonWhitespaceColumn(p);return[this._moveToModelPosition(h,w,m,p,d)]}case 12:{for(var c=h.getCompletelyVisibleViewRange(),u=[],f=0,E=b.length;f<E;f++){var w=b[f];u[f]=this.findPositionInViewportIfOutside(h,w,c,m)}return u}}return null},j.findPositionInViewportIfOutside=function(h,b,O,m){var C=b.viewState.position.lineNumber;if(O.startLineNumber<=C&&C<=O.endLineNumber-1)return new pe.d(b.modelState,b.viewState);C>O.endLineNumber-1&&(C=O.endLineNumber-1),C<O.startLineNumber&&(C=O.startLineNumber);var w=h.viewModel.getLineFirstNonWhitespaceColumn(C);return this._moveToViewPosition(h,b,m,C,w)},j._firstLineNumberInRange=function(h,b,O){var m=b.startLineNumber;return b.startColumn!==h.getLineMinColumn(m)&&m++,Math.min(b.endLineNumber,m+O-1)},j._lastLineNumberInRange=function(h,b,O){var m=b.startLineNumber;return b.startColumn!==h.getLineMinColumn(m)&&m++,Math.max(m,b.endLineNumber-O+1)},j._moveLeft=function(h,b,O,m){for(var C=[],w=0,v=b.length;w<v;w++){var p=b[w],d=J.a.moveLeft(h.config,h.viewModel,p.viewState,O,m);if(m===1&&d.position.lineNumber!==p.viewState.position.lineNumber){var c=h.viewModel.coordinatesConverter.convertViewPositionToModelPosition(d.position);c.lineNumber===p.modelState.position.lineNumber&&(d=J.a.moveLeft(h.config,h.viewModel,d,O,1))}C[w]=pe.d.fromViewState(d)}return C},j._moveHalfLineLeft=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C],p=v.viewState.position.lineNumber,d=Math.round(h.viewModel.getLineContent(p).length/2);m[C]=pe.d.fromViewState(J.a.moveLeft(h.config,h.viewModel,v.viewState,O,d))}return m},j._moveRight=function(h,b,O,m){for(var C=[],w=0,v=b.length;w<v;w++){var p=b[w],d=J.a.moveRight(h.config,h.viewModel,p.viewState,O,m);if(m===1&&d.position.lineNumber!==p.viewState.position.lineNumber){var c=h.viewModel.coordinatesConverter.convertViewPositionToModelPosition(d.position);c.lineNumber===p.modelState.position.lineNumber&&(d=J.a.moveRight(h.config,h.viewModel,d,O,1))}C[w]=pe.d.fromViewState(d)}return C},j._moveHalfLineRight=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C],p=v.viewState.position.lineNumber,d=Math.round(h.viewModel.getLineContent(p).length/2);m[C]=pe.d.fromViewState(J.a.moveRight(h.config,h.viewModel,v.viewState,O,d))}return m},j._moveDownByViewLines=function(h,b,O,m){for(var C=[],w=0,v=b.length;w<v;w++){var p=b[w];C[w]=pe.d.fromViewState(J.a.moveDown(h.config,h.viewModel,p.viewState,O,m))}return C},j._moveDownByModelLines=function(h,b,O,m){for(var C=[],w=0,v=b.length;w<v;w++){var p=b[w];C[w]=pe.d.fromModelState(J.a.moveDown(h.config,h.model,p.modelState,O,m))}return C},j._moveUpByViewLines=function(h,b,O,m){for(var C=[],w=0,v=b.length;w<v;w++){var p=b[w];C[w]=pe.d.fromViewState(J.a.moveUp(h.config,h.viewModel,p.viewState,O,m))}return C},j._moveUpByModelLines=function(h,b,O,m){for(var C=[],w=0,v=b.length;w<v;w++){var p=b[w];C[w]=pe.d.fromModelState(J.a.moveUp(h.config,h.model,p.modelState,O,m))}return C},j._moveToViewPosition=function(h,b,O,m,C){return pe.d.fromViewState(b.viewState.move(O,m,C,0))},j._moveToModelPosition=function(h,b,O,m,C){return pe.d.fromModelState(b.modelState.move(O,m,C,0))},j._moveToViewMinColumn=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C],p=v.viewState.position.lineNumber,d=h.viewModel.getLineMinColumn(p);m[C]=this._moveToViewPosition(h,v,O,p,d)}return m},j._moveToViewFirstNonWhitespaceColumn=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C],p=v.viewState.position.lineNumber,d=h.viewModel.getLineFirstNonWhitespaceColumn(p);m[C]=this._moveToViewPosition(h,v,O,p,d)}return m},j._moveToViewCenterColumn=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C],p=v.viewState.position.lineNumber,d=Math.round((h.viewModel.getLineMaxColumn(p)+h.viewModel.getLineMinColumn(p))/2);m[C]=this._moveToViewPosition(h,v,O,p,d)}return m},j._moveToViewMaxColumn=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C],p=v.viewState.position.lineNumber,d=h.viewModel.getLineMaxColumn(p);m[C]=this._moveToViewPosition(h,v,O,p,d)}return m},j._moveToViewLastNonWhitespaceColumn=function(h,b,O){for(var m=[],C=0,w=b.length;C<w;C++){var v=b[C],p=v.viewState.position.lineNumber,d=h.viewModel.getLineLastNonWhitespaceColumn(p);m[C]=this._moveToViewPosition(h,v,O,p,d)}return m},j}(),U;(function(j){var h=function(O){if(!T.i(O))return!1;var m=O;return T.j(m.to)?!T.k(m.select)&&!T.e(m.select)||!T.k(m.by)&&!T.j(m.by)?!1:!(!T.k(m.value)&&!T.h(m.value)):!1};j.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:`Property-value pairs that can be passed through this argument:
* 'to': A mandatory logical position value providing where to move the cursor.
\`\`\`
'left', 'right', 'up', 'down'
'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'
'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'
'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'
\`\`\`
* 'by': Unit to move. Default is computed based on 'to' value.
\`\`\`
'line', 'wrappedLine', 'character', 'halfLine'
\`\`\`
* 'value': Number of units to move. Default is '1'.
* 'select': If 'true' makes the selection. Default is 'false'.
`,constraint:h,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},j.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},j.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function b(O){if(!O.to)return null;var m;switch(O.to){case j.RawDirection.Left:m=0;break;case j.RawDirection.Right:m=1;break;case j.RawDirection.Up:m=2;break;case j.RawDirection.Down:m=3;break;case j.RawDirection.WrappedLineStart:m=4;break;case j.RawDirection.WrappedLineFirstNonWhitespaceCharacter:m=5;break;case j.RawDirection.WrappedLineColumnCenter:m=6;break;case j.RawDirection.WrappedLineEnd:m=7;break;case j.RawDirection.WrappedLineLastNonWhitespaceCharacter:m=8;break;case j.RawDirection.ViewPortTop:m=9;break;case j.RawDirection.ViewPortBottom:m=11;break;case j.RawDirection.ViewPortCenter:m=10;break;case j.RawDirection.ViewPortIfOutside:m=12;break;default:return null}var C=0;switch(O.by){case j.RawUnit.Line:C=1;break;case j.RawUnit.WrappedLine:C=2;break;case j.RawUnit.Character:C=3;break;case j.RawUnit.HalfLine:C=4;break}return{direction:m,unit:C,select:!!O.select,value:O.value||1}}j.parse=b})(U||(U={}))},oKJv:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return e.e(320).then(e.bind(null,"HGU1"))}})},oQaD:function(Mt,F,e){"use strict";e.r(F),e.d(F,"getSelectionSearchString",function(){return _}),e.d(F,"CommonFindController",function(){return A}),e.d(F,"FindController",function(){return X}),e.d(F,"StartFindAction",function(){return De}),e.d(F,"StartFindWithSelectionAction",function(){return xe}),e.d(F,"MatchFindAction",function(){return Ie}),e.d(F,"NextMatchFindAction",function(){return lt}),e.d(F,"NextMatchFindAction2",function(){return ft}),e.d(F,"PreviousMatchFindAction",function(){return At}),e.d(F,"PreviousMatchFindAction2",function(){return Ft}),e.d(F,"SelectionMatchFindAction",function(){return Ut}),e.d(F,"NextSelectionMatchFindAction",function(){return Vt}),e.d(F,"PreviousSelectionMatchFindAction",function(){return oo}),e.d(F,"StartFindReplaceAction",function(){return Zt});var T=e("3/fG"),pe=e("X+cX"),J=e("pmY6"),I=e("N0LK"),H=e("sswD"),K=e("wQH0"),D=e("LCkn"),U=e("cGHE"),j=e("aokT"),h=e("gCVg"),b=e("jAJ/"),O=e("M1Kb"),m=e("tX9W"),C=e("MD5Z"),w=e("t9D7"),v=function(){function mt(He){this._editor=He,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return mt.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},mt.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},mt.prototype.getCount=function(){return this._decorations.length},mt.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},mt.prototype.getStartPosition=function(){return this._startPosition},mt.prototype.setStartPosition=function(He){this._startPosition=He,this.setCurrentFindMatch(null)},mt.prototype._getDecorationIndex=function(He){var Oe=this._decorations.indexOf(He);return Oe>=0?Oe+1:1},mt.prototype.getCurrentMatchesPosition=function(He){for(var Oe=this._editor.getModel().getDecorationsInRange(He),ot=0,xt=Oe;ot<xt.length;ot++){var he=xt[ot],M=he.options;if(M===mt._FIND_MATCH_DECORATION||M===mt._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(he.id)}return 1},mt.prototype.setCurrentFindMatch=function(He){var Oe=this,ot=null,xt=0;if(He)for(var he=0,M=this._decorations.length;he<M;he++){var ue=this._editor.getModel().getDecorationRange(this._decorations[he]);if(He.equalsRange(ue)){ot=this._decorations[he],xt=he+1;break}}return(this._highlightedDecorationId!==null||ot!==null)&&this._editor.changeDecorations(function(We){if(Oe._highlightedDecorationId!==null&&(We.changeDecorationOptions(Oe._highlightedDecorationId,mt._FIND_MATCH_DECORATION),Oe._highlightedDecorationId=null),ot!==null&&(Oe._highlightedDecorationId=ot,We.changeDecorationOptions(Oe._highlightedDecorationId,mt._CURRENT_FIND_MATCH_DECORATION)),Oe._rangeHighlightDecorationId!==null&&(We.removeDecoration(Oe._rangeHighlightDecorationId),Oe._rangeHighlightDecorationId=null),ot!==null){var Ze=Oe._editor.getModel().getDecorationRange(ot);if(Ze.startLineNumber!==Ze.endLineNumber&&Ze.endColumn===1){var at=Ze.endLineNumber-1,wt=Oe._editor.getModel().getLineMaxColumn(at);Ze=new j.a(Ze.startLineNumber,Ze.startColumn,at,wt)}Oe._rangeHighlightDecorationId=We.addDecoration(Ze,mt._RANGE_HIGHLIGHT_DECORATION)}}),xt},mt.prototype.set=function(He,Oe){var ot=this;this._editor.changeDecorations(function(xt){var he=mt._FIND_MATCH_DECORATION,M=[];if(He.length>1e3){he=mt._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var ue=ot._editor.getModel().getLineCount(),We=ot._editor.getLayoutInfo().height,Ze=We/ue,at=Math.max(2,Math.ceil(3/Ze)),wt=He[0].range.startLineNumber,zt=He[0].range.endLineNumber,Xt=1,no=He.length;Xt<no;Xt++){var uo=He[Xt].range;zt+at>=uo.startLineNumber?uo.endLineNumber>zt&&(zt=uo.endLineNumber):(M.push({range:new j.a(wt,1,zt,1),options:mt._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),wt=uo.startLineNumber,zt=uo.endLineNumber)}M.push({range:new j.a(wt,1,zt,1),options:mt._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var go=new Array(He.length),Xt=0,no=He.length;Xt<no;Xt++)go[Xt]={range:He[Xt].range,options:he};ot._decorations=xt.deltaDecorations(ot._decorations,go),ot._overviewRulerApproximateDecorations=xt.deltaDecorations(ot._overviewRulerApproximateDecorations,M),ot._rangeHighlightDecorationId&&(xt.removeDecoration(ot._rangeHighlightDecorationId),ot._rangeHighlightDecorationId=null),ot._findScopeDecorationId&&(xt.removeDecoration(ot._findScopeDecorationId),ot._findScopeDecorationId=null),Oe&&(ot._findScopeDecorationId=xt.addDecoration(Oe,mt._FIND_SCOPE_DECORATION))})},mt.prototype.matchBeforePosition=function(He){if(this._decorations.length===0)return null;for(var Oe=this._decorations.length-1;Oe>=0;Oe--){var ot=this._decorations[Oe],xt=this._editor.getModel().getDecorationRange(ot);if(!xt||xt.endLineNumber>He.lineNumber)continue;if(xt.endLineNumber<He.lineNumber)return xt;if(xt.endColumn>He.column)continue;return xt}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},mt.prototype.matchAfterPosition=function(He){if(this._decorations.length===0)return null;for(var Oe=0,ot=this._decorations.length;Oe<ot;Oe++){var xt=this._decorations[Oe],he=this._editor.getModel().getDecorationRange(xt);if(!he||he.startLineNumber<He.lineNumber)continue;if(he.startLineNumber>He.lineNumber)return he;if(he.startColumn<He.column)continue;return he}return this._editor.getModel().getDecorationRange(this._decorations[0])},mt.prototype._allDecorations=function(){var He=[];return He=He.concat(this._decorations),He=He.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&He.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&He.push(this._rangeHighlightDecorationId),He},mt._CURRENT_FIND_MATCH_DECORATION=m.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(w.f)(C.Lb),position:O.d.Center},minimap:{color:Object(w.f)(C.Hb),position:O.c.Inline}}),mt._FIND_MATCH_DECORATION=m.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(w.f)(C.Lb),position:O.d.Center},minimap:{color:Object(w.f)(C.Hb),position:O.c.Inline}}),mt._FIND_MATCH_NO_OVERVIEW_DECORATION=m.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),mt._FIND_MATCH_ONLY_OVERVIEW_DECORATION=m.a.register({stickiness:1,overviewRuler:{color:Object(w.f)(C.Lb),position:O.d.Center}}),mt._RANGE_HIGHLIGHT_DECORATION=m.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),mt._FIND_SCOPE_DECORATION=m.a.register({className:"findScope",isWholeLine:!0}),mt}(),p=function(){function mt(He,Oe,ot){this._editorSelection=He,this._ranges=Oe,this._replaceStrings=ot,this._trackedEditorSelectionId=null}return mt.prototype.getEditOperations=function(He,Oe){if(this._ranges.length>0){for(var ot=[],xt=0;xt<this._ranges.length;xt++)ot.push({range:this._ranges[xt],text:this._replaceStrings[xt]});ot.sort(function(at,wt){return j.a.compareRangesUsingStarts(at.range,wt.range)});for(var he=[],M=ot[0],xt=1;xt<ot.length;xt++)M.range.endLineNumber===ot[xt].range.startLineNumber&&M.range.endColumn===ot[xt].range.startColumn?(M.range=M.range.plusRange(ot[xt].range),M.text=M.text+ot[xt].text):(he.push(M),M=ot[xt]);he.push(M);for(var ue=0,We=he;ue<We.length;ue++){var Ze=We[ue];Oe.addEditOperation(Ze.range,Ze.text)}}this._trackedEditorSelectionId=Oe.trackSelection(this._editorSelection)},mt.prototype.computeCursorState=function(He,Oe){return Oe.getTrackedSelection(this._trackedEditorSelectionId)},mt}();function d(mt,He){if(mt&&mt[0]!==""){var Oe=c(mt,He,"-"),ot=c(mt,He,"_");return Oe&&!ot?u(mt,He,"-"):!Oe&&ot?u(mt,He,"_"):mt[0].toUpperCase()===mt[0]?He.toUpperCase():mt[0].toLowerCase()===mt[0]?He.toLowerCase():I.j(mt[0][0])?He[0].toUpperCase()+He.substr(1):He}else return He}function c(mt,He,Oe){var ot=mt[0].indexOf(Oe)!==-1&&He.indexOf(Oe)!==-1;return ot&&mt[0].split(Oe).length===He.split(Oe).length}function u(mt,He,Oe){var ot=He.split(Oe),xt=mt[0].split(Oe),he="";return ot.forEach(function(M,ue){he+=d([xt[ue]],M)+Oe}),he.slice(0,-1)}var f=function(){function mt(He){this.staticValue=He,this.kind=0}return mt}(),E=function(){function mt(He){this.pieces=He,this.kind=1}return mt}(),L=function(){function mt(He){!He||He.length===0?this._state=new f(""):He.length===1&&He[0].staticValue!==null?this._state=new f(He[0].staticValue):this._state=new E(He)}return mt.fromStaticValue=function(He){return new mt([R.staticValue(He)])},Object.defineProperty(mt.prototype,"hasReplacementPatterns",{get:function(){return this._state.kind===1},enumerable:!0,configurable:!0}),mt.prototype.buildReplaceString=function(He,Oe){if(this._state.kind===0)return Oe?d(He,this._state.staticValue):this._state.staticValue;for(var ot="",xt=0,he=this._state.pieces.length;xt<he;xt++){var M=this._state.pieces[xt];if(M.staticValue!==null){ot+=M.staticValue;continue}ot+=mt._substitute(M.matchIndex,He)}return ot},mt._substitute=function(He,Oe){if(Oe===null)return"";if(He===0)return Oe[0];for(var ot="";He>0;){if(He<Oe.length){var xt=Oe[He]||"";return xt+ot}ot=String(He%10)+ot,He=Math.floor(He/10)}return"$"+ot},mt}(),R=function(){function mt(He,Oe){this.staticValue=He,this.matchIndex=Oe}return mt.staticValue=function(He){return new mt(He,-1)},mt.matchIndex=function(He){return new mt(null,He)},mt}(),P=function(){function mt(He){this._source=He,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return mt.prototype.emitUnchanged=function(He){this._emitStatic(this._source.substring(this._lastCharIndex,He)),this._lastCharIndex=He},mt.prototype.emitStatic=function(He,Oe){this._emitStatic(He),this._lastCharIndex=Oe},mt.prototype._emitStatic=function(He){if(He.length===0)return;this._currentStaticPiece+=He},mt.prototype.emitMatchIndex=function(He,Oe){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=R.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=R.matchIndex(He),this._lastCharIndex=Oe},mt.prototype.finalize=function(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=R.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new L(this._result)},mt}();function x(mt){if(!mt||mt.length===0)return new L(null);for(var He=new P(mt),Oe=0,ot=mt.length;Oe<ot;Oe++){var xt=mt.charCodeAt(Oe);if(xt===92){if(Oe++,Oe>=ot)break;var he=mt.charCodeAt(Oe);switch(he){case 92:He.emitUnchanged(Oe-1),He.emitStatic("\\",Oe+1);break;case 110:He.emitUnchanged(Oe-1),He.emitStatic(`
`,Oe+1);break;case 116:He.emitUnchanged(Oe-1),He.emitStatic(" ",Oe+1);break}continue}if(xt===36){if(Oe++,Oe>=ot)break;var he=mt.charCodeAt(Oe);if(he===36){He.emitUnchanged(Oe-1),He.emitStatic("$",Oe+1);continue}if(he===48||he===38){He.emitUnchanged(Oe-1),He.emitMatchIndex(0,Oe+1);continue}if(49<=he&&he<=57){var M=he-48;if(Oe+1<ot){var ue=mt.charCodeAt(Oe+1);if(48<=ue&&ue<=57){Oe++,M=M*10+(ue-48),He.emitUnchanged(Oe-2),He.emitMatchIndex(M,Oe+1);continue}}He.emitUnchanged(Oe-1),He.emitMatchIndex(M,Oe+1);continue}}}return He.finalize()}var Q=e("T8No"),V=new Q.d("findWidgetVisible",!1),W=new Q.d("findInputFocussed",!1),B=new Q.d("replaceInputFocussed",!1),ae={primary:512|33,mac:{primary:2048|512|33}},we={primary:512|53,mac:{primary:2048|512|53}},Me={primary:512|48,mac:{primary:2048|512|48}},Pe={primary:512|42,mac:{primary:2048|512|42}},Be={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},Ke=19999,Fe=240,re=function(){function mt(He,Oe){var ot=this;this._toDispose=new J.b,this._editor=He,this._state=Oe,this._isDisposed=!1,this._startSearchingTimer=new pe.e,this._decorations=new v(He),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new pe.d(function(){return ot.research(!1)},100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(function(xt){(xt.reason===3||xt.reason===5||xt.reason===6)&&ot._decorations.setStartPosition(ot._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(function(xt){if(ot._ignoreModelContentChanged)return;xt.isFlush&&ot._decorations.reset(),ot._decorations.setStartPosition(ot._editor.getPosition()),ot._updateDecorationsScheduler.schedule()})),this._toDispose.add(this._state.onFindReplaceStateChange(function(xt){return ot._onStateChanged(xt)})),this.research(!1,this._state.searchScope)}return mt.prototype.dispose=function(){this._isDisposed=!0,Object(J.f)(this._startSearchingTimer),this._toDispose.dispose()},mt.prototype._onStateChanged=function(He){var Oe=this;if(this._isDisposed)return;if(!this._editor.hasModel())return;if(He.searchString||He.isReplaceRevealed||He.isRegex||He.wholeWord||He.matchCase||He.searchScope){var ot=this._editor.getModel();ot.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(function(){He.searchScope?Oe.research(He.moveCursor,Oe._state.searchScope):Oe.research(He.moveCursor)},Fe)):He.searchScope?this.research(He.moveCursor,this._state.searchScope):this.research(He.moveCursor)}},mt._getSearchRange=function(He,Oe){return Oe||He.getFullModelRange()},mt.prototype.research=function(He,Oe){var ot=null;typeof Oe!="undefined"?ot=Oe:ot=this._decorations.getFindScope(),ot!==null&&(ot.startLineNumber!==ot.endLineNumber&&(ot.endColumn===1?ot=new j.a(ot.startLineNumber,1,ot.endLineNumber-1,this._editor.getModel().getLineMaxColumn(ot.endLineNumber-1)):ot=new j.a(ot.startLineNumber,1,ot.endLineNumber,this._editor.getModel().getLineMaxColumn(ot.endLineNumber))));var xt=this._findMatches(ot,!1,Ke);this._decorations.set(xt,ot),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),He&&this._moveToNextMatch(this._decorations.getStartPosition())},mt.prototype._hasMatches=function(){return this._state.matchesCount>0},mt.prototype._cannotFind=function(){if(!this._hasMatches()){var He=this._decorations.getFindScope();return He&&this._editor.revealRangeInCenterIfOutsideViewport(He,0),!0}return!1},mt.prototype._setCurrentFindMatch=function(He){var Oe=this._decorations.setCurrentFindMatch(He);this._state.changeMatchInfo(Oe,this._decorations.getCount(),He),this._editor.setSelection(He),this._editor.revealRangeInCenterIfOutsideViewport(He,0)},mt.prototype._prevSearchPosition=function(He){var Oe=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),ot=He.lineNumber,xt=He.column,he=this._editor.getModel();return Oe||xt===1?(ot===1?ot=he.getLineCount():ot--,xt=he.getLineMaxColumn(ot)):xt--,new U.a(ot,xt)},mt.prototype._moveToPrevMatch=function(He,Oe){if(Oe===void 0&&(Oe=!1),this._decorations.getCount()<Ke){var ot=this._decorations.matchBeforePosition(He);ot&&ot.isEmpty()&&ot.getStartPosition().equals(He)&&(He=this._prevSearchPosition(He),ot=this._decorations.matchBeforePosition(He)),ot&&this._setCurrentFindMatch(ot);return}if(this._cannotFind())return;var xt=this._decorations.getFindScope(),he=mt._getSearchRange(this._editor.getModel(),xt);he.getEndPosition().isBefore(He)&&(He=he.getEndPosition()),He.isBefore(he.getStartPosition())&&(He=he.getEndPosition());var M=He.lineNumber,ue=He.column,We=this._editor.getModel(),Ze=new U.a(M,ue),at=We.findPreviousMatch(this._state.searchString,Ze,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1);if(at&&at.range.isEmpty()&&at.range.getStartPosition().equals(Ze)&&(Ze=this._prevSearchPosition(Ze),at=We.findPreviousMatch(this._state.searchString,Ze,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1)),!at)return;if(!Oe&&!he.containsRange(at.range))return this._moveToPrevMatch(at.range.getStartPosition(),!0);this._setCurrentFindMatch(at.range)},mt.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},mt.prototype._nextSearchPosition=function(He){var Oe=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),ot=He.lineNumber,xt=He.column,he=this._editor.getModel();return Oe||xt===he.getLineMaxColumn(ot)?(ot===he.getLineCount()?ot=1:ot++,xt=1):xt++,new U.a(ot,xt)},mt.prototype._moveToNextMatch=function(He){if(this._decorations.getCount()<Ke){var Oe=this._decorations.matchAfterPosition(He);Oe&&Oe.isEmpty()&&Oe.getStartPosition().equals(He)&&(He=this._nextSearchPosition(He),Oe=this._decorations.matchAfterPosition(He)),Oe&&this._setCurrentFindMatch(Oe);return}var ot=this._getNextMatch(He,!1,!0);ot&&this._setCurrentFindMatch(ot.range)},mt.prototype._getNextMatch=function(He,Oe,ot,xt){if(xt===void 0&&(xt=!1),this._cannotFind())return null;var he=this._decorations.getFindScope(),M=mt._getSearchRange(this._editor.getModel(),he);M.getEndPosition().isBefore(He)&&(He=M.getStartPosition()),He.isBefore(M.getStartPosition())&&(He=M.getStartPosition());var ue=He.lineNumber,We=He.column,Ze=this._editor.getModel(),at=new U.a(ue,We),wt=Ze.findNextMatch(this._state.searchString,at,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Oe);return ot&&wt&&wt.range.isEmpty()&&wt.range.getStartPosition().equals(at)&&(at=this._nextSearchPosition(at),wt=Ze.findNextMatch(this._state.searchString,at,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Oe)),wt?!xt&&!M.containsRange(wt.range)?this._getNextMatch(wt.range.getEndPosition(),Oe,ot,!0):wt:null},mt.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},mt.prototype._getReplacePattern=function(){return this._state.isRegex?x(this._state.replaceString):L.fromStaticValue(this._state.replaceString)},mt.prototype.replace=function(){if(!this._hasMatches())return;var He=this._getReplacePattern(),Oe=this._editor.getSelection(),ot=this._getNextMatch(Oe.getStartPosition(),!0,!1);if(ot)if(Oe.equalsRange(ot.range)){var xt=He.buildReplaceString(ot.matches,this._state.preserveCase),he=new D.a(Oe,xt);this._executeEditorCommand("replace",he),this._decorations.setStartPosition(new U.a(Oe.startLineNumber,Oe.startColumn+xt.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(ot.range)},mt.prototype._findMatches=function(He,Oe,ot){var xt=mt._getSearchRange(this._editor.getModel(),He);return this._editor.getModel().findMatches(this._state.searchString,xt,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Oe,ot)},mt.prototype.replaceAll=function(){if(!this._hasMatches())return;var He=this._decorations.getFindScope();He===null&&this._state.matchesCount>=Ke?this._largeReplaceAll():this._regularReplaceAll(He),this.research(!1)},mt.prototype._largeReplaceAll=function(){var He=new b.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),Oe=He.parseSearchRequest();if(!Oe)return;var ot=Oe.regex;if(!ot.multiline){var xt="mu";ot.ignoreCase&&(xt+="i"),ot.global&&(xt+="g"),ot=new RegExp(ot.source,xt)}var he=this._editor.getModel(),M=he.getValue(1),ue=he.getFullModelRange(),We=this._getReplacePattern(),Ze,at=this._state.preserveCase;We.hasReplacementPatterns||at?Ze=M.replace(ot,function(){return We.buildReplaceString(arguments,at)}):Ze=M.replace(ot,We.buildReplaceString(null,at));var wt=new D.b(ue,Ze,this._editor.getSelection());this._executeEditorCommand("replaceAll",wt)},mt.prototype._regularReplaceAll=function(He){for(var Oe=this._getReplacePattern(),ot=this._findMatches(He,Oe.hasReplacementPatterns||this._state.preserveCase,1073741824),xt=[],he=0,M=ot.length;he<M;he++)xt[he]=Oe.buildReplaceString(ot[he].matches,this._state.preserveCase);var ue=new p(this._editor.getSelection(),ot.map(function(We){return We.range}),xt);this._executeEditorCommand("replaceAll",ue)},mt.prototype.selectAllMatches=function(){if(!this._hasMatches())return;for(var He=this._decorations.getFindScope(),Oe=this._findMatches(He,!1,1073741824),ot=Oe.map(function(We){return new h.a(We.range.startLineNumber,We.range.startColumn,We.range.endLineNumber,We.range.endColumn)}),xt=this._editor.getSelection(),he=0,M=ot.length;he<M;he++){var ue=ot[he];if(ue.equalsRange(xt)){ot=[xt].concat(ot.slice(0,he)).concat(ot.slice(he+1));break}}this._editor.setSelections(ot)},mt.prototype._executeEditorCommand=function(He,Oe){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(He,Oe),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},mt}(),ee=e("EffR"),ne=e("iJk1"),q=e("G300"),le=e("zrhQ"),Z=e("MI8n"),ve=e("qj0h"),Ne=function(){var mt=function(He,Oe){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var he in xt)xt.hasOwnProperty(he)&&(ot[he]=xt[he])},mt(He,Oe)};return function(He,Oe){mt(He,Oe);function ot(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(ot.prototype=Oe.prototype,new ot)}}(),Xe={inputActiveOptionBorder:le.a.fromHex("#007ACC00"),inputActiveOptionBackground:le.a.fromHex("#0E639C50")},de=function(mt){Ne(He,mt);function He(Oe){var ot=mt.call(this)||this;return ot._onChange=ot._register(new Z.a),ot.onChange=ot._onChange.event,ot._onKeyDown=ot._register(new Z.a),ot.onKeyDown=ot._onKeyDown.event,ot._opts=ve.c(Oe),ve.g(ot._opts,Xe,!1),ot._checked=ot._opts.isChecked,ot.domNode=document.createElement("div"),ot.domNode.title=ot._opts.title,ot.domNode.className="monaco-custom-checkbox codicon "+(ot._opts.actionClassName||"")+" "+(ot._checked?"checked":"unchecked"),ot.domNode.tabIndex=0,ot.domNode.setAttribute("role","checkbox"),ot.domNode.setAttribute("aria-checked",String(ot._checked)),ot.domNode.setAttribute("aria-label",ot._opts.title),ot.applyStyles(),ot.onclick(ot.domNode,function(xt){ot.checked=!ot._checked,ot._onChange.fire(!1),xt.preventDefault()}),ot.ignoreGesture(ot.domNode),ot.onkeydown(ot.domNode,function(xt){if(xt.keyCode===10||xt.keyCode===3){ot.checked=!ot._checked,ot._onChange.fire(!0),xt.preventDefault();return}ot._onKeyDown.fire(xt)}),ot}return Object.defineProperty(He.prototype,"enabled",{get:function(){return this.domNode.getAttribute("aria-disabled")!=="true"},enumerable:!0,configurable:!0}),He.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(He.prototype,"checked",{get:function(){return this._checked},set:function(Oe){this._checked=Oe,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),He.prototype.width=function(){return 2+2+2+16},He.prototype.style=function(Oe){Oe.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=Oe.inputActiveOptionBorder),Oe.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=Oe.inputActiveOptionBackground),this.applyStyles()},He.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")},He.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},He.prototype.disable=function(){ee.S(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},He}(q.a),ge=function(){var mt=function(He,Oe){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var he in xt)xt.hasOwnProperty(he)&&(ot[he]=xt[he])},mt(He,Oe)};return function(He,Oe){mt(He,Oe);function ot(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(ot.prototype=Oe.prototype,new ot)}}(),Ee=T.a("caseDescription","Match Case"),Te=T.a("wordsDescription","Match Whole Word"),Ce=T.a("regexDescription","Use Regular Expression"),fe=function(mt){ge(He,mt);function He(Oe){return mt.call(this,{actionClassName:"codicon-case-sensitive",title:Ee+Oe.appendTitle,isChecked:Oe.isChecked,inputActiveOptionBorder:Oe.inputActiveOptionBorder,inputActiveOptionBackground:Oe.inputActiveOptionBackground})||this}return He}(de),$=function(mt){ge(He,mt);function He(Oe){return mt.call(this,{actionClassName:"codicon-whole-word",title:Te+Oe.appendTitle,isChecked:Oe.isChecked,inputActiveOptionBorder:Oe.inputActiveOptionBorder,inputActiveOptionBackground:Oe.inputActiveOptionBackground})||this}return He}(de),S=function(mt){ge(He,mt);function He(Oe){return mt.call(this,{actionClassName:"codicon-regex",title:Ce+Oe.appendTitle,isChecked:Oe.isChecked,inputActiveOptionBorder:Oe.inputActiveOptionBorder,inputActiveOptionBackground:Oe.inputActiveOptionBackground})||this}return He}(de),z=function(){var mt=function(He,Oe){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var he in xt)xt.hasOwnProperty(he)&&(ot[he]=xt[he])},mt(He,Oe)};return function(He,Oe){mt(He,Oe);function ot(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(ot.prototype=Oe.prototype,new ot)}}(),ce=function(mt){z(He,mt);function He(Oe,ot,xt,he){var M=mt.call(this)||this;M._hideSoon=M._register(new pe.d(function(){return M._hide()},2e3)),M._isVisible=!1,M._editor=Oe,M._state=ot,M._keybindingService=xt,M._domNode=document.createElement("div"),M._domNode.className="findOptionsWidget",M._domNode.style.display="none",M._domNode.style.top="10px",M._domNode.setAttribute("role","presentation"),M._domNode.setAttribute("aria-hidden","true");var ue=he.getTheme().getColor(C.Y),We=he.getTheme().getColor(C.X);return M.caseSensitive=M._register(new fe({appendTitle:M._keybindingLabelFor(Be.ToggleCaseSensitiveCommand),isChecked:M._state.matchCase,inputActiveOptionBorder:ue,inputActiveOptionBackground:We})),M._domNode.appendChild(M.caseSensitive.domNode),M._register(M.caseSensitive.onChange(function(){M._state.change({matchCase:M.caseSensitive.checked},!1)})),M.wholeWords=M._register(new $({appendTitle:M._keybindingLabelFor(Be.ToggleWholeWordCommand),isChecked:M._state.wholeWord,inputActiveOptionBorder:ue,inputActiveOptionBackground:We})),M._domNode.appendChild(M.wholeWords.domNode),M._register(M.wholeWords.onChange(function(){M._state.change({wholeWord:M.wholeWords.checked},!1)})),M.regex=M._register(new S({appendTitle:M._keybindingLabelFor(Be.ToggleRegexCommand),isChecked:M._state.isRegex,inputActiveOptionBorder:ue,inputActiveOptionBackground:We})),M._domNode.appendChild(M.regex.domNode),M._register(M.regex.onChange(function(){M._state.change({isRegex:M.regex.checked},!1)})),M._editor.addOverlayWidget(M),M._register(M._state.onFindReplaceStateChange(function(Ze){var at=!1;Ze.isRegex&&(M.regex.checked=M._state.isRegex,at=!0),Ze.wholeWord&&(M.wholeWords.checked=M._state.wholeWord,at=!0),Ze.matchCase&&(M.caseSensitive.checked=M._state.matchCase,at=!0),!M._state.isRevealed&&at&&M._revealTemporarily()})),M._register(ee.k(M._domNode,function(Ze){return M._onMouseOut()})),M._register(ee.j(M._domNode,"mouseover",function(Ze){return M._onMouseOver()})),M._applyTheme(he.getTheme()),M._register(he.onThemeChange(M._applyTheme.bind(M))),M}return He.prototype._keybindingLabelFor=function(Oe){var ot=this._keybindingService.lookupKeybinding(Oe);return ot?" ("+ot.getLabel()+")":""},He.prototype.dispose=function(){this._editor.removeOverlayWidget(this),mt.prototype.dispose.call(this)},He.prototype.getId=function(){return He.ID},He.prototype.getDomNode=function(){return this._domNode},He.prototype.getPosition=function(){return{preference:0}},He.prototype.highlightFindOptions=function(){this._revealTemporarily()},He.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},He.prototype._onMouseOut=function(){this._hideSoon.schedule()},He.prototype._onMouseOver=function(){this._hideSoon.cancel()},He.prototype._show=function(){if(this._isVisible)return;this._isVisible=!0,this._domNode.style.display="block"},He.prototype._hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._domNode.style.display="none"},He.prototype._applyTheme=function(Oe){var ot={inputActiveOptionBorder:Oe.getColor(C.Y),inputActiveOptionBackground:Oe.getColor(C.X)};this.caseSensitive.style(ot),this.wholeWords.style(ot),this.regex.style(ot)},He.ID="editor.contrib.findOptionsWidget",He}(q.a);Object(w.e)(function(mt,He){var Oe=mt.getColor(C.Q);Oe&&He.addRule(".monaco-editor .findOptionsWidget { background-color: "+Oe+"; }");var ot=mt.getColor(C.S);ot&&He.addRule(".monaco-editor .findOptionsWidget { color: "+ot+"; }");var xt=mt.getColor(C.hc);xt&&He.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+xt+"; }");var he=mt.getColor(C.e);he&&He.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+he+"; }")});var se=function(){var mt=function(He,Oe){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var he in xt)xt.hasOwnProperty(he)&&(ot[he]=xt[he])},mt(He,Oe)};return function(He,Oe){mt(He,Oe);function ot(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(ot.prototype=Oe.prototype,new ot)}}();function ye(mt,He){return mt===1?!0:mt===2?!1:He}var Re=function(mt){se(He,mt);function He(){var Oe=mt.call(this)||this;return Oe._onFindReplaceStateChange=Oe._register(new Z.a),Oe.onFindReplaceStateChange=Oe._onFindReplaceStateChange.event,Oe._searchString="",Oe._replaceString="",Oe._isRevealed=!1,Oe._isReplaceRevealed=!1,Oe._isRegex=!1,Oe._isRegexOverride=0,Oe._wholeWord=!1,Oe._wholeWordOverride=0,Oe._matchCase=!1,Oe._matchCaseOverride=0,Oe._preserveCase=!1,Oe._preserveCaseOverride=0,Oe._searchScope=null,Oe._matchesPosition=0,Oe._matchesCount=0,Oe._currentMatch=null,Oe}return Object.defineProperty(He.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"isRegex",{get:function(){return ye(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"wholeWord",{get:function(){return ye(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"matchCase",{get:function(){return ye(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"preserveCase",{get:function(){return ye(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),He.prototype.changeMatchInfo=function(Oe,ot,xt){var he={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},M=!1;ot===0&&(Oe=0),Oe>ot&&(Oe=ot),this._matchesPosition!==Oe&&(this._matchesPosition=Oe,he.matchesPosition=!0,M=!0),this._matchesCount!==ot&&(this._matchesCount=ot,he.matchesCount=!0,M=!0),typeof xt!="undefined"&&(j.a.equalsRange(this._currentMatch,xt)||(this._currentMatch=xt,he.currentMatch=!0,M=!0)),M&&this._onFindReplaceStateChange.fire(he)},He.prototype.change=function(Oe,ot,xt){xt===void 0&&(xt=!0);var he={moveCursor:ot,updateHistory:xt,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},M=!1,ue=this.isRegex,We=this.wholeWord,Ze=this.matchCase,at=this.preserveCase;typeof Oe.searchString!="undefined"&&(this._searchString!==Oe.searchString&&(this._searchString=Oe.searchString,he.searchString=!0,M=!0)),typeof Oe.replaceString!="undefined"&&(this._replaceString!==Oe.replaceString&&(this._replaceString=Oe.replaceString,he.replaceString=!0,M=!0)),typeof Oe.isRevealed!="undefined"&&(this._isRevealed!==Oe.isRevealed&&(this._isRevealed=Oe.isRevealed,he.isRevealed=!0,M=!0)),typeof Oe.isReplaceRevealed!="undefined"&&(this._isReplaceRevealed!==Oe.isReplaceRevealed&&(this._isReplaceRevealed=Oe.isReplaceRevealed,he.isReplaceRevealed=!0,M=!0)),typeof Oe.isRegex!="undefined"&&(this._isRegex=Oe.isRegex),typeof Oe.wholeWord!="undefined"&&(this._wholeWord=Oe.wholeWord),typeof Oe.matchCase!="undefined"&&(this._matchCase=Oe.matchCase),typeof Oe.preserveCase!="undefined"&&(this._preserveCase=Oe.preserveCase),typeof Oe.searchScope!="undefined"&&(j.a.equalsRange(this._searchScope,Oe.searchScope)||(this._searchScope=Oe.searchScope,he.searchScope=!0,M=!0)),this._isRegexOverride=typeof Oe.isRegexOverride!="undefined"?Oe.isRegexOverride:0,this._wholeWordOverride=typeof Oe.wholeWordOverride!="undefined"?Oe.wholeWordOverride:0,this._matchCaseOverride=typeof Oe.matchCaseOverride!="undefined"?Oe.matchCaseOverride:0,this._preserveCaseOverride=typeof Oe.preserveCaseOverride!="undefined"?Oe.preserveCaseOverride:0,ue!==this.isRegex&&(M=!0,he.isRegex=!0),We!==this.wholeWord&&(M=!0,he.wholeWord=!0),Ze!==this.matchCase&&(M=!0,he.matchCase=!0),at!==this.preserveCase&&(M=!0,he.preserveCase=!0),M&&this._onFindReplaceStateChange.fire(he)},He}(J.a),Le=e("AbCa"),Ue=e("OBOq"),Je=e("cMOf"),nt=e("/cxE"),vt=e("MNsG"),Rt=e("yqFB"),Ot=e("0+8E"),Kt=function(){var mt=function(He,Oe){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var he in xt)xt.hasOwnProperty(he)&&(ot[he]=xt[he])},mt(He,Oe)};return function(He,Oe){mt(He,Oe);function ot(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(ot.prototype=Oe.prototype,new ot)}}(),ao=T.a("defaultLabel","input"),lo=function(mt){Kt(He,mt);function He(Oe,ot,xt,he){var M=mt.call(this)||this;M._showOptionButtons=xt,M.fixFocusOnOptionClickEnabled=!0,M._onDidOptionChange=M._register(new Z.a),M.onDidOptionChange=M._onDidOptionChange.event,M._onKeyDown=M._register(new Z.a),M.onKeyDown=M._onKeyDown.event,M._onMouseDown=M._register(new Z.a),M.onMouseDown=M._onMouseDown.event,M._onInput=M._register(new Z.a),M._onKeyUp=M._register(new Z.a),M._onCaseSensitiveKeyDown=M._register(new Z.a),M.onCaseSensitiveKeyDown=M._onCaseSensitiveKeyDown.event,M._onRegexKeyDown=M._register(new Z.a),M.onRegexKeyDown=M._onRegexKeyDown.event,M._lastHighlightFindOptions=0,M.contextViewProvider=ot,M.placeholder=he.placeholder||"",M.validation=he.validation,M.label=he.label||ao,M.inputActiveOptionBorder=he.inputActiveOptionBorder,M.inputActiveOptionBackground=he.inputActiveOptionBackground,M.inputBackground=he.inputBackground,M.inputForeground=he.inputForeground,M.inputBorder=he.inputBorder,M.inputValidationInfoBorder=he.inputValidationInfoBorder,M.inputValidationInfoBackground=he.inputValidationInfoBackground,M.inputValidationInfoForeground=he.inputValidationInfoForeground,M.inputValidationWarningBorder=he.inputValidationWarningBorder,M.inputValidationWarningBackground=he.inputValidationWarningBackground,M.inputValidationWarningForeground=he.inputValidationWarningForeground,M.inputValidationErrorBorder=he.inputValidationErrorBorder,M.inputValidationErrorBackground=he.inputValidationErrorBackground,M.inputValidationErrorForeground=he.inputValidationErrorForeground;var ue=he.appendCaseSensitiveLabel||"",We=he.appendWholeWordsLabel||"",Ze=he.appendRegexLabel||"",at=he.history||[],wt=!!he.flexibleHeight,zt=!!he.flexibleWidth,Xt=he.flexibleMaxHeight;M.domNode=document.createElement("div"),ee.f(M.domNode,"monaco-findInput"),M.inputBox=M._register(new Ot.a(M.domNode,M.contextViewProvider,{placeholder:M.placeholder||"",ariaLabel:M.label||"",validationOptions:{validation:M.validation},inputBackground:M.inputBackground,inputForeground:M.inputForeground,inputBorder:M.inputBorder,inputValidationInfoBackground:M.inputValidationInfoBackground,inputValidationInfoForeground:M.inputValidationInfoForeground,inputValidationInfoBorder:M.inputValidationInfoBorder,inputValidationWarningBackground:M.inputValidationWarningBackground,inputValidationWarningForeground:M.inputValidationWarningForeground,inputValidationWarningBorder:M.inputValidationWarningBorder,inputValidationErrorBackground:M.inputValidationErrorBackground,inputValidationErrorForeground:M.inputValidationErrorForeground,inputValidationErrorBorder:M.inputValidationErrorBorder,history:at,flexibleHeight:wt,flexibleWidth:zt,flexibleMaxHeight:Xt})),M.regex=M._register(new S({appendTitle:Ze,isChecked:!1,inputActiveOptionBorder:M.inputActiveOptionBorder,inputActiveOptionBackground:M.inputActiveOptionBackground})),M._register(M.regex.onChange(function(go){M._onDidOptionChange.fire(go),!go&&M.fixFocusOnOptionClickEnabled&&M.inputBox.focus(),M.validate()})),M._register(M.regex.onKeyDown(function(go){M._onRegexKeyDown.fire(go)})),M.wholeWords=M._register(new $({appendTitle:We,isChecked:!1,inputActiveOptionBorder:M.inputActiveOptionBorder,inputActiveOptionBackground:M.inputActiveOptionBackground})),M._register(M.wholeWords.onChange(function(go){M._onDidOptionChange.fire(go),!go&&M.fixFocusOnOptionClickEnabled&&M.inputBox.focus(),M.validate()})),M.caseSensitive=M._register(new fe({appendTitle:ue,isChecked:!1,inputActiveOptionBorder:M.inputActiveOptionBorder,inputActiveOptionBackground:M.inputActiveOptionBackground})),M._register(M.caseSensitive.onChange(function(go){M._onDidOptionChange.fire(go),!go&&M.fixFocusOnOptionClickEnabled&&M.inputBox.focus(),M.validate()})),M._register(M.caseSensitive.onKeyDown(function(go){M._onCaseSensitiveKeyDown.fire(go)})),M._showOptionButtons&&(M.inputBox.paddingRight=M.caseSensitive.width()+M.wholeWords.width()+M.regex.width());var no=[M.caseSensitive.domNode,M.wholeWords.domNode,M.regex.domNode];M.onkeydown(M.domNode,function(go){if(go.equals(15)||go.equals(17)||go.equals(9)){var Ao=no.indexOf(document.activeElement);if(Ao>=0){var To=-1;go.equals(17)?To=(Ao+1)%no.length:go.equals(15)&&(Ao===0?To=no.length-1:To=Ao-1),go.equals(9)?no[Ao].blur():To>=0&&no[To].focus(),ee.c.stop(go,!0)}}});var uo=document.createElement("div");return uo.className="controls",uo.style.display=M._showOptionButtons?"block":"none",uo.appendChild(M.caseSensitive.domNode),uo.appendChild(M.wholeWords.domNode),uo.appendChild(M.regex.domNode),M.domNode.appendChild(uo),Oe&&Oe.appendChild(M.domNode),M.onkeydown(M.inputBox.inputElement,function(go){return M._onKeyDown.fire(go)}),M.onkeyup(M.inputBox.inputElement,function(go){return M._onKeyUp.fire(go)}),M.oninput(M.inputBox.inputElement,function(go){return M._onInput.fire()}),M.onmousedown(M.inputBox.inputElement,function(go){return M._onMouseDown.fire(go)}),M}return He.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},He.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},He.prototype.setFocusInputOnOptionClick=function(Oe){this.fixFocusOnOptionClickEnabled=Oe},He.prototype.setEnabled=function(Oe){Oe?this.enable():this.disable()},He.prototype.getValue=function(){return this.inputBox.value},He.prototype.setValue=function(Oe){this.inputBox.value!==Oe&&(this.inputBox.value=Oe)},He.prototype.style=function(Oe){this.inputActiveOptionBorder=Oe.inputActiveOptionBorder,this.inputActiveOptionBackground=Oe.inputActiveOptionBackground,this.inputBackground=Oe.inputBackground,this.inputForeground=Oe.inputForeground,this.inputBorder=Oe.inputBorder,this.inputValidationInfoBackground=Oe.inputValidationInfoBackground,this.inputValidationInfoForeground=Oe.inputValidationInfoForeground,this.inputValidationInfoBorder=Oe.inputValidationInfoBorder,this.inputValidationWarningBackground=Oe.inputValidationWarningBackground,this.inputValidationWarningForeground=Oe.inputValidationWarningForeground,this.inputValidationWarningBorder=Oe.inputValidationWarningBorder,this.inputValidationErrorBackground=Oe.inputValidationErrorBackground,this.inputValidationErrorForeground=Oe.inputValidationErrorForeground,this.inputValidationErrorBorder=Oe.inputValidationErrorBorder,this.applyStyles()},He.prototype.applyStyles=function(){if(this.domNode){var Oe={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(Oe),this.wholeWords.style(Oe),this.caseSensitive.style(Oe);var ot={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(ot)}},He.prototype.select=function(){this.inputBox.select()},He.prototype.focus=function(){this.inputBox.focus()},He.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},He.prototype.setCaseSensitive=function(Oe){this.caseSensitive.checked=Oe},He.prototype.getWholeWords=function(){return this.wholeWords.checked},He.prototype.setWholeWords=function(Oe){this.wholeWords.checked=Oe},He.prototype.getRegex=function(){return this.regex.checked},He.prototype.setRegex=function(Oe){this.regex.checked=Oe,this.validate()},He.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},He.prototype.highlightFindOptions=function(){ee.P(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ee.f(this.domNode,"highlight-"+this._lastHighlightFindOptions)},He.prototype.validate=function(){this.inputBox.validate()},He.prototype.clearMessage=function(){this.inputBox.hideMessage()},He}(q.a),so=e("nrhi"),jt=function(){var mt=function(He,Oe){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var he in xt)xt.hasOwnProperty(he)&&(ot[he]=xt[he])},mt(He,Oe)};return function(He,Oe){mt(He,Oe);function ot(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(ot.prototype=Oe.prototype,new ot)}}(),pt=T.a("defaultLabel","input"),gt=T.a("label.preserveCaseCheckbox","Preserve Case"),Tt=function(mt){jt(He,mt);function He(Oe){return mt.call(this,{actionClassName:"codicon-preserve-case",title:gt+Oe.appendTitle,isChecked:Oe.isChecked,inputActiveOptionBorder:Oe.inputActiveOptionBorder,inputActiveOptionBackground:Oe.inputActiveOptionBackground})||this}return He}(de),it=function(mt){jt(He,mt);function He(Oe,ot,xt,he){var M=mt.call(this)||this;M._showOptionButtons=xt,M.fixFocusOnOptionClickEnabled=!0,M.cachedOptionsWidth=0,M._onDidOptionChange=M._register(new Z.a),M.onDidOptionChange=M._onDidOptionChange.event,M._onKeyDown=M._register(new Z.a),M.onKeyDown=M._onKeyDown.event,M._onMouseDown=M._register(new Z.a),M._onInput=M._register(new Z.a),M._onKeyUp=M._register(new Z.a),M._onPreserveCaseKeyDown=M._register(new Z.a),M.onPreserveCaseKeyDown=M._onPreserveCaseKeyDown.event,M.contextViewProvider=ot,M.placeholder=he.placeholder||"",M.validation=he.validation,M.label=he.label||pt,M.inputActiveOptionBorder=he.inputActiveOptionBorder,M.inputActiveOptionBackground=he.inputActiveOptionBackground,M.inputBackground=he.inputBackground,M.inputForeground=he.inputForeground,M.inputBorder=he.inputBorder,M.inputValidationInfoBorder=he.inputValidationInfoBorder,M.inputValidationInfoBackground=he.inputValidationInfoBackground,M.inputValidationInfoForeground=he.inputValidationInfoForeground,M.inputValidationWarningBorder=he.inputValidationWarningBorder,M.inputValidationWarningBackground=he.inputValidationWarningBackground,M.inputValidationWarningForeground=he.inputValidationWarningForeground,M.inputValidationErrorBorder=he.inputValidationErrorBorder,M.inputValidationErrorBackground=he.inputValidationErrorBackground,M.inputValidationErrorForeground=he.inputValidationErrorForeground;var ue=he.history||[],We=!!he.flexibleHeight,Ze=!!he.flexibleWidth,at=he.flexibleMaxHeight;M.domNode=document.createElement("div"),ee.f(M.domNode,"monaco-findInput"),M.inputBox=M._register(new Ot.a(M.domNode,M.contextViewProvider,{ariaLabel:M.label||"",placeholder:M.placeholder||"",validationOptions:{validation:M.validation},inputBackground:M.inputBackground,inputForeground:M.inputForeground,inputBorder:M.inputBorder,inputValidationInfoBackground:M.inputValidationInfoBackground,inputValidationInfoForeground:M.inputValidationInfoForeground,inputValidationInfoBorder:M.inputValidationInfoBorder,inputValidationWarningBackground:M.inputValidationWarningBackground,inputValidationWarningForeground:M.inputValidationWarningForeground,inputValidationWarningBorder:M.inputValidationWarningBorder,inputValidationErrorBackground:M.inputValidationErrorBackground,inputValidationErrorForeground:M.inputValidationErrorForeground,inputValidationErrorBorder:M.inputValidationErrorBorder,history:ue,flexibleHeight:We,flexibleWidth:Ze,flexibleMaxHeight:at})),M.preserveCase=M._register(new Tt({appendTitle:"",isChecked:!1,inputActiveOptionBorder:M.inputActiveOptionBorder,inputActiveOptionBackground:M.inputActiveOptionBackground})),M._register(M.preserveCase.onChange(function(Xt){M._onDidOptionChange.fire(Xt),!Xt&&M.fixFocusOnOptionClickEnabled&&M.inputBox.focus(),M.validate()})),M._register(M.preserveCase.onKeyDown(function(Xt){M._onPreserveCaseKeyDown.fire(Xt)})),M._showOptionButtons?M.cachedOptionsWidth=M.preserveCase.width():M.cachedOptionsWidth=0;var wt=[M.preserveCase.domNode];M.onkeydown(M.domNode,function(Xt){if(Xt.equals(15)||Xt.equals(17)||Xt.equals(9)){var no=wt.indexOf(document.activeElement);if(no>=0){var uo=-1;Xt.equals(17)?uo=(no+1)%wt.length:Xt.equals(15)&&(no===0?uo=wt.length-1:uo=no-1),Xt.equals(9)?wt[no].blur():uo>=0&&wt[uo].focus(),ee.c.stop(Xt,!0)}}});var zt=document.createElement("div");return zt.className="controls",zt.style.display=M._showOptionButtons?"block":"none",zt.appendChild(M.preserveCase.domNode),M.domNode.appendChild(zt),Oe&&Oe.appendChild(M.domNode),M.onkeydown(M.inputBox.inputElement,function(Xt){return M._onKeyDown.fire(Xt)}),M.onkeyup(M.inputBox.inputElement,function(Xt){return M._onKeyUp.fire(Xt)}),M.oninput(M.inputBox.inputElement,function(Xt){return M._onInput.fire()}),M.onmousedown(M.inputBox.inputElement,function(Xt){return M._onMouseDown.fire(Xt)}),M}return He.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},He.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},He.prototype.setEnabled=function(Oe){Oe?this.enable():this.disable()},He.prototype.style=function(Oe){this.inputActiveOptionBorder=Oe.inputActiveOptionBorder,this.inputActiveOptionBackground=Oe.inputActiveOptionBackground,this.inputBackground=Oe.inputBackground,this.inputForeground=Oe.inputForeground,this.inputBorder=Oe.inputBorder,this.inputValidationInfoBackground=Oe.inputValidationInfoBackground,this.inputValidationInfoForeground=Oe.inputValidationInfoForeground,this.inputValidationInfoBorder=Oe.inputValidationInfoBorder,this.inputValidationWarningBackground=Oe.inputValidationWarningBackground,this.inputValidationWarningForeground=Oe.inputValidationWarningForeground,this.inputValidationWarningBorder=Oe.inputValidationWarningBorder,this.inputValidationErrorBackground=Oe.inputValidationErrorBackground,this.inputValidationErrorForeground=Oe.inputValidationErrorForeground,this.inputValidationErrorBorder=Oe.inputValidationErrorBorder,this.applyStyles()},He.prototype.applyStyles=function(){if(this.domNode){var Oe={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(Oe);var ot={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(ot)}},He.prototype.select=function(){this.inputBox.select()},He.prototype.focus=function(){this.inputBox.focus()},He.prototype.getPreserveCase=function(){return this.preserveCase.checked},He.prototype.setPreserveCase=function(Oe){this.preserveCase.checked=Oe},He.prototype.focusOnPreserve=function(){this.preserveCase.focus()},He.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(He.prototype,"width",{set:function(Oe){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=Oe,this.domNode.style.width=Oe+"px"},enumerable:!0,configurable:!0}),He.prototype.dispose=function(){mt.prototype.dispose.call(this)},He}(q.a),et=function(){var mt=function(He,Oe){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var he in xt)xt.hasOwnProperty(he)&&(ot[he]=xt[he])},mt(He,Oe)};return function(He,Oe){mt(He,Oe);function ot(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(ot.prototype=Oe.prototype,new ot)}}(),ut=function(mt,He,Oe,ot){var xt=arguments.length,he=xt<3?He:ot===null?ot=Object.getOwnPropertyDescriptor(He,Oe):ot,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(mt,He,Oe,ot);else for(var ue=mt.length-1;ue>=0;ue--)(M=mt[ue])&&(he=(xt<3?M(he):xt>3?M(He,Oe,he):M(He,Oe))||he);return xt>3&&he&&Object.defineProperty(He,Oe,he),he},Ct=function(mt,He){return function(Oe,ot){He(Oe,ot,mt)}},ht="historyNavigationWidget",Et="historyNavigationEnabled";function Yt(mt,He,Oe){new Q.d(Oe,He).bindTo(mt)}function Nt(mt,He){return mt.createScoped(He.target)}function bt(mt,He){return mt.getContext(document.activeElement).getValue(He)}function $e(mt,He){var Oe=Nt(mt,He);Yt(Oe,He,ht);var ot=new Q.d(Et,!0).bindTo(Oe);return{scopedContextKeyService:Oe,historyNavigationEnablement:ot}}var Ye=function(mt){et(He,mt);function He(Oe,ot,xt,he,M){M===void 0&&(M=!1);var ue=mt.call(this,Oe,ot,M,xt)||this;return ue._register($e(he,{target:ue.inputBox.element,historyNavigator:ue.inputBox}).scopedContextKeyService),ue}return He=ut([Ct(3,Q.c)],He),He}(lo),Ve=function(mt){et(He,mt);function He(Oe,ot,xt,he,M){M===void 0&&(M=!1);var ue=mt.call(this,Oe,ot,M,xt)||this;return ue._register($e(he,{target:ue.inputBox.element,historyNavigator:ue.inputBox}).scopedContextKeyService),ue}return He=ut([Ct(3,Q.c)],He),He}(it);so.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:Q.a.and(Q.a.has(ht),Q.a.equals(Et,!0)),primary:16,secondary:[512|16],handler:function(mt,He){var Oe=bt(mt.get(Q.c),ht);if(Oe){var ot=Oe.historyNavigator;ot.showPreviousValue()}}}),so.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:Q.a.and(Q.a.has(ht),Q.a.equals(Et,!0)),primary:18,secondary:[512|18],handler:function(mt,He){var Oe=bt(mt.get(Q.c),ht);if(Oe){var ot=Oe.historyNavigator;ot.showNextValue()}}});var ze=function(){var mt=function(He,Oe){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var he in xt)xt.hasOwnProperty(he)&&(ot[he]=xt[he])},mt(He,Oe)};return function(He,Oe){mt(He,Oe);function ot(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(ot.prototype=Oe.prototype,new ot)}}(),me=T.a("label.find","Find"),G=T.a("placeholder.find","Find"),oe=T.a("label.previousMatchButton","Previous match"),Y=T.a("label.nextMatchButton","Next match"),ie=T.a("label.toggleSelectionFind","Find in selection"),je=T.a("label.closeButton","Close"),dt=T.a("label.replace","Replace"),Dt=T.a("placeholder.replace","Replace"),Qt=T.a("label.replaceButton","Replace"),to=T.a("label.replaceAllButton","Replace All"),fo=T.a("label.toggleReplaceButton","Toggle Replace mode"),ho=T.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Ke),wo=T.a("label.matchesLocation","{0} of {1}"),Oo=T.a("label.noResults","No Results"),Ro=419,jo=275,Eo=jo-54,Wo=69,Ho=33,Fo="ctrlEnterReplaceAll.windows.donotask",Io=vt.e?256:2048,tn=function(){function mt(He){this.afterLineNumber=He,this.heightInPx=Ho,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return mt}();function un(mt,He,Oe){var ot=!!He.match(/\n/);if(Oe&&ot&&Oe.selectionStart>0){mt.stopPropagation();return}}function Vo(mt,He,Oe){var ot=!!He.match(/\n/);if(Oe&&ot&&Oe.selectionEnd<Oe.value.length){mt.stopPropagation();return}}var Cn=function(mt){ze(He,mt);function He(Oe,ot,xt,he,M,ue,We,Ze,at){var wt=mt.call(this)||this;return wt._cachedHeight=null,wt._codeEditor=Oe,wt._controller=ot,wt._state=xt,wt._contextViewProvider=he,wt._keybindingService=M,wt._contextKeyService=ue,wt._storageService=Ze,wt._notificationService=at,wt._ctrlEnterReplaceAllWarningPrompted=!!Ze.getBoolean(Fo,0),wt._isVisible=!1,wt._isReplaceVisible=!1,wt._ignoreChangeEvent=!1,wt._updateHistoryDelayer=new pe.a(500),wt._register(Object(J.h)(function(){return wt._updateHistoryDelayer.cancel()})),wt._register(wt._state.onFindReplaceStateChange(function(zt){return wt._onStateChanged(zt)})),wt._buildDomNode(),wt._updateButtons(),wt._tryUpdateWidgetWidth(),wt._findInput.inputBox.layout(),wt._register(wt._codeEditor.onDidChangeConfiguration(function(zt){if(zt.hasChanged(68)&&(wt._codeEditor.getOption(68)&&wt._state.change({isReplaceRevealed:!1},!1),wt._updateButtons()),zt.hasChanged(107)&&wt._tryUpdateWidgetWidth(),zt.hasChanged(2)&&wt.updateAccessibilitySupport(),zt.hasChanged(28)){var Xt=wt._codeEditor.getOption(28).addExtraSpaceOnTop;Xt&&!wt._viewZone&&(wt._viewZone=new tn(0),wt._showViewZone()),!Xt&&wt._viewZone&&wt._removeViewZone()}})),wt.updateAccessibilitySupport(),wt._register(wt._codeEditor.onDidChangeCursorSelection(function(){wt._isVisible&&wt._updateToggleSelectionFindButton()})),wt._register(wt._codeEditor.onDidFocusEditorWidget(function(){if(wt._isVisible){var zt=wt._controller.getGlobalBufferTerm();zt&&zt!==wt._state.searchString&&(wt._state.change({searchString:zt},!0),wt._findInput.select())}})),wt._findInputFocused=W.bindTo(ue),wt._findFocusTracker=wt._register(ee.Z(wt._findInput.inputBox.inputElement)),wt._register(wt._findFocusTracker.onDidFocus(function(){wt._findInputFocused.set(!0),wt._updateSearchScope()})),wt._register(wt._findFocusTracker.onDidBlur(function(){wt._findInputFocused.set(!1)})),wt._replaceInputFocused=B.bindTo(ue),wt._replaceFocusTracker=wt._register(ee.Z(wt._replaceInput.inputBox.inputElement)),wt._register(wt._replaceFocusTracker.onDidFocus(function(){wt._replaceInputFocused.set(!0),wt._updateSearchScope()})),wt._register(wt._replaceFocusTracker.onDidBlur(function(){wt._replaceInputFocused.set(!1)})),wt._codeEditor.addOverlayWidget(wt),wt._codeEditor.getOption(28).addExtraSpaceOnTop&&(wt._viewZone=new tn(0)),wt._applyTheme(We.getTheme()),wt._register(We.onThemeChange(wt._applyTheme.bind(wt))),wt._register(wt._codeEditor.onDidChangeModel(function(){if(!wt._isVisible)return;wt._viewZoneId=void 0})),wt._register(wt._codeEditor.onDidScrollChange(function(zt){if(zt.scrollTopChanged){wt._layoutViewZone();return}setTimeout(function(){wt._layoutViewZone()},0)})),wt}return He.prototype.getId=function(){return He.ID},He.prototype.getDomNode=function(){return this._domNode},He.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},He.prototype._onStateChanged=function(Oe){if(Oe.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(Oe.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),Oe.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),Oe.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(68)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=ee.H(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(Oe.isRevealed||Oe.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&(this._tryUpdateHeight()&&this._showViewZone()),Oe.isRegex&&this._findInput.setRegex(this._state.isRegex),Oe.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),Oe.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),Oe.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),Oe.searchString||Oe.matchesCount||Oe.matchesPosition){var ot=this._state.searchString.length>0&&this._state.matchesCount===0;ee.Y(this._domNode,"no-results",ot),this._updateMatchesCount(),this._updateButtons()}(Oe.searchString||Oe.currentMatch)&&this._layoutViewZone(),Oe.updateHistory&&this._delayedUpdateHistory()},He.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},He.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},He.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=Wo+"px",this._state.matchesCount>=Ke?this._matchesCount.title=ho:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var Oe;if(this._state.matchesCount>0){var ot=String(this._state.matchesCount);this._state.matchesCount>=Ke&&(ot+="+");var xt=String(this._state.matchesPosition);xt==="0"&&(xt="?"),Oe=I.r(wo,xt,ot)}else Oe=Oo;this._matchesCount.appendChild(document.createTextNode(Oe)),Object(Ue.a)(this._getAriaLabel(Oe,this._state.currentMatch,this._state.searchString),!0),Wo=Math.max(Wo,this._matchesCount.clientWidth)},He.prototype._getAriaLabel=function(Oe,ot,xt){return Oe===Oo?xt===""?T.a("ariaSearchNoResultEmpty","{0} found",Oe):T.a("ariaSearchNoResult","{0} found for {1}",Oe,xt):ot?T.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",Oe,xt,ot.startLineNumber+":"+ot.startColumn):T.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",Oe,xt)},He.prototype._updateToggleSelectionFindButton=function(){var Oe=this._codeEditor.getSelection(),ot=Oe?Oe.startLineNumber!==Oe.endLineNumber||Oe.startColumn!==Oe.endColumn:!1,xt=this._toggleSelectionFind.checked;this._isVisible&&(xt||ot)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},He.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var Oe=this._state.searchString.length>0,ot=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&Oe&&ot),this._nextBtn.setEnabled(this._isVisible&&Oe&&ot),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Oe),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Oe),ee.Y(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var xt=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&xt)},He.prototype._reveal=function(){var Oe=this;if(!this._isVisible){this._isVisible=!0;var ot=this._codeEditor.getSelection();switch(this._codeEditor.getOption(28).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var xt=!!ot&&ot.startLineNumber!==ot.endLineNumber;this._toggleSelectionFind.checked=xt;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){ee.f(Oe._domNode,"visible"),Oe._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){Oe._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var he=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&ot){var M=this._codeEditor.getDomNode();if(M){var ue=ee.C(M),We=this._codeEditor.getScrolledVisiblePosition(ot.getStartPosition()),Ze=ue.left+(We?We.left:0),at=We?We.top:0;if(this._viewZone&&at<this._viewZone.heightInPx){ot.endLineNumber>ot.startLineNumber&&(he=!1);var wt=ee.F(this._domNode).left;Ze>wt&&(he=!1);var zt=this._codeEditor.getScrolledVisiblePosition(ot.getEndPosition()),Xt=ue.left+(zt?zt.left:0);Xt>wt&&(he=!1)}}}this._showViewZone(he)}},He.prototype._hide=function(Oe){this._isVisible&&(this._isVisible=!1,this._updateButtons(),ee.P(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),Oe&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},He.prototype._layoutViewZone=function(){var Oe=this,ot=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!ot){this._removeViewZone();return}if(!this._isVisible)return;var xt=this._viewZone;if(this._viewZoneId!==void 0||!xt)return;this._codeEditor.changeViewZones(function(he){xt.heightInPx=Oe._getHeight(),Oe._viewZoneId=he.addZone(xt),Oe._codeEditor.setScrollTop(Oe._codeEditor.getScrollTop()+xt.heightInPx)})},He.prototype._showViewZone=function(Oe){var ot=this;if(Oe===void 0&&(Oe=!0),!this._isVisible)return;var xt=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!xt)return;this._viewZone===void 0&&(this._viewZone=new tn(0));var he=this._viewZone;this._codeEditor.changeViewZones(function(M){if(ot._viewZoneId!==void 0){var ue=ot._getHeight();if(ue===he.heightInPx)return;var We=ue-he.heightInPx;he.heightInPx=ue,M.layoutZone(ot._viewZoneId),Oe&&ot._codeEditor.setScrollTop(ot._codeEditor.getScrollTop()+We);return}else{var We=ot._getHeight();he.heightInPx=We,ot._viewZoneId=M.addZone(he),Oe&&ot._codeEditor.setScrollTop(ot._codeEditor.getScrollTop()+We)}})},He.prototype._removeViewZone=function(){var Oe=this;this._codeEditor.changeViewZones(function(ot){Oe._viewZoneId!==void 0&&(ot.removeZone(Oe._viewZoneId),Oe._viewZoneId=void 0,Oe._viewZone&&(Oe._codeEditor.setScrollTop(Oe._codeEditor.getScrollTop()-Oe._viewZone.heightInPx),Oe._viewZone=void 0))})},He.prototype._applyTheme=function(Oe){var ot={inputActiveOptionBorder:Oe.getColor(C.Y),inputActiveOptionBackground:Oe.getColor(C.X),inputBackground:Oe.getColor(C.Z),inputForeground:Oe.getColor(C.bb),inputBorder:Oe.getColor(C.ab),inputValidationInfoBackground:Oe.getColor(C.fb),inputValidationInfoForeground:Oe.getColor(C.hb),inputValidationInfoBorder:Oe.getColor(C.gb),inputValidationWarningBackground:Oe.getColor(C.ib),inputValidationWarningForeground:Oe.getColor(C.kb),inputValidationWarningBorder:Oe.getColor(C.jb),inputValidationErrorBackground:Oe.getColor(C.cb),inputValidationErrorForeground:Oe.getColor(C.eb),inputValidationErrorBorder:Oe.getColor(C.db)};this._findInput.style(ot),this._replaceInput.style(ot),this._toggleSelectionFind.style(ot)},He.prototype._tryUpdateWidgetWidth=function(){if(!this._isVisible)return;if(!ee.M(this._domNode))return;var Oe=this._codeEditor.getLayoutInfo(),ot=Oe.contentWidth;if(ot<=0){ee.f(this._domNode,"hiddenEditor");return}else ee.I(this._domNode,"hiddenEditor")&&ee.P(this._domNode,"hiddenEditor");var xt=Oe.width,he=Oe.minimapWidth,M=!1,ue=!1,We=!1;if(this._resized){var Ze=ee.H(this._domNode);if(Ze>Ro){this._domNode.style.maxWidth=xt-28-he-15+"px",this._replaceInput.width=ee.H(this._findInput.domNode);return}}if(Ro+28+he>=xt&&(ue=!0),Ro+28+he-Wo>=xt&&(We=!0),Ro+28+he-Wo>=xt+50&&(M=!0),ee.Y(this._domNode,"collapsed-find-widget",M),ee.Y(this._domNode,"narrow-find-widget",We),ee.Y(this._domNode,"reduced-find-widget",ue),!We&&!M&&(this._domNode.style.maxWidth=xt-28-he-15+"px"),this._resized){this._findInput.inputBox.layout();var at=this._findInput.inputBox.element.clientWidth;at>0&&(this._replaceInput.width=at)}else this._isReplaceVisible&&(this._replaceInput.width=ee.H(this._findInput.domNode))},He.prototype._getHeight=function(){var Oe=0;return Oe+=4,Oe+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(Oe+=4,Oe+=this._replaceInput.inputBox.height+2),Oe+=4,Oe},He.prototype._tryUpdateHeight=function(){var Oe=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===Oe?!1:(this._cachedHeight=Oe,this._domNode.style.height=Oe+"px",!0)},He.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},He.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},He.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},He.prototype._updateSearchScope=function(){if(!this._codeEditor.hasModel())return;if(this._toggleSelectionFind.checked){var Oe=this._codeEditor.getSelection();Oe.endColumn===1&&Oe.endLineNumber>Oe.startLineNumber&&(Oe=Oe.setEndPosition(Oe.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(Oe.endLineNumber-1)));var ot=this._state.currentMatch;Oe.startLineNumber!==Oe.endLineNumber&&(j.a.equalsRange(Oe,ot)||this._state.change({searchScope:Oe},!0))}},He.prototype._onFindInputMouseDown=function(Oe){Oe.middleButton&&Oe.stopPropagation()},He.prototype._onFindInputKeyDown=function(Oe){if(Oe.equals(Io|3)){this._findInput.inputBox.insertAtCursor(`
`),Oe.preventDefault();return}if(Oe.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),Oe.preventDefault();return}if(Oe.equals(2048|18)){this._codeEditor.focus(),Oe.preventDefault();return}if(Oe.equals(16))return un(Oe,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(Oe.equals(18))return Vo(Oe,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))},He.prototype._onReplaceInputKeyDown=function(Oe){if(Oe.equals(Io|3)){vt.h&&vt.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(T.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Fo,!0,0)),this._replaceInput.inputBox.insertAtCursor(`
`),Oe.preventDefault();return}if(Oe.equals(2)){this._findInput.focusOnCaseSensitive(),Oe.preventDefault();return}if(Oe.equals(1024|2)){this._findInput.focus(),Oe.preventDefault();return}if(Oe.equals(2048|18)){this._codeEditor.focus(),Oe.preventDefault();return}if(Oe.equals(16))return un(Oe,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(Oe.equals(18))return Vo(Oe,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))},He.prototype.getHorizontalSashTop=function(Oe){return 0},He.prototype.getHorizontalSashLeft=function(Oe){return 0},He.prototype.getHorizontalSashWidth=function(Oe){return 500},He.prototype._keybindingLabelFor=function(Oe){var ot=this._keybindingService.lookupKeybinding(Oe);return ot?" ("+ot.getLabel()+")":""},He.prototype._buildDomNode=function(){var Oe=this,ot=!0,xt=!0;this._findInput=this._register(new Ye(null,this._contextViewProvider,{width:Eo,label:me,placeholder:G,appendCaseSensitiveLabel:this._keybindingLabelFor(Be.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(Be.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(Be.ToggleRegexCommand),validation:function(at){if(at.length===0||!Oe._findInput.getRegex())return null;try{return new RegExp(at),null}catch(wt){return{content:wt.message}}},flexibleHeight:ot,flexibleWidth:xt,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(at){return Oe._onFindInputKeyDown(at)})),this._register(this._findInput.inputBox.onDidChange(function(){if(Oe._ignoreChangeEvent)return;Oe._state.change({searchString:Oe._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){Oe._state.change({isRegex:Oe._findInput.getRegex(),wholeWord:Oe._findInput.getWholeWords(),matchCase:Oe._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(at){at.equals(1024|2)&&(Oe._isReplaceVisible&&(Oe._replaceInput.focus(),at.preventDefault()))})),this._register(this._findInput.onRegexKeyDown(function(at){at.equals(2)&&(Oe._isReplaceVisible&&(Oe._replaceInput.focusOnPreserve(),at.preventDefault()))})),this._register(this._findInput.inputBox.onDidHeightChange(function(at){Oe._tryUpdateHeight()&&Oe._showViewZone()})),vt.d&&this._register(this._findInput.onMouseDown(function(at){return Oe._onFindInputMouseDown(at)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new pn({label:oe+this._keybindingLabelFor(Be.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){Oe._codeEditor.getAction(Be.PreviousMatchFindAction).run().then(void 0,nt.e)}})),this._nextBtn=this._register(new pn({label:Y+this._keybindingLabelFor(Be.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){Oe._codeEditor.getAction(Be.NextMatchFindAction).run().then(void 0,nt.e)}}));var he=document.createElement("div");he.className="find-part",he.appendChild(this._findInput.domNode);var M=document.createElement("div");M.className="find-actions",he.appendChild(M),M.appendChild(this._matchesCount),M.appendChild(this._prevBtn.domNode),M.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new de({actionClassName:"codicon codicon-selection",title:ie+this._keybindingLabelFor(Be.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(function(){if(Oe._toggleSelectionFind.checked){if(Oe._codeEditor.hasModel()){var at=Oe._codeEditor.getSelection();at.endColumn===1&&at.endLineNumber>at.startLineNumber&&(at=at.setEndPosition(at.endLineNumber-1,Oe._codeEditor.getModel().getLineMaxColumn(at.endLineNumber-1))),at.isEmpty()||Oe._state.change({searchScope:at},!0)}}else Oe._state.change({searchScope:null},!0)})),M.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new pn({label:je+this._keybindingLabelFor(Be.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){Oe._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(at){at.equals(2)&&(Oe._isReplaceVisible&&(Oe._replaceBtn.isEnabled()?Oe._replaceBtn.focus():Oe._codeEditor.focus(),at.preventDefault()))}})),M.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Ve(null,void 0,{label:dt,placeholder:Dt,history:[],flexibleHeight:ot,flexibleWidth:xt,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(at){return Oe._onReplaceInputKeyDown(at)})),this._register(this._replaceInput.inputBox.onDidChange(function(){Oe._state.change({replaceString:Oe._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(at){Oe._isReplaceVisible&&Oe._tryUpdateHeight()&&Oe._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){Oe._state.change({preserveCase:Oe._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(at){at.equals(2)&&(Oe._prevBtn.isEnabled()?Oe._prevBtn.focus():Oe._nextBtn.isEnabled()?Oe._nextBtn.focus():Oe._toggleSelectionFind.enabled?Oe._toggleSelectionFind.focus():Oe._closeBtn.isEnabled()&&Oe._closeBtn.focus(),at.preventDefault())})),this._replaceBtn=this._register(new pn({label:Qt+this._keybindingLabelFor(Be.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){Oe._controller.replace()},onKeyDown:function(at){at.equals(1024|2)&&(Oe._closeBtn.focus(),at.preventDefault())}})),this._replaceAllBtn=this._register(new pn({label:to+this._keybindingLabelFor(Be.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){Oe._controller.replaceAll()}}));var ue=document.createElement("div");ue.className="replace-part",ue.appendChild(this._replaceInput.domNode);var We=document.createElement("div");We.className="replace-actions",ue.appendChild(We),We.appendChild(this._replaceBtn.domNode),We.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new pn({label:fo,className:"codicon toggle left",onTrigger:function(){Oe._state.change({isReplaceRevealed:!Oe._isReplaceVisible},!1),Oe._isReplaceVisible&&(Oe._replaceInput.width=ee.H(Oe._findInput.domNode),Oe._replaceInput.inputBox.layout()),Oe._showViewZone()}})),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=Ro+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(he),this._domNode.appendChild(ue),this._resizeSash=new Je.a(this._domNode,this,{orientation:0}),this._resized=!1;var Ze=Ro;this._register(this._resizeSash.onDidStart(function(){Ze=ee.H(Oe._domNode)})),this._register(this._resizeSash.onDidChange(function(at){Oe._resized=!0;var wt=Ze+at.startX-at.currentX;if(wt<Ro)return;var zt=parseFloat(ee.z(Oe._domNode).maxWidth)||0;if(wt>zt)return;Oe._domNode.style.width=wt+"px",Oe._isReplaceVisible&&(Oe._replaceInput.width=ee.H(Oe._findInput.domNode)),Oe._findInput.inputBox.layout(),Oe._tryUpdateHeight()})),this._register(this._resizeSash.onDidReset(function(){var at=ee.H(Oe._domNode);if(at<Ro)return;var wt=Ro;if(!Oe._resized||at===Ro){var zt=Oe._codeEditor.getLayoutInfo();wt=zt.width-28-zt.minimapWidth-15,Oe._resized=!0}Oe._domNode.style.width=wt+"px",Oe._isReplaceVisible&&(Oe._replaceInput.width=ee.H(Oe._findInput.domNode)),Oe._findInput.inputBox.layout()}))},He.prototype.updateAccessibilitySupport=function(){var Oe=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(Oe!==2)},He.ID="editor.contrib.findWidget",He}(q.a),pn=function(mt){ze(He,mt);function He(Oe){var ot=mt.call(this)||this;return ot._opts=Oe,ot._domNode=document.createElement("div"),ot._domNode.title=ot._opts.label,ot._domNode.tabIndex=0,ot._domNode.className="button "+ot._opts.className,ot._domNode.setAttribute("role","button"),ot._domNode.setAttribute("aria-label",ot._opts.label),ot.onclick(ot._domNode,function(xt){ot._opts.onTrigger(),xt.preventDefault()}),ot.onkeydown(ot._domNode,function(xt){if(xt.equals(10)||xt.equals(3)){ot._opts.onTrigger(),xt.preventDefault();return}ot._opts.onKeyDown&&ot._opts.onKeyDown(xt)}),ot}return Object.defineProperty(He.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),He.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},He.prototype.focus=function(){this._domNode.focus()},He.prototype.setEnabled=function(Oe){ee.Y(this._domNode,"disabled",!Oe),this._domNode.setAttribute("aria-disabled",String(!Oe)),this._domNode.tabIndex=Oe?0:-1},He.prototype.setExpanded=function(Oe){this._domNode.setAttribute("aria-expanded",String(!!Oe))},He.prototype.toggleClass=function(Oe,ot){ee.Y(this._domNode,Oe,ot)},He}(q.a);Object(w.e)(function(mt,He){var Oe=function(no,uo){uo&&He.addRule(".monaco-editor "+no+" { background-color: "+uo+"; }")};Oe(".findMatch",mt.getColor(C.t)),Oe(".currentFindMatch",mt.getColor(C.r)),Oe(".findScope",mt.getColor(C.v));var ot=mt.getColor(C.Q);Oe(".find-widget",ot);var xt=mt.getColor(C.hc);xt&&He.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+xt+"; }");var he=mt.getColor(C.u);he&&He.addRule(".monaco-editor .findMatch { border: 1px "+(mt.type==="hc"?"dotted":"solid")+" "+he+"; box-sizing: border-box; }");var M=mt.getColor(C.s);M&&He.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+M+"; padding: 1px; box-sizing: border-box; }");var ue=mt.getColor(C.w);ue&&He.addRule(".monaco-editor .findScope { border: 1px "+(mt.type==="hc"?"dashed":"solid")+" "+ue+"; }");var We=mt.getColor(C.e);We&&He.addRule(".monaco-editor .find-widget { border: 1px solid "+We+"; }");var Ze=mt.getColor(C.S);Ze&&He.addRule(".monaco-editor .find-widget { color: "+Ze+"; }");var at=mt.getColor(C.U);at&&He.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+at+"; }");var wt=mt.getColor(C.T);if(wt)He.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+wt+"; width: 3px !important; margin-left: -4px;}");else{var zt=mt.getColor(C.R);zt&&He.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+zt+"; width: 3px !important; margin-left: -4px;}")}var Xt=mt.getColor(C.V);Xt&&He.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+Xt+"; }")});var rn=e("9XeP"),on=e("Uzvx"),dn=e("Cg/j"),Uo=e("bexQ"),Bo=e("A+jI"),St=e("sM1p"),st=function(){var mt=function(He,Oe){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var he in xt)xt.hasOwnProperty(he)&&(ot[he]=xt[he])},mt(He,Oe)};return function(He,Oe){mt(He,Oe);function ot(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(ot.prototype=Oe.prototype,new ot)}}(),rt=function(mt,He,Oe,ot){var xt=arguments.length,he=xt<3?He:ot===null?ot=Object.getOwnPropertyDescriptor(He,Oe):ot,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(mt,He,Oe,ot);else for(var ue=mt.length-1;ue>=0;ue--)(M=mt[ue])&&(he=(xt<3?M(he):xt>3?M(He,Oe,he):M(He,Oe))||he);return xt>3&&he&&Object.defineProperty(He,Oe,he),he},Lt=function(mt,He){return function(Oe,ot){He(Oe,ot,mt)}},be=524288;function _(mt){if(!mt.hasModel())return null;var He=mt.getSelection();if(He.startLineNumber===He.endLineNumber){if(He.isEmpty()){var Oe=mt.getModel().getWordAtPosition(He.getStartPosition());if(Oe)return Oe.word}else if(mt.getModel().getValueLengthInRange(He)<be)return mt.getModel().getValueInRange(He)}return null}var A=function(mt){st(He,mt);function He(Oe,ot,xt,he){var M=mt.call(this)||this;return M._editor=Oe,M._findWidgetVisible=V.bindTo(ot),M._contextKeyService=ot,M._storageService=xt,M._clipboardService=he,M._updateHistoryDelayer=new pe.a(500),M._state=M._register(new Re),M.loadQueryState(),M._register(M._state.onFindReplaceStateChange(function(ue){return M._onStateChanged(ue)})),M._model=null,M._register(M._editor.onDidChangeModel(function(){var ue=M._editor.getModel()&&M._state.isRevealed;M.disposeModel(),M._state.change({searchScope:null,matchCase:M._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:M._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:M._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:M._storageService.getBoolean("editor.preserveCase",1,!1)},!1),ue&&M._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})})),M}return He.get=function(Oe){return Oe.getContribution(He.ID)},He.prototype.dispose=function(){this.disposeModel(),mt.prototype.dispose.call(this)},He.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},He.prototype._onStateChanged=function(Oe){this.saveQueryState(Oe),Oe.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),Oe.searchString&&this.setGlobalBufferTerm(this._state.searchString)},He.prototype.saveQueryState=function(Oe){Oe.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),Oe.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),Oe.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),Oe.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},He.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},He.prototype.isFindInputFocused=function(){return!!W.getValue(this._contextKeyService)},He.prototype.getState=function(){return this._state},He.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},He.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var Oe=this._editor.getSelection();Oe.endColumn===1&&Oe.endLineNumber>Oe.startLineNumber&&(Oe=Oe.setEndPosition(Oe.endLineNumber-1,this._editor.getModel().getLineMaxColumn(Oe.endLineNumber-1))),Oe.isEmpty()||this._state.change({searchScope:Oe},!0)}},He.prototype.setSearchString=function(Oe){this._state.isRegex&&(Oe=I.p(Oe)),this._state.change({searchString:Oe},!1)},He.prototype.highlightFindOptions=function(){},He.prototype._start=function(Oe){if(this.disposeModel(),!this._editor.hasModel())return;var ot={isRevealed:!0};if(Oe.seedSearchStringFromSelection){var xt=_(this._editor);xt&&(this._state.isRegex?ot.searchString=I.p(xt):ot.searchString=xt)}if(!ot.searchString&&Oe.seedSearchStringFromGlobalClipboard){var xt=this.getGlobalBufferTerm();xt&&(ot.searchString=xt)}if(Oe.forceRevealReplace?ot.isReplaceRevealed=!0:this._findWidgetVisible.get()||(ot.isReplaceRevealed=!1),Oe.updateSearchScope){var he=this._editor.getSelection();he.isEmpty()||(ot.searchScope=he)}this._state.change(ot,!1),this._model||(this._model=new re(this._editor,this._state))},He.prototype.start=function(Oe){this._start(Oe)},He.prototype.moveToNextMatch=function(){return this._model?(this._model.moveToNextMatch(),!0):!1},He.prototype.moveToPrevMatch=function(){return this._model?(this._model.moveToPrevMatch(),!0):!1},He.prototype.replace=function(){return this._model?(this._model.replace(),!0):!1},He.prototype.replaceAll=function(){return this._model?(this._model.replaceAll(),!0):!1},He.prototype.selectAllMatches=function(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1},He.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},He.prototype.setGlobalBufferTerm=function(Oe){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(Oe)},He.ID="editor.contrib.findController",He=rt([Lt(1,Q.c),Lt(2,Bo.a),Lt(3,rn.a)],He),He}(J.a),X=function(mt){st(He,mt);function He(Oe,ot,xt,he,M,ue,We,Ze){var at=mt.call(this,Oe,xt,We,Ze)||this;return at._contextViewService=ot,at._keybindingService=he,at._themeService=M,at._notificationService=ue,at._widget=null,at._findOptionsWidget=null,at}return He.prototype._start=function(Oe){this._widget||this._createFindWidget();var ot=this._editor.getSelection(),xt=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":xt=!0;break;case"never":xt=!1;break;case"multiline":var he=!!ot&&ot.startLineNumber!==ot.endLineNumber;xt=he;break;default:break}Oe.updateSearchScope=xt,mt.prototype._start.call(this,Oe),Oe.shouldFocus===2?this._widget.focusReplaceInput():Oe.shouldFocus===1&&this._widget.focusFindInput()},He.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},He.prototype._createFindWidget=function(){this._widget=this._register(new Cn(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new ce(this._editor,this._state,this._keybindingService,this._themeService))},He=rt([Lt(1,on.b),Lt(2,Q.c),Lt(3,Uo.a),Lt(4,w.c),Lt(5,St.a),Lt(6,Bo.a),Lt(7,Object(dn.d)(rn.a))],He),He}(A),De=function(mt){st(He,mt);function He(){return mt.call(this,{id:Be.StartFindAction,label:T.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|36,weight:100},menuOpts:{menuId:17,group:"3_find",title:T.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return He.prototype.run=function(Oe,ot){var xt=A.get(ot);xt&&xt.start({forceRevealReplace:!1,seedSearchStringFromSelection:ot.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:ot.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},He}(H.b),xe=function(mt){st(He,mt);function He(){return mt.call(this,{id:Be.StartFindWithSelection,label:T.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2048|35},weight:100}})||this}return He.prototype.run=function(Oe,ot){var xt=A.get(ot);xt&&(xt.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),xt.setGlobalBufferTerm(xt.getState().searchString))},He}(H.b),Ie=function(mt){st(He,mt);function He(){return mt!==null&&mt.apply(this,arguments)||this}return He.prototype.run=function(Oe,ot){var xt=A.get(ot);xt&&!this._run(xt)&&(xt.start({forceRevealReplace:!1,seedSearchStringFromSelection:xt.getState().searchString.length===0&&ot.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(xt))},He}(H.b),lt=function(mt){st(He,mt);function He(){return mt.call(this,{id:Be.NextMatchFindAction,label:T.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:K.a.focus,primary:61,mac:{primary:2048|37,secondary:[61]},weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToNextMatch()},He}(Ie),ft=function(mt){st(He,mt);function He(){return mt.call(this,{id:Be.NextMatchFindAction,label:T.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:Q.a.and(K.a.focus,W),primary:3,weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToNextMatch()},He}(Ie),At=function(mt){st(He,mt);function He(){return mt.call(this,{id:Be.PreviousMatchFindAction,label:T.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:K.a.focus,primary:1024|61,mac:{primary:2048|1024|37,secondary:[1024|61]},weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToPrevMatch()},He}(Ie),Ft=function(mt){st(He,mt);function He(){return mt.call(this,{id:Be.PreviousMatchFindAction,label:T.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:Q.a.and(K.a.focus,W),primary:1024|3,weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToPrevMatch()},He}(Ie),Ut=function(mt){st(He,mt);function He(){return mt!==null&&mt.apply(this,arguments)||this}return He.prototype.run=function(Oe,ot){var xt=A.get(ot);if(!xt)return;var he=_(ot);he&&xt.setSearchString(he),this._run(xt)||(xt.start({forceRevealReplace:!1,seedSearchStringFromSelection:ot.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(xt))},He}(H.b),Vt=function(mt){st(He,mt);function He(){return mt.call(this,{id:Be.NextSelectionMatchFindAction,label:T.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:K.a.focus,primary:2048|61,weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToNextMatch()},He}(Ut),oo=function(mt){st(He,mt);function He(){return mt.call(this,{id:Be.PreviousSelectionMatchFindAction,label:T.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:K.a.focus,primary:2048|1024|61,weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToPrevMatch()},He}(Ut),Zt=function(mt){st(He,mt);function He(){return mt.call(this,{id:Be.StartFindReplaceAction,label:T.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|38,mac:{primary:2048|512|36},weight:100},menuOpts:{menuId:17,group:"3_find",title:T.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return He.prototype.run=function(Oe,ot){if(!ot.hasModel()||ot.getOption(68))return;var xt=A.get(ot),he=ot.getSelection(),M=xt.isFindInputFocused(),ue=!he.isEmpty()&&he.startLineNumber===he.endLineNumber&&ot.getOption(28).seedSearchStringFromSelection&&!M,We=M||ue?2:1;xt&&xt.start({forceRevealReplace:!0,seedSearchStringFromSelection:ue,seedSearchStringFromGlobalClipboard:ot.getOption(28).seedSearchStringFromSelection,shouldFocus:We,shouldAnimate:!0,updateSearchScope:!1})},He}(H.b);Object(H.h)(A.ID,X),Object(H.f)(De),Object(H.f)(xe),Object(H.f)(lt),Object(H.f)(ft),Object(H.f)(At),Object(H.f)(Ft),Object(H.f)(Vt),Object(H.f)(oo),Object(H.f)(Zt);var mo=H.c.bindToContribution(A.get);Object(H.g)(new mo({id:Be.CloseFindWidgetCommand,precondition:V,handler:function(mt){return mt.closeFindWidget()},kbOpts:{weight:100+5,kbExpr:K.a.focus,primary:9,secondary:[1024|9]}})),Object(H.g)(new mo({id:Be.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(mt){return mt.toggleCaseSensitive()},kbOpts:{weight:100+5,kbExpr:K.a.focus,primary:ae.primary,mac:ae.mac,win:ae.win,linux:ae.linux}})),Object(H.g)(new mo({id:Be.ToggleWholeWordCommand,precondition:void 0,handler:function(mt){return mt.toggleWholeWords()},kbOpts:{weight:100+5,kbExpr:K.a.focus,primary:we.primary,mac:we.mac,win:we.win,linux:we.linux}})),Object(H.g)(new mo({id:Be.ToggleRegexCommand,precondition:void 0,handler:function(mt){return mt.toggleRegex()},kbOpts:{weight:100+5,kbExpr:K.a.focus,primary:Me.primary,mac:Me.mac,win:Me.win,linux:Me.linux}})),Object(H.g)(new mo({id:Be.ToggleSearchScopeCommand,precondition:void 0,handler:function(mt){return mt.toggleSearchScope()},kbOpts:{weight:100+5,kbExpr:K.a.focus,primary:Pe.primary,mac:Pe.mac,win:Pe.win,linux:Pe.linux}})),Object(H.g)(new mo({id:Be.ReplaceOneAction,precondition:V,handler:function(mt){return mt.replace()},kbOpts:{weight:100+5,kbExpr:K.a.focus,primary:2048|1024|22}})),Object(H.g)(new mo({id:Be.ReplaceOneAction,precondition:V,handler:function(mt){return mt.replace()},kbOpts:{weight:100+5,kbExpr:Q.a.and(K.a.focus,B),primary:3}})),Object(H.g)(new mo({id:Be.ReplaceAllAction,precondition:V,handler:function(mt){return mt.replaceAll()},kbOpts:{weight:100+5,kbExpr:K.a.focus,primary:2048|512|3}})),Object(H.g)(new mo({id:Be.ReplaceAllAction,precondition:V,handler:function(mt){return mt.replaceAll()},kbOpts:{weight:100+5,kbExpr:Q.a.and(K.a.focus,B),primary:void 0,mac:{primary:2048|3}}})),Object(H.g)(new mo({id:Be.SelectAllMatchesAction,precondition:V,handler:function(mt){return mt.selectAllMatches()},kbOpts:{weight:100+5,kbExpr:K.a.focus,primary:512|3}}))},oiKk:function(Mt,F,e){"use strict";e.r(F),e.d(F,"IPadShowKeyboard",function(){return U});var T=e("ci+S"),pe=e.n(T),J=e("D3Dy"),I=e("EffR"),H=e("pmY6"),K=e("sswD"),D=function(){var h=function(b,O){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var w in C)C.hasOwnProperty(w)&&(m[w]=C[w])},h(b,O)};return function(b,O){h(b,O);function m(){this.constructor=b}b.prototype=O===null?Object.create(O):(m.prototype=O.prototype,new m)}}(),U=function(h){D(b,h);function b(O){var m=h.call(this)||this;return m.editor=O,m.widget=null,J.j&&(m._register(O.onDidChangeConfiguration(function(){return m.update()})),m.update()),m}return b.prototype.update=function(){var O=!this.editor.getOption(68);!this.widget&&O?this.widget=new j(this.editor):this.widget&&!O&&(this.widget.dispose(),this.widget=null)},b.prototype.dispose=function(){h.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},b.ID="editor.contrib.iPadShowKeyboard",b}(H.a),j=function(h){D(b,h);function b(O){var m=h.call(this)||this;return m.editor=O,m._domNode=document.createElement("textarea"),m._domNode.className="iPadShowKeyboard",m._register(I.j(m._domNode,"touchstart",function(C){m.editor.focus()})),m._register(I.j(m._domNode,"focus",function(C){m.editor.focus()})),m.editor.addOverlayWidget(m),m}return b.prototype.dispose=function(){this.editor.removeOverlayWidget(this),h.prototype.dispose.call(this)},b.prototype.getId=function(){return b.ID},b.prototype.getDomNode=function(){return this._domNode},b.prototype.getPosition=function(){return{preference:1}},b.ID="editor.contrib.ShowKeyboardWidget",b}(H.a);Object(K.h)(U.ID,U)},p3Ex:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return e.e(298).then(e.bind(null,"/Om3"))}})},p5tG:function(Mt,F,e){"use strict";e.r(F),e.d(F,"LanguageServiceDefaultsImpl",function(){return I});var T=e("M/lh"),pe=e.n(T);"use strict";var J=monaco.Emitter,I=function(){function h(b,O,m){this._onDidChange=new J,this._languageId=b,this.setDiagnosticsOptions(O),this.setModeConfiguration(m)}return Object.defineProperty(h.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),h.prototype.setDiagnosticsOptions=function(b){this._diagnosticsOptions=b||Object.create(null),this._onDidChange.fire(this)},h.prototype.setModeConfiguration=function(b){this._modeConfiguration=b||Object.create(null),this._onDidChange.fire(this)},h}(),H={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},K={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},D=new I("json",H,K);function U(){return{jsonDefaults:D}}monaco.languages.json=U();function j(){return e.e(290).then(e.bind(null,"R7lK"))}monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){j().then(function(h){return h.setupMode(D)})})},pAvP:function(Mt,F,e){"use strict";e.d(F,"a",function(){return J});var T=e("Cg/j"),pe="editorWorkerService",J=Object(T.c)(pe)},pI2L:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return e.e(330).then(e.bind(null,"KpXS"))}})},pg8w:function(Mt,F,e){"use strict";e.d(F,"a",function(){return D}),e.d(F,"b",function(){return U});var T=e("6OMU"),pe=e("pmY6"),J=e("EffR"),I=e("ZCR3"),H=function(){var j=function(h,b){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,m){O.__proto__=m}||function(O,m){for(var C in m)m.hasOwnProperty(C)&&(O[C]=m[C])},j(h,b)};return function(h,b){j(h,b);function O(){this.constructor=h}h.prototype=b===null?Object.create(b):(O.prototype=b.prototype,new O)}}(),K=function(j,h,b,O){var m=arguments.length,C=m<3?h:O===null?O=Object.getOwnPropertyDescriptor(h,b):O,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(j,h,b,O);else for(var v=j.length-1;v>=0;v--)(w=j[v])&&(C=(m<3?w(C):m>3?w(h,b,C):w(h,b))||C);return m>3&&C&&Object.defineProperty(h,b,C),C},D;(function(j){j.Tap="-monaco-gesturetap",j.Change="-monaco-gesturechange",j.Start="-monaco-gesturestart",j.End="-monaco-gesturesend",j.Contextmenu="-monaco-gesturecontextmenu"})(D||(D={}));var U=function(j){H(h,j);function h(){var b=j.call(this)||this;return b.dispatched=!1,b.activeTouches={},b.handle=null,b.targets=[],b.ignoreTargets=[],b._lastSetTapCountTime=0,b._register(J.j(document,"touchstart",function(O){return b.onTouchStart(O)})),b._register(J.j(document,"touchend",function(O){return b.onTouchEnd(O)})),b._register(J.j(document,"touchmove",function(O){return b.onTouchMove(O)})),b}return h.addTarget=function(b){return h.isTouchDevice()?(h.INSTANCE||(h.INSTANCE=new h),h.INSTANCE.targets.push(b),{dispose:function(){h.INSTANCE.targets=h.INSTANCE.targets.filter(function(O){return O!==b})}}):pe.a.None},h.ignoreTarget=function(b){return h.isTouchDevice()?(h.INSTANCE||(h.INSTANCE=new h),h.INSTANCE.ignoreTargets.push(b),{dispose:function(){h.INSTANCE.ignoreTargets=h.INSTANCE.ignoreTargets.filter(function(O){return O!==b})}}):pe.a.None},h.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},h.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),j.prototype.dispose.call(this)},h.prototype.onTouchStart=function(b){var O=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var m=0,C=b.targetTouches.length;m<C;m++){var w=b.targetTouches.item(m);this.activeTouches[w.identifier]={id:w.identifier,initialTarget:w.target,initialTimeStamp:O,initialPageX:w.pageX,initialPageY:w.pageY,rollingTimestamps:[O],rollingPageX:[w.pageX],rollingPageY:[w.pageY]};var v=this.newGestureEvent(D.Start,w.target);v.pageX=w.pageX,v.pageY=w.pageY,this.dispatchEvent(v)}this.dispatched&&(b.preventDefault(),b.stopPropagation(),this.dispatched=!1)},h.prototype.onTouchEnd=function(b){for(var O=Date.now(),m=Object.keys(this.activeTouches).length,C=function(d,c){var u=b.changedTouches.item(d);if(!w.activeTouches.hasOwnProperty(String(u.identifier)))return console.warn("move of an UNKNOWN touch",u),"continue";var f=w.activeTouches[u.identifier],E=Date.now()-f.initialTimeStamp;if(E<h.HOLD_DELAY&&Math.abs(f.initialPageX-T.v(f.rollingPageX))<30&&Math.abs(f.initialPageY-T.v(f.rollingPageY))<30){var L=w.newGestureEvent(D.Tap,f.initialTarget);L.pageX=T.v(f.rollingPageX),L.pageY=T.v(f.rollingPageY),w.dispatchEvent(L)}else if(E>=h.HOLD_DELAY&&Math.abs(f.initialPageX-T.v(f.rollingPageX))<30&&Math.abs(f.initialPageY-T.v(f.rollingPageY))<30){var L=w.newGestureEvent(D.Contextmenu,f.initialTarget);L.pageX=T.v(f.rollingPageX),L.pageY=T.v(f.rollingPageY),w.dispatchEvent(L)}else if(m===1){var R=T.v(f.rollingPageX),P=T.v(f.rollingPageY),x=T.v(f.rollingTimestamps)-f.rollingTimestamps[0],Q=R-f.rollingPageX[0],V=P-f.rollingPageY[0],W=w.targets.filter(function(B){return f.initialTarget instanceof Node&&B.contains(f.initialTarget)});w.inertia(W,O,Math.abs(Q)/x,Q>0?1:-1,R,Math.abs(V)/x,V>0?1:-1,P)}w.dispatchEvent(w.newGestureEvent(D.End,f.initialTarget)),delete w.activeTouches[u.identifier]},w=this,v=0,p=b.changedTouches.length;v<p;v++)C(v,p);this.dispatched&&(b.preventDefault(),b.stopPropagation(),this.dispatched=!1)},h.prototype.newGestureEvent=function(b,O){var m=document.createEvent("CustomEvent");return m.initEvent(b,!1,!0),m.initialTarget=O,m.tapCount=0,m},h.prototype.dispatchEvent=function(b){var O=this;if(b.type===D.Tap){var m=new Date().getTime(),C=0;m-this._lastSetTapCountTime>h.CLEAR_TAP_COUNT_TIME?C=1:C=2,this._lastSetTapCountTime=m,b.tapCount=C}else(b.type===D.Change||b.type===D.Contextmenu)&&(this._lastSetTapCountTime=0);for(var w=0;w<this.ignoreTargets.length;w++)if(b.initialTarget instanceof Node&&this.ignoreTargets[w].contains(b.initialTarget))return;this.targets.forEach(function(v){b.initialTarget instanceof Node&&v.contains(b.initialTarget)&&(v.dispatchEvent(b),O.dispatched=!0)})},h.prototype.inertia=function(b,O,m,C,w,v,p,d){var c=this;this.handle=J.W(function(){var u=Date.now(),f=u-O,E=0,L=0,R=!0;m+=h.SCROLL_FRICTION*f,v+=h.SCROLL_FRICTION*f,m>0&&(R=!1,E=C*m*f),v>0&&(R=!1,L=p*v*f);var P=c.newGestureEvent(D.Change);P.translationX=E,P.translationY=L,b.forEach(function(x){return x.dispatchEvent(P)}),R||c.inertia(b,u,m,C,w+E,v,p,d+L)})},h.prototype.onTouchMove=function(b){for(var O=Date.now(),m=0,C=b.changedTouches.length;m<C;m++){var w=b.changedTouches.item(m);if(!this.activeTouches.hasOwnProperty(String(w.identifier))){console.warn("end of an UNKNOWN touch",w);continue}var v=this.activeTouches[w.identifier],p=this.newGestureEvent(D.Change,v.initialTarget);p.translationX=w.pageX-T.v(v.rollingPageX),p.translationY=w.pageY-T.v(v.rollingPageY),p.pageX=w.pageX,p.pageY=w.pageY,this.dispatchEvent(p),v.rollingPageX.length>3&&(v.rollingPageX.shift(),v.rollingPageY.shift(),v.rollingTimestamps.shift()),v.rollingPageX.push(w.pageX),v.rollingPageY.push(w.pageY),v.rollingTimestamps.push(O)}this.dispatched&&(b.preventDefault(),b.stopPropagation(),this.dispatched=!1)},h.SCROLL_FRICTION=-.005,h.HOLD_DELAY=700,h.CLEAR_TAP_COUNT_TIME=400,K([I.a],h,"isTouchDevice",null),h}(pe.a)},ptcw:function(Mt,F,e){"use strict";e.d(F,"a",function(){return H}),e.d(F,"d",function(){return K}),e.d(F,"b",function(){return D}),e.d(F,"c",function(){return h});var T=e("MD5Z"),pe=function(){return pe=Object.assign||function(b){for(var O,m=1,C=arguments.length;m<C;m++){O=arguments[m];for(var w in O)Object.prototype.hasOwnProperty.call(O,w)&&(b[w]=O[w])}return b},pe.apply(this,arguments)};function J(b,O){var m=Object.create(null);for(var C in O){var w=O[C];w&&(m[C]=Object(T.Ub)(w,b))}return m}function I(b,O,m){function C(w){var v=J(b.getTheme(),O);typeof m=="function"?m(v):m.style(v)}return C(b.getTheme()),b.onThemeChange(C)}function H(b,O,m){return I(O,{badgeBackground:m&&m.badgeBackground||T.c,badgeForeground:m&&m.badgeForeground||T.d,badgeBorder:T.e},b)}function K(b,O,m){return I(O,{foreground:m&&m.foreground||T.W,background:m&&m.background||T.o,borderColor:m&&m.borderColor||T.e,widgetShadow:m&&m.widgetShadow||T.hc,progressBarBackground:m&&m.progressBarBackground||T.Sb,pickerGroupForeground:m&&m.pickerGroupForeground||T.Ob,pickerGroupBorder:m&&m.pickerGroupBorder||T.Nb,inputBackground:m&&m.inputBackground||T.Z,inputForeground:m&&m.inputForeground||T.bb,inputBorder:m&&m.inputBorder||T.ab,inputValidationInfoBorder:m&&m.inputValidationInfoBorder||T.gb,inputValidationInfoBackground:m&&m.inputValidationInfoBackground||T.fb,inputValidationInfoForeground:m&&m.inputValidationInfoForeground||T.hb,inputValidationWarningBorder:m&&m.inputValidationWarningBorder||T.jb,inputValidationWarningBackground:m&&m.inputValidationWarningBackground||T.ib,inputValidationWarningForeground:m&&m.inputValidationWarningForeground||T.kb,inputValidationErrorBorder:m&&m.inputValidationErrorBorder||T.db,inputValidationErrorBackground:m&&m.inputValidationErrorBackground||T.cb,inputValidationErrorForeground:m&&m.inputValidationErrorForeground||T.eb,listFocusBackground:m&&m.listFocusBackground||T.rb,listFocusForeground:m&&m.listFocusForeground||T.sb,listActiveSelectionBackground:m&&m.listActiveSelectionBackground||Object(T.f)(T.lb,.1),listActiveSelectionForeground:m&&m.listActiveSelectionForeground||T.mb,listFocusAndSelectionBackground:m&&m.listFocusAndSelectionBackground||T.lb,listFocusAndSelectionForeground:m&&m.listFocusAndSelectionForeground||T.mb,listInactiveSelectionBackground:m&&m.listInactiveSelectionBackground||T.xb,listInactiveSelectionForeground:m&&m.listInactiveSelectionForeground||T.yb,listInactiveFocusBackground:m&&m.listInactiveFocusBackground||T.wb,listHoverBackground:m&&m.listHoverBackground||T.ub,listHoverForeground:m&&m.listHoverForeground||T.vb,listDropBackground:m&&m.listDropBackground||T.nb,listFocusOutline:m&&m.listFocusOutline||T.b,listSelectionOutline:m&&m.listSelectionOutline||T.b,listHoverOutline:m&&m.listHoverOutline||T.b},b)}function D(b,O,m){return I(O,pe(pe({},U),m||{}),b)}var U={listFocusBackground:T.rb,listFocusForeground:T.sb,listActiveSelectionBackground:Object(T.f)(T.lb,.1),listActiveSelectionForeground:T.mb,listFocusAndSelectionBackground:T.lb,listFocusAndSelectionForeground:T.mb,listInactiveSelectionBackground:T.xb,listInactiveSelectionForeground:T.yb,listInactiveFocusBackground:T.wb,listHoverBackground:T.ub,listHoverForeground:T.vb,listDropBackground:T.nb,listFocusOutline:T.b,listSelectionOutline:T.b,listHoverOutline:T.b,listFilterWidgetBackground:T.ob,listFilterWidgetOutline:T.qb,listFilterWidgetNoMatchesOutline:T.pb,listMatchesShadow:T.hc,treeIndentGuidesStroke:T.gc},j={shadowColor:T.hc,borderColor:T.Ab,foregroundColor:T.Bb,backgroundColor:T.zb,selectionForegroundColor:T.Eb,selectionBackgroundColor:T.Cb,selectionBorderColor:T.Db,separatorColor:T.Fb};function h(b,O,m){return I(O,pe(pe({},j),m),b)}},"q/I2":function(Mt,F,e){},q8qy:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return e.e(318).then(e.bind(null,"ywQP"))}})},qH2V:function(Mt,F,e){},qNAo:function(Mt,F,e){"use strict";e.d(F,"f",function(){return pe}),e.d(F,"b",function(){return J}),e.d(F,"c",function(){return I}),e.d(F,"d",function(){return H}),e.d(F,"a",function(){return K}),e.d(F,"e",function(){return D});var T=e("N0LK"),pe=function(){function U(j,h,b,O){this.top=j|0,this.left=h|0,this.width=b|0,this.height=O|0}return U}(),J=function(){function U(j,h){this.tabSize=j,this.data=h}return U}(),I=function(){function U(j,h,b,O,m,C){this.content=j,this.continuesWithWrappedLine=h,this.minColumn=b,this.maxColumn=O,this.startVisibleColumn=m,this.tokens=C}return U}(),H=function(){function U(j,h,b,O,m,C,w,v,p,d){this.minColumn=j,this.maxColumn=h,this.content=b,this.continuesWithWrappedLine=O,this.isBasicASCII=U.isBasicASCII(b,C),this.containsRTL=U.containsRTL(b,this.isBasicASCII,m),this.tokens=w,this.inlineDecorations=v,this.tabSize=p,this.startVisibleColumn=d}return U.isBasicASCII=function(j,h){return h?T.v(j):!0},U.containsRTL=function(j,h,b){return!h&&b?T.i(j):!1},U}(),K=function(){function U(j,h,b){this.range=j,this.inlineClassName=h,this.type=b}return U}(),D=function(){function U(j,h){this.range=j,this.options=h}return U}()},qj0h:function(Mt,F,e){"use strict";e.d(F,"c",function(){return pe}),e.d(F,"d",function(){return J}),e.d(F,"b",function(){return H}),e.d(F,"g",function(){return D}),e.d(F,"a",function(){return U}),e.d(F,"e",function(){return j}),e.d(F,"f",function(){return h});var T=e("746U");function pe(b){if(!b||typeof b!="object")return b;if(b instanceof RegExp)return b;var O=Array.isArray(b)?[]:{};return Object.keys(b).forEach(function(m){b[m]&&typeof b[m]=="object"?O[m]=pe(b[m]):O[m]=b[m]}),O}function J(b){if(!b||typeof b!="object")return b;for(var O=[b];O.length>0;){var m=O.shift();Object.freeze(m);for(var C in m)if(I.call(m,C)){var w=m[C];typeof w=="object"&&!Object.isFrozen(w)&&O.push(w)}}return b}var I=Object.prototype.hasOwnProperty;function H(b,O){return K(b,O,new Set)}function K(b,O,m){if(Object(T.l)(b))return b;var C=O(b);if(typeof C!="undefined")return C;if(Object(T.d)(b)){for(var w=[],v=0,p=b;v<p.length;v++){var d=p[v];w.push(K(d,O,m))}return w}if(Object(T.i)(b)){if(m.has(b))throw new Error("Cannot clone recursive data-structure");m.add(b);var c={};for(var u in b)I.call(b,u)&&(c[u]=K(b[u],O,m));return m.delete(b),c}return b}function D(b,O,m){return m===void 0&&(m=!0),Object(T.i)(b)?(Object(T.i)(O)&&Object.keys(O).forEach(function(C){C in b?m&&(Object(T.i)(b[C])&&Object(T.i)(O[C])?D(b[C],O[C],m):b[C]=O[C]):b[C]=O[C]}),b):O}function U(b){for(var O=[],m=1;m<arguments.length;m++)O[m-1]=arguments[m];return O.forEach(function(C){return Object.keys(C).forEach(function(w){return b[w]=C[w]})}),b}function j(b,O){if(b===O)return!0;if(b==null||O===null||O===void 0)return!1;if(typeof b!==typeof O)return!1;if(typeof b!="object")return!1;if(Array.isArray(b)!==Array.isArray(O))return!1;var m,C;if(Array.isArray(b)){if(b.length!==O.length)return!1;for(m=0;m<b.length;m++)if(!j(b[m],O[m]))return!1}else{var w=[];for(C in b)w.push(C);w.sort();var v=[];for(C in O)v.push(C);if(v.sort(),!j(w,v))return!1;for(m=0;m<w.length;m++)if(!j(b[w[m]],O[w[m]]))return!1}return!0}function h(b,O,m){var C=O(b);return typeof C=="undefined"?m:C}},r0BQ:function(Mt,F,e){"use strict";e.d(F,"a",function(){return T});var T=function(){function pe(J,I,H){I===void 0&&(I=[]),H===void 0&&(H=!1),this.ctor=J,this.staticArguments=I,this.supportsDelayedInstantiation=H}return pe}()},rugR:function(Mt,F,e){"use strict";e.r(F),e.d(F,"ModesHoverController",function(){return pt});var T=e("uAX5"),pe=e("3/fG"),J=e("/kV6"),I=e("pmY6"),H=e("sswD"),K=e("aokT"),D=e("wQH0"),U=e("WBhO"),j=e("EffR"),h=e("JQT/"),b=e("zrhQ"),O=e("eLzo"),m=e("cGHE"),C=e("tX9W"),w=e("twdY"),v=e("ZIMw"),p=e("kqbb"),d=e("MI8n"),c=function(){function it(et,ut,Ct){this.presentationIndex=Ct,this._onColorFlushed=new d.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new d.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new d.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=et,this._color=et,this._colorPresentations=ut}return Object.defineProperty(it.prototype,"color",{get:function(){return this._color},set:function(et){if(this._color.equals(et))return;this._color=et,this._onDidChangeColor.fire(et)},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(et){this._colorPresentations=et,this.presentationIndex>et.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),it.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},it.prototype.guessColorPresentation=function(et,ut){for(var Ct=0;Ct<this.colorPresentations.length;Ct++)if(ut===this.colorPresentations[Ct].label){this.presentationIndex=Ct,this._onDidChangePresentation.fire(this.presentation);break}},it.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},it}(),u=e("EPS+"),f=e("D3Dy"),E=e("AKMP"),L=e("G300"),R=e("MD5Z"),P=e("t9D7"),x=function(){var it=function(et,ut){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,ht){Ct.__proto__=ht}||function(Ct,ht){for(var Et in ht)ht.hasOwnProperty(Et)&&(Ct[Et]=ht[Et])},it(et,ut)};return function(et,ut){it(et,ut);function Ct(){this.constructor=et}et.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),Q=j.a,V=function(it){x(et,it);function et(ut,Ct,ht){var Et=it.call(this)||this;Et.model=Ct,Et.domNode=Q(".colorpicker-header"),j.q(ut,Et.domNode),Et.pickedColorNode=j.q(Et.domNode,Q(".picked-color"));var Yt=j.q(Et.domNode,Q(".original-color"));return Yt.style.backgroundColor=b.a.Format.CSS.format(Et.model.originalColor)||"",Et.backgroundColor=ht.getTheme().getColor(R.A)||b.a.white,Et._register(Object(P.e)(function(Nt,bt){Et.backgroundColor=Nt.getColor(R.A)||b.a.white})),Et._register(j.j(Et.pickedColorNode,j.d.CLICK,function(){return Et.model.selectNextColorPresentation()})),Et._register(j.j(Yt,j.d.CLICK,function(){Et.model.color=Et.model.originalColor,Et.model.flushColor()})),Et._register(Ct.onDidChangeColor(Et.onDidChangeColor,Et)),Et._register(Ct.onDidChangePresentation(Et.onDidChangePresentation,Et)),Et.pickedColorNode.style.backgroundColor=b.a.Format.CSS.format(Ct.color)||"",j.Y(Et.pickedColorNode,"light",Ct.color.rgba.a<.5?Et.backgroundColor.isLighter():Ct.color.isLighter()),Et}return et.prototype.onDidChangeColor=function(ut){this.pickedColorNode.style.backgroundColor=b.a.Format.CSS.format(ut)||"",j.Y(this.pickedColorNode,"light",ut.rgba.a<.5?this.backgroundColor.isLighter():ut.isLighter()),this.onDidChangePresentation()},et.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},et}(I.a),W=function(it){x(et,it);function et(ut,Ct,ht){var Et=it.call(this)||this;return Et.model=Ct,Et.pixelRatio=ht,Et.domNode=Q(".colorpicker-body"),j.q(ut,Et.domNode),Et.saturationBox=new B(Et.domNode,Et.model,Et.pixelRatio),Et._register(Et.saturationBox),Et._register(Et.saturationBox.onDidChange(Et.onDidSaturationValueChange,Et)),Et._register(Et.saturationBox.onColorFlushed(Et.flushColor,Et)),Et.opacityStrip=new we(Et.domNode,Et.model),Et._register(Et.opacityStrip),Et._register(Et.opacityStrip.onDidChange(Et.onDidOpacityChange,Et)),Et._register(Et.opacityStrip.onColorFlushed(Et.flushColor,Et)),Et.hueStrip=new Me(Et.domNode,Et.model),Et._register(Et.hueStrip),Et._register(Et.hueStrip.onDidChange(Et.onDidHueChange,Et)),Et._register(Et.hueStrip.onColorFlushed(Et.flushColor,Et)),Et}return et.prototype.flushColor=function(){this.model.flushColor()},et.prototype.onDidSaturationValueChange=function(ut){var Ct=ut.s,ht=ut.v,Et=this.model.color.hsva;this.model.color=new b.a(new b.b(Et.h,Ct,ht,Et.a))},et.prototype.onDidOpacityChange=function(ut){var Ct=this.model.color.hsva;this.model.color=new b.a(new b.b(Ct.h,Ct.s,Ct.v,ut))},et.prototype.onDidHueChange=function(ut){var Ct=this.model.color.hsva,ht=(1-ut)*360;this.model.color=new b.a(new b.b(ht===360?0:ht,Ct.s,Ct.v,Ct.a))},et.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},et}(I.a),B=function(it){x(et,it);function et(ut,Ct,ht){var Et=it.call(this)||this;return Et.model=Ct,Et.pixelRatio=ht,Et._onDidChange=new d.a,Et.onDidChange=Et._onDidChange.event,Et._onColorFlushed=new d.a,Et.onColorFlushed=Et._onColorFlushed.event,Et.domNode=Q(".saturation-wrap"),j.q(ut,Et.domNode),Et.canvas=document.createElement("canvas"),Et.canvas.className="saturation-box",j.q(Et.domNode,Et.canvas),Et.selection=Q(".saturation-selection"),j.q(Et.domNode,Et.selection),Et.layout(),Et._register(j.h(Et.domNode,function(Yt){return Et.onMouseDown(Yt)})),Et._register(Et.model.onDidChangeColor(Et.onDidChangeColor,Et)),Et.monitor=null,Et}return et.prototype.onMouseDown=function(ut){var Ct=this;this.monitor=this._register(new E.a);var ht=j.C(this.domNode);ut.target!==this.selection&&this.onDidChangePosition(ut.offsetX,ut.offsetY),this.monitor.startMonitoring(ut.target,ut.buttons,E.b,function(Yt){return Ct.onDidChangePosition(Yt.posx-ht.left,Yt.posy-ht.top)},function(){return null});var Et=j.i(document,function(){Ct._onColorFlushed.fire(),Et.dispose(),Ct.monitor&&(Ct.monitor.stopMonitoring(!0),Ct.monitor=null)},!0)},et.prototype.onDidChangePosition=function(ut,Ct){var ht=Math.max(0,Math.min(1,ut/this.width)),Et=Math.max(0,Math.min(1,1-Ct/this.height));this.paintSelection(ht,Et),this._onDidChange.fire({s:ht,v:Et})},et.prototype.layout=function(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();var ut=this.model.color.hsva;this.paintSelection(ut.s,ut.v)},et.prototype.paint=function(){var ut=this.model.color.hsva,Ct=new b.a(new b.b(ut.h,1,1,1)),ht=this.canvas.getContext("2d"),Et=ht.createLinearGradient(0,0,this.canvas.width,0);Et.addColorStop(0,"rgba(255, 255, 255, 1)"),Et.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),Et.addColorStop(1,"rgba(255, 255, 255, 0)");var Yt=ht.createLinearGradient(0,0,0,this.canvas.height);Yt.addColorStop(0,"rgba(0, 0, 0, 0)"),Yt.addColorStop(1,"rgba(0, 0, 0, 1)"),ht.rect(0,0,this.canvas.width,this.canvas.height),ht.fillStyle=b.a.Format.CSS.format(Ct),ht.fill(),ht.fillStyle=Et,ht.fill(),ht.fillStyle=Yt,ht.fill()},et.prototype.paintSelection=function(ut,Ct){this.selection.style.left=ut*this.width+"px",this.selection.style.top=this.height-Ct*this.height+"px"},et.prototype.onDidChangeColor=function(){if(this.monitor&&this.monitor.isMonitoring())return;this.paint()},et}(I.a),ae=function(it){x(et,it);function et(ut,Ct){var ht=it.call(this)||this;return ht.model=Ct,ht._onDidChange=new d.a,ht.onDidChange=ht._onDidChange.event,ht._onColorFlushed=new d.a,ht.onColorFlushed=ht._onColorFlushed.event,ht.domNode=j.q(ut,Q(".strip")),ht.overlay=j.q(ht.domNode,Q(".overlay")),ht.slider=j.q(ht.domNode,Q(".slider")),ht.slider.style.top="0px",ht._register(j.h(ht.domNode,function(Et){return ht.onMouseDown(Et)})),ht.layout(),ht}return et.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var ut=this.getValue(this.model.color);this.updateSliderPosition(ut)},et.prototype.onMouseDown=function(ut){var Ct=this,ht=this._register(new E.a),Et=j.C(this.domNode);j.f(this.domNode,"grabbing"),ut.target!==this.slider&&this.onDidChangeTop(ut.offsetY),ht.startMonitoring(ut.target,ut.buttons,E.b,function(Nt){return Ct.onDidChangeTop(Nt.posy-Et.top)},function(){return null});var Yt=j.i(document,function(){Ct._onColorFlushed.fire(),Yt.dispose(),ht.stopMonitoring(!0),j.P(Ct.domNode,"grabbing")},!0)},et.prototype.onDidChangeTop=function(ut){var Ct=Math.max(0,Math.min(1,1-ut/this.height));this.updateSliderPosition(Ct),this._onDidChange.fire(Ct)},et.prototype.updateSliderPosition=function(ut){this.slider.style.top=(1-ut)*this.height+"px"},et}(I.a),we=function(it){x(et,it);function et(ut,Ct){var ht=it.call(this,ut,Ct)||this;return j.f(ht.domNode,"opacity-strip"),ht._register(Ct.onDidChangeColor(ht.onDidChangeColor,ht)),ht.onDidChangeColor(ht.model.color),ht}return et.prototype.onDidChangeColor=function(ut){var Ct=ut.rgba,ht=Ct.r,Et=Ct.g,Yt=Ct.b,Nt=new b.a(new b.c(ht,Et,Yt,1)),bt=new b.a(new b.c(ht,Et,Yt,0));this.overlay.style.background="linear-gradient(to bottom, "+Nt+" 0%, "+bt+" 100%)"},et.prototype.getValue=function(ut){return ut.hsva.a},et}(ae),Me=function(it){x(et,it);function et(ut,Ct){var ht=it.call(this,ut,Ct)||this;return j.f(ht.domNode,"hue-strip"),ht}return et.prototype.getValue=function(ut){return 1-ut.hsva.h/360},et}(ae),Pe=function(it){x(et,it);function et(ut,Ct,ht,Et){var Yt=it.call(this)||this;Yt.model=Ct,Yt.pixelRatio=ht,Yt._register(Object(f.o)(function(){return Yt.layout()}));var Nt=Q(".colorpicker-widget");ut.appendChild(Nt);var bt=new V(Nt,Yt.model,Et);return Yt.body=new W(Nt,Yt.model,Yt.pixelRatio),Yt._register(bt),Yt._register(Yt.body),Yt}return et.prototype.layout=function(){this.body.layout()},et}(L.a),Be=e("6OMU"),Ke=e("/cxE");function Fe(it,et,ut){var Ct=w.p.ordered(it),ht=Ct.map(function(Et){return Promise.resolve(Et.provideHover(it,et,ut)).then(function(Yt){return Yt&&re(Yt)?Yt:void 0},function(Yt){Object(Ke.f)(Yt);return})});return Promise.all(ht).then(Be.d)}Object(H.k)("_executeHoverProvider",function(it,et){return Fe(it,et,h.a.None)});function re(it){var et=typeof it.range!="undefined",ut=typeof it.contents!="undefined"&&it.contents&&it.contents.length>0;return et&&ut}var ee=e("X+cX"),ne=function(){function it(et,ut,Ct,ht,Et){var Yt=this;this._computer=et,this._state=0,this._hoverTime=Et,this._firstWaitScheduler=new ee.d(function(){return Yt._triggerAsyncComputation()},0),this._secondWaitScheduler=new ee.d(function(){return Yt._triggerSyncComputation()},0),this._loadingMessageScheduler=new ee.d(function(){return Yt._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=ut,this._errorCallback=Ct,this._progressCallback=ht}return it.prototype.setHoverTime=function(et){this._hoverTime=et},it.prototype._firstWaitTime=function(){return this._hoverTime/2},it.prototype._secondWaitTime=function(){return this._hoverTime/2},it.prototype._loadingMessageTime=function(){return 3*this._hoverTime},it.prototype._triggerAsyncComputation=function(){var et=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(ee.f)(function(ut){return et._computer.computeAsync(ut)}),this._asyncComputationPromise.then(function(ut){et._asyncComputationPromiseDone=!0,et._withAsyncResult(ut)},function(ut){return et._onError(ut)})):this._asyncComputationPromiseDone=!0},it.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},it.prototype._showLoadingMessage=function(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())},it.prototype._withAsyncResult=function(et){et&&this._computer.onResult(et,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))},it.prototype._onComplete=function(et){this._completeCallback&&this._completeCallback(et)},it.prototype._onError=function(et){this._errorCallback?this._errorCallback(et):Object(Ke.e)(et)},it.prototype._onProgress=function(et){this._progressCallback&&this._progressCallback(et)},it.prototype.start=function(et){if(et===0)this._state===0&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}},it.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),this._state===1&&this._firstWaitScheduler.cancel(),this._state===2&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state===3&&(this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state=0},it}(),q=e("GJhM"),le=function(){var it=function(et,ut){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,ht){Ct.__proto__=ht}||function(Ct,ht){for(var Et in ht)ht.hasOwnProperty(Et)&&(Ct[Et]=ht[Et])},it(et,ut)};return function(et,ut){it(et,ut);function Ct(){this.constructor=et}et.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),Z=function(){for(var it=0,et=0,ut=arguments.length;et<ut;et++)it+=arguments[et].length;for(var Ct=Array(it),ht=0,et=0;et<ut;et++)for(var Et=arguments[et],Yt=0,Nt=Et.length;Yt<Nt;Yt++,ht++)Ct[ht]=Et[Yt];return Ct},ve=function(it){le(et,it);function et(ut,Ct){var ht=it.call(this)||this;return ht.allowEditorOverflow=!0,ht._id=ut,ht._editor=Ct,ht._isVisible=!1,ht._stoleFocus=!1,ht._containerDomNode=document.createElement("div"),ht._containerDomNode.className="monaco-editor-hover hidden",ht._containerDomNode.tabIndex=0,ht._domNode=document.createElement("div"),ht._domNode.className="monaco-editor-hover-content",ht.scrollbar=new q.a(ht._domNode,{}),ht._register(ht.scrollbar),ht._containerDomNode.appendChild(ht.scrollbar.getDomNode()),ht.onkeydown(ht._containerDomNode,function(Et){Et.equals(9)&&ht.hide()}),ht._register(ht._editor.onDidChangeConfiguration(function(Et){Et.hasChanged(34)&&ht.updateFont()})),ht._editor.onDidLayoutChange(function(Et){return ht.layout()}),ht.layout(),ht._editor.addContentWidget(ht),ht._showAtPosition=null,ht._showAtRange=null,ht._stoleFocus=!1,ht}return Object.defineProperty(et.prototype,"isVisible",{get:function(){return this._isVisible},set:function(ut){this._isVisible=ut,Object(j.Y)(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),et.prototype.getId=function(){return this._id},et.prototype.getDomNode=function(){return this._containerDomNode},et.prototype.showAt=function(ut,Ct,ht){this._showAtPosition=ut,this._showAtRange=Ct,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=ht,ht&&this._containerDomNode.focus()},et.prototype.hide=function(){if(!this.isVisible)return;this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus()},et.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},et.prototype.dispose=function(){this._editor.removeContentWidget(this),it.prototype.dispose.call(this)},et.prototype.updateFont=function(){var ut=this,Ct=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));Ct.forEach(function(ht){return ut._editor.applyFontInfo(ht)})},et.prototype.updateContents=function(ut){this._domNode.textContent="",this._domNode.appendChild(ut),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},et.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},et.prototype.layout=function(){var ut=Math.max(this._editor.getLayoutInfo().height/4,250),Ct=this._editor.getOption(34),ht=Ct.fontSize,Et=Ct.lineHeight;this._domNode.style.fontSize=ht+"px",this._domNode.style.lineHeight=Et+"px",this._domNode.style.maxHeight=ut+"px",this._domNode.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px"},et}(L.a),Ne=function(it){le(et,it);function et(ut,Ct){var ht=it.call(this)||this;return ht._id=ut,ht._editor=Ct,ht._isVisible=!1,ht._domNode=document.createElement("div"),ht._domNode.className="monaco-editor-hover hidden",ht._domNode.setAttribute("aria-hidden","true"),ht._domNode.setAttribute("role","presentation"),ht._showAtLineNumber=-1,ht._register(ht._editor.onDidChangeConfiguration(function(Et){Et.hasChanged(34)&&ht.updateFont()})),ht._editor.addOverlayWidget(ht),ht}return Object.defineProperty(et.prototype,"isVisible",{get:function(){return this._isVisible},set:function(ut){this._isVisible=ut,Object(j.Y)(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),et.prototype.getId=function(){return this._id},et.prototype.getDomNode=function(){return this._domNode},et.prototype.showAt=function(ut){this._showAtLineNumber=ut,this.isVisible||(this.isVisible=!0);var Ct=this._editor.getLayoutInfo(),ht=this._editor.getTopForLineNumber(this._showAtLineNumber),Et=this._editor.getScrollTop(),Yt=this._editor.getOption(49),Nt=this._domNode.clientHeight,bt=ht-Et-(Nt-Yt)/2;this._domNode.style.left=Ct.glyphMarginLeft+Ct.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(bt),0)+"px"},et.prototype.hide=function(){if(!this.isVisible)return;this.isVisible=!1},et.prototype.getPosition=function(){return null},et.prototype.dispose=function(){this._editor.removeOverlayWidget(this),it.prototype.dispose.call(this)},et.prototype.updateFont=function(){var ut=this,Ct=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),ht=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));Z(Ct,ht).forEach(function(Et){return ut._editor.applyFontInfo(Et)})},et.prototype.updateContents=function(ut){this._domNode.textContent="",this._domNode.appendChild(ut),this.updateFont()},et}(L.a),Xe=e("3qCu"),de=e("tADe"),ge=e("gslv"),Ee=e("W9cx"),Te=e("lY/7"),Ce=e("hJVp"),fe=e("C1Q+"),$=e("nlbu"),S=function(){var it=function(et,ut){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,ht){Ct.__proto__=ht}||function(Ct,ht){for(var Et in ht)ht.hasOwnProperty(Et)&&(Ct[Et]=ht[Et])},it(et,ut)};return function(et,ut){it(et,ut);function Ct(){this.constructor=et}et.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),z=function(){for(var it=0,et=0,ut=arguments.length;et<ut;et++)it+=arguments[et].length;for(var Ct=Array(it),ht=0,et=0;et<ut;et++)for(var Et=arguments[et],Yt=0,Nt=Et.length;Yt<Nt;Yt++,ht++)Ct[ht]=Et[Yt];return Ct},ce=j.a,se=function(){function it(et,ut,Ct){this.range=et,this.color=ut,this.provider=Ct}return it}(),ye=function(){function it(et,ut){this.range=et,this.marker=ut}return it}(),Re=function(){function it(et,ut){this._markerDecorationsService=ut,this._editor=et,this._result=[]}return it.prototype.setRange=function(et){this._range=et,this._result=[]},it.prototype.clearResult=function(){this._result=[]},it.prototype.computeAsync=function(et){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var ut=this._editor.getModel();return w.p.has(ut)?Fe(ut,new m.a(this._range.startLineNumber,this._range.startColumn),et):Promise.resolve([])},it.prototype.computeSync=function(){var et=this;if(!this._editor.hasModel()||!this._range)return[];var ut=this._editor.getModel(),Ct=this._range.startLineNumber;if(Ct>this._editor.getModel().getLineCount())return[];var ht=p.ColorDetector.get(this._editor),Et=ut.getLineMaxColumn(Ct),Yt=this._editor.getLineDecorations(Ct),Nt=!1,bt=this._range,$e=Yt.map(function(Ye){var Ve=Ye.range.startLineNumber===Ct?Ye.range.startColumn:1,ze=Ye.range.endLineNumber===Ct?Ye.range.endColumn:Et;if(Ve>bt.startColumn||bt.endColumn>ze)return null;var me=new K.a(bt.startLineNumber,Ve,bt.startLineNumber,ze),G=et._markerDecorationsService.getMarker(ut,Ye);if(G)return new ye(me,G);var oe=ht.getColorData(Ye.range.getStartPosition());if(!Nt&&oe){Nt=!0;var Y=oe.colorInfo,ie=Y.color,je=Y.range;return new se(je,ie,oe.provider)}else{if(Object(O.b)(Ye.options.hoverMessage))return null;var dt=Ye.options.hoverMessage?Object(Be.b)(Ye.options.hoverMessage):[];return{contents:dt,range:me}}});return Object(Be.d)($e)},it.prototype.onResult=function(et,ut){ut?this._result=et.concat(this._result.sort(function(Ct,ht){return Ct instanceof se?-1:ht instanceof se?1:0})):this._result=this._result.concat(et)},it.prototype.getResult=function(){return this._result.slice(0)},it.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},it.prototype._getLoadingMessage=function(){return{range:this._range,contents:[new O.a().appendText(pe.a("modesContentHover.loading","Loading..."))]}},it}(),Le={type:2,filter:{include:$.b.QuickFix}},Ue=function(it){S(et,it);function et(ut,Ct,ht,Et,Yt,Nt){Nt===void 0&&(Nt=Ee.b);var bt=it.call(this,et.ID,ut)||this;return bt._themeService=ht,bt._keybindingService=Et,bt._modeService=Yt,bt._openerService=Nt,bt.renderDisposable=bt._register(new I.d),bt._messages=[],bt._lastRange=null,bt._computer=new Re(bt._editor,Ct),bt._highlightDecorations=[],bt._isChangingDecorations=!1,bt._shouldFocus=!1,bt._colorPicker=null,bt._hoverOperation=new ne(bt._computer,function($e){return bt._withResult($e,!0)},null,function($e){return bt._withResult($e,!1)},bt._editor.getOption(44).delay),bt._register(j.o(bt.getDomNode(),j.d.FOCUS,function(){bt._colorPicker&&j.f(bt.getDomNode(),"colorpicker-hover")})),bt._register(j.o(bt.getDomNode(),j.d.BLUR,function(){j.P(bt.getDomNode(),"colorpicker-hover")})),bt._register(ut.onDidChangeConfiguration(function($e){bt._hoverOperation.setHoverTime(bt._editor.getOption(44).delay)})),bt._register(w.B.onDidChange(function($e){bt.isVisible&&bt._lastRange&&bt._messages.length>0&&(bt._domNode.textContent="",bt._renderMessages(bt._lastRange,bt._messages))})),bt}return et.prototype.dispose=function(){this._hoverOperation.cancel(),it.prototype.dispose.call(this)},et.prototype.onModelDecorationsChanged=function(){if(this._isChangingDecorations)return;this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},et.prototype.startShowingAt=function(ut,Ct,ht){if(this._lastRange&&this._lastRange.equalsRange(ut))return;if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==ut.startLineNumber)this.hide();else{for(var Et=[],Yt=0,Nt=this._messages.length;Yt<Nt;Yt++){var bt=this._messages[Yt],$e=bt.range;$e&&$e.startColumn<=ut.startColumn&&$e.endColumn>=ut.endColumn&&Et.push(bt)}if(Et.length>0){if(Je(Et,this._messages))return;this._renderMessages(ut,Et)}else this.hide()}this._lastRange=ut,this._computer.setRange(ut),this._shouldFocus=ht,this._hoverOperation.start(Ct)},et.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),it.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},et.prototype.isColorPickerVisible=function(){return!!this._colorPicker},et.prototype._withResult=function(ut,Ct){this._messages=ut,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):Ct&&this.hide()},et.prototype._renderMessages=function(ut,Ct){var ht=this;this.renderDisposable.dispose(),this._colorPicker=null;var Et=1073741824,Yt=Ct[0].range?K.a.lift(Ct[0].range):null,Nt=document.createDocumentFragment(),bt=!0,$e=!1,Ye=new I.b,Ve=[];if(Ct.forEach(function(me){if(!me.range)return;if(Et=Math.min(Et,me.range.startColumn),Yt=Yt?K.a.plusRange(Yt,me.range):K.a.lift(me.range),me instanceof se){$e=!0;var G=me.color,oe=G.red,Y=G.green,ie=G.blue,je=G.alpha,dt=new b.c(Math.round(oe*255),Math.round(Y*255),Math.round(ie*255),je),Dt=new b.a(dt);if(!ht._editor.hasModel())return;var Qt=ht._editor.getModel(),to=new K.a(me.range.startLineNumber,me.range.startColumn,me.range.endLineNumber,me.range.endColumn),fo={range:me.range,color:me.color},ho=new c(Dt,[],0),wo=new Pe(Nt,ho,ht._editor.getOption(105),ht._themeService);Object(v.a)(Qt,fo,me.provider,h.a.None).then(function(Oo){if(ho.colorPresentations=Oo||[],!ht._editor.hasModel())return;var Ro=ht._editor.getModel().getValueInRange(me.range);ho.guessColorPresentation(Dt,Ro);var jo=function(){var Fo,Io;ho.presentation.textEdit?(Fo=[ho.presentation.textEdit],Io=new K.a(ho.presentation.textEdit.range.startLineNumber,ho.presentation.textEdit.range.startColumn,ho.presentation.textEdit.range.endLineNumber,ho.presentation.textEdit.range.endColumn),Io=Io.setEndPosition(Io.endLineNumber,Io.startColumn+ho.presentation.textEdit.text.length)):(Fo=[{identifier:null,range:to,text:ho.presentation.label,forceMoveMarkers:!1}],Io=to.setEndPosition(to.endLineNumber,to.startColumn+ho.presentation.label.length)),ht._editor.pushUndoStop(),ht._editor.executeEdits("colorpicker",Fo),ho.presentation.additionalTextEdits&&(Fo=z(ho.presentation.additionalTextEdits),ht._editor.executeEdits("colorpicker",Fo),ht.hide()),ht._editor.pushUndoStop(),to=Io},Eo=function(Fo){return Object(v.a)(Qt,{range:to,color:{red:Fo.rgba.r/255,green:Fo.rgba.g/255,blue:Fo.rgba.b/255,alpha:Fo.rgba.a}},me.provider,h.a.None).then(function(Io){ho.colorPresentations=Io||[]})},Wo=ho.onColorFlushed(function(Fo){Eo(Fo).then(jo)}),Ho=ho.onDidChangeColor(Eo);ht._colorPicker=wo,ht.showAt(to.getStartPosition(),to,ht._shouldFocus),ht.updateContents(Nt),ht._colorPicker.layout(),ht.renderDisposable.value=Object(I.e)(Wo,Ho,wo,Ye)})}else me instanceof ye?(Ve.push(me),bt=!1):me.contents.filter(function(Oo){return!Object(O.b)(Oo)}).forEach(function(Oo){var Ro=ce("div.hover-row.markdown-hover"),jo=j.q(Ro,ce("div.hover-contents")),Eo=Ye.add(new Xe.a(ht._editor,ht._modeService,ht._openerService));Ye.add(Eo.onDidRenderCodeBlock(function(){jo.className="hover-contents code-hover-contents",ht.onContentsChange()}));var Wo=Ye.add(Eo.render(Oo));jo.appendChild(Wo.element),Nt.appendChild(Ro),bt=!1})}),Ve.length){Ve.forEach(function(me){return Nt.appendChild(ht.renderMarkerHover(me))});var ze=Ve.length===1?Ve[0]:Ve.sort(function(me,G){return de.c.compare(me.marker.severity,G.marker.severity)})[0];Nt.appendChild(this.renderMarkerStatusbar(ze))}!$e&&!bt&&(this.showAt(new m.a(ut.startLineNumber,Et),Yt,this._shouldFocus),this.updateContents(Nt)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,Yt?[{range:Yt,options:et._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},et.prototype.renderMarkerHover=function(ut){var Ct=this,ht=ce("div.hover-row"),Et=j.q(ht,ce("div.marker.hover-contents")),Yt=ut.marker,Nt=Yt.source,bt=Yt.message,$e=Yt.code,Ye=Yt.relatedInformation;this._editor.applyFontInfo(Et);var Ve=j.q(Et,ce("span"));if(Ve.style.whiteSpace="pre-wrap",Ve.innerText=bt,Nt||$e){if(typeof $e=="string"){var ze=j.q(Et,ce("span"));ze.style.opacity="0.6",ze.style.paddingLeft="6px",ze.innerText=Nt&&$e?Nt+"("+$e+")":Nt||"("+$e+")"}else if($e){var me=ce("span");if(Nt){var G=j.q(me,ce("span"));G.innerText=Nt}this._codeLink=j.q(me,ce("a.code-link")),this._codeLink.setAttribute("href",$e.link.toString()),this._codeLink.onclick=function(Oo){Ct._openerService.open($e.link),Oo.preventDefault(),Oo.stopPropagation()};var oe=j.q(this._codeLink,ce("span"));oe.innerText=$e.value;var ze=j.q(Et,me);ze.style.opacity="0.6",ze.style.paddingLeft="6px"}}if(Object(Be.q)(Ye))for(var Y=function(wo,Oo,Ro,jo){var Eo=j.q(Et,ce("div"));Eo.style.marginTop="8px";var Wo=j.q(Eo,ce("a"));Wo.innerText=Object(ge.b)(Oo)+"("+Ro+", "+jo+"): ",Wo.style.cursor="pointer",Wo.onclick=function(Fo){Fo.stopPropagation(),Fo.preventDefault(),Ct._openerService&&Ct._openerService.open(Oo.with({fragment:Ro+","+jo}),{fromUserGesture:!0}).catch(Ke.e)};var Ho=j.q(Eo,ce("span"));Ho.innerText=wo,ie._editor.applyFontInfo(Ho)},ie=this,je=0,dt=Ye;je<dt.length;je++){var Dt=dt[je],Qt=Dt.message,to=Dt.resource,fo=Dt.startLineNumber,ho=Dt.startColumn;Y(Qt,to,fo,ho)}return ht},et.prototype.renderMarkerStatusbar=function(ut){var Ct=this,ht=ce("div.hover-row.status-bar"),Et=new I.b,Yt=j.q(ht,ce("div.actions"));(ut.marker.severity===de.c.Error||ut.marker.severity===de.c.Warning||ut.marker.severity===de.c.Info)&&Et.add(this.renderAction(Yt,{label:pe.a("peek problem","Peek Problem"),commandId:Te.NextMarkerAction.ID,run:function(){Ct.hide(),Te.MarkerController.get(Ct._editor).show(ut.marker),Ct._editor.focus()}}));var Nt=j.q(Yt,ce("div"));Nt.style.opacity="0",Nt.style.transition="opacity 0.2s",setTimeout(function(){return Nt.style.opacity="1"},200),Nt.textContent=pe.a("checkingForQuickFixes","Checking for quick fixes..."),Et.add(Object(I.h)(function(){return Nt.remove()}));var bt=this.getCodeActions(ut.marker);return Et.add(Object(I.h)(function(){return bt.cancel()})),bt.then(function($e){if(Nt.style.transition="",Nt.style.opacity="1",!$e.validActions.length){$e.dispose(),Nt.textContent=pe.a("noQuickFixes","No quick fixes available");return}Nt.remove();var Ye=!1;Et.add(Object(I.h)(function(){Ye||$e.dispose()})),Et.add(Ct.renderAction(Yt,{label:pe.a("quick fixes","Quick Fix..."),commandId:fe.e.Id,run:function(Ve){Ye=!0;var ze=fe.f.get(Ct._editor),me=j.C(Ve);ze.showCodeActions(Le,$e,{x:me.left+6,y:me.top+me.height+6})}}))}),this.renderDisposable.value=Et,ht},et.prototype.getCodeActions=function(ut){var Ct=this;return Object(ee.f)(function(ht){return Object(Ce.c)(Ct._editor.getModel(),new K.a(ut.startLineNumber,ut.startColumn,ut.endLineNumber,ut.endColumn),Le,ht)})},et.prototype.renderAction=function(ut,Ct){var ht=j.q(ut,ce("div.action-container")),Et=j.q(ht,ce("a.action"));Ct.iconClass&&j.q(Et,ce("span.icon."+Ct.iconClass));var Yt=j.q(Et,ce("span"));Yt.textContent=Ct.label;var Nt=this._keybindingService.lookupKeybinding(Ct.commandId);return Nt&&(Yt.title=Ct.label+" ("+Nt.getLabel()+")"),j.j(ht,j.d.CLICK,function(bt){bt.stopPropagation(),bt.preventDefault(),Ct.run(ht)})},et.ID="editor.contrib.modesContentHoverWidget",et._DECORATION_OPTIONS=C.a.register({className:"hoverHighlight"}),et}(ve);function Je(it,et){if(!it&&et||it&&!et||it.length!==et.length)return!1;for(var ut=0;ut<it.length;ut++){var Ct=it[ut],ht=et[ut];if(Ct instanceof ye&&ht instanceof ye)return de.a.makeKey(Ct.marker)===de.a.makeKey(ht.marker);if(Ct instanceof se||ht instanceof se)return!1;if(Ct instanceof ye||ht instanceof ye)return!1;if(!Object(O.c)(Ct.contents,ht.contents))return!1}return!0}Object(P.e)(function(it,et){var ut=it.getColor(R.ec);ut&&et.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+ut+"; }")});var nt=function(){var it=function(et,ut){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,ht){Ct.__proto__=ht}||function(Ct,ht){for(var Et in ht)ht.hasOwnProperty(Et)&&(Ct[Et]=ht[Et])},it(et,ut)};return function(et,ut){it(et,ut);function Ct(){this.constructor=et}et.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),vt=function(){function it(et){this._editor=et,this._lineNumber=-1,this._result=[]}return it.prototype.setLineNumber=function(et){this._lineNumber=et,this._result=[]},it.prototype.clearResult=function(){this._result=[]},it.prototype.computeSync=function(){var et=function(bt){return{value:bt}},ut=this._editor.getLineDecorations(this._lineNumber),Ct=[];if(!ut)return Ct;for(var ht=0,Et=ut;ht<Et.length;ht++){var Yt=Et[ht];if(!Yt.options.glyphMarginClassName)continue;var Nt=Yt.options.glyphMarginHoverMessage;if(!Nt||Object(O.b)(Nt))continue;Ct.push.apply(Ct,Object(Be.b)(Nt).map(et))}return Ct},it.prototype.onResult=function(et,ut){this._result=this._result.concat(et)},it.prototype.getResult=function(){return this._result},it.prototype.getResultWithLoadingMessage=function(){return this.getResult()},it}(),Rt=function(it){nt(et,it);function et(ut,Ct,ht){ht===void 0&&(ht=Ee.b);var Et=it.call(this,et.ID,ut)||this;return Et._renderDisposeables=Et._register(new I.b),Et._messages=[],Et._lastLineNumber=-1,Et._markdownRenderer=Et._register(new Xe.a(Et._editor,Ct,ht)),Et._computer=new vt(Et._editor),Et._hoverOperation=new ne(Et._computer,function(Yt){return Et._withResult(Yt)},void 0,function(Yt){return Et._withResult(Yt)},300),Et}return et.prototype.dispose=function(){this._hoverOperation.cancel(),it.prototype.dispose.call(this)},et.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},et.prototype.startShowingAt=function(ut){if(this._lastLineNumber===ut)return;this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=ut,this._computer.setLineNumber(ut),this._hoverOperation.start(0)},et.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),it.prototype.hide.call(this)},et.prototype._withResult=function(ut){this._messages=ut,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},et.prototype._renderMessages=function(ut,Ct){this._renderDisposeables.clear();for(var ht=document.createDocumentFragment(),Et=0,Yt=Ct;Et<Yt.length;Et++){var Nt=Yt[Et],bt=this._markdownRenderer.render(Nt.value);this._renderDisposeables.add(bt),ht.appendChild(Object(j.a)("div.hover-row",void 0,bt.element))}this.updateContents(ht),this.showAt(ut)},et.ID="editor.contrib.modesGlyphHoverWidget",et}(Ne),Ot=e("79sc"),Kt=e("bexQ"),ao=e("H4T2"),lo=function(){var it=function(et,ut){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,ht){Ct.__proto__=ht}||function(Ct,ht){for(var Et in ht)ht.hasOwnProperty(Et)&&(Ct[Et]=ht[Et])},it(et,ut)};return function(et,ut){it(et,ut);function Ct(){this.constructor=et}et.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),so=function(it,et,ut,Ct){var ht=arguments.length,Et=ht<3?et:Ct===null?Ct=Object.getOwnPropertyDescriptor(et,ut):Ct,Yt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Et=Reflect.decorate(it,et,ut,Ct);else for(var Nt=it.length-1;Nt>=0;Nt--)(Yt=it[Nt])&&(Et=(ht<3?Yt(Et):ht>3?Yt(et,ut,Et):Yt(et,ut))||Et);return ht>3&&Et&&Object.defineProperty(et,ut,Et),Et},jt=function(it,et){return function(ut,Ct){et(ut,Ct,it)}},pt=function(){function it(et,ut,Ct,ht,Et,Yt){var Nt=this;this._editor=et,this._openerService=ut,this._modeService=Ct,this._markerDecorationsService=ht,this._keybindingService=Et,this._themeService=Yt,this._toUnhook=new I.b,this._contentWidget=new I.d,this._glyphWidget=new I.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(bt){bt.hasChanged(44)&&(Nt._hideWidgets(),Nt._unhookEvents(),Nt._hookEvents())})}return Object.defineProperty(it.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),it.get=function(et){return et.getContribution(it.ID)},it.prototype._hookEvents=function(){var et=this,ut=function(){return et._hideWidgets()},Ct=this._editor.getOption(44);this._isHoverEnabled=Ct.enabled,this._isHoverSticky=Ct.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(ht){return et._onEditorMouseDown(ht)})),this._toUnhook.add(this._editor.onMouseUp(function(ht){return et._onEditorMouseUp(ht)})),this._toUnhook.add(this._editor.onMouseMove(function(ht){return et._onEditorMouseMove(ht)})),this._toUnhook.add(this._editor.onKeyDown(function(ht){return et._onKeyDown(ht)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return et._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(ut)),this._toUnhook.add(this._editor.onMouseLeave(ut)),this._toUnhook.add(this._editor.onDidChangeModel(ut)),this._toUnhook.add(this._editor.onDidScrollChange(function(ht){return et._onEditorScrollChanged(ht)}))},it.prototype._unhookEvents=function(){this._toUnhook.clear()},it.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},it.prototype._onEditorScrollChanged=function(et){(et.scrollTopChanged||et.scrollLeftChanged)&&this._hideWidgets()},it.prototype._onEditorMouseDown=function(et){this._isMouseDown=!0;var ut=et.target.type;if(ut===9&&et.target.detail===Ue.ID){this._hoverClicked=!0;return}if(ut===12&&et.target.detail===Rt.ID)return;ut!==12&&et.target.detail!==Rt.ID&&(this._hoverClicked=!1),this._hideWidgets()},it.prototype._onEditorMouseUp=function(et){this._isMouseDown=!1},it.prototype._onEditorMouseMove=function(et){var ut=et.target.type;if(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())return;if(this._isHoverSticky&&ut===9&&et.target.detail===Ue.ID)return;if(this._isHoverSticky&&ut===12&&et.target.detail===Rt.ID)return;if(ut===7){var Ct=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,ht=et.target.detail;ht&&!ht.isAfterLines&&typeof ht.horizontalDistanceToText=="number"&&ht.horizontalDistanceToText<Ct&&(ut=6)}ut===6?(this.glyphWidget.hide(),this._isHoverEnabled&&et.target.range&&this.contentWidget.startShowingAt(et.target.range,0,!1)):ut===2?(this.contentWidget.hide(),this._isHoverEnabled&&et.target.position&&this.glyphWidget.startShowingAt(et.target.position.lineNumber)):this._hideWidgets()},it.prototype._onKeyDown=function(et){et.keyCode!==5&&et.keyCode!==6&&et.keyCode!==57&&et.keyCode!==4&&this._hideWidgets()},it.prototype._hideWidgets=function(){if(!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible())return;this._glyphWidget.value.hide(),this._contentWidget.value.hide()},it.prototype._createHoverWidgets=function(){this._contentWidget.value=new Ue(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new Rt(this._editor,this._modeService,this._openerService)},it.prototype.showContentHover=function(et,ut,Ct){this.contentWidget.startShowingAt(et,ut,Ct)},it.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},it.ID="editor.contrib.hover",it=so([jt(1,Ee.a),jt(2,U.a),jt(3,Ot.a),jt(4,Kt.a),jt(5,P.c)],it),it}(),gt=function(it){lo(et,it);function et(){return it.call(this,{id:"editor.action.showHover",label:pe.a({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:D.a.editorTextFocus,primary:Object(J.a)(2048|41,2048|39),weight:100}})||this}return et.prototype.run=function(ut,Ct){if(!Ct.hasModel())return;var ht=pt.get(Ct);if(!ht)return;var Et=Ct.getPosition(),Yt=new K.a(Et.lineNumber,Et.column,Et.lineNumber,Et.column),Nt=Ct.getOption(2)===2;ht.showContentHover(Yt,1,Nt)},et}(H.b),Tt=function(it){lo(et,it);function et(){return it.call(this,{id:"editor.action.showDefinitionPreviewHover",label:pe.a({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})||this}return et.prototype.run=function(ut,Ct){var ht=pt.get(Ct);if(!ht)return;var Et=Ct.getPosition();if(!Et)return;var Yt=new K.a(Et.lineNumber,Et.column,Et.lineNumber,Et.column),Nt=ao.GotoDefinitionAtPositionEditorContribution.get(Ct),bt=Nt.startFindDefinitionFromCursor(Et);bt?bt.then(function(){ht.showContentHover(Yt,1,!0)}):ht.showContentHover(Yt,1,!0)},et}(H.b);Object(H.h)(pt.ID,pt),Object(H.f)(gt),Object(H.f)(Tt),Object(P.e)(function(it,et){var ut=it.getColor(R.D);ut&&et.addRule(".monaco-editor .hoverHighlight { background-color: "+ut+"; }");var Ct=it.getColor(R.A);Ct&&et.addRule(".monaco-editor .monaco-editor-hover { background-color: "+Ct+"; }");var ht=it.getColor(R.B);ht&&(et.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+ht+"; }"),et.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+ht.transparent(.5)+"; }"),et.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+ht.transparent(.5)+"; }"),et.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+ht.transparent(.5)+"; }"));var Et=it.getColor(R.ec);Et&&et.addRule(".monaco-editor .monaco-editor-hover a { color: "+Et+"; }");var Yt=it.getColor(R.C);Yt&&et.addRule(".monaco-editor .monaco-editor-hover { color: "+Yt+"; }");var Nt=it.getColor(R.E);Nt&&et.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+Nt+"; }");var bt=it.getColor(R.dc);bt&&et.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+bt+"; }")})},rzPn:function(Mt,F,e){"use strict";e.d(F,"a",function(){return ze});var T=e("qH2V"),pe=e("sswD"),J=e("tX9W"),I=e("EffR"),H=e("UsjR"),K=e("3/fG"),D=e("MNsG"),U=e("746U"),j=function(){function me(G){this.modelProvider=Object(U.g)(G.getModel)?G:{getModel:function(){return G}}}return me.prototype.getId=function(G,oe){if(!oe)return null;var Y=this.modelProvider.getModel();return Y===oe?"__root__":Y.dataSource.getId(oe)},me.prototype.hasChildren=function(G,oe){var Y=this.modelProvider.getModel();return!!(Y&&Y===oe&&Y.entries.length>0)},me.prototype.getChildren=function(G,oe){var Y=this.modelProvider.getModel();return Promise.resolve(Y===oe?Y.entries:[])},me.prototype.getParent=function(G,oe){return Promise.resolve(null)},me}(),h=function(){function me(G){this.modelProvider=G}return me.prototype.getAriaLabel=function(G,oe){var Y=this.modelProvider.getModel();return Y.accessibilityProvider?Y.accessibilityProvider.getAriaLabel(oe):null},me.prototype.getPosInSet=function(G,oe){var Y=this.modelProvider.getModel(),ie=0;if(Y.filter)for(var je=0,dt=Y.entries;je<dt.length;je++){var Dt=dt[je];if(Y.filter.isVisible(Dt)&&ie++,Dt===oe)break}else ie=Y.entries.indexOf(oe)+1;return String(ie)},me.prototype.getSetSize=function(){var G=this.modelProvider.getModel(),oe=0;if(G.filter)for(var Y=0,ie=G.entries;Y<ie.length;Y++){var je=ie[Y];G.filter.isVisible(je)&&oe++}else oe=G.entries.length;return String(oe)},me}(),b=function(){function me(G){this.modelProvider=G}return me.prototype.isVisible=function(G,oe){var Y=this.modelProvider.getModel();return Y.filter?Y.filter.isVisible(oe):!0},me}(),O=function(){function me(G,oe){this.modelProvider=G,this.styles=oe}return me.prototype.updateStyles=function(G){this.styles=G},me.prototype.getHeight=function(G,oe){var Y=this.modelProvider.getModel();return Y.renderer.getHeight(oe)},me.prototype.getTemplateId=function(G,oe){var Y=this.modelProvider.getModel();return Y.renderer.getTemplateId(oe)},me.prototype.renderTemplate=function(G,oe,Y){var ie=this.modelProvider.getModel();return ie.renderer.renderTemplate(oe,Y,this.styles)},me.prototype.renderElement=function(G,oe,Y,ie){var je=this.modelProvider.getModel();je.renderer.renderElement(oe,Y,ie,this.styles)},me.prototype.disposeTemplate=function(G,oe,Y){var ie=this.modelProvider.getModel();ie.renderer.disposeTemplate(oe,Y)},me}(),m=e("0+8E"),C=e("vMFT"),w=e("/cxE"),v=e("/kV6"),p=function(){function me(){this._arr=[]}return me.prototype.set=function(G,oe){this._arr.push({keybinding:Object(v.f)(G,D.a),callback:oe})},me.prototype.dispatch=function(G){for(var oe=this._arr.length-1;oe>=0;oe--){var Y=this._arr[oe];if(G.toChord().equals(Y.keybinding))return Y.callback}return null},me}(),d=function(){function me(G){var oe=this;G===void 0&&(G={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=G,this.downKeyBindingDispatcher=new p,this.upKeyBindingDispatcher=new p,(typeof G.keyboardSupport!="boolean"||G.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(Y,ie){return oe.onUp(Y,ie)}),this.downKeyBindingDispatcher.set(18,function(Y,ie){return oe.onDown(Y,ie)}),this.downKeyBindingDispatcher.set(15,function(Y,ie){return oe.onLeft(Y,ie)}),this.downKeyBindingDispatcher.set(17,function(Y,ie){return oe.onRight(Y,ie)}),D.e&&(this.downKeyBindingDispatcher.set(2048|16,function(Y,ie){return oe.onLeft(Y,ie)}),this.downKeyBindingDispatcher.set(256|44,function(Y,ie){return oe.onDown(Y,ie)}),this.downKeyBindingDispatcher.set(256|46,function(Y,ie){return oe.onUp(Y,ie)})),this.downKeyBindingDispatcher.set(11,function(Y,ie){return oe.onPageUp(Y,ie)}),this.downKeyBindingDispatcher.set(12,function(Y,ie){return oe.onPageDown(Y,ie)}),this.downKeyBindingDispatcher.set(14,function(Y,ie){return oe.onHome(Y,ie)}),this.downKeyBindingDispatcher.set(13,function(Y,ie){return oe.onEnd(Y,ie)}),this.downKeyBindingDispatcher.set(10,function(Y,ie){return oe.onSpace(Y,ie)}),this.downKeyBindingDispatcher.set(9,function(Y,ie){return oe.onEscape(Y,ie)}),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2048|3,this.onEnter.bind(this)))}return me.prototype.onMouseDown=function(G,oe,Y,ie){if(ie===void 0&&(ie="mouse"),this.options.clickBehavior===0&&(Y.leftButton||Y.middleButton)){if(Y.target){if(Y.target.tagName&&Y.target.tagName.toLowerCase()==="input")return!1;if(I.x(Y.target,"scrollbar","monaco-tree"))return!1;if(I.x(Y.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(G,oe,Y,ie)}return!1},me.prototype.onClick=function(G,oe,Y){var ie=D.e;return ie&&Y.ctrlKey?(Y.preventDefault(),Y.stopPropagation(),!1):Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input"||this.options.clickBehavior===0&&(Y.leftButton||Y.middleButton)?!1:this.onLeftClick(G,oe,Y)},me.prototype.onLeftClick=function(G,oe,Y,ie){ie===void 0&&(ie="mouse");var je=Y,dt={origin:ie,originalEvent:Y,didClickOnTwistie:this.isClickOnTwistie(je)};if(G.getInput()===oe)G.clearFocus(dt),G.clearSelection(dt);else{var Dt=Y&&je.browserEvent&&je.browserEvent.type==="mousedown"&&je.browserEvent.detail===1;Dt||Y.preventDefault(),Y.stopPropagation(),G.domFocus(),G.setSelection([oe],dt),G.setFocus(oe,dt),this.shouldToggleExpansion(oe,je,ie)&&(G.isExpanded(oe)?G.collapse(oe).then(void 0,w.e):G.expand(oe).then(void 0,w.e))}return!0},me.prototype.shouldToggleExpansion=function(G,oe,Y){var ie=Y==="mouse"&&oe.detail===2;return this.openOnSingleClick||ie||this.isClickOnTwistie(oe)},Object.defineProperty(me.prototype,"openOnSingleClick",{get:function(){return this.options.openMode===0},enumerable:!0,configurable:!0}),me.prototype.isClickOnTwistie=function(G){var oe=G.target;if(!I.I(oe,"content"))return!1;var Y=window.getComputedStyle(oe,":before");if(Y.backgroundImage==="none"||Y.display==="none")return!1;var ie=parseInt(Y.width)+parseInt(Y.paddingRight);return G.browserEvent.offsetX<=ie},me.prototype.onContextMenu=function(G,oe,Y){return Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input"||Y&&(Y.preventDefault(),Y.stopPropagation()),!1},me.prototype.onTap=function(G,oe,Y){var ie=Y.initialTarget;return ie&&ie.tagName&&ie.tagName.toLowerCase()==="input"?!1:this.onLeftClick(G,oe,Y,"touch")},me.prototype.onKeyDown=function(G,oe){return this.onKey(this.downKeyBindingDispatcher,G,oe)},me.prototype.onKeyUp=function(G,oe){return this.onKey(this.upKeyBindingDispatcher,G,oe)},me.prototype.onKey=function(G,oe,Y){var ie=G.dispatch(Y.toKeybinding());return ie&&ie(oe,Y)?(Y.preventDefault(),Y.stopPropagation(),!0):!1},me.prototype.onUp=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusPrevious(1,Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},me.prototype.onPageUp=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusPreviousPage(Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},me.prototype.onDown=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusNext(1,Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},me.prototype.onPageDown=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusNextPage(Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},me.prototype.onHome=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusFirst(Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},me.prototype.onEnd=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusLast(Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},me.prototype.onLeft=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};if(G.getHighlight())G.clearHighlight(Y);else{var ie=G.getFocus();G.collapse(ie).then(function(je){return ie&&!je?(G.focusParent(Y),G.reveal(G.getFocus())):void 0}).then(void 0,w.e)}return!0},me.prototype.onRight=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};if(G.getHighlight())G.clearHighlight(Y);else{var ie=G.getFocus();G.expand(ie).then(function(je){return ie&&!je?(G.focusFirstChild(Y),G.reveal(G.getFocus())):void 0}).then(void 0,w.e)}return!0},me.prototype.onEnter=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};if(G.getHighlight())return!1;var ie=G.getFocus();return ie&&G.setSelection([ie],Y),!0},me.prototype.onSpace=function(G,oe){if(G.getHighlight())return!1;var Y=G.getFocus();return Y&&G.toggleExpansion(Y),!0},me.prototype.onEscape=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?(G.clearHighlight(Y),!0):G.getSelection().length?(G.clearSelection(Y),!0):G.getFocus()?(G.clearFocus(Y),!0):!1},me}(),c=function(){function me(){}return me.prototype.getDragURI=function(G,oe){return null},me.prototype.onDragStart=function(G,oe,Y){return},me.prototype.onDragOver=function(G,oe,Y,ie){return null},me.prototype.drop=function(G,oe,Y,ie){return},me}(),u=function(){function me(){}return me.prototype.isVisible=function(G,oe){return!0},me}(),f=function(){function me(){}return me.prototype.getAriaLabel=function(G,oe){return null},me}(),E=function(){function me(G,oe){this.styleElement=G,this.selectorSuffix=oe}return me.prototype.style=function(G){var oe=this.selectorSuffix?"."+this.selectorSuffix:"",Y=[];G.listFocusBackground&&Y.push(".monaco-tree"+oe+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+G.listFocusBackground+"; }"),G.listFocusForeground&&Y.push(".monaco-tree"+oe+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+G.listFocusForeground+"; }"),G.listActiveSelectionBackground&&Y.push(".monaco-tree"+oe+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+G.listActiveSelectionBackground+"; }"),G.listActiveSelectionForeground&&Y.push(".monaco-tree"+oe+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+G.listActiveSelectionForeground+"; }"),G.listFocusAndSelectionBackground&&Y.push(`
.monaco-tree-drag-image,
.monaco-tree`+oe+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+G.listFocusAndSelectionBackground+`; }
`),G.listFocusAndSelectionForeground&&Y.push(`
.monaco-tree-drag-image,
.monaco-tree`+oe+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+G.listFocusAndSelectionForeground+`; }
`),G.listInactiveSelectionBackground&&Y.push(".monaco-tree"+oe+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+G.listInactiveSelectionBackground+"; }"),G.listInactiveSelectionForeground&&Y.push(".monaco-tree"+oe+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+G.listInactiveSelectionForeground+"; }"),G.listHoverBackground&&Y.push(".monaco-tree"+oe+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+G.listHoverBackground+"; }"),G.listHoverForeground&&Y.push(".monaco-tree"+oe+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+G.listHoverForeground+"; }"),G.listDropBackground&&Y.push(`
.monaco-tree`+oe+` .monaco-tree-wrapper.drop-target,
.monaco-tree`+oe+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+G.listDropBackground+` !important; color: inherit !important; }
`),G.listFocusOutline&&Y.push(`
.monaco-tree-drag-image { border: 1px solid `+G.listFocusOutline+`; background: #000; }
.monaco-tree`+oe+` .monaco-tree-rows > .monaco-tree-row { border: 1px solid transparent; }
.monaco-tree`+oe+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { border: 1px dotted "+G.listFocusOutline+`; }
.monaco-tree`+oe+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { border: 1px solid "+G.listFocusOutline+`; }
.monaco-tree`+oe+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { border: 1px solid "+G.listFocusOutline+`; }
.monaco-tree`+oe+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { border: 1px dashed "+G.listFocusOutline+`; }
.monaco-tree`+oe+` .monaco-tree-wrapper.drop-target,
.monaco-tree`+oe+" .monaco-tree-rows > .monaco-tree-row.drop-target { border: 1px dashed "+G.listFocusOutline+`; }
`);var ie=Y.join(`
`);ie!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=ie)},me}(),L=e("FWmy"),R=e("pmY6"),P=e("MI8n"),x=function(){var me=function(G,oe){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ie){Y.__proto__=ie}||function(Y,ie){for(var je in ie)ie.hasOwnProperty(je)&&(Y[je]=ie[je])},me(G,oe)};return function(G,oe){me(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}(),Q=function(){function me(G){this._onDispose=new P.a,this.onDispose=this._onDispose.event,this._item=G}return Object.defineProperty(me.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),me.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},me}(),V=function(){function me(){this.locks=Object.create({})}return me.prototype.isLocked=function(G){return!!this.locks[G.id]},me.prototype.run=function(G,oe){var Y=this,ie=this.getLock(G);if(ie)return new Promise(function(dt,Dt){P.b.once(ie.onDispose)(function(){return Y.run(G,oe).then(dt,Dt)})});var je;return new Promise(function(dt,Dt){if(G.isDisposed())return Dt(new Error("Item is disposed."));var Qt=Y.locks[G.id]=new Q(G);return je=oe().then(function(to){return delete Y.locks[G.id],Qt.dispose(),to}).then(dt,Dt),je})},me.prototype.getLock=function(G){var oe;for(oe in this.locks){var Y=this.locks[oe];if(G.intersects(Y.item))return Y}return null},me}(),W=function(){function me(){this._isDisposed=!1,this._onDidRevealItem=new P.d,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new P.d,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new P.d,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new P.d,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new P.d,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new P.d,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new P.d,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new P.d,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new P.d,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new P.d,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new P.d,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return me.prototype.register=function(G){L.a(!this.isRegistered(G.id),"item already registered: "+G.id);var oe=Object(R.e)(this._onDidRevealItem.add(G.onDidReveal),this._onExpandItem.add(G.onExpand),this._onDidExpandItem.add(G.onDidExpand),this._onCollapseItem.add(G.onCollapse),this._onDidCollapseItem.add(G.onDidCollapse),this._onDidAddTraitItem.add(G.onDidAddTrait),this._onDidRemoveTraitItem.add(G.onDidRemoveTrait),this._onDidRefreshItem.add(G.onDidRefresh),this._onRefreshItemChildren.add(G.onRefreshChildren),this._onDidRefreshItemChildren.add(G.onDidRefreshChildren),this._onDidDisposeItem.add(G.onDidDispose));this.items[G.id]={item:G,disposable:oe}},me.prototype.deregister=function(G){L.a(this.isRegistered(G.id),"item not registered: "+G.id),this.items[G.id].disposable.dispose(),delete this.items[G.id]},me.prototype.isRegistered=function(G){return this.items.hasOwnProperty(G)},me.prototype.getItem=function(G){var oe=this.items[G];return oe?oe.item:null},me.prototype.dispose=function(){this.items={},this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},me.prototype.isDisposed=function(){return this._isDisposed},me}(),B=function(){function me(G,oe,Y,ie,je){this._onDidCreate=new P.a,this._onDidReveal=new P.a,this.onDidReveal=this._onDidReveal.event,this._onExpand=new P.a,this.onExpand=this._onExpand.event,this._onDidExpand=new P.a,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new P.a,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new P.a,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new P.a,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new P.a,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new P.a,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new P.a,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new P.a,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new P.a,this.onDidDispose=this._onDidDispose.event,this.registry=oe,this.context=Y,this.lock=ie,this.element=je,this.id=G,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!!(this.context.dataSource.shouldAutoexpand&&this.context.dataSource.shouldAutoexpand(this.context.tree,je)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return me.prototype.getElement=function(){return this.element},me.prototype.hasChildren=function(){return this.doesHaveChildren},me.prototype.getDepth=function(){return this.depth},me.prototype.isVisible=function(){return this.visible},me.prototype.setVisible=function(G){this.visible=G},me.prototype.isExpanded=function(){return this.expanded},me.prototype._setExpanded=function(G){this.expanded=G},me.prototype.reveal=function(G){G===void 0&&(G=null);var oe={item:this,relativeTop:G};this._onDidReveal.fire(oe)},me.prototype.expand=function(){var G=this;if(this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this))return Promise.resolve(!1);var oe=this.lock.run(this,function(){if(G.isExpanded()||!G.doesHaveChildren)return Promise.resolve(!1);var Y={item:G},ie;return G._onExpand.fire(Y),G.needsChildrenRefresh?ie=G.refreshChildren(!1,!0,!0):ie=Promise.resolve(null),ie.then(function(){return G._setExpanded(!0),G._onDidExpand.fire(Y),!0})});return oe.then(function(Y){return G.isDisposed()?!1:G.context.options.autoExpandSingleChildren&&Y&&G.firstChild!==null&&G.firstChild===G.lastChild&&G.firstChild.isVisible()?G.firstChild.expand().then(function(){return!0}):Y})},me.prototype.collapse=function(G){var oe=this;if(G===void 0&&(G=!1),G){var Y=Promise.resolve(null);return this.forEachChild(function(ie){Y=Y.then(function(){return ie.collapse(!0)})}),Y.then(function(){return oe.collapse(!1)})}else return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){var ie={item:oe};return oe._onCollapse.fire(ie),oe._setExpanded(!1),oe._onDidCollapse.fire(ie),Promise.resolve(!0)})},me.prototype.addTrait=function(G){var oe={item:this,trait:G};this.traits[G]=!0,this._onDidAddTrait.fire(oe)},me.prototype.removeTrait=function(G){var oe={item:this,trait:G};delete this.traits[G],this._onDidRemoveTrait.fire(oe)},me.prototype.hasTrait=function(G){return this.traits[G]||!1},me.prototype.getAllTraits=function(){var G=[],oe;for(oe in this.traits)this.traits.hasOwnProperty(oe)&&this.traits[oe]&&G.push(oe);return G},me.prototype.getHeight=function(){return this.height},me.prototype.refreshChildren=function(G,oe,Y){var ie=this;if(oe===void 0&&(oe=!1),Y===void 0&&(Y=!1),!Y&&!this.isExpanded()){var je=function(Dt){Dt.needsChildrenRefresh=!0,Dt.forEachChild(je)};return je(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var dt=function(){var Dt={item:ie,isNested:oe};ie._onRefreshChildren.fire(Dt);var Qt;ie.doesHaveChildren?Qt=ie.context.dataSource.getChildren(ie.context.tree,ie.element):Qt=Promise.resolve([]);var to=Qt.then(function(fo){if(ie.isDisposed()||ie.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(fo))return Promise.reject(new Error("Please return an array of children."));fo=fo?fo.slice(0):[],fo=ie.sort(fo);for(var ho={};ie.firstChild!==null;)ho[ie.firstChild.id]=ie.firstChild,ie.removeChild(ie.firstChild);for(var wo=0,Oo=fo.length;wo<Oo;wo++){var Ro=fo[wo],jo=ie.context.dataSource.getId(ie.context.tree,Ro),Eo=ho[jo]||new me(jo,ie.registry,ie.context,ie.lock,Ro);Eo.element=Ro,G&&(Eo.needsChildrenRefresh=G),delete ho[jo],ie.addChild(Eo)}for(var Wo in ho)ho.hasOwnProperty(Wo)&&ho[Wo].dispose();return G?Promise.all(ie.mapEachChild(function(Ho){return Ho.doRefresh(G,!0)})):Promise.all(ie.mapEachChild(function(Ho){return Ho.isExpanded()&&Ho.needsChildrenRefresh?Ho.doRefresh(G,!0):(Ho.updateVisibility(),Promise.resolve(null))}))});return to.then(void 0,w.e).then(function(){return ie._onDidRefreshChildren.fire(Dt)})};return oe?dt():this.lock.run(this,dt)},me.prototype.doRefresh=function(G,oe){return oe===void 0&&(oe=!1),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.height=this._getHeight(),this.updateVisibility(),this._onDidRefresh.fire(this),this.refreshChildren(G,oe)},me.prototype.updateVisibility=function(){this.setVisible(this._isVisible())},me.prototype.refresh=function(G){return this.doRefresh(G)},me.prototype.getNavigator=function(){return new we(this)},me.prototype.intersects=function(G){return this.isAncestorOf(G)||G.isAncestorOf(this)},me.prototype.isAncestorOf=function(G){for(var oe=G;oe;){if(oe.id===this.id)return!0;oe=oe.parent}return!1},me.prototype.addChild=function(G,oe){oe===void 0&&(oe=this.lastChild);var Y=this.firstChild===null,ie=oe===null,je=oe===this.lastChild;if(Y)this.firstChild=this.lastChild=G,G.next=G.previous=null;else if(ie){if(!this.firstChild)throw new Error("Invalid tree state");this.firstChild.previous=G,G.next=this.firstChild,G.previous=null,this.firstChild=G}else if(je){if(!this.lastChild)throw new Error("Invalid tree state");this.lastChild.next=G,G.next=null,G.previous=this.lastChild,this.lastChild=G}else{if(G.previous=oe,!oe)throw new Error("Invalid tree state");if(G.next=oe.next,!oe.next)throw new Error("Invalid tree state");oe.next.previous=G,oe.next=G}G.parent=this,G.depth=this.depth+1},me.prototype.removeChild=function(G){var oe=this.firstChild===G,Y=this.lastChild===G;if(oe&&Y)this.firstChild=this.lastChild=null;else if(oe){if(!G.next)throw new Error("Invalid tree state");G.next.previous=null,this.firstChild=G.next}else if(Y){if(!G.previous)throw new Error("Invalid tree state");G.previous.next=null,this.lastChild=G.previous}else{if(!G.next)throw new Error("Invalid tree state");if(G.next.previous=G.previous,!G.previous)throw new Error("Invalid tree state");G.previous.next=G.next}G.parent=null,G.depth=NaN},me.prototype.forEachChild=function(G){for(var oe=this.firstChild,Y;oe;)Y=oe.next,G(oe),oe=Y},me.prototype.mapEachChild=function(G){var oe=[];return this.forEachChild(function(Y){oe.push(G(Y))}),oe},me.prototype.sort=function(G){var oe=this,Y=this.context.sorter;return Y?G.sort(function(ie,je){return Y.compare(oe.context.tree,ie,je)}):G},me.prototype._getHeight=function(){return this.context.renderer?this.context.renderer.getHeight(this.context.tree,this.element):0},me.prototype._isVisible=function(){return this.context.filter?this.context.filter.isVisible(this.context.tree,this.element):!1},me.prototype.isDisposed=function(){return this._isDisposed},me.prototype.dispose=function(){this.forEachChild(function(G){return G.dispose()}),this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this._onDidDispose.fire(this),this.registry.deregister(this),this._onDidCreate.dispose(),this._onDidReveal.dispose(),this._onExpand.dispose(),this._onDidExpand.dispose(),this._onCollapse.dispose(),this._onDidCollapse.dispose(),this._onDidAddTrait.dispose(),this._onDidRemoveTrait.dispose(),this._onDidRefresh.dispose(),this._onRefreshChildren.dispose(),this._onDidRefreshChildren.dispose(),this._onDidDispose.dispose(),this._isDisposed=!0},me}(),ae=function(me){x(G,me);function G(oe,Y,ie,je,dt){return me.call(this,oe,Y,ie,je,dt)||this}return G.prototype.isVisible=function(){return!1},G.prototype.setVisible=function(oe){},G.prototype.isExpanded=function(){return!0},G.prototype._setExpanded=function(oe){},G.prototype._getHeight=function(){return 0},G.prototype._isVisible=function(){return!1},G}(B),we=function(){function me(G,oe){oe===void 0&&(oe=!0),this.item=G,this.start=oe?G:null}return me.lastDescendantOf=function(G){return G?G instanceof ae?me.lastDescendantOf(G.lastChild):G.isVisible()?!G.isExpanded()||G.lastChild===null?G:me.lastDescendantOf(G.lastChild):me.lastDescendantOf(G.previous):null},me.prototype.current=function(){return this.item||null},me.prototype.next=function(){if(this.item)do if((this.item instanceof ae||this.item.isVisible()&&this.item.isExpanded())&&this.item.firstChild)this.item=this.item.firstChild;else if(this.item===this.start)this.item=null;else{for(;this.item&&this.item!==this.start&&!this.item.next;)this.item=this.item.parent;this.item===this.start&&(this.item=null),this.item=this.item?this.item.next:null}while(this.item&&!this.item.isVisible());return this.item||null},me.prototype.previous=function(){if(this.item)do{var G=me.lastDescendantOf(this.item.previous);G?this.item=G:this.item.parent&&this.item.parent!==this.start&&this.item.parent.isVisible()?this.item=this.item.parent:this.item=null}while(this.item&&!this.item.isVisible());return this.item||null},me.prototype.parent=function(){if(this.item){var G=this.item.parent;G&&G!==this.start&&G.isVisible()?this.item=G:this.item=null}return this.item||null},me.prototype.first=function(){return this.item=this.start,this.next(),this.item||null},me.prototype.last=function(){return me.lastDescendantOf(this.start)},me}(),Me=function(){function me(G){this.registry=new W,this.registryDisposable=R.a.None,this._onSetInput=new P.a,this.onSetInput=this._onSetInput.event,this._onDidSetInput=new P.a,this.onDidSetInput=this._onDidSetInput.event,this._onRefresh=new P.a,this.onRefresh=this._onRefresh.event,this._onDidRefresh=new P.a,this.onDidRefresh=this._onDidRefresh.event,this._onDidHighlight=new P.a,this.onDidHighlight=this._onDidHighlight.event,this._onDidSelect=new P.a,this.onDidSelect=this._onDidSelect.event,this._onDidFocus=new P.a,this.onDidFocus=this._onDidFocus.event,this._onDidRevealItem=new P.f,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new P.f,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new P.f,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new P.f,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new P.f,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new P.f,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new P.f,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new P.f,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new P.f,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new P.f,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new P.f,this.context=G,this.input=null,this.traitsToItems={}}return me.prototype.setInput=function(G){var oe=this,Y={item:this.input};this._onSetInput.fire(Y),this.setSelection([]),this.setFocus(),this.setHighlight(),this.lock=new V,this.input&&this.input.dispose(),this.registry&&(this.registry.dispose(),this.registryDisposable.dispose()),this.registry=new W,this._onDidRevealItem.input=this.registry.onDidRevealItem,this._onExpandItem.input=this.registry.onExpandItem,this._onDidExpandItem.input=this.registry.onDidExpandItem,this._onCollapseItem.input=this.registry.onCollapseItem,this._onDidCollapseItem.input=this.registry.onDidCollapseItem,this._onDidAddTraitItem.input=this.registry.onDidAddTraitItem,this._onDidRemoveTraitItem.input=this.registry.onDidRemoveTraitItem,this._onDidRefreshItem.input=this.registry.onDidRefreshItem,this._onRefreshItemChildren.input=this.registry.onRefreshItemChildren,this._onDidRefreshItemChildren.input=this.registry.onDidRefreshItemChildren,this._onDidDisposeItem.input=this.registry.onDidDisposeItem,this.registryDisposable=this.registry.onDidDisposeItem(function(je){return je.getAllTraits().forEach(function(dt){return delete oe.traitsToItems[dt][je.id]})});var ie=this.context.dataSource.getId(this.context.tree,G);return this.input=new ae(ie,this.registry,this.context,this.lock,G),Y={item:this.input},this._onDidSetInput.fire(Y),this.refresh(this.input)},me.prototype.getInput=function(){return this.input?this.input.getElement():null},me.prototype.refresh=function(G,oe){var Y=this;G===void 0&&(G=null),oe===void 0&&(oe=!0);var ie=this.getItem(G);if(!ie)return Promise.resolve(null);var je={item:ie,recursive:oe};return this._onRefresh.fire(je),ie.refresh(oe).then(function(){Y._onDidRefresh.fire(je)})},me.prototype.expand=function(G){var oe=this.getItem(G);return oe?oe.expand():Promise.resolve(!1)},me.prototype.collapse=function(G,oe){oe===void 0&&(oe=!1);var Y=this.getItem(G);return Y?Y.collapse(oe):Promise.resolve(!1)},me.prototype.toggleExpansion=function(G,oe){return oe===void 0&&(oe=!1),this.isExpanded(G)?this.collapse(G,oe):this.expand(G)},me.prototype.isExpanded=function(G){var oe=this.getItem(G);return oe?oe.isExpanded():!1},me.prototype.reveal=function(G,oe){var Y=this;return oe===void 0&&(oe=null),this.resolveUnknownParentChain(G).then(function(ie){var je=Promise.resolve(null);return ie.forEach(function(dt){je=je.then(function(){return Y.expand(dt)})}),je}).then(function(){var ie=Y.getItem(G);if(ie)return ie.reveal(oe)})},me.prototype.resolveUnknownParentChain=function(G){var oe=this;return this.context.dataSource.getParent(this.context.tree,G).then(function(Y){return Y?oe.resolveUnknownParentChain(Y).then(function(ie){return ie.push(Y),ie}):Promise.resolve([])})},me.prototype.setHighlight=function(G,oe){this.setTraits("highlighted",G?[G]:[]);var Y={highlight:this.getHighlight(),payload:oe};this._onDidHighlight.fire(Y)},me.prototype.getHighlight=function(G){G===void 0&&(G=!1);var oe=this.getElementsWithTrait("highlighted",G);return oe.length===0?null:oe[0]},me.prototype.setSelection=function(G,oe){this.setTraits("selected",G);var Y={selection:this.getSelection(),payload:oe};this._onDidSelect.fire(Y)},me.prototype.getSelection=function(G){return G===void 0&&(G=!1),this.getElementsWithTrait("selected",G)},me.prototype.setFocus=function(G,oe){this.setTraits("focused",G?[G]:[]);var Y={focus:this.getFocus(),payload:oe};this._onDidFocus.fire(Y)},me.prototype.getFocus=function(G){G===void 0&&(G=!1);var oe=this.getElementsWithTrait("focused",G);return oe.length===0?null:oe[0]},me.prototype.focusNext=function(G,oe){G===void 0&&(G=1);for(var Y=this.getFocus()||this.input,ie,je=this.getNavigator(Y,!1),dt=0;dt<G&&!(ie=je.next(),!ie);dt++)Y=ie;this.setFocus(Y,oe)},me.prototype.focusPrevious=function(G,oe){G===void 0&&(G=1);for(var Y=this.getFocus()||this.input,ie,je=this.getNavigator(Y,!1),dt=0;dt<G&&!(ie=je.previous(),!ie);dt++)Y=ie;this.setFocus(Y,oe)},me.prototype.focusParent=function(G){var oe=this.getFocus()||this.input,Y=this.getNavigator(oe,!1),ie=Y.parent();ie&&this.setFocus(ie,G)},me.prototype.focusFirstChild=function(G){var oe=this.getItem(this.getFocus()||this.input),Y=this.getNavigator(oe,!1),ie=Y.next(),je=Y.parent();je===oe&&this.setFocus(ie,G)},me.prototype.focusFirst=function(G,oe){this.focusNth(0,G,oe)},me.prototype.focusNth=function(G,oe,Y){for(var ie=this.getParent(Y),je=this.getNavigator(ie),dt=je.first(),Dt=0;Dt<G;Dt++)dt=je.next();dt&&this.setFocus(dt,oe)},me.prototype.focusLast=function(G,oe){var Y=this.getParent(oe),ie;if(oe&&Y)ie=Y.lastChild;else{var je=this.getNavigator(Y);ie=je.last()}ie&&this.setFocus(ie,G)},me.prototype.getParent=function(G){if(G){var oe=this.getItem(G);if(oe&&oe.parent)return oe.parent}return this.getItem(this.input)},me.prototype.getNavigator=function(G,oe){return G===void 0&&(G=null),oe===void 0&&(oe=!0),new we(this.getItem(G),oe)},me.prototype.getItem=function(G){return G===void 0&&(G=null),G===null?this.input:G instanceof B?G:typeof G=="string"?this.registry.getItem(G):this.registry.getItem(this.context.dataSource.getId(this.context.tree,G))},me.prototype.removeTraits=function(G,oe){var Y=this.traitsToItems[G]||{},ie,je;if(oe.length===0){for(je in Y)Y.hasOwnProperty(je)&&(ie=Y[je],ie.removeTrait(G));delete this.traitsToItems[G]}else for(var dt=0,Dt=oe.length;dt<Dt;dt++)ie=this.getItem(oe[dt]),ie&&(ie.removeTrait(G),delete Y[ie.id])},me.prototype.setTraits=function(G,oe){if(oe.length===0)this.removeTraits(G,oe);else{for(var Y={},ie=void 0,je=0,dt=oe.length;je<dt;je++)ie=this.getItem(oe[je]),ie&&(Y[ie.id]=ie);var Dt=this.traitsToItems[G]||{},Qt=[],to=void 0;for(to in Dt)Dt.hasOwnProperty(to)&&(Y.hasOwnProperty(to)?delete Y[to]:Qt.push(Dt[to]));for(var je=0,dt=Qt.length;je<dt;je++)ie=Qt[je],ie.removeTrait(G),delete Dt[ie.id];for(to in Y)Y.hasOwnProperty(to)&&(ie=Y[to],ie.addTrait(G),Dt[to]=ie);this.traitsToItems[G]=Dt}},me.prototype.getElementsWithTrait=function(G,oe){var Y=[],ie=this.traitsToItems[G]||{},je;for(je in ie)ie.hasOwnProperty(je)&&(ie[je].isVisible()||oe)&&Y.push(ie[je].getElement());return Y},me.prototype.dispose=function(){this.registry.dispose(),this._onSetInput.dispose(),this._onDidSetInput.dispose(),this._onRefresh.dispose(),this._onDidRefresh.dispose(),this._onDidHighlight.dispose(),this._onDidSelect.dispose(),this._onDidFocus.dispose(),this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._onDidDisposeItem.dispose()},me}(),Pe=e("D3Dy"),Be=e("Gw4z"),Ke=e("pg8w"),Fe=e("N0LK"),re=e("XSiN"),ee=e("uDWl"),ne=function(){function me(G){this.elements=G}return me.prototype.update=function(G){},me.prototype.getData=function(){return this.elements},me}(),q=function(){function me(G){this.elements=G}return me.prototype.update=function(G){},me.prototype.getData=function(){return this.elements},me}(),le=function(){function me(){this.types=[],this.files=[]}return me.prototype.update=function(G){G.types&&(this.types=[],Array.prototype.push.apply(this.types,G.types)),G.files&&(this.files=[],Array.prototype.push.apply(this.files,G.files),this.files=this.files.filter(function(oe){return oe.size||oe.type}))},me.prototype.getData=function(){return{types:this.types,files:this.files}},me}(),Z=e("JYp7"),ve=e("GJhM"),Ne=function(){function me(){this.heightMap=[],this.indexes={}}return me.prototype.getContentHeight=function(){var G=this.heightMap[this.heightMap.length-1];return G?G.top+G.height:0},me.prototype.onInsertItems=function(G,oe){oe===void 0&&(oe=null);var Y=null,ie,je,dt,Dt,Qt=0;if(oe===null)je=0,Dt=0;else{if(je=this.indexes[oe]+1,ie=this.heightMap[je-1],!ie){console.error("view item doesnt exist");return}Dt=ie.top+ie.height}for(var to=this.heightMap.splice.bind(this.heightMap,je,0),fo=[];Y=G.next();)ie=this.createViewItem(Y),ie.top=Dt+Qt,this.indexes[Y.id]=je++,fo.push(ie),Qt+=ie.height;for(to.apply(this.heightMap,fo),dt=je;dt<this.heightMap.length;dt++)ie=this.heightMap[dt],ie.top+=Qt,this.indexes[ie.model.id]=dt;for(dt=fo.length-1;dt>=0;dt--)this.onInsertItem(fo[dt]);for(dt=this.heightMap.length-1;dt>=je;dt--)this.onRefreshItem(this.heightMap[dt]);return Qt},me.prototype.onInsertItem=function(G){},me.prototype.onRemoveItems=function(G){for(var oe=null,Y,ie=null,je=0,dt=0;oe=G.next();){if(je=this.indexes[oe],Y=this.heightMap[je],!Y){console.error("view item doesnt exist");return}dt-=Y.height,delete this.indexes[oe],this.onRemoveItem(Y),ie===null&&(ie=je)}if(dt===0||ie===null)return;for(this.heightMap.splice(ie,je-ie+1),je=ie;je<this.heightMap.length;je++)Y=this.heightMap[je],Y.top+=dt,this.indexes[Y.model.id]=je,this.onRefreshItem(Y)},me.prototype.onRemoveItem=function(G){},me.prototype.onRefreshItemSet=function(G){var oe=this,Y=G.sort(function(ie,je){return oe.indexes[ie.id]-oe.indexes[je.id]});this.onRefreshItems(new Z.a(Y))},me.prototype.onRefreshItems=function(G){for(var oe=null,Y,ie,je,dt=null,Dt=0;oe=G.next();){for(je=this.indexes[oe.id];Dt!==0&&dt!==null&&dt<je;dt++)Y=this.heightMap[dt],Y.top+=Dt,this.onRefreshItem(Y);Y=this.heightMap[je],ie=oe.getHeight(),Y.top+=Dt,Dt+=ie-Y.height,Y.height=ie,this.onRefreshItem(Y,!0),dt=je+1}if(Dt!==0&&dt!==null)for(;dt<this.heightMap.length;dt++)Y=this.heightMap[dt],Y.top+=Dt,this.onRefreshItem(Y)},me.prototype.onRefreshItem=function(G,oe){oe===void 0&&(oe=!1)},me.prototype.indexAt=function(G){for(var oe=0,Y=this.heightMap.length,ie,je;oe<Y;)if(ie=Math.floor((oe+Y)/2),je=this.heightMap[ie],G<je.top)Y=ie;else if(G>=je.top+je.height){if(oe===ie)break;oe=ie}else return ie;return this.heightMap.length},me.prototype.indexAfter=function(G){return Math.min(this.indexAt(G)+1,this.heightMap.length)},me.prototype.itemAtIndex=function(G){return this.heightMap[G]},me.prototype.itemAfter=function(G){return this.heightMap[this.indexes[G.model.id]+1]||null},me.prototype.createViewItem=function(G){throw new Error("not implemented")},me.prototype.dispose=function(){this.heightMap=[],this.indexes={}},me}(),Xe=function(){var me=function(G,oe){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ie){Y.__proto__=ie}||function(Y,ie){for(var je in ie)ie.hasOwnProperty(je)&&(Y[je]=ie[je])},me(G,oe)};return function(G,oe){me(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}(),de=function(){function me(G,oe,Y){this._posx=G,this._posy=oe,this._target=Y}return me.prototype.preventDefault=function(){},me.prototype.stopPropagation=function(){},Object.defineProperty(me.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),me}(),ge=function(me){Xe(G,me);function G(oe){var Y=me.call(this,oe.posx,oe.posy,oe.target)||this;return Y.originalEvent=oe,Y}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(de),Ee=function(me){Xe(G,me);function G(oe,Y,ie){var je=me.call(this,oe,Y,ie.target)||this;return je.originalEvent=ie,je}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(de),Te=e("ZQ78"),Ce=e("X+cX"),fe=function(){var me=function(G,oe){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ie){Y.__proto__=ie}||function(Y,ie){for(var je in ie)ie.hasOwnProperty(je)&&(Y[je]=ie[je])},me(G,oe)};return function(G,oe){me(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}();function $(me){try{me.parentElement.removeChild(me)}catch(G){}}var S=function(){function me(G){this.context=G,this._cache={"":[]}}return me.prototype.alloc=function(G){var oe=this.cache(G).pop();if(!oe){var Y=document.createElement("div");Y.className="content";var ie=document.createElement("div");ie.appendChild(Y);var je=null;try{je=this.context.renderer.renderTemplate(this.context.tree,G,Y)}catch(dt){console.error("Tree usage error: exception while rendering template"),console.error(dt)}oe={element:ie,templateId:G,templateData:je}}return oe},me.prototype.release=function(G,oe){$(oe.element),this.cache(G).push(oe)},me.prototype.cache=function(G){return this._cache[G]||(this._cache[G]=[])},me.prototype.garbageCollect=function(){var G=this;this._cache&&Object.keys(this._cache).forEach(function(oe){G._cache[oe].forEach(function(Y){G.context.renderer.disposeTemplate(G.context.tree,oe,Y.templateData),Y.element=null,Y.templateData=null}),delete G._cache[oe]})},me.prototype.dispose=function(){this.garbageCollect(),this._cache=null},me}(),z=function(){function me(G,oe){var Y=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=R.a.None,this._draggable=!1,this.context=G,this.model=oe,this.id=this.model.id,this.row=null,this.top=0,this.height=oe.getHeight(),this._styles={},oe.getAllTraits().forEach(function(ie){return Y._styles[ie]=!0}),oe.isExpanded()&&this.addClass("expanded")}return Object.defineProperty(me.prototype,"expanded",{set:function(G){G?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"loading",{set:function(G){G?this.addClass("codicon-loading"):this.removeClass("codicon-loading")},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"draggable",{get:function(){return this._draggable},set:function(G){this._draggable=G,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"dropTarget",{set:function(G){G?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),me.prototype.addClass=function(G){this._styles[G]=!0,this.render(!0)},me.prototype.removeClass=function(G){delete this._styles[G],this.render(!0)},me.prototype.render=function(G){var oe=this;if(G===void 0&&(G=!1),!this.model||!this.element)return;var Y=["monaco-tree-row"];Y.push.apply(Y,Object.keys(this._styles)),this.model.hasChildren()&&Y.push("has-children"),this.element.className=Y.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var ie=this.context.accessibilityProvider,je=ie.getAriaLabel(this.context.tree,this.model.getElement());if(je&&this.element.setAttribute("aria-label",je),ie.getPosInSet&&ie.getSetSize&&(this.element.setAttribute("aria-setsize",ie.getSetSize()),this.element.setAttribute("aria-posinset",ie.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var dt=Fe.L(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",dt)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles.expanded)):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var Dt=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(Dt!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),Dt?(this.uri=Dt,this.draggable=!0,this.unbindDragStart=I.j(this.element,"dragstart",function(fo){oe.onDragStart(fo)})):this.uri=null),!G&&this.element){var Qt=0;if(this.context.horizontalScrolling){var to=window.getComputedStyle(this.element);Qt=parseFloat(to.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width=Pe.h?"-moz-fit-content":"fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(fo){console.error("Tree usage error: exception while rendering element"),console.error(fo)}this.context.horizontalScrolling&&(this.width=I.B(this.element)+Qt,this.element.style.width="")}},me.prototype.insertInDOM=function(G,oe){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[ye.BINDING]=this),this.element.parentElement)return;if(oe===null)G.appendChild(this.element);else try{G.insertBefore(this.element,oe)}catch(Y){console.warn("Failed to locate previous tree element"),G.appendChild(this.element)}this.render()},me.prototype.removeFromDOM=function(){if(!this.row)return;this.unbindDragStart.dispose(),this.uri=null,this.element[ye.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null},me.prototype.dispose=function(){this.row=null},me}(),ce=function(me){fe(G,me);function G(oe,Y,ie){var je=me.call(this,oe,Y)||this;return je.row={element:ie,templateData:null,templateId:null},je}return G.prototype.render=function(){if(!this.model||!this.element)return;var oe=["monaco-tree-wrapper"];oe.push.apply(oe,Object.keys(this._styles)),this.model.hasChildren()&&oe.push("has-children"),this.element.className=oe.join(" ")},G.prototype.insertInDOM=function(oe,Y){},G.prototype.removeFromDOM=function(){},G}(z);function se(me,G){return!me&&!G?!0:!me||!G||(me.accept!==G.accept||me.bubble!==G.bubble)?!1:!(me.effect!==G.effect)}var ye=function(me){fe(G,me);function G(oe,Y){var ie=me.call(this)||this;ie.model=null,ie.lastPointerType="",ie.lastClickTimeStamp=0,ie.contentWidthUpdateDelayer=new Ce.a(50),ie.isRefreshing=!1,ie.refreshingPreviousChildrenIds={},ie.currentDragAndDropData=null,ie.currentDropTarget=null,ie.currentDropTargets=null,ie.currentDropDisposable=R.a.None,ie.gestureDisposable=R.a.None,ie.dragAndDropScrollInterval=null,ie.dragAndDropScrollTimeout=null,ie.dragAndDropMouseY=null,ie.highlightedItemWasDraggable=!1,ie.onHiddenScrollTop=null,ie._onDOMFocus=new P.a,ie.onDOMFocus=ie._onDOMFocus.event,ie._onDOMBlur=new P.a,ie._onDidScroll=new P.a,G.counter++,ie.instance=G.counter;var je=typeof oe.options.horizontalScrollMode=="undefined"?2:oe.options.horizontalScrollMode;ie.horizontalScrolling=je!==2,ie.context={dataSource:oe.dataSource,renderer:oe.renderer,controller:oe.controller,dnd:oe.dnd,filter:oe.filter,sorter:oe.sorter,tree:oe.tree,accessibilityProvider:oe.accessibilityProvider,options:oe.options,cache:new S(oe),horizontalScrolling:ie.horizontalScrolling},ie.modelListeners=[],ie.viewListeners=[],ie.items={},ie.domNode=document.createElement("div"),ie.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+ie.instance,ie.domNode.tabIndex=oe.options.preventRootFocus?-1:0,ie.styleElement=I.w(ie.domNode),ie.treeStyler=oe.styler||new E(ie.styleElement,"monaco-tree-instance-"+ie.instance),ie.domNode.setAttribute("role","tree"),ie.context.options.ariaLabel&&ie.domNode.setAttribute("aria-label",ie.context.options.ariaLabel),ie.context.options.alwaysFocused&&I.f(ie.domNode,"focused"),ie.context.options.paddingOnRow||I.f(ie.domNode,"no-row-padding"),ie.wrapper=document.createElement("div"),ie.wrapper.className="monaco-tree-wrapper",ie.scrollableElement=new ve.b(ie.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:je,vertical:typeof oe.options.verticalScrollMode!="undefined"?oe.options.verticalScrollMode:1,useShadows:oe.options.useShadows}),ie.scrollableElement.onScroll(function(Dt){ie.render(Dt.scrollTop,Dt.height,Dt.scrollLeft,Dt.width,Dt.scrollWidth),ie._onDidScroll.fire()}),Pe.i?(ie.wrapper.style.msTouchAction="none",ie.wrapper.style.msContentZooming="none"):ie.gestureDisposable=Ke.b.addTarget(ie.wrapper),ie.rowsContainer=document.createElement("div"),ie.rowsContainer.className="monaco-tree-rows",oe.options.showTwistie&&(ie.rowsContainer.className+=" show-twisties");var dt=I.Z(ie.domNode);return ie.viewListeners.push(dt.onDidFocus(function(){return ie.onFocus()})),ie.viewListeners.push(dt.onDidBlur(function(){return ie.onBlur()})),ie.viewListeners.push(dt),ie.viewListeners.push(I.j(ie.domNode,"keydown",function(Dt){return ie.onKeyDown(Dt)})),ie.viewListeners.push(I.j(ie.domNode,"keyup",function(Dt){return ie.onKeyUp(Dt)})),ie.viewListeners.push(I.j(ie.domNode,"mousedown",function(Dt){return ie.onMouseDown(Dt)})),ie.viewListeners.push(I.j(ie.domNode,"mouseup",function(Dt){return ie.onMouseUp(Dt)})),ie.viewListeners.push(I.j(ie.wrapper,"auxclick",function(Dt){Dt&&Dt.button===1&&ie.onMouseMiddleClick(Dt)})),ie.viewListeners.push(I.j(ie.wrapper,"click",function(Dt){return ie.onClick(Dt)})),ie.viewListeners.push(I.j(ie.domNode,"contextmenu",function(Dt){return ie.onContextMenu(Dt)})),ie.viewListeners.push(I.j(ie.wrapper,Ke.a.Tap,function(Dt){return ie.onTap(Dt)})),ie.viewListeners.push(I.j(ie.wrapper,Ke.a.Change,function(Dt){return ie.onTouchChange(Dt)})),Pe.i&&(ie.viewListeners.push(I.j(ie.wrapper,"MSPointerDown",function(Dt){return ie.onMsPointerDown(Dt)})),ie.viewListeners.push(I.j(ie.wrapper,"MSGestureTap",function(Dt){return ie.onMsGestureTap(Dt)})),ie.viewListeners.push(I.m(ie.wrapper,"MSGestureChange",function(Dt){return ie.onThrottledMsGestureChange(Dt)},function(Dt,Qt){Qt.stopPropagation(),Qt.preventDefault();var to={translationY:Qt.translationY,translationX:Qt.translationX};return Dt&&(to.translationY+=Dt.translationY,to.translationX+=Dt.translationX),to}))),ie.viewListeners.push(I.j(window,"dragover",function(Dt){return ie.onDragOver(Dt)})),ie.viewListeners.push(I.j(ie.wrapper,"drop",function(Dt){return ie.onDrop(Dt)})),ie.viewListeners.push(I.j(window,"dragend",function(Dt){return ie.onDragEnd(Dt)})),ie.viewListeners.push(I.j(window,"dragleave",function(Dt){return ie.onDragOver(Dt)})),ie.wrapper.appendChild(ie.rowsContainer),ie.domNode.appendChild(ie.scrollableElement.getDomNode()),Y.appendChild(ie.domNode),ie.lastRenderTop=0,ie.lastRenderHeight=0,ie.didJustPressContextMenuKey=!1,ie.currentDropTarget=null,ie.currentDropTargets=[],ie.shouldInvalidateDropReaction=!1,ie.dragAndDropScrollInterval=null,ie.dragAndDropScrollTimeout=null,ie.onRowsChanged(),ie.layout(),ie.setupMSGesture(),ie.applyStyles(oe.options),ie}return G.prototype.applyStyles=function(oe){this.treeStyler.style(oe)},G.prototype.createViewItem=function(oe){return new z(this.context,oe)},G.prototype.getHTMLElement=function(){return this.domNode},G.prototype.focus=function(){this.domNode.focus()},G.prototype.isFocused=function(){return document.activeElement===this.domNode},G.prototype.blur=function(){this.domNode.blur()},G.prototype.setupMSGesture=function(){var oe=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout(function(){return oe.msGesture.target=oe.wrapper},100))},G.prototype.isTreeVisible=function(){return this.onHiddenScrollTop===null},G.prototype.layout=function(oe,Y){if(!this.isTreeVisible())return;this.viewHeight=oe||I.A(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=Y||I.B(this.wrapper))},G.prototype.render=function(oe,Y,ie,je,dt){var Dt,Qt,to=oe,fo=oe+Y,ho=this.lastRenderTop+this.lastRenderHeight;for(Dt=this.indexAfter(fo)-1,Qt=this.indexAt(Math.max(ho,to));Dt>=Qt;Dt--)this.insertItemInDOM(this.itemAtIndex(Dt));for(Dt=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(fo))-1,Qt=this.indexAt(to);Dt>=Qt;Dt--)this.insertItemInDOM(this.itemAtIndex(Dt));for(Dt=this.indexAt(this.lastRenderTop),Qt=Math.min(this.indexAt(to),this.indexAfter(ho));Dt<Qt;Dt++)this.removeItemFromDOM(this.itemAtIndex(Dt));for(Dt=Math.max(this.indexAfter(fo),this.indexAt(this.lastRenderTop)),Qt=this.indexAfter(ho);Dt<Qt;Dt++)this.removeItemFromDOM(this.itemAtIndex(Dt));var wo=this.itemAtIndex(this.indexAt(to));wo&&(this.rowsContainer.style.top=wo.top-to+"px"),this.horizontalScrolling&&(this.rowsContainer.style.left=-ie+"px",this.rowsContainer.style.width=Math.max(dt,je)+"px"),this.lastRenderTop=to,this.lastRenderHeight=fo-to},G.prototype.setModel=function(oe){this.releaseModel(),this.model=oe,this.model.onRefresh(this.onRefreshing,this,this.modelListeners),this.model.onDidRefresh(this.onRefreshed,this,this.modelListeners),this.model.onSetInput(this.onClearingInput,this,this.modelListeners),this.model.onDidSetInput(this.onSetInput,this,this.modelListeners),this.model.onDidFocus(this.onModelFocusChange,this,this.modelListeners),this.model.onRefreshItemChildren(this.onItemChildrenRefreshing,this,this.modelListeners),this.model.onDidRefreshItemChildren(this.onItemChildrenRefreshed,this,this.modelListeners),this.model.onDidRefreshItem(this.onItemRefresh,this,this.modelListeners),this.model.onExpandItem(this.onItemExpanding,this,this.modelListeners),this.model.onDidExpandItem(this.onItemExpanded,this,this.modelListeners),this.model.onCollapseItem(this.onItemCollapsing,this,this.modelListeners),this.model.onDidRevealItem(this.onItemReveal,this,this.modelListeners),this.model.onDidAddTraitItem(this.onItemAddTrait,this,this.modelListeners),this.model.onDidRemoveTraitItem(this.onItemRemoveTrait,this,this.modelListeners)},G.prototype.onRefreshing=function(){this.isRefreshing=!0},G.prototype.onRefreshed=function(){this.isRefreshing=!1,this.onRowsChanged()},G.prototype.onRowsChanged=function(oe){if(oe===void 0&&(oe=this.scrollTop),this.isRefreshing)return;this.scrollTop=oe,this.updateScrollWidth()},G.prototype.updateScrollWidth=function(){var oe=this;if(!this.horizontalScrolling)return;this.contentWidthUpdateDelayer.trigger(function(){for(var Y=Object.keys(oe.items),ie=0,je=0,dt=Y;je<dt.length;je++){var Dt=dt[je];ie=Math.max(ie,oe.items[Dt].width)}oe.scrollWidth=ie+10})},G.prototype.focusNextPage=function(oe){var Y=this,ie=this.indexAt(this.scrollTop+this.viewHeight);ie=ie===0?0:ie-1;var je=this.itemAtIndex(ie).model.getElement(),dt=this.model.getFocus();if(dt!==je)this.model.setFocus(je,oe);else{var Dt=this.scrollTop;this.scrollTop+=this.viewHeight,this.scrollTop!==Dt&&setTimeout(function(){Y.focusNextPage(oe)},0)}},G.prototype.focusPreviousPage=function(oe){var Y=this,ie;this.scrollTop===0?ie=this.indexAt(this.scrollTop):ie=this.indexAfter(this.scrollTop-1);var je=this.itemAtIndex(ie).model.getElement(),dt=this.model.getFocus();if(dt!==je)this.model.setFocus(je,oe);else{var Dt=this.scrollTop;this.scrollTop-=this.viewHeight,this.scrollTop!==Dt&&setTimeout(function(){Y.focusPreviousPage(oe)},0)}},Object.defineProperty(G.prototype,"viewHeight",{get:function(){var oe=this.scrollableElement.getScrollDimensions();return oe.height},set:function(oe){this.scrollableElement.setScrollDimensions({height:oe})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"scrollHeight",{set:function(oe){oe=oe+(this.horizontalScrolling?10:0),this.scrollableElement.setScrollDimensions({scrollHeight:oe})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"viewWidth",{get:function(){var oe=this.scrollableElement.getScrollDimensions();return oe.width},set:function(oe){this.scrollableElement.setScrollDimensions({width:oe})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"scrollWidth",{set:function(oe){this.scrollableElement.setScrollDimensions({scrollWidth:oe})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"scrollTop",{get:function(){var oe=this.scrollableElement.getScrollPosition();return oe.scrollTop},set:function(oe){var Y=this.getContentHeight()+(this.horizontalScrolling?10:0);this.scrollableElement.setScrollDimensions({scrollHeight:Y}),this.scrollableElement.setScrollPosition({scrollTop:oe})},enumerable:!0,configurable:!0}),G.prototype.onClearingInput=function(oe){var Y=oe.item;Y&&(this.onRemoveItems(new Z.e(Y.getNavigator(),function(ie){return ie&&ie.id})),this.onRowsChanged())},G.prototype.onSetInput=function(oe){this.context.cache.garbageCollect(),this.inputItem=new ce(this.context,oe.item,this.wrapper)},G.prototype.onItemChildrenRefreshing=function(oe){var Y=oe.item,ie=this.items[Y.id];if(ie&&this.context.options.showLoading&&(ie.loadingTimer=setTimeout(function(){ie.loadingTimer=0,ie.loading=!0},G.LOADING_DECORATION_DELAY)),!oe.isNested){for(var je=[],dt=Y.getNavigator(),Dt=void 0;Dt=dt.next();)je.push(Dt.id);this.refreshingPreviousChildrenIds[Y.id]=je}},G.prototype.onItemChildrenRefreshed=function(oe){var Y=this,ie=oe.item,je=this.items[ie.id];if(je&&(je.loadingTimer&&(clearTimeout(je.loadingTimer),je.loadingTimer=0),je.loading=!1),!oe.isNested){for(var dt=this.refreshingPreviousChildrenIds[ie.id],Dt=[],Qt=ie.getNavigator(),to=void 0;to=Qt.next();)Dt.push(to);var fo=Math.abs(dt.length-Dt.length)>1e3,ho=[],wo=!1;if(!fo){var Oo=new Be.a({getElements:function(){return dt}},{getElements:function(){return Dt.map(function(Ho){return Ho.id})}},null);ho=Oo.ComputeDiff(!1).changes,wo=ho.some(function(Ho){if(Ho.modifiedLength>0){for(var Fo=Ho.modifiedStart,Io=Ho.modifiedStart+Ho.modifiedLength;Fo<Io;Fo++)if(Y.items.hasOwnProperty(Dt[Fo].id))return!0}return!1})}if(!fo&&!wo&&ho.length<50)for(var Ro=0,jo=ho;Ro<jo.length;Ro++){var Eo=jo[Ro];if(Eo.originalLength>0&&this.onRemoveItems(new Z.a(dt,Eo.originalStart,Eo.originalStart+Eo.originalLength)),Eo.modifiedLength>0){var Wo=Dt[Eo.modifiedStart-1]||ie;Wo=Wo.getDepth()>0?Wo:null,this.onInsertItems(new Z.a(Dt,Eo.modifiedStart,Eo.modifiedStart+Eo.modifiedLength),Wo?Wo.id:null)}}else(fo||ho.length)&&(this.onRemoveItems(new Z.a(dt)),this.onInsertItems(new Z.a(Dt),ie.getDepth()>0?ie.id:null));(fo||ho.length)&&this.onRowsChanged()}},G.prototype.onItemRefresh=function(oe){this.onItemsRefresh([oe])},G.prototype.onItemsRefresh=function(oe){var Y=this;this.onRefreshItemSet(oe.filter(function(ie){return Y.items.hasOwnProperty(ie.id)})),this.onRowsChanged()},G.prototype.onItemExpanding=function(oe){var Y=this.items[oe.item.id];Y&&(Y.expanded=!0)},G.prototype.onItemExpanded=function(oe){var Y=oe.item,ie=this.items[Y.id];if(ie){ie.expanded=!0;var je=this.onInsertItems(Y.getNavigator(),Y.id)||0,dt=this.scrollTop;ie.top+ie.height<=this.scrollTop&&(dt+=je),this.onRowsChanged(dt)}},G.prototype.onItemCollapsing=function(oe){var Y=oe.item,ie=this.items[Y.id];ie&&(ie.expanded=!1,this.onRemoveItems(new Z.e(Y.getNavigator(),function(je){return je&&je.id})),this.onRowsChanged())},G.prototype.onItemReveal=function(oe){var Y=oe.item,ie=oe.relativeTop,je=this.items[Y.id];if(je)if(ie!==null){ie=ie<0?0:ie,ie=ie>1?1:ie;var dt=je.height-this.viewHeight;this.scrollTop=dt*ie+je.top}else{var Dt=je.top+je.height,Qt=this.scrollTop+this.viewHeight;je.top<this.scrollTop?this.scrollTop=je.top:Dt>=Qt&&(this.scrollTop=Dt-this.viewHeight)}},G.prototype.onItemAddTrait=function(oe){var Y=oe.item,ie=oe.trait,je=this.items[Y.id];je&&je.addClass(ie),ie==="highlighted"&&(I.f(this.domNode,ie),je&&(this.highlightedItemWasDraggable=!!je.draggable,je.draggable&&(je.draggable=!1)))},G.prototype.onItemRemoveTrait=function(oe){var Y=oe.item,ie=oe.trait,je=this.items[Y.id];je&&je.removeClass(ie),ie==="highlighted"&&(I.P(this.domNode,ie),this.highlightedItemWasDraggable&&(je.draggable=!0),this.highlightedItemWasDraggable=!1)},G.prototype.onModelFocusChange=function(){var oe=this.model&&this.model.getFocus();I.Y(this.domNode,"no-focused-item",!oe),oe?this.domNode.setAttribute("aria-activedescendant",Fe.L(this.context.dataSource.getId(this.context.tree,oe))):this.domNode.removeAttribute("aria-activedescendant")},G.prototype.onInsertItem=function(oe){var Y=this;oe.onDragStart=function(ie){Y.onDragStart(oe,ie)},oe.needsRender=!0,this.refreshViewItem(oe),this.items[oe.id]=oe},G.prototype.onRefreshItem=function(oe,Y){Y===void 0&&(Y=!1),oe.needsRender=oe.needsRender||Y,this.refreshViewItem(oe)},G.prototype.onRemoveItem=function(oe){this.removeItemFromDOM(oe),oe.dispose(),delete this.items[oe.id]},G.prototype.refreshViewItem=function(oe){oe.render(),this.shouldBeRendered(oe)?this.insertItemInDOM(oe):this.removeItemFromDOM(oe)},G.prototype.onClick=function(oe){if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new re.b(oe),ie=this.getItemAround(Y.target);if(!ie)return;Pe.i&&Date.now()-this.lastClickTimeStamp<300&&(Y.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,ie.model.getElement(),Y)},G.prototype.onMouseMiddleClick=function(oe){if(!this.context.controller.onMouseMiddleClick)return;var Y=new re.b(oe),ie=this.getItemAround(Y.target);if(!ie)return;this.context.controller.onMouseMiddleClick(this.context.tree,ie.model.getElement(),Y)},G.prototype.onMouseDown=function(oe){if(this.didJustPressContextMenuKey=!1,!this.context.controller.onMouseDown)return;if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new re.b(oe);if(Y.ctrlKey&&D.f&&D.e)return;var ie=this.getItemAround(Y.target);if(!ie)return;this.context.controller.onMouseDown(this.context.tree,ie.model.getElement(),Y)},G.prototype.onMouseUp=function(oe){if(!this.context.controller.onMouseUp)return;if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new re.b(oe);if(Y.ctrlKey&&D.f&&D.e)return;var ie=this.getItemAround(Y.target);if(!ie)return;this.context.controller.onMouseUp(this.context.tree,ie.model.getElement(),Y)},G.prototype.onTap=function(oe){var Y=this.getItemAround(oe.initialTarget);if(!Y)return;this.context.controller.onTap(this.context.tree,Y.model.getElement(),oe)},G.prototype.onTouchChange=function(oe){oe.preventDefault(),oe.stopPropagation(),this.scrollTop-=oe.translationY},G.prototype.onContextMenu=function(oe){var Y,ie;if(oe instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var je=new ee.a(oe);ie=this.model.getFocus();var dt=void 0;if(!ie)ie=this.model.getInput(),dt=I.C(this.inputItem.element);else{var Dt=this.context.dataSource.getId(this.context.tree,ie),Qt=this.items[Dt];dt=I.C(Qt.element)}Y=new Ee(dt.left+dt.width,dt.top,je)}else{var to=new re.b(oe),fo=this.getItemAround(to.target);if(!fo)return;ie=fo.model.getElement(),Y=new ge(to)}this.context.controller.onContextMenu(this.context.tree,ie,Y)},G.prototype.onKeyDown=function(oe){var Y=new ee.a(oe);if(this.didJustPressContextMenuKey=Y.keyCode===58||Y.shiftKey&&Y.keyCode===68,Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input")return;this.didJustPressContextMenuKey&&(Y.preventDefault(),Y.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,Y)},G.prototype.onKeyUp=function(oe){this.didJustPressContextMenuKey&&this.onContextMenu(oe),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new ee.a(oe))},G.prototype.onDragStart=function(oe,Y){if(this.model.getHighlight())return;var ie=oe.model.getElement(),je=this.model.getSelection(),dt;if(je.indexOf(ie)>-1?dt=je:dt=[ie],Y.dataTransfer.effectAllowed="copyMove",Y.dataTransfer.setData(Te.a.RESOURCES,JSON.stringify([oe.uri])),Y.dataTransfer.setDragImage){var Dt=void 0;this.context.dnd.getDragLabel?Dt=this.context.dnd.getDragLabel(this.context.tree,dt):Dt=String(dt.length);var Qt=document.createElement("div");Qt.className="monaco-tree-drag-image",Qt.textContent=Dt,document.body.appendChild(Qt),Y.dataTransfer.setDragImage(Qt,-10,-10),setTimeout(function(){return document.body.removeChild(Qt)},0)}this.currentDragAndDropData=new ne(dt),Te.c.CurrentDragAndDropData=new q(dt),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new re.a(Y))},G.prototype.setupDragAndDropScrollInterval=function(){var oe=this,Y=I.F(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(oe.dragAndDropMouseY===null)return;var ie=oe.dragAndDropMouseY-Y,je=0,dt=oe.viewHeight-35;ie<35?je=Math.max(-14,.2*(ie-35)):ie>dt&&(je=Math.min(14,.2*(ie-dt))),oe.scrollTop+=je},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){oe.cancelDragAndDropScrollInterval(),oe.dragAndDropScrollTimeout=null},1e3))},G.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},G.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},G.prototype.onDragOver=function(oe){var Y=this;oe.preventDefault();var ie=new re.a(oe),je=this.getItemAround(ie.target);if(!je||ie.posx===0&&ie.posy===0&&ie.browserEvent.type===I.d.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(Ro){return Ro.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=ie.posy,!this.currentDragAndDropData)if(Te.c.CurrentDragAndDropData)this.currentDragAndDropData=Te.c.CurrentDragAndDropData;else{if(!ie.dataTransfer.types)return!1;this.currentDragAndDropData=new le}this.currentDragAndDropData.update(ie.browserEvent.dataTransfer);var dt,Dt=je.model,Qt;do{if(dt=Dt?Dt.getElement():this.model.getInput(),Qt=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,dt,ie),!Qt||Qt.bubble!==1)break;Dt=Dt&&Dt.parent}while(Dt);if(!Dt)return this.currentDropElement=null,!1;var to=Qt&&Qt.accept;to?(this.currentDropElement=Dt.getElement(),ie.preventDefault(),ie.dataTransfer.dropEffect=Qt.effect===0?"copy":"move"):this.currentDropElement=null;var fo=Dt.id===this.inputItem.id?this.inputItem:this.items[Dt.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==fo||!se(this.currentDropElementReaction,Qt))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(Ro){return Ro.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=fo,this.currentDropElementReaction=Qt,to)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),Qt.bubble===0)for(var ho=Dt.getNavigator(),wo=void 0;wo=ho.next();)je=this.items[wo.id],je&&(je.dropTarget=!0,this.currentDropTargets.push(je));if(Qt.autoExpand){var Oo=Object(Ce.l)(500);this.currentDropDisposable=R.h(function(){return Oo.cancel()}),Oo.then(function(){return Y.context.tree.expand(Y.currentDropElement)}).then(function(){return Y.shouldInvalidateDropReaction=!0})}}return!0},G.prototype.onDrop=function(oe){if(this.currentDropElement){var Y=new re.a(oe);Y.preventDefault(),this.currentDragAndDropData.update(Y.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,Y),this.onDragEnd(oe)}this.cancelDragAndDropScrollInterval()},G.prototype.onDragEnd=function(oe){this.currentDropTarget&&(this.currentDropTargets.forEach(function(Y){return Y.dropTarget=!1}),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,Te.c.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},G.prototype.onFocus=function(){this.context.options.alwaysFocused||I.f(this.domNode,"focused"),this._onDOMFocus.fire()},G.prototype.onBlur=function(){this.context.options.alwaysFocused||I.P(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},G.prototype.onMsPointerDown=function(oe){if(!this.msGesture)return;var Y=oe.pointerType;if(Y===(oe.MSPOINTER_TYPE_MOUSE||"mouse")){this.lastPointerType="mouse";return}else if(Y===(oe.MSPOINTER_TYPE_TOUCH||"touch"))this.lastPointerType="touch";else return;oe.stopPropagation(),oe.preventDefault(),this.msGesture.addPointer(oe.pointerId)},G.prototype.onThrottledMsGestureChange=function(oe){this.scrollTop-=oe.translationY},G.prototype.onMsGestureTap=function(oe){oe.initialTarget=document.elementFromPoint(oe.clientX,oe.clientY),this.onTap(oe)},G.prototype.insertItemInDOM=function(oe){var Y=null,ie=this.itemAfter(oe);ie&&ie.element&&(Y=ie.element),oe.insertInDOM(this.rowsContainer,Y)},G.prototype.removeItemFromDOM=function(oe){if(!oe)return;oe.removeFromDOM()},G.prototype.shouldBeRendered=function(oe){return oe.top<this.lastRenderTop+this.lastRenderHeight&&oe.top+oe.height>this.lastRenderTop},G.prototype.getItemAround=function(oe){var Y=this.inputItem,ie=oe;do{if(ie[G.BINDING]&&(Y=ie[G.BINDING]),ie===this.wrapper||ie===this.domNode)return Y;if(ie===this.scrollableElement.getDomNode()||ie===document.body)return}while(ie=ie.parentElement);return},G.prototype.releaseModel=function(){this.model&&(this.modelListeners=R.f(this.modelListeners),this.model=null)},G.prototype.dispose=function(){var oe=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=R.f(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach(function(Y){return oe.items[Y].removeFromDOM()}),this.context.cache&&this.context.cache.dispose(),this.gestureDisposable.dispose(),me.prototype.dispose.call(this)},G.BINDING="monaco-tree-row",G.LOADING_DECORATION_DELAY=800,G.counter=0,G}(Ne),Re=e("zrhQ"),Le=e("qj0h"),Ue=function(){function me(G,oe,Y){if(Y===void 0&&(Y={}),this.tree=G,this.configuration=oe,this.options=Y,!oe.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=oe.dataSource,this.renderer=oe.renderer,this.controller=oe.controller||new d({clickBehavior:1,keyboardSupport:typeof Y.keyboardSupport!="boolean"||Y.keyboardSupport}),this.dnd=oe.dnd||new c,this.filter=oe.filter||new u,this.sorter=oe.sorter,this.accessibilityProvider=oe.accessibilityProvider||new f,this.styler=oe.styler}return me}(),Je={listFocusBackground:Re.a.fromHex("#073655"),listActiveSelectionBackground:Re.a.fromHex("#0E639C"),listActiveSelectionForeground:Re.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:Re.a.fromHex("#094771"),listFocusAndSelectionForeground:Re.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:Re.a.fromHex("#3F3F46"),listHoverBackground:Re.a.fromHex("#2A2D2E"),listDropBackground:Re.a.fromHex("#383B3D")},nt=function(){function me(G,oe,Y){Y===void 0&&(Y={}),this._onDidChangeFocus=new P.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new P.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new P.f,this._onDidExpandItem=new P.f,this._onDidCollapseItem=new P.f,this._onDispose=new P.a,this.onDidDispose=this._onDispose.event,this.container=G,Object(Le.g)(Y,Je,!1),Y.twistiePixels=typeof Y.twistiePixels=="number"?Y.twistiePixels:32,Y.showTwistie=!(Y.showTwistie===!1),Y.indentPixels=typeof Y.indentPixels=="number"?Y.indentPixels:12,Y.alwaysFocused=Y.alwaysFocused===!0,Y.useShadows=!(Y.useShadows===!1),Y.paddingOnRow=!(Y.paddingOnRow===!1),Y.showLoading=!(Y.showLoading===!1),this.context=new Ue(this,oe,Y),this.model=new Me(this.context),this.view=new ye(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return me.prototype.style=function(G){this.view.applyStyles(G)},Object.defineProperty(me.prototype,"onDidFocus",{get:function(){return this.view.onDOMFocus},enumerable:!0,configurable:!0}),me.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},me.prototype.layout=function(G,oe){this.view.layout(G,oe)},me.prototype.domFocus=function(){this.view.focus()},me.prototype.isDOMFocused=function(){return this.view.isFocused()},me.prototype.domBlur=function(){this.view.blur()},me.prototype.setInput=function(G){return this.model.setInput(G)},me.prototype.getInput=function(){return this.model.getInput()},me.prototype.expand=function(G){return this.model.expand(G)},me.prototype.collapse=function(G,oe){return oe===void 0&&(oe=!1),this.model.collapse(G,oe)},me.prototype.toggleExpansion=function(G,oe){return oe===void 0&&(oe=!1),this.model.toggleExpansion(G,oe)},me.prototype.isExpanded=function(G){return this.model.isExpanded(G)},me.prototype.reveal=function(G,oe){return oe===void 0&&(oe=null),this.model.reveal(G,oe)},me.prototype.getHighlight=function(){return this.model.getHighlight()},me.prototype.clearHighlight=function(G){this.model.setHighlight(null,G)},me.prototype.setSelection=function(G,oe){this.model.setSelection(G,oe)},me.prototype.getSelection=function(){return this.model.getSelection()},me.prototype.clearSelection=function(G){this.model.setSelection([],G)},me.prototype.setFocus=function(G,oe){this.model.setFocus(G,oe)},me.prototype.getFocus=function(){return this.model.getFocus()},me.prototype.focusNext=function(G,oe){this.model.focusNext(G,oe)},me.prototype.focusPrevious=function(G,oe){this.model.focusPrevious(G,oe)},me.prototype.focusParent=function(G){this.model.focusParent(G)},me.prototype.focusFirstChild=function(G){this.model.focusFirstChild(G)},me.prototype.focusFirst=function(G,oe){this.model.focusFirst(G,oe)},me.prototype.focusNth=function(G,oe){this.model.focusNth(G,oe)},me.prototype.focusLast=function(G,oe){this.model.focusLast(G,oe)},me.prototype.focusNextPage=function(G){this.view.focusNextPage(G)},me.prototype.focusPreviousPage=function(G){this.view.focusPreviousPage(G)},me.prototype.clearFocus=function(G){this.model.setFocus(null,G)},me.prototype.dispose=function(){this._onDispose.fire(),this.model.dispose(),this.view.dispose(),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},me}(),vt=e("HyZH"),Rt=function(){var me=function(G,oe){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ie){Y.__proto__=ie}||function(Y,ie){for(var je in ie)ie.hasOwnProperty(je)&&(Y[je]=ie[je])},me(G,oe)};return function(G,oe){me(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}(),Ot="done",Kt="active",ao="infinite",lo="discrete",so="monaco-progress-container",jt="progress-bit",pt={progressBarBackground:Re.a.fromHex("#0E70C0")},gt=function(me){Rt(G,me);function G(oe,Y){var ie=me.call(this)||this;return ie.options=Y||Object.create(null),Object(Le.g)(ie.options,pt,!1),ie.workedVal=0,ie.progressBarBackground=ie.options.progressBarBackground,ie._register(ie.showDelayedScheduler=new Ce.d(function(){return Object(I.X)(ie.element)},0)),ie.create(oe),ie}return G.prototype.create=function(oe){this.element=document.createElement("div"),Object(I.f)(this.element,so),oe.appendChild(this.element),this.bit=document.createElement("div"),Object(I.f)(this.bit,jt),this.element.appendChild(this.bit),this.applyStyles()},G.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(I.Q)(this.element,Kt,ao,lo),this.workedVal=0,this.totalWork=void 0},G.prototype.stop=function(){return this.doDone(!1)},G.prototype.doDone=function(oe){var Y=this;return Object(I.f)(this.element,Ot),Object(I.I)(this.element,ao)?(this.bit.style.opacity="0",oe?setTimeout(function(){return Y.off()},200):this.off()):(this.bit.style.width="inherit",oe?setTimeout(function(){return Y.off()},200):this.off()),this},G.prototype.hide=function(){Object(I.J)(this.element),this.showDelayedScheduler.cancel()},G.prototype.style=function(oe){this.progressBarBackground=oe.progressBarBackground,this.applyStyles()},G.prototype.applyStyles=function(){if(this.bit){var oe=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=oe}},G}(R.a),Tt=function(){var me=function(G,oe){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ie){Y.__proto__=ie}||function(Y,ie){for(var je in ie)ie.hasOwnProperty(je)&&(Y[je]=ie[je])},me(G,oe)};return function(G,oe){me(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}(),it=function(me){Tt(G,me);function G(){return me!==null&&me.apply(this,arguments)||this}return G.prototype.onContextMenu=function(oe,Y,ie){return D.e?this.onLeftClick(oe,Y,ie):me.prototype.onContextMenu.call(this,oe,Y,ie)},G}(d),et={background:Re.a.fromHex("#1E1E1E"),foreground:Re.a.fromHex("#CCCCCC"),pickerGroupForeground:Re.a.fromHex("#0097FB"),pickerGroupBorder:Re.a.fromHex("#3F3F46"),widgetShadow:Re.a.fromHex("#000000"),progressBarBackground:Re.a.fromHex("#0E70C0")},ut=K.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),Ct=function(me){Tt(G,me);function G(oe,Y,ie){var je=me.call(this)||this;return je.isDisposed=!1,je.container=oe,je.callbacks=Y,je.options=ie,je.styles=ie||Object.create(null),Object(Le.g)(je.styles,et,!1),je.model=null,je}return G.prototype.getModel=function(){return this.model},G.prototype.create=function(){var oe=this;this.element=document.createElement("div"),I.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(I.j(this.element,I.d.CONTEXT_MENU,function(ie){return I.c.stop(ie,!0)})),this._register(I.j(this.element,I.d.FOCUS,function(ie){return oe.gainingFocus()},!0)),this._register(I.j(this.element,I.d.BLUR,function(ie){return oe.loosingFocus(ie)},!0)),this._register(I.j(this.element,I.d.KEY_DOWN,function(ie){var je=new ee.a(ie);if(je.keyCode===9)I.c.stop(ie,!0),oe.hide(2);else if(je.keyCode===2&&!je.altKey&&!je.ctrlKey&&!je.metaKey){var dt=ie.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");je.shiftKey&&je.target===dt[0]?(I.c.stop(ie,!0),dt[dt.length-1].focus()):!je.shiftKey&&je.target===dt[dt.length-1]&&(I.c.stop(ie,!0),dt[0].focus())}})),this.progressBar=this._register(new gt(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),I.f(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new m.b(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:ut,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(I.j(this.inputBox.inputElement,I.d.INPUT,function(ie){return oe.onType()})),this._register(I.j(this.inputBox.inputElement,I.d.KEY_DOWN,function(ie){var je=new ee.a(ie),dt=oe.shouldOpenInBackground(je);if(je.keyCode===2)return;if(je.keyCode===18||je.keyCode===16||je.keyCode===12||je.keyCode===11)I.c.stop(ie,!0),oe.navigateInTree(je.keyCode,je.shiftKey),oe.inputBox.inputElement.selectionStart===oe.inputBox.inputElement.selectionEnd&&(oe.inputBox.inputElement.selectionStart=oe.inputBox.value.length);else if(je.keyCode===3||dt){I.c.stop(ie,!0);var Dt=oe.tree.getFocus();Dt&&oe.elementSelected(Dt,ie,dt?2:1)}})),this.resultCount=document.createElement("div"),I.f(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),I.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var Y=this.options.treeCreator||function(ie,je,dt){return new nt(ie,je,dt)};return this.tree=this._register(Y(this.treeContainer,{dataSource:new j(this),controller:new it({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new O(this,this.styles),filter:new b(this),accessibilityProvider:new h(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:K.a("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus(function(ie){oe.elementFocused(ie.focus,ie)})),this._register(this.tree.onDidChangeSelection(function(ie){if(ie.selection&&ie.selection.length>0){var je=ie.payload&&ie.payload.originalEvent instanceof re.b?ie.payload.originalEvent:void 0,dt=je?oe.shouldOpenInBackground(je):!1;oe.elementSelected(ie.selection[0],ie,dt?2:1)}})),this._register(I.j(this.treeContainer,I.d.KEY_DOWN,function(ie){var je=new ee.a(ie);if(!oe.quickNavigateConfiguration)return;if(je.keyCode===18||je.keyCode===16||je.keyCode===12||je.keyCode===11)I.c.stop(ie,!0),oe.navigateInTree(je.keyCode);else if(je.keyCode===3){I.c.stop(ie,!0);var dt=oe.tree.getFocus();dt&&oe.elementSelected(dt,ie)}})),this._register(I.j(this.treeContainer,I.d.KEY_UP,function(ie){var je=new ee.a(ie),dt=je.keyCode;if(!oe.quickNavigateConfiguration)return;var Dt=oe.quickNavigateConfiguration.keybindings,Qt=Dt.some(function(fo){var ho=fo.getParts(),wo=ho[0],Oo=ho[1];return Oo?!1:wo.shiftKey&&dt===4?!(je.ctrlKey||je.altKey||je.metaKey):wo.altKey&&dt===6||wo.ctrlKey&&dt===5?!0:!!(wo.metaKey&&dt===57)});if(Qt){var to=oe.tree.getFocus();to&&oe.elementSelected(to,ie)}})),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(I.j(this.treeContainer,I.d.KEY_DOWN,function(ie){var je=new ee.a(ie);if(oe.quickNavigateConfiguration)return;(je.keyCode===18||je.keyCode===16||je.keyCode===12||je.keyCode===11)&&(I.c.stop(ie,!0),oe.navigateInTree(je.keyCode,je.shiftKey),oe.treeElement.focus())})),this.element},G.prototype.style=function(oe){this.styles=oe,this.applyStyles()},G.prototype.applyStyles=function(){if(this.element){var oe=this.styles.foreground?this.styles.foreground.toString():"",Y=this.styles.background?this.styles.background.toString():"",ie=this.styles.borderColor?this.styles.borderColor.toString():"",je=this.styles.widgetShadow?this.styles.widgetShadow.toString():"";this.element.style.color=oe,this.element.style.backgroundColor=Y,this.element.style.borderColor=ie,this.element.style.borderWidth=ie?"1px":"",this.element.style.borderStyle=ie?"solid":"",this.element.style.boxShadow=je?"0 5px 8px "+je:""}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},G.prototype.shouldOpenInBackground=function(oe){if(oe instanceof ee.a){if(oe.keyCode!==17)return!1;if(oe.metaKey||oe.ctrlKey||oe.shiftKey||oe.altKey)return!1;var Y=this.inputBox.inputElement;return Y.selectionEnd===this.inputBox.value.length&&Y.selectionStart===Y.selectionEnd}return oe.middleButton},G.prototype.onType=function(){var oe=this.inputBox.value;this.helpText&&(oe?I.J(this.helpText):I.X(this.helpText)),this.callbacks.onType(oe)},G.prototype.navigateInTree=function(oe,Y){var ie=this.tree.getInput(),je=ie?ie.entries:[],dt=this.tree.getFocus();switch(oe){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:Y?this.tree.focusPrevious():this.tree.focusNext();break}var Dt=this.tree.getFocus();je.length>1&&dt===Dt&&(oe===16||oe===2&&Y?this.tree.focusLast():(oe===18||oe===2&&!Y)&&this.tree.focusFirst()),Dt=this.tree.getFocus(),Dt&&this.tree.reveal(Dt)},G.prototype.elementFocused=function(oe,Y){if(!oe||!this.isVisible())return;var ie=this.treeElement.getAttribute("aria-activedescendant");ie?this.inputElement.setAttribute("aria-activedescendant",ie):this.inputElement.removeAttribute("aria-activedescendant");var je={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(oe,0,je)},G.prototype.elementSelected=function(oe,Y,ie){var je=!0;if(this.isVisible()){var dt=ie||1,Dt={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};je=this.model.runner.run(oe,dt,Dt)}je&&this.hide(0)},G.prototype.extractKeyMods=function(oe){return{ctrlCmd:oe&&(oe.ctrlKey||oe.metaKey||oe.payload&&oe.payload.originalEvent&&(oe.payload.originalEvent.ctrlKey||oe.payload.originalEvent.metaKey)),alt:oe&&(oe.altKey||oe.payload&&oe.payload.originalEvent&&oe.payload.originalEvent.altKey)}},G.prototype.show=function(oe,Y){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=Y?Y.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(I.J(this.inputContainer),I.X(this.element),this.tree.domFocus()):(I.X(this.inputContainer),I.X(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||U.j(oe)?I.J(this.helpText):I.X(this.helpText)),U.j(oe)?this.doShowWithPrefix(oe):(Y&&Y.value&&this.restoreLastInput(Y.value),this.doShowWithInput(oe,Y&&Y.autoFocus?Y.autoFocus:{})),Y&&Y.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(Y.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},G.prototype.restoreLastInput=function(oe){this.inputBox.value=oe,this.inputBox.select(),this.callbacks.onType(oe)},G.prototype.doShowWithPrefix=function(oe){this.inputBox.value=oe,this.callbacks.onType(oe)},G.prototype.doShowWithInput=function(oe,Y){this.setInput(oe,Y)},G.prototype.setInputAndLayout=function(oe,Y){var ie=this;this.treeContainer.style.height=this.getHeight(oe)+"px",this.tree.setInput(null).then(function(){return ie.model=oe,ie.inputElement.setAttribute("aria-haspopup",String(oe&&oe.entries&&oe.entries.length>0)),ie.tree.setInput(oe)}).then(function(){ie.tree.layout();var je=oe?oe.entries.filter(function(dt){return ie.isElementVisible(oe,dt)}):[];ie.updateResultCount(je.length),je.length&&ie.autoFocus(oe,je,Y)})},G.prototype.isElementVisible=function(oe,Y){return oe.filter?oe.filter.isVisible(Y):!0},G.prototype.autoFocus=function(oe,Y,ie){if(ie===void 0&&(ie={}),ie.autoFocusPrefixMatch){for(var je=void 0,dt=void 0,Dt=ie.autoFocusPrefixMatch,Qt=Dt.toLowerCase(),to=0,fo=Y;to<fo.length;to++){var ho=fo[to],wo=oe.dataSource.getLabel(ho)||"";if(!je&&wo.indexOf(Dt)===0?je=ho:!dt&&wo.toLowerCase().indexOf(Qt)===0&&(dt=ho),je&&dt)break}var Oo=je||dt;if(Oo){this.tree.setFocus(Oo),this.tree.reveal(Oo,.5);return}}ie.autoFocusFirstEntry?(this.tree.focusFirst(),this.tree.reveal(this.tree.getFocus())):typeof ie.autoFocusIndex=="number"?Y.length>ie.autoFocusIndex&&(this.tree.focusNth(ie.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):ie.autoFocusSecondEntry?Y.length>1&&this.tree.focusNth(1):ie.autoFocusLastEntry&&(Y.length>1&&(this.tree.focusLast(),this.tree.reveal(this.tree.getFocus())))},G.prototype.getHeight=function(oe){var Y=this,ie=oe.renderer;if(!oe){var je=ie.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*je:0}var dt=0,Dt;this.layoutDimensions&&this.layoutDimensions.height&&(Dt=(this.layoutDimensions.height-50)*.4),(!Dt||Dt>G.MAX_ITEMS_HEIGHT)&&(Dt=G.MAX_ITEMS_HEIGHT);for(var Qt=oe.entries.filter(function(wo){return Y.isElementVisible(oe,wo)}),to=this.options.maxItemsToShow||Qt.length,fo=0;fo<to&&fo<Qt.length;fo++){var ho=ie.getHeight(Qt[fo]);if(dt+ho<=Dt)dt+=ho;else break}return dt},G.prototype.updateResultCount=function(oe){this.resultCount.textContent=K.a({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results",oe)},G.prototype.hide=function(oe){if(!this.isVisible())return;this.visible=!1,I.J(this.element),this.element.blur(),this.inputBox.value="",this.tree.setInput(null),this.inputElement.setAttribute("aria-haspopup","false"),this.treeContainer.style.height=(this.options.minItemsToShow?this.options.minItemsToShow*22:0)+"px",this.progressBar.stop().hide(),this.tree.isDOMFocused()?this.tree.domBlur():this.inputBox.hasFocus()&&this.inputBox.blur(),oe===0?this.callbacks.onOk():this.callbacks.onCancel(),this.callbacks.onHide&&this.callbacks.onHide(oe)},G.prototype.setInput=function(oe,Y,ie){if(!this.isVisible())return;this.getInput()&&this.onInputChanging(),this.setInputAndLayout(oe,Y),this.inputBox&&this.inputBox.setAriaLabel(ie||ut)},G.prototype.onInputChanging=function(){var oe=this;this.inputChangingTimeoutHandle&&(clearTimeout(this.inputChangingTimeoutHandle),this.inputChangingTimeoutHandle=null),I.f(this.element,"content-changing"),this.inputChangingTimeoutHandle=setTimeout(function(){I.P(oe.element,"content-changing")},500)},G.prototype.getInput=function(){return this.tree.getInput()},G.prototype.isVisible=function(){return this.visible},G.prototype.layout=function(oe){this.layoutDimensions=oe;var Y=Math.min(this.layoutDimensions.width*.62,G.MAX_WIDTH);this.element&&(this.element.style.width=Y+"px",this.element.style.marginLeft="-"+Y/2+"px",this.inputContainer.style.width=Y-12+"px")},G.prototype.gainingFocus=function(){this.isLoosingFocus=!1},G.prototype.loosingFocus=function(oe){var Y=this;if(!this.isVisible())return;var ie=oe.relatedTarget;if(!this.quickNavigateConfiguration&&I.K(ie,this.element))return;this.isLoosingFocus=!0,setTimeout(function(){if(!Y.isLoosingFocus||Y.isDisposed)return;var je=Y.callbacks.onFocusLost&&Y.callbacks.onFocusLost();je||Y.hide(1)},0)},G.prototype.dispose=function(){me.prototype.dispose.call(this),this.isDisposed=!0},G.MAX_WIDTH=600,G.MAX_ITEMS_HEIGHT=20*22,G}(R.a),ht=e("MD5Z"),Et=e("ptcw"),Yt=function(){function me(G,oe,Y,ie,je,dt){this.codeEditor=G,this.themeService=dt,this.visible=!1,this.domNode=document.createElement("div"),this.quickOpenWidget=new Ct(this.domNode,{onOk:oe,onCancel:Y,onType:ie},{inputPlaceHolder:void 0,inputAriaLabel:je.inputAriaLabel,keyboardSupport:!0}),this.styler=Object(Et.d)(this.quickOpenWidget,this.themeService,{pickerGroupForeground:ht.W}),this.quickOpenWidget.create(),this.codeEditor.addOverlayWidget(this)}return me.prototype.setInput=function(G,oe){this.quickOpenWidget.setInput(G,oe)},me.prototype.getId=function(){return me.ID},me.prototype.getDomNode=function(){return this.domNode},me.prototype.destroy=function(){this.codeEditor.removeOverlayWidget(this),this.quickOpenWidget.dispose(),this.styler.dispose()},me.prototype.show=function(G){this.visible=!0;var oe=this.codeEditor.getLayoutInfo();oe&&this.quickOpenWidget.layout(new I.b(oe.width,oe.height)),this.quickOpenWidget.show(G),this.codeEditor.layoutOverlayWidget(this)},me.prototype.getPosition=function(){return this.visible?{preference:2}:null},me.ID="editor.contrib.quickOpenEditorWidget",me}(),Nt=e("t9D7"),bt=function(){var me=function(G,oe){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ie){Y.__proto__=ie}||function(Y,ie){for(var je in ie)ie.hasOwnProperty(je)&&(Y[je]=ie[je])},me(G,oe)};return function(G,oe){me(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}(),$e=function(me,G,oe,Y){var ie=arguments.length,je=ie<3?G:Y===null?Y=Object.getOwnPropertyDescriptor(G,oe):Y,dt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(me,G,oe,Y);else for(var Dt=me.length-1;Dt>=0;Dt--)(dt=me[Dt])&&(je=(ie<3?dt(je):ie>3?dt(G,oe,je):dt(G,oe))||je);return ie>3&&je&&Object.defineProperty(G,oe,je),je},Ye=function(me,G){return function(oe,Y){G(oe,Y,me)}},Ve=function(){function me(G,oe){this.themeService=oe,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=G}return me.get=function(G){return G.getContribution(me.ID)},me.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},me.prototype.run=function(G){var oe=this;this.widget&&(this.widget.destroy(),this.widget=null);var Y=function(ie){oe.clearDecorations(),ie&&oe.lastKnownEditorSelection&&(oe.editor.setSelection(oe.lastKnownEditorSelection),oe.editor.revealRangeInCenterIfOutsideViewport(oe.lastKnownEditorSelection,0)),oe.lastKnownEditorSelection=null,(document.activeElement===document.body||!ie)&&oe.editor.focus()};this.widget=new Yt(this.editor,function(){return Y(!1)},function(){return Y(!0)},function(ie){oe.widget.setInput(G.getModel(ie),G.getAutoFocus(ie))},{inputAriaLabel:G.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},me.prototype.decorateLine=function(G,oe){var Y=[];this.rangeHighlightDecorationId&&(Y.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var ie=[{range:G,options:me._RANGE_HIGHLIGHT_DECORATION}],je=oe.deltaDecorations(Y,ie);this.rangeHighlightDecorationId=je[0]},me.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},me.ID="editor.controller.quickOpenController",me._RANGE_HIGHLIGHT_DECORATION=J.a.register({className:"rangeHighlight",isWholeLine:!0}),me=$e([Ye(1,Nt.c)],me),me}(),ze=function(me){bt(G,me);function G(oe,Y){var ie=me.call(this,Y)||this;return ie._inputAriaLabel=oe,ie}return G.prototype.getController=function(oe){return Ve.get(oe)},G.prototype._show=function(oe,Y){oe.run({inputAriaLabel:this._inputAriaLabel,getModel:function(ie){return Y.getModel(ie)},getAutoFocus:function(ie){return Y.getAutoFocus(ie)}})},G}(pe.b);Object(pe.h)(Ve.ID,Ve)},s7Km:function(Mt,F,e){"use strict";e.r(F),e.d(F,"MoveWordCommand",function(){return C}),e.d(F,"WordLeftCommand",function(){return w}),e.d(F,"WordRightCommand",function(){return v}),e.d(F,"CursorWordStartLeft",function(){return p}),e.d(F,"CursorWordEndLeft",function(){return d}),e.d(F,"CursorWordLeft",function(){return c}),e.d(F,"CursorWordStartLeftSelect",function(){return u}),e.d(F,"CursorWordEndLeftSelect",function(){return f}),e.d(F,"CursorWordLeftSelect",function(){return E}),e.d(F,"CursorWordAccessibilityLeft",function(){return L}),e.d(F,"CursorWordAccessibilityLeftSelect",function(){return R}),e.d(F,"CursorWordStartRight",function(){return P}),e.d(F,"CursorWordEndRight",function(){return x}),e.d(F,"CursorWordRight",function(){return Q}),e.d(F,"CursorWordStartRightSelect",function(){return V}),e.d(F,"CursorWordEndRightSelect",function(){return W}),e.d(F,"CursorWordRightSelect",function(){return B}),e.d(F,"CursorWordAccessibilityRight",function(){return ae}),e.d(F,"CursorWordAccessibilityRightSelect",function(){return we}),e.d(F,"DeleteWordCommand",function(){return Me}),e.d(F,"DeleteWordLeftCommand",function(){return Pe}),e.d(F,"DeleteWordRightCommand",function(){return Be}),e.d(F,"DeleteWordStartLeft",function(){return Ke}),e.d(F,"DeleteWordEndLeft",function(){return Fe}),e.d(F,"DeleteWordLeft",function(){return re}),e.d(F,"DeleteWordStartRight",function(){return ee}),e.d(F,"DeleteWordEndRight",function(){return ne}),e.d(F,"DeleteWordRight",function(){return q});var T=e("sswD"),pe=e("LCkn"),J=e("Ll0s"),I=e("1I1M"),H=e("5v8Y"),K=e("cGHE"),D=e("aokT"),U=e("gCVg"),j=e("wQH0"),h=e("R3nR"),b=e("T8No"),O=e("/UlZ"),m=function(){var le=function(Z,ve){return le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ne,Xe){Ne.__proto__=Xe}||function(Ne,Xe){for(var de in Xe)Xe.hasOwnProperty(de)&&(Ne[de]=Xe[de])},le(Z,ve)};return function(Z,ve){le(Z,ve);function Ne(){this.constructor=Z}Z.prototype=ve===null?Object.create(ve):(Ne.prototype=ve.prototype,new Ne)}}(),C=function(le){m(Z,le);function Z(ve){var Ne=le.call(this,ve)||this;return Ne._inSelectionMode=ve.inSelectionMode,Ne._wordNavigationType=ve.wordNavigationType,Ne}return Z.prototype.runEditorCommand=function(ve,Ne,Xe){var de=this;if(!Ne.hasModel())return;var ge=Object(H.a)(Ne.getOption(96)),Ee=Ne.getModel(),Te=Ne.getSelections(),Ce=Te.map(function($){var S=new K.a($.positionLineNumber,$.positionColumn),z=de._move(ge,Ee,S,de._wordNavigationType);return de._moveTo($,z,de._inSelectionMode)});if(Ne._getCursors().setStates("moveWordCommand",0,Ce.map(function($){return J.d.fromModelSelection($)})),Ce.length===1){var fe=new K.a(Ce[0].positionLineNumber,Ce[0].positionColumn);Ne.revealPosition(fe,0)}},Z.prototype._moveTo=function(ve,Ne,Xe){return Xe?new U.a(ve.selectionStartLineNumber,ve.selectionStartColumn,Ne.lineNumber,Ne.column):new U.a(Ne.lineNumber,Ne.column,Ne.lineNumber,Ne.column)},Z}(T.c),w=function(le){m(Z,le);function Z(){return le!==null&&le.apply(this,arguments)||this}return Z.prototype._move=function(ve,Ne,Xe,de){return I.a.moveWordLeft(ve,Ne,Xe,de)},Z}(C),v=function(le){m(Z,le);function Z(){return le!==null&&le.apply(this,arguments)||this}return Z.prototype._move=function(ve,Ne,Xe,de){return I.a.moveWordRight(ve,Ne,Xe,de)},Z}(C),p=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:j.a.textInputFocus,primary:2048|15,mac:{primary:512|15},weight:100}})||this}return Z}(w),d=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}return Z}(w),c=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}return Z}(w),u=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:j.a.textInputFocus,primary:2048|1024|15,mac:{primary:512|1024|15},weight:100}})||this}return Z}(w),f=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}return Z}(w),E=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}return Z}(w),L=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:b.a.and(j.a.textInputFocus,h.a),win:{primary:2048|15},weight:100+1}})||this}return Z.prototype._move=function(ve,Ne,Xe,de){return le.prototype._move.call(this,Object(H.a)(O.e.wordSeparators.defaultValue),Ne,Xe,de)},Z}(w),R=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:b.a.and(j.a.textInputFocus,h.a),win:{primary:2048|1024|15},weight:100+1}})||this}return Z.prototype._move=function(ve,Ne,Xe,de){return le.prototype._move.call(this,Object(H.a)(O.e.wordSeparators.defaultValue),Ne,Xe,de)},Z}(w),P=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}return Z}(v),x=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:j.a.textInputFocus,primary:2048|17,mac:{primary:512|17},weight:100}})||this}return Z}(v),Q=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}return Z}(v),V=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}return Z}(v),W=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:j.a.textInputFocus,primary:2048|1024|17,mac:{primary:512|1024|17},weight:100}})||this}return Z}(v),B=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}return Z}(v),ae=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:b.a.and(j.a.textInputFocus,h.a),win:{primary:2048|17},weight:100+1}})||this}return Z.prototype._move=function(ve,Ne,Xe,de){return le.prototype._move.call(this,Object(H.a)(O.e.wordSeparators.defaultValue),Ne,Xe,de)},Z}(v),we=function(le){m(Z,le);function Z(){return le.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:b.a.and(j.a.textInputFocus,h.a),win:{primary:2048|1024|17},weight:100+1}})||this}return Z.prototype._move=function(ve,Ne,Xe,de){return le.prototype._move.call(this,Object(H.a)(O.e.wordSeparators.defaultValue),Ne,Xe,de)},Z}(v),Me=function(le){m(Z,le);function Z(ve){var Ne=le.call(this,ve)||this;return Ne._whitespaceHeuristics=ve.whitespaceHeuristics,Ne._wordNavigationType=ve.wordNavigationType,Ne}return Z.prototype.runEditorCommand=function(ve,Ne,Xe){var de=this;if(!Ne.hasModel())return;var ge=Object(H.a)(Ne.getOption(96)),Ee=Ne.getModel(),Te=Ne.getSelections(),Ce=Te.map(function(fe){var $=de._delete(ge,Ee,fe,de._whitespaceHeuristics,de._wordNavigationType);return new pe.a($,"")});Ne.pushUndoStop(),Ne.executeCommands(this.id,Ce),Ne.pushUndoStop()},Z}(T.c),Pe=function(le){m(Z,le);function Z(){return le!==null&&le.apply(this,arguments)||this}return Z.prototype._delete=function(ve,Ne,Xe,de,ge){var Ee=I.a.deleteWordLeft(ve,Ne,Xe,de,ge);return Ee||new D.a(1,1,1,1)},Z}(Me),Be=function(le){m(Z,le);function Z(){return le!==null&&le.apply(this,arguments)||this}return Z.prototype._delete=function(ve,Ne,Xe,de,ge){var Ee=I.a.deleteWordRight(ve,Ne,Xe,de,ge);if(Ee)return Ee;var Te=Ne.getLineCount(),Ce=Ne.getLineMaxColumn(Te);return new D.a(Te,Ce,Te,Ce)},Z}(Me),Ke=function(le){m(Z,le);function Z(){return le.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:j.a.writable})||this}return Z}(Pe),Fe=function(le){m(Z,le);function Z(){return le.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:j.a.writable})||this}return Z}(Pe),re=function(le){m(Z,le);function Z(){return le.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:j.a.writable,kbOpts:{kbExpr:j.a.textInputFocus,primary:2048|1,mac:{primary:512|1},weight:100}})||this}return Z}(Pe),ee=function(le){m(Z,le);function Z(){return le.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:j.a.writable})||this}return Z}(Be),ne=function(le){m(Z,le);function Z(){return le.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:j.a.writable})||this}return Z}(Be),q=function(le){m(Z,le);function Z(){return le.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:j.a.writable,kbOpts:{kbExpr:j.a.textInputFocus,primary:2048|20,mac:{primary:512|20},weight:100}})||this}return Z}(Be);Object(T.g)(new p),Object(T.g)(new d),Object(T.g)(new c),Object(T.g)(new u),Object(T.g)(new f),Object(T.g)(new E),Object(T.g)(new P),Object(T.g)(new x),Object(T.g)(new Q),Object(T.g)(new V),Object(T.g)(new W),Object(T.g)(new B),Object(T.g)(new L),Object(T.g)(new R),Object(T.g)(new ae),Object(T.g)(new we),Object(T.g)(new Ke),Object(T.g)(new Fe),Object(T.g)(new re),Object(T.g)(new ee),Object(T.g)(new ne),Object(T.g)(new q)},sFUC:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("iuje");function pe(J){return J&&typeof J.getEditorType=="function"?J.getEditorType()===T.a.ICodeEditor:!1}},sM1p:function(Mt,F,e){"use strict";e.d(F,"a",function(){return I}),e.d(F,"b",function(){return H});var T=e("S3by"),pe=e("Cg/j"),J=T.a,I=Object(pe.c)("notificationService"),H=function(){function K(){}return K}()},sStQ:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return e.e(319).then(e.bind(null,"QKwv"))}})},scqD:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("Cg/j"),pe=Object(T.c)("themeService")},siPX:function(Mt,F,e){},snIX:function(Mt,F,e){"use strict";e.d(F,"a",function(){return K});var T=e("N0LK"),pe=e("LCkn"),J=e("Ll0s"),I=e("+Fos"),H=e("aokT"),K=function(){function D(){}return D.deleteRight=function(U,j,h,b){for(var O=[],m=U!==3,C=0,w=b.length;C<w;C++){var v=b[C],p=v;if(p.isEmpty()){var d=v.getPosition(),c=I.a.right(j,h,d.lineNumber,d.column);p=new H.a(c.lineNumber,c.column,d.lineNumber,d.column)}if(p.isEmpty()){O[C]=null;continue}p.startLineNumber!==p.endLineNumber&&(m=!0),O[C]=new pe.a(p,"")}return[m,O]},D._isAutoClosingPairDelete=function(U,j,h){if(U.autoClosingBrackets==="never"&&U.autoClosingQuotes==="never")return!1;for(var b=0,O=h.length;b<O;b++){var m=h[b],C=m.getPosition();if(!m.isEmpty())return!1;var w=j.getLineContent(C.lineNumber),v=w[C.column-2],p=U.autoClosingPairsOpen2.get(v);if(!p)return!1;if(Object(J.g)(v)){if(U.autoClosingQuotes==="never")return!1}else if(U.autoClosingBrackets==="never")return!1;for(var d=w[C.column-1],c=!1,u=0,f=p;u<f.length;u++){var E=f[u];E.open===v&&E.close===d&&(c=!0)}if(!c)return!1}return!0},D._runAutoClosingPairDelete=function(U,j,h){for(var b=[],O=0,m=h.length;O<m;O++){var C=h[O].getPosition(),w=new H.a(C.lineNumber,C.column-1,C.lineNumber,C.column+1);b[O]=new pe.a(w,"")}return[!0,b]},D.deleteLeft=function(U,j,h,b){if(this._isAutoClosingPairDelete(j,h,b))return this._runAutoClosingPairDelete(j,h,b);for(var O=[],m=U!==2,C=0,w=b.length;C<w;C++){var v=b[C],p=v;if(p.isEmpty()){var d=v.getPosition();if(j.useTabStops&&d.column>1){var c=h.getLineContent(d.lineNumber),u=T.q(c),f=u===-1?c.length+1:u+1;if(d.column<=f){var E=J.a.visibleColumnFromColumn2(j,h,d),L=J.a.prevIndentTabStop(E,j.indentSize),R=J.a.columnFromVisibleColumn2(j,h,d.lineNumber,L);p=new H.a(d.lineNumber,R,d.lineNumber,d.column)}else p=new H.a(d.lineNumber,d.column-1,d.lineNumber,d.column)}else{var P=I.a.left(j,h,d.lineNumber,d.column);p=new H.a(P.lineNumber,P.column,d.lineNumber,d.column)}}if(p.isEmpty()){O[C]=null;continue}p.startLineNumber!==p.endLineNumber&&(m=!0),O[C]=new pe.a(p,"")}return[m,O]},D.cut=function(U,j,h){for(var b=[],O=0,m=h.length;O<m;O++){var C=h[O];if(C.isEmpty())if(U.emptySelectionClipboard){var w=C.getPosition(),v=void 0,p=void 0,d=void 0,c=void 0;w.lineNumber<j.getLineCount()?(v=w.lineNumber,p=1,d=w.lineNumber+1,c=1):w.lineNumber>1?(v=w.lineNumber-1,p=j.getLineMaxColumn(w.lineNumber-1),d=w.lineNumber,c=j.getLineMaxColumn(w.lineNumber)):(v=w.lineNumber,p=1,d=w.lineNumber,c=j.getLineMaxColumn(w.lineNumber));var u=new H.a(v,p,d,c);u.isEmpty()?b[O]=null:b[O]=new pe.a(u,"")}else b[O]=null;else b[O]=new pe.a(C,"")}return new J.e(0,b,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},D}()},sswD:function(Mt,F,e){"use strict";e.d(F,"a",function(){return w}),e.d(F,"c",function(){return v}),e.d(F,"b",function(){return p}),e.d(F,"j",function(){return d}),e.d(F,"e",function(){return c}),e.d(F,"k",function(){return u}),e.d(F,"l",function(){return f}),e.d(F,"g",function(){return E}),e.d(F,"f",function(){return L}),e.d(F,"i",function(){return R}),e.d(F,"h",function(){return P}),e.d(F,"d",function(){return x});var T=e("/cxE"),pe=e("bY76"),J=e("Vxe3"),I=e("cGHE"),H=e("G2kB"),K=e("t49l"),D=e("fjLI"),U=e("nnTU"),j=e("T8No"),h=e("nrhi"),b=e("ic2d"),O=e("XXUj"),m=e("746U"),C=function(){var W=function(B,ae){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,Me){we.__proto__=Me}||function(we,Me){for(var Pe in Me)Me.hasOwnProperty(Pe)&&(we[Pe]=Me[Pe])},W(B,ae)};return function(B,ae){W(B,ae);function we(){this.constructor=B}B.prototype=ae===null?Object.create(ae):(we.prototype=ae.prototype,new we)}}(),w=function(){function W(B){this.id=B.id,this.precondition=B.precondition,this._kbOpts=B.kbOpts,this._menuOpts=B.menuOpts,this._description=B.description}return W.prototype.register=function(){var B=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var ae=this._kbOpts.kbExpr;this.precondition&&(ae?ae=j.a.and(ae,this.precondition):ae=this.precondition),h.a.registerCommandAndKeybindingRule({id:this.id,handler:function(we,Me){return B.runCommand(we,Me)},weight:this._kbOpts.weight,when:ae,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else U.a.registerCommand({id:this.id,handler:function(we,Me){return B.runCommand(we,Me)},description:this._description})},W.prototype._registerMenuItem=function(B){D.c.appendMenuItem(B.menuId,{group:B.group,command:{id:this.id,title:B.title},when:B.when,order:B.order})},W}(),v=function(W){C(B,W);function B(){return W!==null&&W.apply(this,arguments)||this}return B.bindToContribution=function(ae){return function(we){C(Me,we);function Me(Pe){var Be=we.call(this,Pe)||this;return Be._callback=Pe.handler,Be}return Me.prototype.runEditorCommand=function(Pe,Be,Ke){var Fe=ae(Be);Fe&&this._callback(ae(Be),Ke)},Me}(B)},B.prototype.runCommand=function(ae,we){var Me=this,Pe=ae.get(J.a),Be=Pe.getFocusedCodeEditor()||Pe.getActiveCodeEditor();return Be?Be.invokeWithinContext(function(Ke){var Fe=Ke.get(j.c);return Fe.contextMatchesRules(Object(m.n)(Me.precondition))?Me.runEditorCommand(Ke,Be,we):void 0}):void 0},B}(w),p=function(W){C(B,W);function B(ae){var we=W.call(this,B.convertOptions(ae))||this;return we.label=ae.label,we.alias=ae.alias,we}return B.convertOptions=function(ae){var we;Array.isArray(ae.menuOpts)?we=ae.menuOpts:ae.menuOpts?we=[ae.menuOpts]:we=[];function Me(Pe){return Pe.menuId||(Pe.menuId=7),Pe.title||(Pe.title=ae.label),Pe.when=j.a.and(ae.precondition,Pe.when),Pe}return Array.isArray(ae.contextMenuOpts)?we.push.apply(we,ae.contextMenuOpts.map(Me)):ae.contextMenuOpts&&we.push(Me(ae.contextMenuOpts)),ae.menuOpts=we,ae},B.prototype.runEditorCommand=function(ae,we,Me){return this.reportTelemetry(ae,we),this.run(ae,we,Me||{})},B.prototype.reportTelemetry=function(ae,we){ae.get(O.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},B}(v);function d(W,B){U.a.registerCommand(W,function(ae,we){return B(ae,we||{})})}function c(W,B){d(W,function(ae,we){var Me=we.resource,Pe=we.position;if(!(Me instanceof pe.a))throw Object(T.b)("resource");if(!I.a.isIPosition(Pe))throw Object(T.b)("position");var Be=ae.get(H.a).getModel(Me);if(Be){var Ke=I.a.lift(Pe);return B(Be,Ke,we)}return ae.get(K.a).createModelReference(Me).then(function(Fe){return new Promise(function(re,ee){try{var ne=B(Fe.object.textEditorModel,I.a.lift(Pe),we);re(ne)}catch(q){ee(q)}}).finally(function(){Fe.dispose()})})})}function u(W,B){U.a.registerCommand(W,function(ae){for(var we=[],Me=1;Me<arguments.length;Me++)we[Me-1]=arguments[Me];var Pe=we[0],Be=we[1];Object(m.a)(pe.a.isUri(Pe)),Object(m.a)(I.a.isIPosition(Be));var Ke=ae.get(H.a).getModel(Pe);if(Ke){var Fe=I.a.lift(Be);return B(Ke,Fe,we.slice(2))}return ae.get(K.a).createModelReference(Pe).then(function(re){return new Promise(function(ee,ne){try{var q=B(re.object.textEditorModel,I.a.lift(Be),we.slice(2));ee(q)}catch(le){ne(le)}}).finally(function(){re.dispose()})})})}function f(W,B){U.a.registerCommand(W,function(ae){for(var we=[],Me=1;Me<arguments.length;Me++)we[Me-1]=arguments[Me];var Pe=we[0];Object(m.a)(pe.a.isUri(Pe));var Be=ae.get(H.a).getModel(Pe);return Be?B(Be,we.slice(1)):ae.get(K.a).createModelReference(Pe).then(function(Ke){return new Promise(function(Fe,re){try{var ee=B(Ke.object.textEditorModel,we.slice(1));Fe(ee)}catch(ne){re(ne)}}).finally(function(){Ke.dispose()})})})}function E(W){return V.INSTANCE.registerEditorCommand(W),W}function L(W){V.INSTANCE.registerEditorAction(new W)}function R(W){V.INSTANCE.registerEditorAction(W)}function P(W,B){V.INSTANCE.registerEditorContribution(W,B)}var x;(function(W){function B(Be){return V.INSTANCE.getEditorCommand(Be)}W.getEditorCommand=B;function ae(){return V.INSTANCE.getEditorActions()}W.getEditorActions=ae;function we(){return V.INSTANCE.getEditorContributions()}W.getEditorContributions=we;function Me(Be){return V.INSTANCE.getEditorContributions().filter(function(Ke){return Be.indexOf(Ke.id)>=0})}W.getSomeEditorContributions=Me;function Pe(){return V.INSTANCE.getDiffEditorContributions()}W.getDiffEditorContributions=Pe})(x||(x={}));var Q={EditorCommonContributions:"editor.contributions"},V=function(){function W(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return W.prototype.registerEditorContribution=function(B,ae){this.editorContributions.push({id:B,ctor:ae})},W.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},W.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},W.prototype.registerEditorAction=function(B){B.register(),this.editorActions.push(B)},W.prototype.getEditorActions=function(){return this.editorActions.slice(0)},W.prototype.registerEditorCommand=function(B){B.register(),this.editorCommands[B.id]=B},W.prototype.getEditorCommand=function(B){return this.editorCommands[B]||null},W.INSTANCE=new W,W}();b.a.add(Q.EditorCommonContributions,V.INSTANCE)},synD:function(Mt,F,e){},t49l:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("Cg/j"),pe=Object(T.c)("textModelService")},t9D7:function(Mt,F,e){"use strict";e.d(F,"c",function(){return H}),e.d(F,"f",function(){return K}),e.d(F,"b",function(){return U}),e.d(F,"d",function(){return j}),e.d(F,"a",function(){return h}),e.d(F,"e",function(){return m});var T=e("Cg/j"),pe=e("pmY6"),J=e("ic2d"),I=e("MI8n"),H=Object(T.c)("themeService");function K(C){return{id:C}}var D="dark",U="hc";function j(C){switch(C){case D:return"vs-dark";case U:return"hc-black";default:return"vs"}}var h={ThemingContribution:"base.contributions.theming"},b=function(){function C(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new I.a}return C.prototype.onThemeChange=function(w){var v=this;return this.themingParticipants.push(w),this.onThemingParticipantAddedEmitter.fire(w),Object(pe.h)(function(){var p=v.themingParticipants.indexOf(w);v.themingParticipants.splice(p,1)})},C.prototype.getThemingParticipants=function(){return this.themingParticipants},C}(),O=new b;J.a.add(h.ThemingContribution,O);function m(C){return O.onThemeChange(C)}},tADe:function(Mt,F,e){"use strict";e.d(F,"c",function(){return I}),e.d(F,"a",function(){return H}),e.d(F,"b",function(){return K});var T=e("Cg/j"),pe=e("3/fG"),J=e("S3by"),I;(function(D){D[D.Hint=1]="Hint",D[D.Info=2]="Info",D[D.Warning=4]="Warning",D[D.Error=8]="Error"})(I||(I={})),function(D){function U(m,C){return C-m}D.compare=U;var j=Object.create(null);j[D.Error]=Object(pe.a)("sev.error","Error"),j[D.Warning]=Object(pe.a)("sev.warning","Warning"),j[D.Info]=Object(pe.a)("sev.info","Info");function h(m){return j[m]||""}D.toString=h;function b(m){switch(m){case J.a.Error:return D.Error;case J.a.Warning:return D.Warning;case J.a.Info:return D.Info;case J.a.Ignore:return D.Hint}}D.fromSeverity=b;function O(m){switch(m){case D.Error:return J.a.Error;case D.Warning:return J.a.Warning;case D.Info:return J.a.Info;case D.Hint:return J.a.Ignore}}D.toSeverity=O}(I||(I={}));var H;(function(D){var U="";function j(b){return h(b,!0)}D.makeKey=j;function h(b,O){var m=[U];return b.source?m.push(b.source.replace("\xA6","\xA6")):m.push(U),b.code?typeof b.code=="string"?m.push(b.code.replace("\xA6","\xA6")):m.push(b.code.value.replace("\xA6","\xA6")):m.push(U),b.severity!==void 0&&b.severity!==null?m.push(I.toString(b.severity)):m.push(U),b.message&&O?m.push(b.message.replace("\xA6","\xA6")):m.push(U),b.startLineNumber!==void 0&&b.startLineNumber!==null?m.push(b.startLineNumber.toString()):m.push(U),b.startColumn!==void 0&&b.startColumn!==null?m.push(b.startColumn.toString()):m.push(U),b.endLineNumber!==void 0&&b.endLineNumber!==null?m.push(b.endLineNumber.toString()):m.push(U),b.endColumn!==void 0&&b.endColumn!==null?m.push(b.endColumn.toString()):m.push(U),m.push(U),m.join("\xA6")}D.makeKeyOptionalMessage=h})(H||(H={}));var K=Object(T.c)("markerService")},tTk5:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("Cg/j"),pe=Object(T.c)("editorProgressService")},tX9W:function(Mt,F,e){"use strict";e.d(F,"b",function(){return Cn}),e.d(F,"a",function(){return Bo});var T=e("/cxE"),pe=e("MI8n"),J=e("pmY6"),I=e("N0LK"),H=e("bY76"),K=e("/UlZ"),D=e("cGHE"),U=e("aokT"),j=e("gCVg"),h=e("M1Kb"),b=function(){function be(_,A){this.beforeVersionId=_,this.beforeCursorState=A,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return be.prototype.undo=function(_){for(var A=this.editOperations.length-1;A>=0;A--)this.editOperations[A]={operations:_.applyEdits(this.editOperations[A].operations)}},be.prototype.redo=function(_){for(var A=0;A<this.editOperations.length;A++)this.editOperations[A]={operations:_.applyEdits(this.editOperations[A].operations)}},be}();function O(be){var _=be.getEOL();return _===`
`?0:1}var m=function(){function be(_,A){this.beforeVersionId=_,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=A}return be.prototype.undo=function(_){var A=O(_);_.setEOL(this.eol),this.eol=A},be.prototype.redo=function(_){var A=O(_);_.setEOL(this.eol),this.eol=A},be}(),C=function(){function be(_){this.model=_,this.currentOpenStackElement=null,this.past=[],this.future=[]}return be.prototype.pushStackElement=function(){this.currentOpenStackElement!==null&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},be.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},be.prototype.pushEOL=function(_){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var A=O(this.model),X=new m(this.model.getAlternativeVersionId(),A);this.model.setEOL(_),X.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=X,this.pushStackElement()},be.prototype.pushEditOperation=function(_,A,X){this.future=[];var De=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof b?De=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(De=new b(this.model.getAlternativeVersionId(),_),this.currentOpenStackElement=De);var xe={operations:this.model.applyEdits(A)};return De.editOperations.push(xe),De.afterCursorState=be._computeCursorState(X,xe.operations),De.afterVersionId=this.model.getVersionId(),De.afterCursorState},be._computeCursorState=function(_,A){try{return _?_(A):null}catch(X){return Object(T.e)(X),null}},be.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var _=this.past.pop();try{_.undo(this.model)}catch(A){return Object(T.e)(A),this.clear(),null}return this.future.push(_),{selections:_.beforeCursorState,recordedVersionId:_.beforeVersionId}}return null},be.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},be.prototype.redo=function(){if(this.future.length>0){var _=this.future.pop();try{_.redo(this.model)}catch(A){return Object(T.e)(A),this.clear(),null}return this.past.push(_),{selections:_.afterCursorState,recordedVersionId:_.afterVersionId}}return null},be.prototype.canRedo=function(){return this.future.length>0},be}(),w=function(){function be(){this.spacesDiff=0,this.looksLikeAlignment=!1}return be}();function v(be,_,A,X,De){De.spacesDiff=0,De.looksLikeAlignment=!1;var xe;for(xe=0;xe<_&&xe<X;xe++){var Ie=be.charCodeAt(xe),lt=A.charCodeAt(xe);if(Ie!==lt)break}for(var ft=0,At=0,Ft=xe;Ft<_;Ft++){var Ie=be.charCodeAt(Ft);Ie===32?ft++:At++}for(var Ut=0,Vt=0,Ft=xe;Ft<X;Ft++){var lt=A.charCodeAt(Ft);lt===32?Ut++:Vt++}if(ft>0&&At>0)return;if(Ut>0&&Vt>0)return;var oo=Math.abs(At-Vt),Zt=Math.abs(ft-Ut);if(oo===0){De.spacesDiff=Zt,Zt>0&&0<=Ut-1&&Ut-1<be.length&&Ut<A.length&&(A.charCodeAt(Ut)!==32&&be.charCodeAt(Ut-1)===32&&(be.charCodeAt(be.length-1)===44&&(De.looksLikeAlignment=!0)));return}if(Zt%oo===0){De.spacesDiff=Zt/oo;return}}function p(be,_,A){for(var X=Math.min(be.getLineCount(),1e4),De=0,xe=0,Ie="",lt=0,ft=[2,4,6,8,3,5,7],At=8,Ft=[0,0,0,0,0,0,0,0,0],Ut=new w,Vt=1;Vt<=X;Vt++){for(var oo=be.getLineLength(Vt),Zt=be.getLineContent(Vt),mo=oo<=65536,mt=!1,He=0,Oe=0,ot=0,xt=0,he=oo;xt<he;xt++){var M=mo?Zt.charCodeAt(xt):be.getLineCharCode(Vt,xt);if(M===9)ot++;else if(M===32)Oe++;else{mt=!0,He=xt;break}}if(!mt)continue;if(ot>0?De++:Oe>1&&xe++,v(Ie,lt,Zt,He,Ut),Ut.looksLikeAlignment&&!(A&&_===Ut.spacesDiff))continue;var ue=Ut.spacesDiff;ue<=At&&Ft[ue]++,Ie=Zt,lt=He}var We=A;De!==xe&&(We=De<xe);var Ze=_;if(We){var at=We?0:.1*X;ft.forEach(function(wt){var zt=Ft[wt];zt>at&&(at=zt,Ze=wt)}),Ze===4&&Ft[4]>0&&Ft[2]>0&&Ft[2]>=Ft[4]/2&&(Ze=2)}return{insertSpaces:We,tabSize:Ze}}function d(be){return(be.metadata&1)>>>0}function c(be,_){be.metadata=be.metadata&254|_<<0}function u(be){return(be.metadata&2)>>>1===1}function f(be,_){be.metadata=be.metadata&253|(_?1:0)<<1}function E(be){return(be.metadata&4)>>>2===1}function L(be,_){be.metadata=be.metadata&251|(_?1:0)<<2}function R(be){return(be.metadata&8)>>>3===1}function P(be,_){be.metadata=be.metadata&247|(_?1:0)<<3}function x(be){return(be.metadata&48)>>>4}function Q(be,_){be.metadata=be.metadata&207|_<<4}function V(be){return(be.metadata&64)>>>6===1}function W(be,_){be.metadata=be.metadata&191|(_?1:0)<<6}var B=function(){function be(_,A,X){this.metadata=0,this.parent=this,this.left=this,this.right=this,c(this,1),this.start=A,this.end=X,this.delta=0,this.maxEnd=X,this.id=_,this.ownerId=0,this.options=null,L(this,!1),Q(this,1),P(this,!1),W(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=A,this.cachedAbsoluteEnd=X,this.range=null,f(this,!1)}return be.prototype.reset=function(_,A,X,De){this.start=A,this.end=X,this.maxEnd=X,this.cachedVersionId=_,this.cachedAbsoluteStart=A,this.cachedAbsoluteEnd=X,this.range=De},be.prototype.setOptions=function(_){this.options=_;var A=this.options.className;L(this,A==="squiggly-error"||A==="squiggly-warning"||A==="squiggly-info"),Q(this,this.options.stickiness),P(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),W(this,this.options.collapseOnReplaceEdit)},be.prototype.setCachedOffsets=function(_,A,X){this.cachedVersionId!==X&&(this.range=null),this.cachedVersionId=X,this.cachedAbsoluteStart=_,this.cachedAbsoluteEnd=A},be.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},be}(),ae=new B(null,0,0);ae.parent=ae,ae.left=ae,ae.right=ae,c(ae,0);var we=function(){function be(){this.root=ae,this.requestNormalizeDelta=!1}return be.prototype.intervalSearch=function(_,A,X,De,xe){return this.root===ae?[]:q(this,_,A,X,De,xe)},be.prototype.search=function(_,A,X){return this.root===ae?[]:ne(this,_,A,X)},be.prototype.collectNodesFromOwner=function(_){return re(this,_)},be.prototype.collectNodesPostOrder=function(){return ee(this)},be.prototype.insert=function(_){le(this,_),this._normalizeDeltaIfNecessary()},be.prototype.delete=function(_){ve(this,_),this._normalizeDeltaIfNecessary()},be.prototype.resolveNode=function(_,A){for(var X=_,De=0;_!==this.root;)_===_.parent.right&&(De+=_.parent.delta),_=_.parent;var xe=X.start+De,Ie=X.end+De;X.setCachedOffsets(xe,Ie,A)},be.prototype.acceptReplace=function(_,A,X,De){for(var xe=Ke(this,_,_+A),Ie=0,lt=xe.length;Ie<lt;Ie++){var ft=xe[Ie];ve(this,ft)}this._normalizeDeltaIfNecessary(),Fe(this,_,_+A,X),this._normalizeDeltaIfNecessary();for(var Ie=0,lt=xe.length;Ie<lt;Ie++){var ft=xe[Ie];ft.start=ft.cachedAbsoluteStart,ft.end=ft.cachedAbsoluteEnd,Be(ft,_,_+A,X,De),ft.maxEnd=ft.end,le(this,ft)}this._normalizeDeltaIfNecessary()},be.prototype._normalizeDeltaIfNecessary=function(){if(!this.requestNormalizeDelta)return;this.requestNormalizeDelta=!1,Me(this)},be}();function Me(be){for(var _=be.root,A=0;_!==ae;){if(_.left!==ae&&!u(_.left)){_=_.left;continue}if(_.right!==ae&&!u(_.right)){A+=_.delta,_=_.right;continue}_.start=A+_.start,_.end=A+_.end,_.delta=0,Te(_),f(_,!0),f(_.left,!1),f(_.right,!1),_===_.parent.right&&(A-=_.parent.delta),_=_.parent}f(be.root,!1)}function Pe(be,_,A,X){return be<A?!0:be>A||X===1?!1:X===2?!0:_}function Be(be,_,A,X,De){var xe=x(be),Ie=xe===0||xe===2,lt=xe===1||xe===2,ft=A-_,At=X,Ft=Math.min(ft,At),Ut=be.start,Vt=!1,oo=be.end,Zt=!1;_<=Ut&&oo<=A&&V(be)&&(be.start=_,Vt=!0,be.end=_,Zt=!0);{var mo=De?1:ft>0?2:0;!Vt&&Pe(Ut,Ie,_,mo)&&(Vt=!0),!Zt&&Pe(oo,lt,_,mo)&&(Zt=!0)}if(Ft>0&&!De){var mo=ft>At?2:0;!Vt&&Pe(Ut,Ie,_+Ft,mo)&&(Vt=!0),!Zt&&Pe(oo,lt,_+Ft,mo)&&(Zt=!0)}{var mo=De?1:0;!Vt&&Pe(Ut,Ie,A,mo)&&(be.start=_+At,Vt=!0),!Zt&&Pe(oo,lt,A,mo)&&(be.end=_+At,Zt=!0)}var mt=At-ft;Vt||(be.start=Math.max(0,Ut+mt)),Zt||(be.end=Math.max(0,oo+mt)),be.start>be.end&&(be.end=be.start)}function Ke(be,_,A){for(var X=be.root,De=0,xe=0,Ie=0,lt=0,ft=[],At=0;X!==ae;){if(u(X)){f(X.left,!1),f(X.right,!1),X===X.parent.right&&(De-=X.parent.delta),X=X.parent;continue}if(!u(X.left)){if(xe=De+X.maxEnd,xe<_){f(X,!0);continue}if(X.left!==ae){X=X.left;continue}}if(Ie=De+X.start,Ie>A){f(X,!0);continue}if(lt=De+X.end,lt>=_&&(X.setCachedOffsets(Ie,lt,0),ft[At++]=X),f(X,!0),X.right!==ae&&!u(X.right)){De+=X.delta,X=X.right;continue}}return f(be.root,!1),ft}function Fe(be,_,A,X){for(var De=be.root,xe=0,Ie=0,lt=0,ft=X-(A-_);De!==ae;){if(u(De)){f(De.left,!1),f(De.right,!1),De===De.parent.right&&(xe-=De.parent.delta),Te(De),De=De.parent;continue}if(!u(De.left)){if(Ie=xe+De.maxEnd,Ie<_){f(De,!0);continue}if(De.left!==ae){De=De.left;continue}}if(lt=xe+De.start,lt>A){De.start+=ft,De.end+=ft,De.delta+=ft,(De.delta<-1073741824||De.delta>1073741824)&&(be.requestNormalizeDelta=!0),f(De,!0);continue}if(f(De,!0),De.right!==ae&&!u(De.right)){xe+=De.delta,De=De.right;continue}}f(be.root,!1)}function re(be,_){for(var A=be.root,X=[],De=0;A!==ae;){if(u(A)){f(A.left,!1),f(A.right,!1),A=A.parent;continue}if(A.left!==ae&&!u(A.left)){A=A.left;continue}if(A.ownerId===_&&(X[De++]=A),f(A,!0),A.right!==ae&&!u(A.right)){A=A.right;continue}}return f(be.root,!1),X}function ee(be){for(var _=be.root,A=[],X=0;_!==ae;){if(u(_)){f(_.left,!1),f(_.right,!1),_=_.parent;continue}if(_.left!==ae&&!u(_.left)){_=_.left;continue}if(_.right!==ae&&!u(_.right)){_=_.right;continue}A[X++]=_,f(_,!0)}return f(be.root,!1),A}function ne(be,_,A,X){for(var De=be.root,xe=0,Ie=0,lt=0,ft=[],At=0;De!==ae;){if(u(De)){f(De.left,!1),f(De.right,!1),De===De.parent.right&&(xe-=De.parent.delta),De=De.parent;continue}if(De.left!==ae&&!u(De.left)){De=De.left;continue}Ie=xe+De.start,lt=xe+De.end,De.setCachedOffsets(Ie,lt,X);var Ft=!0;if(_&&De.ownerId&&De.ownerId!==_&&(Ft=!1),A&&E(De)&&(Ft=!1),Ft&&(ft[At++]=De),f(De,!0),De.right!==ae&&!u(De.right)){xe+=De.delta,De=De.right;continue}}return f(be.root,!1),ft}function q(be,_,A,X,De,xe){for(var Ie=be.root,lt=0,ft=0,At=0,Ft=0,Ut=[],Vt=0;Ie!==ae;){if(u(Ie)){f(Ie.left,!1),f(Ie.right,!1),Ie===Ie.parent.right&&(lt-=Ie.parent.delta),Ie=Ie.parent;continue}if(!u(Ie.left)){if(ft=lt+Ie.maxEnd,ft<_){f(Ie,!0);continue}if(Ie.left!==ae){Ie=Ie.left;continue}}if(At=lt+Ie.start,At>A){f(Ie,!0);continue}if(Ft=lt+Ie.end,Ft>=_){Ie.setCachedOffsets(At,Ft,xe);var oo=!0;X&&Ie.ownerId&&Ie.ownerId!==X&&(oo=!1),De&&E(Ie)&&(oo=!1),oo&&(Ut[Vt++]=Ie)}if(f(Ie,!0),Ie.right!==ae&&!u(Ie.right)){lt+=Ie.delta,Ie=Ie.right;continue}}return f(be.root,!1),Ut}function le(be,_){if(be.root===ae)return _.parent=ae,_.left=ae,_.right=ae,c(_,0),be.root=_,be.root;Z(be,_),Ce(_.parent);for(var A=_;A!==be.root&&d(A.parent)===1;)if(A.parent===A.parent.parent.left){var X=A.parent.parent.right;d(X)===1?(c(A.parent,0),c(X,0),c(A.parent.parent,1),A=A.parent.parent):(A===A.parent.right&&(A=A.parent,de(be,A)),c(A.parent,0),c(A.parent.parent,1),ge(be,A.parent.parent))}else{var X=A.parent.parent.left;d(X)===1?(c(A.parent,0),c(X,0),c(A.parent.parent,1),A=A.parent.parent):(A===A.parent.left&&(A=A.parent,ge(be,A)),c(A.parent,0),c(A.parent.parent,1),de(be,A.parent.parent))}return c(be.root,0),_}function Z(be,_){for(var A=0,X=be.root,De=_.start,xe=_.end;;){var Ie=fe(De,xe,X.start+A,X.end+A);if(Ie<0)if(X.left===ae){_.start-=A,_.end-=A,_.maxEnd-=A,X.left=_;break}else X=X.left;else if(X.right===ae){_.start-=A+X.delta,_.end-=A+X.delta,_.maxEnd-=A+X.delta,X.right=_;break}else A+=X.delta,X=X.right}_.parent=X,_.left=ae,_.right=ae,c(_,1)}function ve(be,_){var A,X;if(_.left===ae?(A=_.right,X=_,A.delta+=_.delta,(A.delta<-1073741824||A.delta>1073741824)&&(be.requestNormalizeDelta=!0),A.start+=_.delta,A.end+=_.delta):_.right===ae?(A=_.left,X=_):(X=Ne(_.right),A=X.right,A.start+=X.delta,A.end+=X.delta,A.delta+=X.delta,(A.delta<-1073741824||A.delta>1073741824)&&(be.requestNormalizeDelta=!0),X.start+=_.delta,X.end+=_.delta,X.delta=_.delta,(X.delta<-1073741824||X.delta>1073741824)&&(be.requestNormalizeDelta=!0)),X===be.root){be.root=A,c(A,0),_.detach(),Xe(),Te(A),be.root.parent=ae;return}var De=d(X)===1;if(X===X.parent.left?X.parent.left=A:X.parent.right=A,X===_?A.parent=X.parent:(X.parent===_?A.parent=X:A.parent=X.parent,X.left=_.left,X.right=_.right,X.parent=_.parent,c(X,d(_)),_===be.root?be.root=X:_===_.parent.left?_.parent.left=X:_.parent.right=X,X.left!==ae&&(X.left.parent=X),X.right!==ae&&(X.right.parent=X)),_.detach(),De){Ce(A.parent),X!==_&&(Ce(X),Ce(X.parent)),Xe();return}Ce(A),Ce(A.parent),X!==_&&(Ce(X),Ce(X.parent));for(var xe;A!==be.root&&d(A)===0;)A===A.parent.left?(xe=A.parent.right,d(xe)===1&&(c(xe,0),c(A.parent,1),de(be,A.parent),xe=A.parent.right),d(xe.left)===0&&d(xe.right)===0?(c(xe,1),A=A.parent):(d(xe.right)===0&&(c(xe.left,0),c(xe,1),ge(be,xe),xe=A.parent.right),c(xe,d(A.parent)),c(A.parent,0),c(xe.right,0),de(be,A.parent),A=be.root)):(xe=A.parent.left,d(xe)===1&&(c(xe,0),c(A.parent,1),ge(be,A.parent),xe=A.parent.left),d(xe.left)===0&&d(xe.right)===0?(c(xe,1),A=A.parent):(d(xe.left)===0&&(c(xe.right,0),c(xe,1),de(be,xe),xe=A.parent.left),c(xe,d(A.parent)),c(A.parent,0),c(xe.left,0),ge(be,A.parent),A=be.root));c(A,0),Xe()}function Ne(be){for(;be.left!==ae;)be=be.left;return be}function Xe(){ae.parent=ae,ae.delta=0,ae.start=0,ae.end=0}function de(be,_){var A=_.right;A.delta+=_.delta,(A.delta<-1073741824||A.delta>1073741824)&&(be.requestNormalizeDelta=!0),A.start+=_.delta,A.end+=_.delta,_.right=A.left,A.left!==ae&&(A.left.parent=_),A.parent=_.parent,_.parent===ae?be.root=A:_===_.parent.left?_.parent.left=A:_.parent.right=A,A.left=_,_.parent=A,Te(_),Te(A)}function ge(be,_){var A=_.left;_.delta-=A.delta,(_.delta<-1073741824||_.delta>1073741824)&&(be.requestNormalizeDelta=!0),_.start-=A.delta,_.end-=A.delta,_.left=A.right,A.right!==ae&&(A.right.parent=_),A.parent=_.parent,_.parent===ae?be.root=A:_===_.parent.right?_.parent.right=A:_.parent.left=A,A.right=_,_.parent=A,Te(_),Te(A)}function Ee(be){var _=be.end;if(be.left!==ae){var A=be.left.maxEnd;A>_&&(_=A)}if(be.right!==ae){var X=be.right.maxEnd+be.delta;X>_&&(_=X)}return _}function Te(be){be.maxEnd=Ee(be)}function Ce(be){for(;be!==ae;){var _=Ee(be);if(be.maxEnd===_)return;be.maxEnd=_,be=be.parent}}function fe(be,_,A,X){return be===A?_-X:be-A}var $=function(){function be(_,A){this.piece=_,this.color=A,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return be.prototype.next=function(){if(this.right!==S)return z(this.right);for(var _=this;_.parent!==S&&!(_.parent.left===_);)_=_.parent;return _.parent===S?S:_.parent},be.prototype.prev=function(){if(this.left!==S)return ce(this.left);for(var _=this;_.parent!==S&&!(_.parent.right===_);)_=_.parent;return _.parent===S?S:_.parent},be.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},be}(),S=new $(null,0);S.parent=S,S.left=S,S.right=S,S.color=0;function z(be){for(;be.left!==S;)be=be.left;return be}function ce(be){for(;be.right!==S;)be=be.right;return be}function se(be){return be===S?0:be.size_left+be.piece.length+se(be.right)}function ye(be){return be===S?0:be.lf_left+be.piece.lineFeedCnt+ye(be.right)}function Re(){S.parent=S}function Le(be,_){var A=_.right;A.size_left+=_.size_left+(_.piece?_.piece.length:0),A.lf_left+=_.lf_left+(_.piece?_.piece.lineFeedCnt:0),_.right=A.left,A.left!==S&&(A.left.parent=_),A.parent=_.parent,_.parent===S?be.root=A:_.parent.left===_?_.parent.left=A:_.parent.right=A,A.left=_,_.parent=A}function Ue(be,_){var A=_.left;_.left=A.right,A.right!==S&&(A.right.parent=_),A.parent=_.parent,_.size_left-=A.size_left+(A.piece?A.piece.length:0),_.lf_left-=A.lf_left+(A.piece?A.piece.lineFeedCnt:0),_.parent===S?be.root=A:_===_.parent.right?_.parent.right=A:_.parent.left=A,A.right=_,_.parent=A}function Je(be,_){var A,X;if(_.left===S?(X=_,A=X.right):_.right===S?(X=_,A=X.left):(X=z(_.right),A=X.right),X===be.root){be.root=A,A.color=0,_.detach(),Re(),be.root.parent=S;return}var De=X.color===1;if(X===X.parent.left?X.parent.left=A:X.parent.right=A,X===_?(A.parent=X.parent,Rt(be,A)):(X.parent===_?A.parent=X:A.parent=X.parent,Rt(be,A),X.left=_.left,X.right=_.right,X.parent=_.parent,X.color=_.color,_===be.root?be.root=X:_===_.parent.left?_.parent.left=X:_.parent.right=X,X.left!==S&&(X.left.parent=X),X.right!==S&&(X.right.parent=X),X.size_left=_.size_left,X.lf_left=_.lf_left,Rt(be,X)),_.detach(),A.parent.left===A){var xe=se(A),Ie=ye(A);if(xe!==A.parent.size_left||Ie!==A.parent.lf_left){var lt=xe-A.parent.size_left,ft=Ie-A.parent.lf_left;A.parent.size_left=xe,A.parent.lf_left=Ie,vt(be,A.parent,lt,ft)}}if(Rt(be,A.parent),De){Re();return}for(var At;A!==be.root&&A.color===0;)A===A.parent.left?(At=A.parent.right,At.color===1&&(At.color=0,A.parent.color=1,Le(be,A.parent),At=A.parent.right),At.left.color===0&&At.right.color===0?(At.color=1,A=A.parent):(At.right.color===0&&(At.left.color=0,At.color=1,Ue(be,At),At=A.parent.right),At.color=A.parent.color,A.parent.color=0,At.right.color=0,Le(be,A.parent),A=be.root)):(At=A.parent.left,At.color===1&&(At.color=0,A.parent.color=1,Ue(be,A.parent),At=A.parent.left),At.left.color===0&&At.right.color===0?(At.color=1,A=A.parent):(At.left.color===0&&(At.right.color=0,At.color=1,Le(be,At),At=A.parent.left),At.color=A.parent.color,A.parent.color=0,At.left.color=0,Ue(be,A.parent),A=be.root));A.color=0,Re()}function nt(be,_){for(Rt(be,_);_!==be.root&&_.parent.color===1;)if(_.parent===_.parent.parent.left){var A=_.parent.parent.right;A.color===1?(_.parent.color=0,A.color=0,_.parent.parent.color=1,_=_.parent.parent):(_===_.parent.right&&(_=_.parent,Le(be,_)),_.parent.color=0,_.parent.parent.color=1,Ue(be,_.parent.parent))}else{var A=_.parent.parent.left;A.color===1?(_.parent.color=0,A.color=0,_.parent.parent.color=1,_=_.parent.parent):(_===_.parent.left&&(_=_.parent,Ue(be,_)),_.parent.color=0,_.parent.parent.color=1,Le(be,_.parent.parent))}be.root.color=0}function vt(be,_,A,X){for(;_!==be.root&&_!==S;)_.parent.left===_&&(_.parent.size_left+=A,_.parent.lf_left+=X),_=_.parent}function Rt(be,_){var A=0,X=0;if(_===be.root)return;if(A===0){for(;_!==be.root&&_===_.parent.right;)_=_.parent;if(_===be.root)return;_=_.parent,A=se(_.left)-_.size_left,X=ye(_.left)-_.lf_left,_.size_left+=A,_.lf_left+=X}for(;_!==be.root&&(A!==0||X!==0);)_.parent.left===_&&(_.parent.size_left+=A,_.parent.lf_left+=X),_=_.parent}var Ot=e("jAJ/"),Kt=65535;function ao(be){var _;return be[be.length-1]<65536?_=new Uint16Array(be.length):_=new Uint32Array(be.length),_.set(be,0),_}var lo=function(){function be(_,A,X,De,xe){this.lineStarts=_,this.cr=A,this.lf=X,this.crlf=De,this.isBasicASCII=xe}return be}();function so(be,_){_===void 0&&(_=!0);for(var A=[0],X=1,De=0,xe=be.length;De<xe;De++){var Ie=be.charCodeAt(De);Ie===13?De+1<xe&&be.charCodeAt(De+1)===10?(A[X++]=De+2,De++):A[X++]=De+1:Ie===10&&(A[X++]=De+1)}return _?ao(A):A}function jt(be,_){be.length=0,be[0]=0;for(var A=1,X=0,De=0,xe=0,Ie=!0,lt=0,ft=_.length;lt<ft;lt++){var At=_.charCodeAt(lt);At===13?lt+1<ft&&_.charCodeAt(lt+1)===10?(xe++,be[A++]=lt+2,lt++):(X++,be[A++]=lt+1):At===10?(De++,be[A++]=lt+1):Ie&&(At!==9&&(At<32||At>126)&&(Ie=!1))}var Ft=new lo(ao(be),X,De,xe,Ie);return be.length=0,Ft}var pt=function(){function be(_,A,X,De,xe){this.bufferIndex=_,this.start=A,this.end=X,this.lineFeedCnt=De,this.length=xe}return be}(),gt=function(){function be(_,A){this.buffer=_,this.lineStarts=A}return be}(),Tt=function(){function be(_){this._limit=_,this._cache=[]}return be.prototype.get=function(_){for(var A=this._cache.length-1;A>=0;A--){var X=this._cache[A];if(X.nodeStartOffset<=_&&X.nodeStartOffset+X.node.piece.length>=_)return X}return null},be.prototype.get2=function(_){for(var A=this._cache.length-1;A>=0;A--){var X=this._cache[A];if(X.nodeStartLineNumber&&X.nodeStartLineNumber<_&&X.nodeStartLineNumber+X.node.piece.lineFeedCnt>=_)return X}return null},be.prototype.set=function(_){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(_)},be.prototype.valdiate=function(_){for(var A=!1,X=this._cache,De=0;De<X.length;De++){var xe=X[De];if(xe.node.parent===null||xe.nodeStartOffset>=_){X[De]=null,A=!0;continue}}if(A){for(var Ie=[],lt=0,ft=X;lt<ft.length;lt++){var At=ft[lt];At!==null&&Ie.push(At)}this._cache=Ie}},be}(),it=function(){function be(_,A,X){this.create(_,A,X)}return be.prototype.create=function(_,A,X){this._buffers=[new gt("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=S,this._lineCnt=1,this._length=0,this._EOL=A,this._EOLLength=A.length,this._EOLNormalized=X;for(var De=null,xe=0,Ie=_.length;xe<Ie;xe++)if(_[xe].buffer.length>0){_[xe].lineStarts||(_[xe].lineStarts=so(_[xe].buffer));var lt=new pt(xe+1,{line:0,column:0},{line:_[xe].lineStarts.length-1,column:_[xe].buffer.length-_[xe].lineStarts[_[xe].lineStarts.length-1]},_[xe].lineStarts.length-1,_[xe].buffer.length);this._buffers.push(_[xe]),De=this.rbInsertRight(De,lt)}this._searchCache=new Tt(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},be.prototype.normalizeEOL=function(_){var A=this,X=Kt,De=X-Math.floor(X/3),xe=De*2,Ie="",lt=0,ft=[];if(this.iterate(this.root,function(Ft){var Ut=A.getNodeContent(Ft),Vt=Ut.length;if(lt<=De||lt+Vt<xe)return Ie+=Ut,lt+=Vt,!0;var oo=Ie.replace(/\r\n|\r|\n/g,_);return ft.push(new gt(oo,so(oo))),Ie=Ut,lt=Vt,!0}),lt>0){var At=Ie.replace(/\r\n|\r|\n/g,_);ft.push(new gt(At,so(At)))}this.create(ft,_,!0)},be.prototype.getEOL=function(){return this._EOL},be.prototype.setEOL=function(_){this._EOL=_,this._EOLLength=this._EOL.length,this.normalizeEOL(_)},be.prototype.getOffsetAt=function(_,A){for(var X=0,De=this.root;De!==S;)if(De.left!==S&&De.lf_left+1>=_)De=De.left;else if(De.lf_left+De.piece.lineFeedCnt+1>=_){X+=De.size_left;var xe=this.getAccumulatedValue(De,_-De.lf_left-2);return X+=xe+A-1}else _-=De.lf_left+De.piece.lineFeedCnt,X+=De.size_left+De.piece.length,De=De.right;return X},be.prototype.getPositionAt=function(_){_=Math.floor(_),_=Math.max(0,_);for(var A=this.root,X=0,De=_;A!==S;)if(A.size_left!==0&&A.size_left>=_)A=A.left;else if(A.size_left+A.piece.length>=_){var xe=this.getIndexOf(A,_-A.size_left);if(X+=A.lf_left+xe.index,xe.index===0){var Ie=this.getOffsetAt(X+1,1),lt=De-Ie;return new D.a(X+1,lt+1)}return new D.a(X+1,xe.remainder+1)}else if(_-=A.size_left+A.piece.length,X+=A.lf_left+A.piece.lineFeedCnt,A.right===S){var Ie=this.getOffsetAt(X+1,1),lt=De-_-Ie;return new D.a(X+1,lt+1)}else A=A.right;return new D.a(1,1)},be.prototype.getValueInRange=function(_,A){if(_.startLineNumber===_.endLineNumber&&_.startColumn===_.endColumn)return"";var X=this.nodeAt2(_.startLineNumber,_.startColumn),De=this.nodeAt2(_.endLineNumber,_.endColumn),xe=this.getValueInRange2(X,De);return A?A!==this._EOL||!this._EOLNormalized?xe.replace(/\r\n|\r|\n/g,A):A===this.getEOL()&&this._EOLNormalized?(A===`\r
`,xe):xe.replace(/\r\n|\r|\n/g,A):xe},be.prototype.getValueInRange2=function(_,A){if(_.node===A.node){var X=_.node,De=this._buffers[X.piece.bufferIndex].buffer,xe=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);return De.substring(xe+_.remainder,xe+A.remainder)}var Ie=_.node,lt=this._buffers[Ie.piece.bufferIndex].buffer,ft=this.offsetInBuffer(Ie.piece.bufferIndex,Ie.piece.start),At=lt.substring(ft+_.remainder,ft+Ie.piece.length);for(Ie=Ie.next();Ie!==S;){var Ft=this._buffers[Ie.piece.bufferIndex].buffer,Ut=this.offsetInBuffer(Ie.piece.bufferIndex,Ie.piece.start);if(Ie===A.node){At+=Ft.substring(Ut,Ut+A.remainder);break}else At+=Ft.substr(Ut,Ie.piece.length);Ie=Ie.next()}return At},be.prototype.getLinesContent=function(){var _=this,A=[],X=0,De="",xe=!1;return this.iterate(this.root,function(Ie){if(Ie===S)return!0;var lt=Ie.piece,ft=lt.length;if(ft===0)return!0;var At=_._buffers[lt.bufferIndex].buffer,Ft=_._buffers[lt.bufferIndex].lineStarts,Ut=lt.start.line,Vt=lt.end.line,oo=Ft[Ut]+lt.start.column;if(xe&&(At.charCodeAt(oo)===10&&(oo++,ft--),A[X++]=De,De="",xe=!1,ft===0))return!0;if(Ut===Vt)return!_._EOLNormalized&&At.charCodeAt(oo+ft-1)===13?(xe=!0,De+=At.substr(oo,ft-1)):De+=At.substr(oo,ft),!0;De+=_._EOLNormalized?At.substring(oo,Math.max(oo,Ft[Ut+1]-_._EOLLength)):At.substring(oo,Ft[Ut+1]).replace(/(\r\n|\r|\n)$/,""),A[X++]=De;for(var Zt=Ut+1;Zt<Vt;Zt++)De=_._EOLNormalized?At.substring(Ft[Zt],Ft[Zt+1]-_._EOLLength):At.substring(Ft[Zt],Ft[Zt+1]).replace(/(\r\n|\r|\n)$/,""),A[X++]=De;return!_._EOLNormalized&&At.charCodeAt(Ft[Vt]+lt.end.column-1)===13?(xe=!0,lt.end.column===0?X--:De=At.substr(Ft[Vt],lt.end.column-1)):De=At.substr(Ft[Vt],lt.end.column),!0}),xe&&(A[X++]=De,De=""),A[X++]=De,A},be.prototype.getLength=function(){return this._length},be.prototype.getLineCount=function(){return this._lineCnt},be.prototype.getLineContent=function(_){return this._lastVisitedLine.lineNumber===_?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=_,_===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(_):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(_,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(_).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},be.prototype.getLineCharCode=function(_,A){var X=this.nodeAt2(_,A+1);if(X.remainder===X.node.piece.length){var De=X.node.next();if(!De)return 0;var xe=this._buffers[De.piece.bufferIndex],Ie=this.offsetInBuffer(De.piece.bufferIndex,De.piece.start);return xe.buffer.charCodeAt(Ie)}else{var xe=this._buffers[X.node.piece.bufferIndex],Ie=this.offsetInBuffer(X.node.piece.bufferIndex,X.node.piece.start),lt=Ie+X.remainder;return xe.buffer.charCodeAt(lt)}},be.prototype.getLineLength=function(_){if(_===this.getLineCount()){var A=this.getOffsetAt(_,1);return this.getLength()-A}return this.getOffsetAt(_+1,1)-this.getOffsetAt(_,1)-this._EOLLength},be.prototype.findMatchesInNode=function(_,A,X,De,xe,Ie,lt,ft,At,Ft,Ut){var Vt=this._buffers[_.piece.bufferIndex],oo=this.offsetInBuffer(_.piece.bufferIndex,_.piece.start),Zt=this.offsetInBuffer(_.piece.bufferIndex,xe),mo=this.offsetInBuffer(_.piece.bufferIndex,Ie),mt,He={line:0,column:0},Oe,ot;A._wordSeparators?(Oe=Vt.buffer.substring(Zt,mo),ot=function(ue){return ue+Zt},A.reset(-1)):(Oe=Vt.buffer,ot=function(ue){return ue},A.reset(Zt));do if(mt=A.next(Oe),mt){if(ot(mt.index)>=mo)return Ft;this.positionInBuffer(_,ot(mt.index)-oo,He);var xt=this.getLineFeedCnt(_.piece.bufferIndex,xe,He),he=He.line===xe.line?He.column-xe.column+De:He.column+1,M=he+mt[0].length;if(Ut[Ft++]=Object(Ot.d)(new U.a(X+xt,he,X+xt,M),mt,ft),ot(mt.index)+mt[0].length>=mo)return Ft;if(Ft>=At)return Ft}while(mt);return Ft},be.prototype.findMatchesLineByLine=function(_,A,X,De){var xe=[],Ie=0,lt=new Ot.b(A.wordSeparators,A.regex),ft=this.nodeAt2(_.startLineNumber,_.startColumn);if(ft===null)return[];var At=this.nodeAt2(_.endLineNumber,_.endColumn);if(At===null)return[];var Ft=this.positionInBuffer(ft.node,ft.remainder),Ut=this.positionInBuffer(At.node,At.remainder);if(ft.node===At.node)return this.findMatchesInNode(ft.node,lt,_.startLineNumber,_.startColumn,Ft,Ut,A,X,De,Ie,xe),xe;for(var Vt=_.startLineNumber,oo=ft.node;oo!==At.node;){var Zt=this.getLineFeedCnt(oo.piece.bufferIndex,Ft,oo.piece.end);if(Zt>=1){var mo=this._buffers[oo.piece.bufferIndex].lineStarts,mt=this.offsetInBuffer(oo.piece.bufferIndex,oo.piece.start),He=mo[Ft.line+Zt],Oe=Vt===_.startLineNumber?_.startColumn:1;if(Ie=this.findMatchesInNode(oo,lt,Vt,Oe,Ft,this.positionInBuffer(oo,He-mt),A,X,De,Ie,xe),Ie>=De)return xe;Vt+=Zt}var ot=Vt===_.startLineNumber?_.startColumn-1:0;if(Vt===_.endLineNumber){var xt=this.getLineContent(Vt).substring(ot,_.endColumn-1);return Ie=this._findMatchesInLine(A,lt,xt,_.endLineNumber,ot,Ie,xe,X,De),xe}if(Ie=this._findMatchesInLine(A,lt,this.getLineContent(Vt).substr(ot),Vt,ot,Ie,xe,X,De),Ie>=De)return xe;Vt++,ft=this.nodeAt2(Vt,1),oo=ft.node,Ft=this.positionInBuffer(ft.node,ft.remainder)}if(Vt===_.endLineNumber){var he=Vt===_.startLineNumber?_.startColumn-1:0,xt=this.getLineContent(Vt).substring(he,_.endColumn-1);return Ie=this._findMatchesInLine(A,lt,xt,_.endLineNumber,he,Ie,xe,X,De),xe}var M=Vt===_.startLineNumber?_.startColumn:1;return Ie=this.findMatchesInNode(At.node,lt,Vt,M,Ft,Ut,A,X,De,Ie,xe),xe},be.prototype._findMatchesInLine=function(_,A,X,De,xe,Ie,lt,ft,At){var Ft=_.wordSeparators;if(!ft&&_.simpleSearch){for(var Ut=_.simpleSearch,Vt=Ut.length,oo=X.length,Zt=-Vt;(Zt=X.indexOf(Ut,Zt+Vt))!==-1;)if((!Ft||Object(Ot.e)(Ft,X,oo,Zt,Vt))&&(lt[Ie++]=new h.b(new U.a(De,Zt+1+xe,De,Zt+1+Vt+xe),null),Ie>=At))return Ie;return Ie}var mo;A.reset(0);do if(mo=A.next(X),mo&&(lt[Ie++]=Object(Ot.d)(new U.a(De,mo.index+1+xe,De,mo.index+1+mo[0].length+xe),mo,ft),Ie>=At))return Ie;while(mo);return Ie},be.prototype.insert=function(_,A,X){if(X===void 0&&(X=!1),this._EOLNormalized=this._EOLNormalized&&X,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==S){var De=this.nodeAt(_),xe=De.node,Ie=De.remainder,lt=De.nodeStartOffset,ft=xe.piece,At=ft.bufferIndex,Ft=this.positionInBuffer(xe,Ie);if(xe.piece.bufferIndex===0&&ft.end.line===this._lastChangeBufferPos.line&&ft.end.column===this._lastChangeBufferPos.column&&lt+ft.length===_&&A.length<Kt){this.appendToNode(xe,A),this.computeBufferMetadata();return}if(lt===_)this.insertContentToNodeLeft(A,xe),this._searchCache.valdiate(_);else if(lt+xe.piece.length>_){var Ut=[],Vt=new pt(ft.bufferIndex,Ft,ft.end,this.getLineFeedCnt(ft.bufferIndex,Ft,ft.end),this.offsetInBuffer(At,ft.end)-this.offsetInBuffer(At,Ft));if(this.shouldCheckCRLF()&&this.endWithCR(A)){var oo=this.nodeCharCodeAt(xe,Ie);if(oo===10){var Zt={line:Vt.start.line+1,column:0};Vt=new pt(Vt.bufferIndex,Zt,Vt.end,this.getLineFeedCnt(Vt.bufferIndex,Zt,Vt.end),Vt.length-1),A+=`
`}}if(this.shouldCheckCRLF()&&this.startWithLF(A)){var mo=this.nodeCharCodeAt(xe,Ie-1);if(mo===13){var mt=this.positionInBuffer(xe,Ie-1);this.deleteNodeTail(xe,mt),A="\r"+A,xe.piece.length===0&&Ut.push(xe)}else this.deleteNodeTail(xe,Ft)}else this.deleteNodeTail(xe,Ft);var He=this.createNewPieces(A);Vt.length>0&&this.rbInsertRight(xe,Vt);for(var Oe=xe,ot=0;ot<He.length;ot++)Oe=this.rbInsertRight(Oe,He[ot]);this.deleteNodes(Ut)}else this.insertContentToNodeRight(A,xe)}else for(var xt=this.createNewPieces(A),xe=this.rbInsertLeft(null,xt[0]),ot=1;ot<xt.length;ot++)xe=this.rbInsertRight(xe,xt[ot]);this.computeBufferMetadata()},be.prototype.delete=function(_,A){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",A<=0||this.root===S)return;var X=this.nodeAt(_),De=this.nodeAt(_+A),xe=X.node,Ie=De.node;if(xe===Ie){var lt=this.positionInBuffer(xe,X.remainder),ft=this.positionInBuffer(xe,De.remainder);if(X.nodeStartOffset===_){if(A===xe.piece.length){var At=xe.next();Je(this,xe),this.validateCRLFWithPrevNode(At),this.computeBufferMetadata();return}this.deleteNodeHead(xe,ft),this._searchCache.valdiate(_),this.validateCRLFWithPrevNode(xe),this.computeBufferMetadata();return}if(X.nodeStartOffset+xe.piece.length===_+A){this.deleteNodeTail(xe,lt),this.validateCRLFWithNextNode(xe),this.computeBufferMetadata();return}this.shrinkNode(xe,lt,ft),this.computeBufferMetadata();return}var Ft=[],Ut=this.positionInBuffer(xe,X.remainder);this.deleteNodeTail(xe,Ut),this._searchCache.valdiate(_),xe.piece.length===0&&Ft.push(xe);var Vt=this.positionInBuffer(Ie,De.remainder);this.deleteNodeHead(Ie,Vt),Ie.piece.length===0&&Ft.push(Ie);for(var oo=xe.next(),Zt=oo;Zt!==S&&Zt!==Ie;Zt=Zt.next())Ft.push(Zt);var mo=xe.piece.length===0?xe.prev():xe;this.deleteNodes(Ft),this.validateCRLFWithNextNode(mo),this.computeBufferMetadata()},be.prototype.insertContentToNodeLeft=function(_,A){var X=[];if(this.shouldCheckCRLF()&&this.endWithCR(_)&&this.startWithLF(A)){var De=A.piece,xe={line:De.start.line+1,column:0},Ie=new pt(De.bufferIndex,xe,De.end,this.getLineFeedCnt(De.bufferIndex,xe,De.end),De.length-1);A.piece=Ie,_+=`
`,vt(this,A,-1,-1),A.piece.length===0&&X.push(A)}for(var lt=this.createNewPieces(_),ft=this.rbInsertLeft(A,lt[lt.length-1]),At=lt.length-2;At>=0;At--)ft=this.rbInsertLeft(ft,lt[At]);this.validateCRLFWithPrevNode(ft),this.deleteNodes(X)},be.prototype.insertContentToNodeRight=function(_,A){this.adjustCarriageReturnFromNext(_,A)&&(_+=`
`);for(var X=this.createNewPieces(_),De=this.rbInsertRight(A,X[0]),xe=De,Ie=1;Ie<X.length;Ie++)xe=this.rbInsertRight(xe,X[Ie]);this.validateCRLFWithPrevNode(De)},be.prototype.positionInBuffer=function(_,A,X){for(var De=_.piece,xe=_.piece.bufferIndex,Ie=this._buffers[xe].lineStarts,lt=Ie[De.start.line]+De.start.column,ft=lt+A,At=De.start.line,Ft=De.end.line,Ut=0,Vt=0,oo=0;At<=Ft&&!(Ut=At+(Ft-At)/2|0,oo=Ie[Ut],Ut===Ft);)if(Vt=Ie[Ut+1],ft<oo)Ft=Ut-1;else if(ft>=Vt)At=Ut+1;else break;return X?(X.line=Ut,X.column=ft-oo,null):{line:Ut,column:ft-oo}},be.prototype.getLineFeedCnt=function(_,A,X){if(X.column===0)return X.line-A.line;var De=this._buffers[_].lineStarts;if(X.line===De.length-1)return X.line-A.line;var xe=De[X.line+1],Ie=De[X.line]+X.column;if(xe>Ie+1)return X.line-A.line;var lt=Ie-1,ft=this._buffers[_].buffer;return ft.charCodeAt(lt)===13?X.line-A.line+1:X.line-A.line},be.prototype.offsetInBuffer=function(_,A){var X=this._buffers[_].lineStarts;return X[A.line]+A.column},be.prototype.deleteNodes=function(_){for(var A=0;A<_.length;A++)Je(this,_[A])},be.prototype.createNewPieces=function(_){if(_.length>Kt){for(var A=[];_.length>Kt;){var X=_.charCodeAt(Kt-1),De=void 0;X===13||X>=55296&&X<=56319?(De=_.substring(0,Kt-1),_=_.substring(Kt-1)):(De=_.substring(0,Kt),_=_.substring(Kt));var xe=so(De);A.push(new pt(this._buffers.length,{line:0,column:0},{line:xe.length-1,column:De.length-xe[xe.length-1]},xe.length-1,De.length)),this._buffers.push(new gt(De,xe))}var Ie=so(_);return A.push(new pt(this._buffers.length,{line:0,column:0},{line:Ie.length-1,column:_.length-Ie[Ie.length-1]},Ie.length-1,_.length)),this._buffers.push(new gt(_,Ie)),A}var lt=this._buffers[0].buffer.length,ft=so(_,!1),At=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===lt&&lt!==0&&this.startWithLF(_)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},At=this._lastChangeBufferPos;for(var Ft=0;Ft<ft.length;Ft++)ft[Ft]+=lt+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(ft.slice(1)),this._buffers[0].buffer+="_"+_,lt+=1}else{if(lt!==0)for(var Ft=0;Ft<ft.length;Ft++)ft[Ft]+=lt;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(ft.slice(1)),this._buffers[0].buffer+=_}var Ut=this._buffers[0].buffer.length,Vt=this._buffers[0].lineStarts.length-1,oo=Ut-this._buffers[0].lineStarts[Vt],Zt={line:Vt,column:oo},mo=new pt(0,At,Zt,this.getLineFeedCnt(0,At,Zt),Ut-lt);return this._lastChangeBufferPos=Zt,[mo]},be.prototype.getLineRawContent=function(_,A){A===void 0&&(A=0);var X=this.root,De="",xe=this._searchCache.get2(_);if(xe){X=xe.node;var Ie=this.getAccumulatedValue(X,_-xe.nodeStartLineNumber-1),lt=this._buffers[X.piece.bufferIndex].buffer,ft=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);if(xe.nodeStartLineNumber+X.piece.lineFeedCnt===_)De=lt.substring(ft+Ie,ft+X.piece.length);else{var At=this.getAccumulatedValue(X,_-xe.nodeStartLineNumber);return lt.substring(ft+Ie,ft+At-A)}}else for(var Ft=0,Ut=_;X!==S;)if(X.left!==S&&X.lf_left>=_-1)X=X.left;else if(X.lf_left+X.piece.lineFeedCnt>_-1){var Ie=this.getAccumulatedValue(X,_-X.lf_left-2),At=this.getAccumulatedValue(X,_-X.lf_left-1),lt=this._buffers[X.piece.bufferIndex].buffer,ft=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);return Ft+=X.size_left,this._searchCache.set({node:X,nodeStartOffset:Ft,nodeStartLineNumber:Ut-(_-1-X.lf_left)}),lt.substring(ft+Ie,ft+At-A)}else if(X.lf_left+X.piece.lineFeedCnt===_-1){var Ie=this.getAccumulatedValue(X,_-X.lf_left-2),lt=this._buffers[X.piece.bufferIndex].buffer,ft=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);De=lt.substring(ft+Ie,ft+X.piece.length);break}else _-=X.lf_left+X.piece.lineFeedCnt,Ft+=X.size_left+X.piece.length,X=X.right;for(X=X.next();X!==S;){var lt=this._buffers[X.piece.bufferIndex].buffer;if(X.piece.lineFeedCnt>0){var At=this.getAccumulatedValue(X,0),ft=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);return De+=lt.substring(ft,ft+At-A),De}else{var ft=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);De+=lt.substr(ft,X.piece.length)}X=X.next()}return De},be.prototype.computeBufferMetadata=function(){for(var _=this.root,A=1,X=0;_!==S;)A+=_.lf_left+_.piece.lineFeedCnt,X+=_.size_left+_.piece.length,_=_.right;this._lineCnt=A,this._length=X,this._searchCache.valdiate(this._length)},be.prototype.getIndexOf=function(_,A){var X=_.piece,De=this.positionInBuffer(_,A),xe=De.line-X.start.line;if(this.offsetInBuffer(X.bufferIndex,X.end)-this.offsetInBuffer(X.bufferIndex,X.start)===A){var Ie=this.getLineFeedCnt(_.piece.bufferIndex,X.start,De);if(Ie!==xe)return{index:Ie,remainder:0}}return{index:xe,remainder:De.column}},be.prototype.getAccumulatedValue=function(_,A){if(A<0)return 0;var X=_.piece,De=this._buffers[X.bufferIndex].lineStarts,xe=X.start.line+A+1;return xe>X.end.line?De[X.end.line]+X.end.column-De[X.start.line]-X.start.column:De[xe]-De[X.start.line]-X.start.column},be.prototype.deleteNodeTail=function(_,A){var X=_.piece,De=X.lineFeedCnt,xe=this.offsetInBuffer(X.bufferIndex,X.end),Ie=A,lt=this.offsetInBuffer(X.bufferIndex,Ie),ft=this.getLineFeedCnt(X.bufferIndex,X.start,Ie),At=ft-De,Ft=lt-xe,Ut=X.length+Ft;_.piece=new pt(X.bufferIndex,X.start,Ie,ft,Ut),vt(this,_,Ft,At)},be.prototype.deleteNodeHead=function(_,A){var X=_.piece,De=X.lineFeedCnt,xe=this.offsetInBuffer(X.bufferIndex,X.start),Ie=A,lt=this.getLineFeedCnt(X.bufferIndex,Ie,X.end),ft=this.offsetInBuffer(X.bufferIndex,Ie),At=lt-De,Ft=xe-ft,Ut=X.length+Ft;_.piece=new pt(X.bufferIndex,Ie,X.end,lt,Ut),vt(this,_,Ft,At)},be.prototype.shrinkNode=function(_,A,X){var De=_.piece,xe=De.start,Ie=De.end,lt=De.length,ft=De.lineFeedCnt,At=A,Ft=this.getLineFeedCnt(De.bufferIndex,De.start,At),Ut=this.offsetInBuffer(De.bufferIndex,A)-this.offsetInBuffer(De.bufferIndex,xe);_.piece=new pt(De.bufferIndex,De.start,At,Ft,Ut),vt(this,_,Ut-lt,Ft-ft);var Vt=new pt(De.bufferIndex,X,Ie,this.getLineFeedCnt(De.bufferIndex,X,Ie),this.offsetInBuffer(De.bufferIndex,Ie)-this.offsetInBuffer(De.bufferIndex,X)),oo=this.rbInsertRight(_,Vt);this.validateCRLFWithPrevNode(oo)},be.prototype.appendToNode=function(_,A){this.adjustCarriageReturnFromNext(A,_)&&(A+=`
`);var X=this.shouldCheckCRLF()&&this.startWithLF(A)&&this.endWithCR(_),De=this._buffers[0].buffer.length;this._buffers[0].buffer+=A;for(var xe=so(A,!1),Ie=0;Ie<xe.length;Ie++)xe[Ie]+=De;if(X){var lt=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:De-lt}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(xe.slice(1));var ft=this._buffers[0].lineStarts.length-1,At=this._buffers[0].buffer.length-this._buffers[0].lineStarts[ft],Ft={line:ft,column:At},Ut=_.piece.length+A.length,Vt=_.piece.lineFeedCnt,oo=this.getLineFeedCnt(0,_.piece.start,Ft),Zt=oo-Vt;_.piece=new pt(_.piece.bufferIndex,_.piece.start,Ft,oo,Ut),this._lastChangeBufferPos=Ft,vt(this,_,A.length,Zt)},be.prototype.nodeAt=function(_){var A=this.root,X=this._searchCache.get(_);if(X)return{node:X.node,nodeStartOffset:X.nodeStartOffset,remainder:_-X.nodeStartOffset};for(var De=0;A!==S;)if(A.size_left>_)A=A.left;else if(A.size_left+A.piece.length>=_){De+=A.size_left;var xe={node:A,remainder:_-A.size_left,nodeStartOffset:De};return this._searchCache.set(xe),xe}else _-=A.size_left+A.piece.length,De+=A.size_left+A.piece.length,A=A.right;return null},be.prototype.nodeAt2=function(_,A){for(var X=this.root,De=0;X!==S;)if(X.left!==S&&X.lf_left>=_-1)X=X.left;else if(X.lf_left+X.piece.lineFeedCnt>_-1){var xe=this.getAccumulatedValue(X,_-X.lf_left-2),Ie=this.getAccumulatedValue(X,_-X.lf_left-1);return De+=X.size_left,{node:X,remainder:Math.min(xe+A-1,Ie),nodeStartOffset:De}}else if(X.lf_left+X.piece.lineFeedCnt===_-1){var xe=this.getAccumulatedValue(X,_-X.lf_left-2);if(xe+A-1<=X.piece.length)return{node:X,remainder:xe+A-1,nodeStartOffset:De};A-=X.piece.length-xe;break}else _-=X.lf_left+X.piece.lineFeedCnt,De+=X.size_left+X.piece.length,X=X.right;for(X=X.next();X!==S;){if(X.piece.lineFeedCnt>0){var Ie=this.getAccumulatedValue(X,0),lt=this.offsetOfNode(X);return{node:X,remainder:Math.min(A-1,Ie),nodeStartOffset:lt}}else if(X.piece.length>=A-1){var ft=this.offsetOfNode(X);return{node:X,remainder:A-1,nodeStartOffset:ft}}else A-=X.piece.length;X=X.next()}return null},be.prototype.nodeCharCodeAt=function(_,A){if(_.piece.lineFeedCnt<1)return-1;var X=this._buffers[_.piece.bufferIndex],De=this.offsetInBuffer(_.piece.bufferIndex,_.piece.start)+A;return X.buffer.charCodeAt(De)},be.prototype.offsetOfNode=function(_){if(!_)return 0;for(var A=_.size_left;_!==this.root;)_.parent.right===_&&(A+=_.parent.size_left+_.parent.piece.length),_=_.parent;return A},be.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===`
`)},be.prototype.startWithLF=function(_){if(typeof _=="string")return _.charCodeAt(0)===10;if(_===S||_.piece.lineFeedCnt===0)return!1;var A=_.piece,X=this._buffers[A.bufferIndex].lineStarts,De=A.start.line,xe=X[De]+A.start.column;if(De===X.length-1)return!1;var Ie=X[De+1];return Ie>xe+1?!1:this._buffers[A.bufferIndex].buffer.charCodeAt(xe)===10},be.prototype.endWithCR=function(_){return typeof _=="string"?_.charCodeAt(_.length-1)===13:_===S||_.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(_,_.piece.length-1)===13},be.prototype.validateCRLFWithPrevNode=function(_){if(this.shouldCheckCRLF()&&this.startWithLF(_)){var A=_.prev();this.endWithCR(A)&&this.fixCRLF(A,_)}},be.prototype.validateCRLFWithNextNode=function(_){if(this.shouldCheckCRLF()&&this.endWithCR(_)){var A=_.next();this.startWithLF(A)&&this.fixCRLF(_,A)}},be.prototype.fixCRLF=function(_,A){var X=[],De=this._buffers[_.piece.bufferIndex].lineStarts,xe;_.piece.end.column===0?xe={line:_.piece.end.line-1,column:De[_.piece.end.line]-De[_.piece.end.line-1]-1}:xe={line:_.piece.end.line,column:_.piece.end.column-1};var Ie=_.piece.length-1,lt=_.piece.lineFeedCnt-1;_.piece=new pt(_.piece.bufferIndex,_.piece.start,xe,lt,Ie),vt(this,_,-1,-1),_.piece.length===0&&X.push(_);var ft={line:A.piece.start.line+1,column:0},At=A.piece.length-1,Ft=this.getLineFeedCnt(A.piece.bufferIndex,ft,A.piece.end);A.piece=new pt(A.piece.bufferIndex,ft,A.piece.end,Ft,At),vt(this,A,-1,-1),A.piece.length===0&&X.push(A);var Ut=this.createNewPieces(`\r
`);this.rbInsertRight(_,Ut[0]);for(var Vt=0;Vt<X.length;Vt++)Je(this,X[Vt])},be.prototype.adjustCarriageReturnFromNext=function(_,A){if(this.shouldCheckCRLF()&&this.endWithCR(_)){var X=A.next();if(this.startWithLF(X)){if(_+=`
`,X.piece.length===1)Je(this,X);else{var De=X.piece,xe={line:De.start.line+1,column:0},Ie=De.length-1,lt=this.getLineFeedCnt(De.bufferIndex,xe,De.end);X.piece=new pt(De.bufferIndex,xe,De.end,lt,Ie),vt(this,X,-1,-1)}return!0}}return!1},be.prototype.iterate=function(_,A){if(_===S)return A(S);var X=this.iterate(_.left,A);return X&&(A(_)&&this.iterate(_.right,A))},be.prototype.getNodeContent=function(_){if(_===S)return"";var A=this._buffers[_.piece.bufferIndex],X,De=_.piece,xe=this.offsetInBuffer(De.bufferIndex,De.start),Ie=this.offsetInBuffer(De.bufferIndex,De.end);return X=A.buffer.substring(xe,Ie),X},be.prototype.rbInsertRight=function(_,A){var X=new $(A,1);X.left=S,X.right=S,X.parent=S,X.size_left=0,X.lf_left=0;var De=this.root;if(De===S)this.root=X,X.color=0;else if(_.right===S)_.right=X,X.parent=_;else{var xe=z(_.right);xe.left=X,X.parent=xe}return nt(this,X),X},be.prototype.rbInsertLeft=function(_,A){var X=new $(A,1);if(X.left=S,X.right=S,X.parent=S,X.size_left=0,X.lf_left=0,this.root===S)this.root=X,X.color=0;else if(_.left===S)_.left=X,X.parent=_;else{var De=ce(_.left);De.right=X,X.parent=De}return nt(this,X),X},be}(),et=function(){function be(_,A,X,De,xe,Ie){this._BOM=A,this._mightContainNonBasicASCII=!xe,this._mightContainRTL=De,this._pieceTree=new it(_,X,Ie)}return be.prototype.mightContainRTL=function(){return this._mightContainRTL},be.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},be.prototype.getBOM=function(){return this._BOM},be.prototype.getEOL=function(){return this._pieceTree.getEOL()},be.prototype.getOffsetAt=function(_,A){return this._pieceTree.getOffsetAt(_,A)},be.prototype.getPositionAt=function(_){return this._pieceTree.getPositionAt(_)},be.prototype.getRangeAt=function(_,A){var X=_+A,De=this.getPositionAt(_),xe=this.getPositionAt(X);return new U.a(De.lineNumber,De.column,xe.lineNumber,xe.column)},be.prototype.getValueInRange=function(_,A){if(A===void 0&&(A=0),_.isEmpty())return"";var X=this._getEndOfLine(A);return this._pieceTree.getValueInRange(_,X)},be.prototype.getValueLengthInRange=function(_,A){if(A===void 0&&(A=0),_.isEmpty())return 0;if(_.startLineNumber===_.endLineNumber)return _.endColumn-_.startColumn;var X=this.getOffsetAt(_.startLineNumber,_.startColumn),De=this.getOffsetAt(_.endLineNumber,_.endColumn);return De-X},be.prototype.getCharacterCountInRange=function(_,A){if(A===void 0&&(A=0),this._mightContainNonBasicASCII){for(var X=0,De=_.startLineNumber,xe=_.endLineNumber,Ie=De;Ie<=xe;Ie++)for(var lt=this.getLineContent(Ie),ft=Ie===De?_.startColumn-1:0,At=Ie===xe?_.endColumn-1:lt.length,Ft=ft;Ft<At;Ft++)I.z(lt.charCodeAt(Ft))?(X=X+1,Ft=Ft+1):X=X+1;return X+=this._getEndOfLine(A).length*(xe-De),X}return this.getValueLengthInRange(_,A)},be.prototype.getLength=function(){return this._pieceTree.getLength()},be.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},be.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},be.prototype.getLineContent=function(_){return this._pieceTree.getLineContent(_)},be.prototype.getLineCharCode=function(_,A){return this._pieceTree.getLineCharCode(_,A)},be.prototype.getLineLength=function(_){return this._pieceTree.getLineLength(_)},be.prototype.getLineFirstNonWhitespaceColumn=function(_){var A=I.q(this.getLineContent(_));return A===-1?0:A+1},be.prototype.getLineLastNonWhitespaceColumn=function(_){var A=I.D(this.getLineContent(_));return A===-1?0:A+2},be.prototype._getEndOfLine=function(_){switch(_){case 1:return`
`;case 2:return`\r
`;case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},be.prototype.setEOL=function(_){this._pieceTree.setEOL(_)},be.prototype.applyEdits=function(_,A){for(var X=this._mightContainRTL,De=this._mightContainNonBasicASCII,xe=!0,Ie=[],lt=0;lt<_.length;lt++){var ft=_[lt];xe&&ft._isTracked&&(xe=!1);var At=ft.range;!X&&ft.text&&(X=I.i(ft.text)),!De&&ft.text&&(De=!I.v(ft.text)),Ie[lt]={sortIndex:lt,identifier:ft.identifier||null,range:At,rangeOffset:this.getOffsetAt(At.startLineNumber,At.startColumn),rangeLength:this.getValueLengthInRange(At),lines:ft.text?ft.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(ft.forceMoveMarkers),isAutoWhitespaceEdit:ft.isAutoWhitespaceEdit||!1}}Ie.sort(be._sortOpsAscending);for(var Ft=!1,lt=0,Ut=Ie.length-1;lt<Ut;lt++){var Vt=Ie[lt].range.getEndPosition(),oo=Ie[lt+1].range.getStartPosition();if(oo.isBeforeOrEqual(Vt)){if(oo.isBefore(Vt))throw new Error("Overlapping ranges are not allowed!");Ft=!0}}xe&&(Ie=this._reduceOperations(Ie));for(var Zt=be._getInverseEditRanges(Ie),mo=[],lt=0;lt<Ie.length;lt++){var ft=Ie[lt],mt=Zt[lt];if(A&&ft.isAutoWhitespaceEdit&&ft.range.isEmpty())for(var He=mt.startLineNumber;He<=mt.endLineNumber;He++){var Oe="";if(He===mt.startLineNumber&&(Oe=this.getLineContent(ft.range.startLineNumber),I.q(Oe)!==-1))continue;mo.push({lineNumber:He,oldContent:Oe})}}for(var ot=[],lt=0;lt<Ie.length;lt++){var ft=Ie[lt],mt=Zt[lt];ot[lt]={sortIndex:ft.sortIndex,identifier:ft.identifier,range:mt,text:this.getValueInRange(ft.range),forceMoveMarkers:ft.forceMoveMarkers}}Ft||ot.sort(function(Ze,at){return Ze.sortIndex-at.sortIndex}),this._mightContainRTL=X,this._mightContainNonBasicASCII=De;var xt=this._doApplyEdits(Ie),he=null;if(A&&mo.length>0){mo.sort(function(Ze,at){return at.lineNumber-Ze.lineNumber}),he=[];for(var lt=0,M=mo.length;lt<M;lt++){var He=mo[lt].lineNumber;if(lt>0&&mo[lt-1].lineNumber===He)continue;var ue=mo[lt].oldContent,We=this.getLineContent(He);if(We.length===0||We===ue||I.q(We)!==-1)continue;he.push(He)}}return new h.a(ot,xt,he)},be.prototype._reduceOperations=function(_){return _.length<1e3?_:[this._toSingleEditOperation(_)]},be.prototype._toSingleEditOperation=function(_){for(var A=!1,X=_[0].range,De=_[_.length-1].range,xe=new U.a(X.startLineNumber,X.startColumn,De.endLineNumber,De.endColumn),Ie=X.startLineNumber,lt=X.startColumn,ft=[],At=0,Ft=_.length;At<Ft;At++){var Ut=_[At],Vt=Ut.range;A=A||Ut.forceMoveMarkers;for(var oo=Ie;oo<Vt.startLineNumber;oo++)oo===Ie?ft.push(this.getLineContent(oo).substring(lt-1)):(ft.push(`
`),ft.push(this.getLineContent(oo)));if(Vt.startLineNumber===Ie?ft.push(this.getLineContent(Vt.startLineNumber).substring(lt-1,Vt.startColumn-1)):(ft.push(`
`),ft.push(this.getLineContent(Vt.startLineNumber).substring(0,Vt.startColumn-1))),Ut.lines)for(var Zt=0,mo=Ut.lines.length;Zt<mo;Zt++)Zt!==0&&ft.push(`
`),ft.push(Ut.lines[Zt]);Ie=Ut.range.endLineNumber,lt=Ut.range.endColumn}return{sortIndex:0,identifier:_[0].identifier,range:xe,rangeOffset:this.getOffsetAt(xe.startLineNumber,xe.startColumn),rangeLength:this.getValueLengthInRange(xe,0),lines:ft.join("").split(`
`),forceMoveMarkers:A,isAutoWhitespaceEdit:!1}},be.prototype._doApplyEdits=function(_){_.sort(be._sortOpsDescending);for(var A=[],X=0;X<_.length;X++){var De=_[X],xe=De.range.startLineNumber,Ie=De.range.startColumn,lt=De.range.endLineNumber,ft=De.range.endColumn;if(xe===lt&&Ie===ft&&(!De.lines||De.lines.length===0))continue;var At=lt-xe,Ft=De.lines?De.lines.length-1:0,Ut=Math.min(At,Ft),Vt=De.lines?De.lines.join(this.getEOL()):"";if(Vt?(this._pieceTree.delete(De.rangeOffset,De.rangeLength),this._pieceTree.insert(De.rangeOffset,Vt,!0)):this._pieceTree.delete(De.rangeOffset,De.rangeLength),Ut<Ft){for(var oo=[],Zt=Ut+1;Zt<=Ft;Zt++)oo.push(De.lines[Zt]);oo[oo.length-1]=this.getLineContent(xe+Ft-1)}var mo=new U.a(xe,Ie,lt,ft);A.push({range:mo,rangeLength:De.rangeLength,text:Vt,rangeOffset:De.rangeOffset,forceMoveMarkers:De.forceMoveMarkers})}return A},be.prototype.findMatchesLineByLine=function(_,A,X,De){return this._pieceTree.findMatchesLineByLine(_,A,X,De)},be._getInverseEditRanges=function(_){for(var A=[],X=0,De=0,xe=null,Ie=0,lt=_.length;Ie<lt;Ie++){var ft=_[Ie],At=void 0,Ft=void 0;xe?xe.range.endLineNumber===ft.range.startLineNumber?(At=X,Ft=De+(ft.range.startColumn-xe.range.endColumn)):(At=X+(ft.range.startLineNumber-xe.range.endLineNumber),Ft=ft.range.startColumn):(At=ft.range.startLineNumber,Ft=ft.range.startColumn);var Ut=void 0;if(ft.lines&&ft.lines.length>0){var Vt=ft.lines.length,oo=ft.lines[0],Zt=ft.lines[Vt-1];Vt===1?Ut=new U.a(At,Ft,At,Ft+oo.length):Ut=new U.a(At,Ft,At+Vt-1,Zt.length+1)}else Ut=new U.a(At,Ft,At,Ft);X=Ut.endLineNumber,De=Ut.endColumn,A.push(Ut),xe=ft}return A},be._sortOpsAscending=function(_,A){var X=U.a.compareRangesUsingEnds(_.range,A.range);return X===0?_.sortIndex-A.sortIndex:X},be._sortOpsDescending=function(_,A){var X=U.a.compareRangesUsingEnds(_.range,A.range);return X===0?A.sortIndex-_.sortIndex:-X},be}(),ut=function(){function be(_,A,X,De,xe,Ie,lt,ft){this._chunks=_,this._bom=A,this._cr=X,this._lf=De,this._crlf=xe,this._containsRTL=Ie,this._isBasicASCII=lt,this._normalizeEOL=ft}return be.prototype._getEOL=function(_){var A=this._cr+this._lf+this._crlf,X=this._cr+this._crlf;return A===0?_===1?`
`:`\r
`:X>A/2?`\r
`:`
`},be.prototype.create=function(_){var A=this._getEOL(_),X=this._chunks;if(this._normalizeEOL&&(A===`\r
`&&(this._cr>0||this._lf>0)||A===`
`&&(this._cr>0||this._crlf>0)))for(var De=0,xe=X.length;De<xe;De++){var Ie=X[De].buffer.replace(/\r\n|\r|\n/g,A),lt=so(Ie);X[De]=new gt(Ie,lt)}return new et(X,this._bom,A,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},be}(),Ct=function(){function be(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.isBasicASCII=!0}return be.prototype.acceptChunk=function(_){if(_.length===0)return;this.chunks.length===0&&(I.P(_)&&(this.BOM=I.a,_=_.substr(1)));var A=_.charCodeAt(_.length-1);A===13||A>=55296&&A<=56319?(this._acceptChunk1(_.substr(0,_.length-1),!1),this._hasPreviousChar=!0,this._previousChar=A):(this._acceptChunk1(_,!1),this._hasPreviousChar=!1,this._previousChar=A)},be.prototype._acceptChunk1=function(_,A){if(!A&&_.length===0)return;this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+_):this._acceptChunk2(_)},be.prototype._acceptChunk2=function(_){var A=jt(this._tmpLineStarts,_);this.chunks.push(new gt(_,A.lineStarts)),this.cr+=A.cr,this.lf+=A.lf,this.crlf+=A.crlf,this.isBasicASCII&&(this.isBasicASCII=A.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=I.i(_))},be.prototype.finish=function(_){return _===void 0&&(_=!0),this._finish(),new ut(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,_)},be.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var _=this.chunks[this.chunks.length-1];_.buffer+=String.fromCharCode(this._previousChar);var A=so(_.buffer);_.lineStarts=A,this._previousChar===13&&this.cr++}},be}(),ht=function(){function be(){this.changeType=1}return be}(),Et=function(){function be(_,A){this.changeType=2,this.lineNumber=_,this.detail=A}return be}(),Yt=function(){function be(_,A){this.changeType=3,this.fromLineNumber=_,this.toLineNumber=A}return be}(),Nt=function(){function be(_,A,X){this.changeType=4,this.fromLineNumber=_,this.toLineNumber=A,this.detail=X}return be}(),bt=function(){function be(){this.changeType=5}return be}(),$e=function(){function be(_,A,X,De){this.changes=_,this.versionId=A,this.isUndoing=X,this.isRedoing=De}return be.prototype.containsEvent=function(_){for(var A=0,X=this.changes.length;A<X;A++){var De=this.changes[A];if(De.changeType===_)return!0}return!1},be.merge=function(_,A){var X=[].concat(_.changes).concat(A.changes),De=A.versionId,xe=_.isUndoing||A.isUndoing,Ie=_.isRedoing||A.isRedoing;return new be(X,De,xe,Ie)},be}(),Ye=function(){function be(_,A){this.rawContentChangedEvent=_,this.contentChangedEvent=A}return be.prototype.merge=function(_){var A=$e.merge(this.rawContentChangedEvent,_.rawContentChangedEvent),X=be._mergeChangeEvents(this.contentChangedEvent,_.contentChangedEvent);return new be(A,X)},be._mergeChangeEvents=function(_,A){var X=[].concat(_.changes).concat(A.changes),De=A.eol,xe=A.versionId,Ie=_.isUndoing||A.isUndoing,lt=_.isRedoing||A.isRedoing,ft=_.isFlush||A.isFlush;return{changes:X,eol:De,versionId:xe,isUndoing:Ie,isRedoing:lt,isFlush:ft}},be}(),Ve=e("6OMU"),ze=e("4bUh"),me=e("twdY"),G=e("i/Ef"),oe=e("5Y4S"),Y=e("QRHv"),ie=e("MNsG"),je=function(){var be=function(_,A){return be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,De){X.__proto__=De}||function(X,De){for(var xe in De)De.hasOwnProperty(xe)&&(X[xe]=De[xe])},be(_,A)};return function(_,A){be(_,A);function X(){this.constructor=_}_.prototype=A===null?Object.create(A):(X.prototype=A.prototype,new X)}}(),dt=function(){function be(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return be.prototype._reset=function(_){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,_&&this._setBeginState(0,_)},be.prototype.flush=function(_){this._reset(_)},Object.defineProperty(be.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),be.prototype._invalidateLine=function(_){_<this._len&&(this._valid[_]=!1),_<this._invalidLineStartIndex&&(this._invalidLineStartIndex=_)},be.prototype._isValid=function(_){return _<this._len?this._valid[_]:!1},be.prototype.getBeginState=function(_){return _<this._len?this._beginState[_]:null},be.prototype._ensureLine=function(_){for(;_>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},be.prototype._deleteLines=function(_,A){if(A===0)return;_+A>this._len&&(A=this._len-_),this._beginState.splice(_,A),this._valid.splice(_,A),this._len-=A},be.prototype._insertLines=function(_,A){if(A===0)return;for(var X=[],De=[],xe=0;xe<A;xe++)X[xe]=null,De[xe]=!1;this._beginState=Ve.a(this._beginState,_,X),this._valid=Ve.a(this._valid,_,De),this._len+=A},be.prototype._setValid=function(_,A){this._ensureLine(_),this._valid[_]=A},be.prototype._setBeginState=function(_,A){this._ensureLine(_),this._beginState[_]=A},be.prototype.setEndState=function(_,A,X){if(this._setValid(A,!0),this._invalidLineStartIndex=A+1,A===_-1)return;var De=this.getBeginState(A+1);if(De===null||!X.equals(De)){this._setBeginState(A+1,X),this._invalidateLine(A+1);return}for(var xe=A+1;xe<_&&this._isValid(xe);)xe++;this._invalidLineStartIndex=xe},be.prototype.setFakeTokens=function(_){this._setValid(_,!1)},be.prototype.applyEdits=function(_,A){for(var X=_.endLineNumber-_.startLineNumber,De=A,xe=Math.min(X,De),Ie=xe;Ie>=0;Ie--)this._invalidateLine(_.startLineNumber+Ie-1);this._acceptDeleteRange(_),this._acceptInsertText(new D.a(_.startLineNumber,_.startColumn),A)},be.prototype._acceptDeleteRange=function(_){var A=_.startLineNumber-1;if(A>=this._len)return;this._deleteLines(_.startLineNumber,_.endLineNumber-_.startLineNumber)},be.prototype._acceptInsertText=function(_,A){var X=_.lineNumber-1;if(X>=this._len)return;this._insertLines(_.lineNumber,A)},be}(),Dt=function(be){je(_,be);function _(A){var X=be.call(this)||this;return X._isDisposed=!1,X._textModel=A,X._tokenizationStateStore=new dt,X._tokenizationSupport=null,X._register(me.B.onDidChange(function(De){var xe=X._textModel.getLanguageIdentifier();if(De.changedLanguages.indexOf(xe.language)===-1)return;X._resetTokenizationState(),X._textModel.clearTokens()})),X._register(X._textModel.onDidChangeRawContentFast(function(De){if(De.containsEvent(1)){X._resetTokenizationState();return}})),X._register(X._textModel.onDidChangeContentFast(function(De){for(var xe=0,Ie=De.changes.length;xe<Ie;xe++){var lt=De.changes[xe],ft=Object(Y.f)(lt.text)[0];X._tokenizationStateStore.applyEdits(lt.range,ft)}X._beginBackgroundTokenization()})),X._register(X._textModel.onDidChangeAttached(function(){X._beginBackgroundTokenization()})),X._register(X._textModel.onDidChangeLanguage(function(){X._resetTokenizationState(),X._textModel.clearTokens()})),X._resetTokenizationState(),X}return _.prototype.dispose=function(){this._isDisposed=!0,be.prototype.dispose.call(this)},_.prototype._resetTokenizationState=function(){var A=Qt(this._textModel),X=A[0],De=A[1];this._tokenizationSupport=X,this._tokenizationStateStore.flush(De),this._beginBackgroundTokenization()},_.prototype._beginBackgroundTokenization=function(){var A=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&ie.i(function(){if(A._isDisposed)return;A._revalidateTokensNow()})},_.prototype._revalidateTokensNow=function(A){A===void 0&&(A=this._textModel.getLineCount());for(var X=1,De=new Y.b,xe=oe.a.create(!1);this._hasLinesToTokenize()&&!(xe.elapsed()>X);){var Ie=this._tokenizeOneInvalidLine(De);if(Ie>=A)break}this._beginBackgroundTokenization(),this._textModel.setTokens(De.tokens)},_.prototype.tokenizeViewport=function(A,X){var De=new Y.b;this._tokenizeViewport(De,A,X),this._textModel.setTokens(De.tokens)},_.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},_.prototype.forceTokenization=function(A){var X=new Y.b;this._updateTokensUntilLine(X,A),this._textModel.setTokens(X.tokens)},_.prototype.isCheapToTokenize=function(A){if(!this._tokenizationSupport)return!0;var X=this._tokenizationStateStore.invalidLineStartIndex+1;return A>X?!1:A<X?!0:this._textModel.getLineLength(A)<2048},_.prototype._hasLinesToTokenize=function(){return this._tokenizationSupport?this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount():!1},_.prototype._tokenizeOneInvalidLine=function(A){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var X=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(A,X),X},_.prototype._updateTokensUntilLine=function(A,X){if(!this._tokenizationSupport)return;for(var De=this._textModel.getLanguageIdentifier(),xe=this._textModel.getLineCount(),Ie=X-1,lt=this._tokenizationStateStore.invalidLineStartIndex;lt<=Ie;lt++){var ft=this._textModel.getLineContent(lt+1),At=this._tokenizationStateStore.getBeginState(lt),Ft=to(De,this._tokenizationSupport,ft,At);A.add(lt+1,Ft.tokens),this._tokenizationStateStore.setEndState(xe,lt,Ft.endState),lt=this._tokenizationStateStore.invalidLineStartIndex-1}},_.prototype._tokenizeViewport=function(A,X,De){if(!this._tokenizationSupport)return;if(De<=this._tokenizationStateStore.invalidLineStartIndex)return;if(X<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(A,De);return}for(var xe=this._textModel.getLineFirstNonWhitespaceColumn(X),Ie=[],lt=null,ft=X-1;xe>0&&ft>=1;ft--){var At=this._textModel.getLineFirstNonWhitespaceColumn(ft);if(At===0)continue;if(At<xe){if(lt=this._tokenizationStateStore.getBeginState(ft-1),lt)break;Ie.push(this._textModel.getLineContent(ft)),xe=At}}lt||(lt=this._tokenizationSupport.getInitialState());for(var Ft=this._textModel.getLanguageIdentifier(),Ut=lt,ft=Ie.length-1;ft>=0;ft--){var Vt=to(Ft,this._tokenizationSupport,Ie[ft],Ut);Ut=Vt.endState}for(var oo=X;oo<=De;oo++){var Zt=this._textModel.getLineContent(oo),Vt=to(Ft,this._tokenizationSupport,Zt,Ut);A.add(oo,Vt.tokens),this._tokenizationStateStore.setFakeTokens(oo-1),Ut=Vt.endState}},_}(J.a);function Qt(be){var _=be.getLanguageIdentifier(),A=be.isTooLargeForTokenization()?null:me.B.get(_.language),X=null;if(A)try{X=A.getInitialState()}catch(De){Object(T.e)(De),A=null}return[A,X]}function to(be,_,A,X){var De=null;if(_)try{De=_.tokenize2(A,X.clone(),0)}catch(xe){Object(T.e)(xe)}return De||(De=Object(G.e)(be.id,A,X,0)),ze.a.convertToEndOffset(De.tokens,A.length),De}var fo=e("0JNc"),ho=e("cMvZ"),wo=e("BFtn"),Oo=e("EIAu"),Ro=e("746U"),jo=e("zrhQ"),Eo=function(){var be=function(_,A){return be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,De){X.__proto__=De}||function(X,De){for(var xe in De)De.hasOwnProperty(xe)&&(X[xe]=De[xe])},be(_,A)};return function(_,A){be(_,A);function X(){this.constructor=_}_.prototype=A===null?Object.create(A):(X.prototype=A.prototype,new X)}}();function Wo(){return new Ct}function Ho(be){var _=Wo();return _.acceptChunk(be),_.finish()}function Fo(be,_){var A=typeof be=="string"?Ho(be):be;return A.create(_)}var Io=0,tn=999,un=1e4,Vo=function(){throw new Error("Invalid change accessor")},Cn=function(be){Eo(_,be);function _(A,X,De,xe){xe===void 0&&(xe=null);var Ie=be.call(this)||this;Ie._onWillDispose=Ie._register(new pe.a),Ie.onWillDispose=Ie._onWillDispose.event,Ie._onDidChangeDecorations=Ie._register(new rt),Ie.onDidChangeDecorations=Ie._onDidChangeDecorations.event,Ie._onDidChangeLanguage=Ie._register(new pe.a),Ie.onDidChangeLanguage=Ie._onDidChangeLanguage.event,Ie._onDidChangeLanguageConfiguration=Ie._register(new pe.a),Ie.onDidChangeLanguageConfiguration=Ie._onDidChangeLanguageConfiguration.event,Ie._onDidChangeTokens=Ie._register(new pe.a),Ie.onDidChangeTokens=Ie._onDidChangeTokens.event,Ie._onDidChangeOptions=Ie._register(new pe.a),Ie.onDidChangeOptions=Ie._onDidChangeOptions.event,Ie._onDidChangeAttached=Ie._register(new pe.a),Ie.onDidChangeAttached=Ie._onDidChangeAttached.event,Ie._eventEmitter=Ie._register(new Lt),Io++,Ie.id="$model"+Io,Ie.isForSimpleWidget=X.isForSimpleWidget,typeof xe=="undefined"||xe===null?Ie._associatedResource=H.a.parse("inmemory://model/"+Io):Ie._associatedResource=xe,Ie._attachedEditorCount=0,Ie._buffer=Fo(A,X.defaultEOL),Ie._options=_.resolveOptions(Ie._buffer,X);var lt=Ie._buffer.getLineCount(),ft=Ie._buffer.getValueLengthInRange(new U.a(1,1,lt,Ie._buffer.getLineLength(lt)+1),0);return X.largeFileOptimizations?Ie._isTooLargeForTokenization=ft>_.LARGE_FILE_SIZE_THRESHOLD||lt>_.LARGE_FILE_LINE_COUNT_THRESHOLD:Ie._isTooLargeForTokenization=!1,Ie._isTooLargeForSyncing=ft>_.MODEL_SYNC_LIMIT,Ie._versionId=1,Ie._alternativeVersionId=1,Ie._isDisposed=!1,Ie._isDisposing=!1,Ie._languageIdentifier=De||G.a,Ie._languageRegistryListener=ho.a.onDidChange(function(At){At.languageIdentifier.id===Ie._languageIdentifier.id&&Ie._onDidChangeLanguageConfiguration.fire({})}),Ie._instanceId=I.M(Io),Ie._lastDecorationId=0,Ie._decorations=Object.create(null),Ie._decorationsTree=new pn,Ie._commandManager=new C(Ie),Ie._isUndoing=!1,Ie._isRedoing=!1,Ie._trimAutoWhitespaceLines=null,Ie._tokens=new Y.d,Ie._tokens2=new Y.e,Ie._tokenization=new Dt(Ie),Ie}return _.createFromString=function(A,X,De,xe){return X===void 0&&(X=_.DEFAULT_CREATION_OPTIONS),De===void 0&&(De=null),xe===void 0&&(xe=null),new _(A,X,De,xe)},_.resolveOptions=function(A,X){if(X.detectIndentation){var De=p(A,X.tabSize,X.insertSpaces);return new h.e({tabSize:De.tabSize,indentSize:De.tabSize,insertSpaces:De.insertSpaces,trimAutoWhitespace:X.trimAutoWhitespace,defaultEOL:X.defaultEOL})}return new h.e({tabSize:X.tabSize,indentSize:X.indentSize,insertSpaces:X.insertSpaces,trimAutoWhitespace:X.trimAutoWhitespace,defaultEOL:X.defaultEOL})},_.prototype.onDidChangeRawContentFast=function(A){return this._eventEmitter.fastEvent(function(X){return A(X.rawContentChangedEvent)})},_.prototype.onDidChangeRawContent=function(A){return this._eventEmitter.slowEvent(function(X){return A(X.rawContentChangedEvent)})},_.prototype.onDidChangeContentFast=function(A){return this._eventEmitter.fastEvent(function(X){return A(X.contentChangedEvent)})},_.prototype.onDidChangeContent=function(A){return this._eventEmitter.slowEvent(function(X){return A(X.contentChangedEvent)})},_.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,be.prototype.dispose.call(this),this._isDisposing=!1},_.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},_.prototype._emitContentChangedEvent=function(A,X){if(this._isDisposing)return;this._eventEmitter.fire(new Ye(A,X))},_.prototype.setValue=function(A){if(this._assertNotDisposed(),A===null)return;var X=Fo(A,this._options.defaultEOL);this.setValueFromTextBuffer(X)},_.prototype._createContentChanged2=function(A,X,De,xe,Ie,lt,ft){return{changes:[{range:A,rangeOffset:X,rangeLength:De,text:xe}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:Ie,isRedoing:lt,isFlush:ft}},_.prototype.setValueFromTextBuffer=function(A){if(this._assertNotDisposed(),A===null)return;var X=this.getFullModelRange(),De=this.getValueLengthInRange(X),xe=this.getLineCount(),Ie=this.getLineMaxColumn(xe);this._buffer=A,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new pn,this._commandManager=new C(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new $e([new ht],this._versionId,!1,!1),this._createContentChanged2(new U.a(1,1,xe,Ie),0,De,this.getValue(),!1,!1,!0))},_.prototype.setEOL=function(A){this._assertNotDisposed();var X=A===1?`\r
`:`
`;if(this._buffer.getEOL()===X)return;var De=this.getFullModelRange(),xe=this.getValueLengthInRange(De),Ie=this.getLineCount(),lt=this.getLineMaxColumn(Ie);this._onBeforeEOLChange(),this._buffer.setEOL(X),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new $e([new bt],this._versionId,!1,!1),this._createContentChanged2(new U.a(1,1,Ie,lt),0,xe,this.getValue(),!1,!1,!1))},_.prototype._onBeforeEOLChange=function(){var A=this.getVersionId(),X=this._decorationsTree.search(0,!1,!1,A);this._ensureNodesHaveRanges(X)},_.prototype._onAfterEOLChange=function(){for(var A=this.getVersionId(),X=this._decorationsTree.collectNodesPostOrder(),De=0,xe=X.length;De<xe;De++){var Ie=X[De],lt=Ie.cachedAbsoluteStart-Ie.start,ft=this._buffer.getOffsetAt(Ie.range.startLineNumber,Ie.range.startColumn),At=this._buffer.getOffsetAt(Ie.range.endLineNumber,Ie.range.endColumn);Ie.cachedAbsoluteStart=ft,Ie.cachedAbsoluteEnd=At,Ie.cachedVersionId=A,Ie.start=ft-lt,Ie.end=At-lt,Te(Ie)}},_.prototype.onBeforeAttached=function(){this._attachedEditorCount++,this._attachedEditorCount===1&&this._onDidChangeAttached.fire(void 0)},_.prototype.onBeforeDetached=function(){this._attachedEditorCount--,this._attachedEditorCount===0&&this._onDidChangeAttached.fire(void 0)},_.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},_.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},_.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},_.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},_.prototype.isDisposed=function(){return this._isDisposed},_.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var A=0,X=0,De=this._buffer.getLineCount(),xe=1;xe<=De;xe++){var Ie=this._buffer.getLineLength(xe);Ie>=un?X+=Ie:A+=Ie}return X>A},Object.defineProperty(_.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),_.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},_.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},_.prototype.updateOptions=function(A){this._assertNotDisposed();var X=typeof A.tabSize!="undefined"?A.tabSize:this._options.tabSize,De=typeof A.indentSize!="undefined"?A.indentSize:this._options.indentSize,xe=typeof A.insertSpaces!="undefined"?A.insertSpaces:this._options.insertSpaces,Ie=typeof A.trimAutoWhitespace!="undefined"?A.trimAutoWhitespace:this._options.trimAutoWhitespace,lt=new h.e({tabSize:X,indentSize:De,insertSpaces:xe,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:Ie});if(this._options.equals(lt))return;var ft=this._options.createChangeEvent(lt);this._options=lt,this._onDidChangeOptions.fire(ft)},_.prototype.detectIndentation=function(A,X){this._assertNotDisposed();var De=p(this._buffer,X,A);this.updateOptions({insertSpaces:De.insertSpaces,tabSize:De.tabSize,indentSize:De.tabSize})},_._normalizeIndentationFromWhitespace=function(A,X,De){for(var xe=0,Ie=0;Ie<A.length;Ie++)A.charAt(Ie)===" "?xe+=X:xe++;var lt="";if(!De){var ft=Math.floor(xe/X);xe=xe%X;for(var Ie=0;Ie<ft;Ie++)lt+=" "}for(var Ie=0;Ie<xe;Ie++)lt+=" ";return lt},_.normalizeIndentation=function(A,X,De){var xe=I.q(A);return xe===-1&&(xe=A.length),_._normalizeIndentationFromWhitespace(A.substring(0,xe),X,De)+A.substring(xe)},_.prototype.normalizeIndentation=function(A){return this._assertNotDisposed(),_.normalizeIndentation(A,this._options.indentSize,this._options.insertSpaces)},_.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},_.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},_.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},_.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},_.prototype.getOffsetAt=function(A){this._assertNotDisposed();var X=this._validatePosition(A.lineNumber,A.column,0);return this._buffer.getOffsetAt(X.lineNumber,X.column)},_.prototype.getPositionAt=function(A){this._assertNotDisposed();var X=Math.min(this._buffer.getLength(),Math.max(0,A));return this._buffer.getPositionAt(X)},_.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},_.prototype._overwriteAlternativeVersionId=function(A){this._alternativeVersionId=A},_.prototype.getValue=function(A,X){X===void 0&&(X=!1),this._assertNotDisposed();var De=this.getFullModelRange(),xe=this.getValueInRange(De,A);return X?this._buffer.getBOM()+xe:xe},_.prototype.getValueLength=function(A,X){X===void 0&&(X=!1),this._assertNotDisposed();var De=this.getFullModelRange(),xe=this.getValueLengthInRange(De,A);return X?this._buffer.getBOM().length+xe:xe},_.prototype.getValueInRange=function(A,X){return X===void 0&&(X=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(A),X)},_.prototype.getValueLengthInRange=function(A,X){return X===void 0&&(X=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(A),X)},_.prototype.getCharacterCountInRange=function(A,X){return X===void 0&&(X=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(A),X)},_.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},_.prototype.getLineContent=function(A){if(this._assertNotDisposed(),A<1||A>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(A)},_.prototype.getLineLength=function(A){if(this._assertNotDisposed(),A<1||A>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(A)},_.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},_.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},_.prototype.getLineMinColumn=function(A){return this._assertNotDisposed(),1},_.prototype.getLineMaxColumn=function(A){if(this._assertNotDisposed(),A<1||A>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(A)+1},_.prototype.getLineFirstNonWhitespaceColumn=function(A){if(this._assertNotDisposed(),A<1||A>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(A)},_.prototype.getLineLastNonWhitespaceColumn=function(A){if(this._assertNotDisposed(),A<1||A>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(A)},_.prototype._validateRangeRelaxedNoAllocations=function(A){var X=this._buffer.getLineCount(),De=A.startLineNumber,xe=A.startColumn,Ie,lt;if(De<1)Ie=1,lt=1;else if(De>X)Ie=X,lt=this.getLineMaxColumn(Ie);else if(Ie=De|0,xe<=1)lt=1;else{var ft=this.getLineMaxColumn(Ie);xe>=ft?lt=ft:lt=xe|0}var At=A.endLineNumber,Ft=A.endColumn,Ut,Vt;if(At<1)Ut=1,Vt=1;else if(At>X)Ut=X,Vt=this.getLineMaxColumn(Ut);else if(Ut=At|0,Ft<=1)Vt=1;else{var ft=this.getLineMaxColumn(Ut);Ft>=ft?Vt=ft:Vt=Ft|0}return De===Ie&&xe===lt&&At===Ut&&Ft===Vt&&A instanceof U.a&&!(A instanceof j.a)?A:new U.a(Ie,lt,Ut,Vt)},_.prototype._isValidPosition=function(A,X,De){if(typeof A!="number"||typeof X!="number")return!1;if(isNaN(A)||isNaN(X))return!1;if(A<1||X<1)return!1;if((A|0)!==A||(X|0)!==X)return!1;var xe=this._buffer.getLineCount();if(A>xe)return!1;if(X===1)return!0;var Ie=this.getLineMaxColumn(A);if(X>Ie)return!1;if(De===1){var lt=this._buffer.getLineCharCode(A,X-2);if(I.z(lt))return!1}return!0},_.prototype._validatePosition=function(A,X,De){var xe=Math.floor(typeof A=="number"&&!isNaN(A)?A:1),Ie=Math.floor(typeof X=="number"&&!isNaN(X)?X:1),lt=this._buffer.getLineCount();if(xe<1)return new D.a(1,1);if(xe>lt)return new D.a(lt,this.getLineMaxColumn(lt));if(Ie<=1)return new D.a(xe,1);var ft=this.getLineMaxColumn(xe);if(Ie>=ft)return new D.a(xe,ft);if(De===1){var At=this._buffer.getLineCharCode(xe,Ie-2);if(I.z(At))return new D.a(xe,Ie-1)}return new D.a(xe,Ie)},_.prototype.validatePosition=function(A){var X=1;return this._assertNotDisposed(),A instanceof D.a&&this._isValidPosition(A.lineNumber,A.column,X)?A:this._validatePosition(A.lineNumber,A.column,X)},_.prototype._isValidRange=function(A,X){var De=A.startLineNumber,xe=A.startColumn,Ie=A.endLineNumber,lt=A.endColumn;if(!this._isValidPosition(De,xe,0))return!1;if(!this._isValidPosition(Ie,lt,0))return!1;if(X===1){var ft=xe>1?this._buffer.getLineCharCode(De,xe-2):0,At=lt>1&&lt<=this._buffer.getLineLength(Ie)?this._buffer.getLineCharCode(Ie,lt-2):0,Ft=I.z(ft),Ut=I.z(At);return!Ft&&!Ut}return!0},_.prototype.validateRange=function(A){var X=1;if(this._assertNotDisposed(),A instanceof U.a&&!(A instanceof j.a)&&this._isValidRange(A,X))return A;var De=this._validatePosition(A.startLineNumber,A.startColumn,0),xe=this._validatePosition(A.endLineNumber,A.endColumn,0),Ie=De.lineNumber,lt=De.column,ft=xe.lineNumber,At=xe.column;if(X===1){var Ft=lt>1?this._buffer.getLineCharCode(Ie,lt-2):0,Ut=At>1&&At<=this._buffer.getLineLength(ft)?this._buffer.getLineCharCode(ft,At-2):0,Vt=I.z(Ft),oo=I.z(Ut);return!Vt&&!oo?new U.a(Ie,lt,ft,At):Ie===ft&&lt===At?new U.a(Ie,lt-1,ft,At-1):Vt&&oo?new U.a(Ie,lt-1,ft,At+1):Vt?new U.a(Ie,lt-1,ft,At):new U.a(Ie,lt,ft,At+1)}return new U.a(Ie,lt,ft,At)},_.prototype.modifyPosition=function(A,X){this._assertNotDisposed();var De=this.getOffsetAt(A)+X;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,De)))},_.prototype.getFullModelRange=function(){this._assertNotDisposed();var A=this.getLineCount();return new U.a(1,1,A,this.getLineMaxColumn(A))},_.prototype.findMatchesLineByLine=function(A,X,De,xe){return this._buffer.findMatchesLineByLine(A,X,De,xe)},_.prototype.findMatches=function(A,X,De,xe,Ie,lt,ft){ft===void 0&&(ft=tn),this._assertNotDisposed();var At;if(U.a.isIRange(X)?At=this.validateRange(X):At=this.getFullModelRange(),!De&&A.indexOf(`
`)<0){var Ft=new Ot.a(A,De,xe,Ie),Ut=Ft.parseSearchRequest();return Ut?this.findMatchesLineByLine(At,Ut,lt,ft):[]}return Ot.c.findMatches(this,new Ot.a(A,De,xe,Ie),At,lt,ft)},_.prototype.findNextMatch=function(A,X,De,xe,Ie,lt){this._assertNotDisposed();var ft=this.validatePosition(X);if(!De&&A.indexOf(`
`)<0){var At=new Ot.a(A,De,xe,Ie),Ft=At.parseSearchRequest();if(!Ft)return null;var Ut=this.getLineCount(),Vt=new U.a(ft.lineNumber,ft.column,Ut,this.getLineMaxColumn(Ut)),oo=this.findMatchesLineByLine(Vt,Ft,lt,1);return Ot.c.findNextMatch(this,new Ot.a(A,De,xe,Ie),ft,lt),oo.length>0?oo[0]:(Vt=new U.a(1,1,ft.lineNumber,this.getLineMaxColumn(ft.lineNumber)),oo=this.findMatchesLineByLine(Vt,Ft,lt,1),oo.length>0?oo[0]:null)}return Ot.c.findNextMatch(this,new Ot.a(A,De,xe,Ie),ft,lt)},_.prototype.findPreviousMatch=function(A,X,De,xe,Ie,lt){this._assertNotDisposed();var ft=this.validatePosition(X);return Ot.c.findPreviousMatch(this,new Ot.a(A,De,xe,Ie),ft,lt)},_.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},_.prototype.pushEOL=function(A){var X=this.getEOL()===`
`?0:1;if(X===A)return;try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(A)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},_.prototype.pushEditOperations=function(A,X,De){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(A,X,De)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},_.prototype._pushEditOperations=function(A,X,De){var xe=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var Ie=X.map(function(he){return{range:xe.validateRange(he.range),text:he.text}}),lt=!0,ft=0,At=A.length;ft<At;ft++){for(var Ft=A[ft],Ut=!1,Vt=0,oo=Ie.length;Vt<oo;Vt++){var Zt=Ie[Vt].range,mo=Zt.startLineNumber>Ft.endLineNumber,mt=Ft.startLineNumber>Zt.endLineNumber;if(!mo&&!mt){Ut=!0;break}}if(!Ut){lt=!1;break}}if(lt)for(var ft=0,At=this._trimAutoWhitespaceLines.length;ft<At;ft++){for(var He=this._trimAutoWhitespaceLines[ft],Oe=this.getLineMaxColumn(He),ot=!0,Vt=0,oo=Ie.length;Vt<oo;Vt++){var Zt=Ie[Vt].range,xt=Ie[Vt].text;if(He<Zt.startLineNumber||He>Zt.endLineNumber)continue;if(He===Zt.startLineNumber&&Zt.startColumn===Oe&&Zt.isEmpty()&&xt&&xt.length>0&&xt.charAt(0)===`
`)continue;if(He===Zt.startLineNumber&&Zt.startColumn===1&&Zt.isEmpty()&&xt&&xt.length>0&&xt.charAt(xt.length-1)===`
`)continue;ot=!1;break}ot&&X.push({range:new U.a(He,1,He,Oe),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(A,X,De)},_.prototype.applyEdits=function(A){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(A)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},_.prototype._applyEdits=function(A){for(var X=0,De=A.length;X<De;X++)A[X].range=this.validateRange(A[X].range);var xe=this._buffer.getLineCount(),Ie=this._buffer.applyEdits(A,this._options.trimAutoWhitespace),lt=this._buffer.getLineCount(),ft=Ie.changes;if(this._trimAutoWhitespaceLines=Ie.trimAutoWhitespaceLineNumbers,ft.length!==0){for(var At=[],Ft=xe,X=0,De=ft.length;X<De;X++){var Ut=ft[X],Vt=Object(Y.f)(Ut.text),oo=Vt[0],Zt=Vt[1],mo=Vt[2];this._tokens.acceptEdit(Ut.range,oo,Zt),this._tokens2.acceptEdit(Ut.range,oo,Zt,mo,Ut.text.length>0?Ut.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(Ut.rangeOffset,Ut.rangeLength,Ut.text.length,Ut.forceMoveMarkers);for(var mt=Ut.range.startLineNumber,He=Ut.range.endLineNumber,Oe=He-mt,ot=oo,xt=Math.min(Oe,ot),he=ot-Oe,M=xt;M>=0;M--){var ue=mt+M,We=lt-Ft-he+ue;At.push(new Et(ue,this.getLineContent(We)))}if(xt<Oe){var Ze=mt+xt;At.push(new Yt(Ze+1,He))}if(xt<ot){for(var at=mt+xt,wt=ot-xt,zt=lt-Ft-wt+at+1,Xt=[],no=0;no<wt;no++){var uo=zt+no;Xt[uo-zt]=this.getLineContent(uo)}At.push(new Nt(at+1,mt+ot,Xt))}Ft+=he}this._increaseVersionId(),this._emitContentChangedEvent(new $e(At,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:ft,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return Ie.reverseEdits},_.prototype._undo=function(){this._isUndoing=!0;var A=this._commandManager.undo();return this._isUndoing=!1,A?(this._overwriteAlternativeVersionId(A.recordedVersionId),A.selections):null},_.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},_.prototype.canUndo=function(){return this._commandManager.canUndo()},_.prototype._redo=function(){this._isRedoing=!0;var A=this._commandManager.redo();return this._isRedoing=!1,A?(this._overwriteAlternativeVersionId(A.recordedVersionId),A.selections):null},_.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},_.prototype.canRedo=function(){return this._commandManager.canRedo()},_.prototype.changeDecorations=function(A,X){X===void 0&&(X=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(X,A)}finally{this._onDidChangeDecorations.endDeferredEmit()}},_.prototype._changeDecorations=function(A,X){var De=this,xe={addDecoration:function(lt,ft){return De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(A,[],[{range:lt,options:ft}])[0]},changeDecoration:function(lt,ft){De._onDidChangeDecorations.fire(),De._changeDecorationImpl(lt,ft)},changeDecorationOptions:function(lt,ft){De._onDidChangeDecorations.fire(),De._changeDecorationOptionsImpl(lt,st(ft))},removeDecoration:function(lt){De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(A,[lt],[])},deltaDecorations:function(lt,ft){return lt.length===0&&ft.length===0?[]:(De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(A,lt,ft))}},Ie=null;try{Ie=X(xe)}catch(lt){Object(T.e)(lt)}return xe.addDecoration=Vo,xe.changeDecoration=Vo,xe.changeDecorationOptions=Vo,xe.removeDecoration=Vo,xe.deltaDecorations=Vo,Ie},_.prototype.deltaDecorations=function(A,X,De){if(De===void 0&&(De=0),this._assertNotDisposed(),A||(A=[]),A.length===0&&X.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(De,A,X)}finally{this._onDidChangeDecorations.endDeferredEmit()}},_.prototype._getTrackedRange=function(A){return this.getDecorationRange(A)},_.prototype._setTrackedRange=function(A,X,De){var xe=A?this._decorations[A]:null;if(!xe)return X?this._deltaDecorationsImpl(0,[],[{range:X,options:St[De]}])[0]:null;if(!X)return this._decorationsTree.delete(xe),delete this._decorations[xe.id],null;var Ie=this._validateRangeRelaxedNoAllocations(X),lt=this._buffer.getOffsetAt(Ie.startLineNumber,Ie.startColumn),ft=this._buffer.getOffsetAt(Ie.endLineNumber,Ie.endColumn);return this._decorationsTree.delete(xe),xe.reset(this.getVersionId(),lt,ft,Ie),xe.setOptions(St[De]),this._decorationsTree.insert(xe),xe.id},_.prototype.removeAllDecorationsWithOwnerId=function(A){if(this._isDisposed)return;for(var X=this._decorationsTree.collectNodesFromOwner(A),De=0,xe=X.length;De<xe;De++){var Ie=X[De];this._decorationsTree.delete(Ie),delete this._decorations[Ie.id]}},_.prototype.getDecorationOptions=function(A){var X=this._decorations[A];return X?X.options:null},_.prototype.getDecorationRange=function(A){var X=this._decorations[A];if(!X)return null;var De=this.getVersionId();return X.cachedVersionId!==De&&this._decorationsTree.resolveNode(X,De),X.range===null&&(X.range=this._getRangeAt(X.cachedAbsoluteStart,X.cachedAbsoluteEnd)),X.range},_.prototype.getLineDecorations=function(A,X,De){return X===void 0&&(X=0),De===void 0&&(De=!1),A<1||A>this.getLineCount()?[]:this.getLinesDecorations(A,A,X,De)},_.prototype.getLinesDecorations=function(A,X,De,xe){De===void 0&&(De=0),xe===void 0&&(xe=!1);var Ie=this.getLineCount(),lt=Math.min(Ie,Math.max(1,A)),ft=Math.min(Ie,Math.max(1,X)),At=this.getLineMaxColumn(ft);return this._getDecorationsInRange(new U.a(lt,1,ft,At),De,xe)},_.prototype.getDecorationsInRange=function(A,X,De){X===void 0&&(X=0),De===void 0&&(De=!1);var xe=this.validateRange(A);return this._getDecorationsInRange(xe,X,De)},_.prototype.getOverviewRulerDecorations=function(A,X){A===void 0&&(A=0),X===void 0&&(X=!1);var De=this.getVersionId(),xe=this._decorationsTree.search(A,X,!0,De);return this._ensureNodesHaveRanges(xe)},_.prototype.getAllDecorations=function(A,X){A===void 0&&(A=0),X===void 0&&(X=!1);var De=this.getVersionId(),xe=this._decorationsTree.search(A,X,!1,De);return this._ensureNodesHaveRanges(xe)},_.prototype._getDecorationsInRange=function(A,X,De){var xe=this._buffer.getOffsetAt(A.startLineNumber,A.startColumn),Ie=this._buffer.getOffsetAt(A.endLineNumber,A.endColumn),lt=this.getVersionId(),ft=this._decorationsTree.intervalSearch(xe,Ie,X,De,lt);return this._ensureNodesHaveRanges(ft)},_.prototype._ensureNodesHaveRanges=function(A){for(var X=0,De=A.length;X<De;X++){var xe=A[X];xe.range===null&&(xe.range=this._getRangeAt(xe.cachedAbsoluteStart,xe.cachedAbsoluteEnd))}return A},_.prototype._getRangeAt=function(A,X){return this._buffer.getRangeAt(A,X-A)},_.prototype._changeDecorationImpl=function(A,X){var De=this._decorations[A];if(!De)return;var xe=this._validateRangeRelaxedNoAllocations(X),Ie=this._buffer.getOffsetAt(xe.startLineNumber,xe.startColumn),lt=this._buffer.getOffsetAt(xe.endLineNumber,xe.endColumn);this._decorationsTree.delete(De),De.reset(this.getVersionId(),Ie,lt,xe),this._decorationsTree.insert(De)},_.prototype._changeDecorationOptionsImpl=function(A,X){var De=this._decorations[A];if(!De)return;var xe=!!(De.options.overviewRuler&&De.options.overviewRuler.color),Ie=!!(X.overviewRuler&&X.overviewRuler.color);xe!==Ie?(this._decorationsTree.delete(De),De.setOptions(X),this._decorationsTree.insert(De)):De.setOptions(X)},_.prototype._deltaDecorationsImpl=function(A,X,De){for(var xe=this.getVersionId(),Ie=X.length,lt=0,ft=De.length,At=0,Ft=new Array(ft);lt<Ie||At<ft;){var Ut=null;if(lt<Ie){do Ut=this._decorations[X[lt++]];while(!Ut&&lt<Ie);Ut&&this._decorationsTree.delete(Ut)}if(At<ft){if(!Ut){var Vt=++this._lastDecorationId,oo=this._instanceId+";"+Vt;Ut=new B(oo,0,0),this._decorations[oo]=Ut}var Zt=De[At],mo=this._validateRangeRelaxedNoAllocations(Zt.range),mt=st(Zt.options),He=this._buffer.getOffsetAt(mo.startLineNumber,mo.startColumn),Oe=this._buffer.getOffsetAt(mo.endLineNumber,mo.endColumn);Ut.ownerId=A,Ut.reset(xe,He,Oe,mo),Ut.setOptions(mt),this._decorationsTree.insert(Ut),Ft[At]=Ut.id,At++}else Ut&&delete this._decorations[Ut.id]}return Ft},_.prototype.setLineTokens=function(A,X){if(A<1||A>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,A-1,this._buffer.getLineLength(A),X)},_.prototype.setTokens=function(A){if(A.length===0)return;for(var X=[],De=0,xe=A.length;De<xe;De++){var Ie=A[De];X.push({fromLineNumber:Ie.startLineNumber,toLineNumber:Ie.startLineNumber+Ie.tokens.length-1});for(var lt=0,ft=Ie.tokens.length;lt<ft;lt++)this.setLineTokens(Ie.startLineNumber+lt,Ie.tokens[lt])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:X})},_.prototype.setSemanticTokens=function(A){this._tokens2.set(A),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},_.prototype.tokenizeViewport=function(A,X){A=Math.max(1,A),X=Math.min(this._buffer.getLineCount(),X),this._tokenization.tokenizeViewport(A,X)},_.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},_.prototype._emitModelTokensChangedEvent=function(A){this._isDisposing||this._onDidChangeTokens.fire(A)},_.prototype.resetTokenization=function(){this._tokenization.reset()},_.prototype.forceTokenization=function(A){if(A<1||A>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(A)},_.prototype.isCheapToTokenize=function(A){return this._tokenization.isCheapToTokenize(A)},_.prototype.tokenizeIfCheap=function(A){this.isCheapToTokenize(A)&&this.forceTokenization(A)},_.prototype.getLineTokens=function(A){if(A<1||A>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(A)},_.prototype._getLineTokens=function(A){var X=this.getLineContent(A),De=this._tokens.getTokens(this._languageIdentifier.id,A-1,X);return this._tokens2.addSemanticTokens(A,De)},_.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},_.prototype.getModeId=function(){return this._languageIdentifier.language},_.prototype.setMode=function(A){if(this._languageIdentifier.id===A.id)return;var X={oldLanguage:this._languageIdentifier.language,newLanguage:A.language};this._languageIdentifier=A,this._onDidChangeLanguage.fire(X),this._onDidChangeLanguageConfiguration.fire({})},_.prototype.getLanguageIdAtPosition=function(A,X){var De=this.validatePosition(new D.a(A,X)),xe=this.getLineTokens(De.lineNumber);return xe.getLanguageId(xe.findTokenIndexAtOffset(De.column-1))},_.prototype.getWordAtPosition=function(A){this._assertNotDisposed();var X=this.validatePosition(A),De=this.getLineContent(X.lineNumber),xe=this._getLineTokens(X.lineNumber),Ie=xe.findTokenIndexAtOffset(X.column-1),lt=_._findLanguageBoundaries(xe,Ie),ft=lt[0],At=lt[1],Ft=Object(fo.d)(X.column,ho.a.getWordDefinition(xe.getLanguageId(Ie)),De.substring(ft,At),ft);if(Ft&&Ft.startColumn<=A.column&&A.column<=Ft.endColumn)return Ft;if(Ie>0&&ft===X.column-1){var Ut=_._findLanguageBoundaries(xe,Ie-1),Vt=Ut[0],oo=Ut[1],Zt=Object(fo.d)(X.column,ho.a.getWordDefinition(xe.getLanguageId(Ie-1)),De.substring(Vt,oo),Vt);if(Zt&&Zt.startColumn<=A.column&&A.column<=Zt.endColumn)return Zt}return null},_._findLanguageBoundaries=function(A,X){for(var De=A.getLanguageId(X),xe=0,Ie=X;Ie>=0&&A.getLanguageId(Ie)===De;Ie--)xe=A.getStartOffset(Ie);for(var lt=A.getLineContent().length,Ie=X,ft=A.getCount();Ie<ft&&A.getLanguageId(Ie)===De;Ie++)lt=A.getEndOffset(Ie);return[xe,lt]},_.prototype.getWordUntilPosition=function(A){var X=this.getWordAtPosition(A);return X?{word:X.word.substr(0,A.column-X.startColumn),startColumn:X.startColumn,endColumn:A.column}:{word:"",startColumn:A.column,endColumn:A.column}},_.prototype.findMatchingBracketUp=function(A,X){var De=A.toLowerCase(),xe=this.validatePosition(X),Ie=this._getLineTokens(xe.lineNumber),lt=Ie.getLanguageId(Ie.findTokenIndexAtOffset(xe.column-1)),ft=ho.a.getBracketsSupport(lt);if(!ft)return null;var At=ft.textIsBracket[De];return At?this._findMatchingBracketUp(At,xe):null},_.prototype.matchBracket=function(A){return this._matchBracket(this.validatePosition(A))},_.prototype._matchBracket=function(A){var X=A.lineNumber,De=this._getLineTokens(X),xe=De.getCount(),Ie=this._buffer.getLineContent(X),lt=De.findTokenIndexAtOffset(A.column-1);if(lt<0)return null;var ft=ho.a.getBracketsSupport(De.getLanguageId(lt));if(ft&&!Object(wo.b)(De.getStandardTokenType(lt))){for(var At=Math.max(0,A.column-1-ft.maxBracketLength),Ft=lt-1;Ft>=0;Ft--){var Ut=De.getEndOffset(Ft);if(Ut<=At)break;Object(wo.b)(De.getStandardTokenType(Ft))&&(At=Ut)}for(var Vt=Math.min(Ie.length,A.column-1+ft.maxBracketLength),oo=null;;){var Zt=Oo.a.findNextBracketInRange(ft.forwardRegex,X,Ie,At,Vt);if(!Zt)break;if(Zt.startColumn<=A.column&&A.column<=Zt.endColumn){var mo=Ie.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),mt=this._matchFoundBracket(Zt,ft.textIsBracket[mo],ft.textIsOpenBracket[mo]);mt&&(oo=mt)}At=Zt.endColumn-1}if(oo)return oo}if(lt>0&&De.getStartOffset(lt)===A.column-1){var He=lt-1,Oe=ho.a.getBracketsSupport(De.getLanguageId(He));if(Oe&&!Object(wo.b)(De.getStandardTokenType(He))){for(var At=Math.max(0,A.column-1-Oe.maxBracketLength),Vt=Math.min(Ie.length,A.column-1+Oe.maxBracketLength),Ft=He+1;Ft<xe;Ft++){var ot=De.getStartOffset(Ft);if(ot>=Vt)break;Object(wo.b)(De.getStandardTokenType(Ft))&&(Vt=ot)}var Zt=Oo.a.findPrevBracketInRange(Oe.reversedRegex,X,Ie,At,Vt);if(Zt&&Zt.startColumn<=A.column&&A.column<=Zt.endColumn){var mo=Ie.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),mt=this._matchFoundBracket(Zt,Oe.textIsBracket[mo],Oe.textIsOpenBracket[mo]);if(mt)return mt}}}return null},_.prototype._matchFoundBracket=function(A,X,De){if(!X)return null;if(De){var xe=this._findMatchingBracketDown(X,A.getEndPosition());if(xe)return[A,xe]}else{var xe=this._findMatchingBracketUp(X,A.getStartPosition());if(xe)return[A,xe]}return null},_.prototype._findMatchingBracketUp=function(A,X){for(var De=A.languageIdentifier.id,xe=A.reversedRegex,Ie=-1,lt=function(Oe,ot,xt,he){for(;;){var M=Oo.a.findPrevBracketInRange(xe,Oe,ot,xt,he);if(!M)break;var ue=ot.substring(M.startColumn-1,M.endColumn-1).toLowerCase();if(A.isOpen(ue)?Ie++:A.isClose(ue)&&Ie--,Ie===0)return M;he=M.startColumn-1}return null},ft=X.lineNumber;ft>=1;ft--){var At=this._getLineTokens(ft),Ft=At.getCount(),Ut=this._buffer.getLineContent(ft),Vt=Ft-1,oo=Ut.length,Zt=Ut.length;ft===X.lineNumber&&(Vt=At.findTokenIndexAtOffset(X.column-1),oo=X.column-1,Zt=X.column-1);for(var mo=!0;Vt>=0;Vt--){var mt=At.getLanguageId(Vt)===De&&!Object(wo.b)(At.getStandardTokenType(Vt));if(mt)mo?oo=At.getStartOffset(Vt):(oo=At.getStartOffset(Vt),Zt=At.getEndOffset(Vt));else if(mo&&oo!==Zt){var He=lt(ft,Ut,oo,Zt);if(He)return He}mo=mt}if(mo&&oo!==Zt){var He=lt(ft,Ut,oo,Zt);if(He)return He}}return null},_.prototype._findMatchingBracketDown=function(A,X){for(var De=A.languageIdentifier.id,xe=A.forwardRegex,Ie=1,lt=function(ot,xt,he,M){for(;;){var ue=Oo.a.findNextBracketInRange(xe,ot,xt,he,M);if(!ue)break;var We=xt.substring(ue.startColumn-1,ue.endColumn-1).toLowerCase();if(A.isOpen(We)?Ie++:A.isClose(We)&&Ie--,Ie===0)return ue;he=ue.endColumn-1}return null},ft=this.getLineCount(),At=X.lineNumber;At<=ft;At++){var Ft=this._getLineTokens(At),Ut=Ft.getCount(),Vt=this._buffer.getLineContent(At),oo=0,Zt=0,mo=0;At===X.lineNumber&&(oo=Ft.findTokenIndexAtOffset(X.column-1),Zt=X.column-1,mo=X.column-1);for(var mt=!0;oo<Ut;oo++){var He=Ft.getLanguageId(oo)===De&&!Object(wo.b)(Ft.getStandardTokenType(oo));if(He)mt||(Zt=Ft.getStartOffset(oo)),mo=Ft.getEndOffset(oo);else if(mt&&Zt!==mo){var Oe=lt(At,Vt,Zt,mo);if(Oe)return Oe}mt=He}if(mt&&Zt!==mo){var Oe=lt(At,Vt,Zt,mo);if(Oe)return Oe}}return null},_.prototype.findPrevBracket=function(A){for(var X=this.validatePosition(A),De=-1,xe=null,Ie=X.lineNumber;Ie>=1;Ie--){var lt=this._getLineTokens(Ie),ft=lt.getCount(),At=this._buffer.getLineContent(Ie),Ft=ft-1,Ut=At.length,Vt=At.length;if(Ie===X.lineNumber){Ft=lt.findTokenIndexAtOffset(X.column-1),Ut=X.column-1,Vt=X.column-1;var oo=lt.getLanguageId(Ft);De!==oo&&(De=oo,xe=ho.a.getBracketsSupport(De))}for(var Zt=!0;Ft>=0;Ft--){var oo=lt.getLanguageId(Ft);if(De!==oo){if(xe&&Zt&&Ut!==Vt){var mo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ie,At,Ut,Vt);if(mo)return this._toFoundBracket(xe,mo);Zt=!1}De=oo,xe=ho.a.getBracketsSupport(De)}var mt=!!xe&&!Object(wo.b)(lt.getStandardTokenType(Ft));if(mt)Zt?Ut=lt.getStartOffset(Ft):(Ut=lt.getStartOffset(Ft),Vt=lt.getEndOffset(Ft));else if(xe&&Zt&&Ut!==Vt){var mo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ie,At,Ut,Vt);if(mo)return this._toFoundBracket(xe,mo)}Zt=mt}if(xe&&Zt&&Ut!==Vt){var mo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ie,At,Ut,Vt);if(mo)return this._toFoundBracket(xe,mo)}}return null},_.prototype.findNextBracket=function(A){for(var X=this.validatePosition(A),De=this.getLineCount(),xe=-1,Ie=null,lt=X.lineNumber;lt<=De;lt++){var ft=this._getLineTokens(lt),At=ft.getCount(),Ft=this._buffer.getLineContent(lt),Ut=0,Vt=0,oo=0;if(lt===X.lineNumber){Ut=ft.findTokenIndexAtOffset(X.column-1),Vt=X.column-1,oo=X.column-1;var Zt=ft.getLanguageId(Ut);xe!==Zt&&(xe=Zt,Ie=ho.a.getBracketsSupport(xe))}for(var mo=!0;Ut<At;Ut++){var Zt=ft.getLanguageId(Ut);if(xe!==Zt){if(Ie&&mo&&Vt!==oo){var mt=Oo.a.findNextBracketInRange(Ie.forwardRegex,lt,Ft,Vt,oo);if(mt)return this._toFoundBracket(Ie,mt);mo=!1}xe=Zt,Ie=ho.a.getBracketsSupport(xe)}var He=!!Ie&&!Object(wo.b)(ft.getStandardTokenType(Ut));if(He)mo||(Vt=ft.getStartOffset(Ut)),oo=ft.getEndOffset(Ut);else if(Ie&&mo&&Vt!==oo){var mt=Oo.a.findNextBracketInRange(Ie.forwardRegex,lt,Ft,Vt,oo);if(mt)return this._toFoundBracket(Ie,mt)}mo=He}if(Ie&&mo&&Vt!==oo){var mt=Oo.a.findNextBracketInRange(Ie.forwardRegex,lt,Ft,Vt,oo);if(mt)return this._toFoundBracket(Ie,mt)}}return null},_.prototype.findEnclosingBrackets=function(A,X){var De=this;X===void 0&&(X=1073741824);for(var xe=this.validatePosition(A),Ie=this.getLineCount(),lt=new Map,ft=[],At=function(at,wt){if(!lt.has(at)){for(var zt=[],Xt=0,no=wt?wt.brackets.length:0;Xt<no;Xt++)zt[Xt]=0;lt.set(at,zt)}ft=lt.get(at)},Ft=function(at,wt,zt,Xt,no){for(;;){var uo=Oo.a.findNextBracketInRange(at.forwardRegex,wt,zt,Xt,no);if(!uo)break;var go=zt.substring(uo.startColumn-1,uo.endColumn-1).toLowerCase(),Ao=at.textIsBracket[go];if(Ao&&(Ao.isOpen(go)?ft[Ao.index]++:Ao.isClose(go)&&ft[Ao.index]--,ft[Ao.index]===-1))return De._matchFoundBracket(uo,Ao,!1);Xt=uo.endColumn-1}return null},Ut=-1,Vt=null,oo=Date.now(),Zt=xe.lineNumber;Zt<=Ie;Zt++){var mo=Date.now()-oo;if(mo>X)return null;var mt=this._getLineTokens(Zt),He=mt.getCount(),Oe=this._buffer.getLineContent(Zt),ot=0,xt=0,he=0;if(Zt===xe.lineNumber){ot=mt.findTokenIndexAtOffset(xe.column-1),xt=xe.column-1,he=xe.column-1;var M=mt.getLanguageId(ot);Ut!==M&&(Ut=M,Vt=ho.a.getBracketsSupport(Ut),At(Ut,Vt))}for(var ue=!0;ot<He;ot++){var M=mt.getLanguageId(ot);if(Ut!==M){if(Vt&&ue&&xt!==he){var We=Ft(Vt,Zt,Oe,xt,he);if(We)return We;ue=!1}Ut=M,Vt=ho.a.getBracketsSupport(Ut),At(Ut,Vt)}var Ze=!!Vt&&!Object(wo.b)(mt.getStandardTokenType(ot));if(Ze)ue||(xt=mt.getStartOffset(ot)),he=mt.getEndOffset(ot);else if(Vt&&ue&&xt!==he){var We=Ft(Vt,Zt,Oe,xt,he);if(We)return We}ue=Ze}if(Vt&&ue&&xt!==he){var We=Ft(Vt,Zt,Oe,xt,he);if(We)return We}}return null},_.prototype._toFoundBracket=function(A,X){if(!X)return null;var De=this.getValueInRange(X);De=De.toLowerCase();var xe=A.textIsBracket[De];return xe?{range:X,open:xe.open,close:xe.close,isOpen:A.textIsOpenBracket[De]}:null},_.computeIndentLevel=function(A,X){for(var De=0,xe=0,Ie=A.length;xe<Ie;){var lt=A.charCodeAt(xe);if(lt===32)De++;else if(lt===9)De=De-De%X+X;else break;xe++}return xe===Ie?-1:De},_.prototype._computeIndentLevel=function(A){return _.computeIndentLevel(this._buffer.getLineContent(A+1),this._options.tabSize)},_.prototype.getActiveIndentGuide=function(A,X,De){var xe=this;this._assertNotDisposed();var Ie=this.getLineCount();if(A<1||A>Ie)throw new Error("Illegal value for lineNumber");for(var lt=ho.a.getFoldingRules(this._languageIdentifier.id),ft=Boolean(lt&&lt.offSide),At=-2,Ft=-1,Ut=-2,Vt=-1,oo=function(no){if(At!==-1&&(At===-2||At>no-1)){At=-1,Ft=-1;for(var uo=no-2;uo>=0;uo--){var go=xe._computeIndentLevel(uo);if(go>=0){At=uo,Ft=go;break}}}if(Ut===-2){Ut=-1,Vt=-1;for(var uo=no;uo<Ie;uo++){var Ao=xe._computeIndentLevel(uo);if(Ao>=0){Ut=uo,Vt=Ao;break}}}},Zt=-2,mo=-1,mt=-2,He=-1,Oe=function(no){if(Zt===-2){Zt=-1,mo=-1;for(var uo=no-2;uo>=0;uo--){var go=xe._computeIndentLevel(uo);if(go>=0){Zt=uo,mo=go;break}}}if(mt!==-1&&(mt===-2||mt<no-1)){mt=-1,He=-1;for(var uo=no;uo<Ie;uo++){var Ao=xe._computeIndentLevel(uo);if(Ao>=0){mt=uo,He=Ao;break}}}},ot=0,xt=!0,he=0,M=!0,ue=0,We=0;xt||M;We++){var Ze=A-We,at=A+We;if(We!==0&&(Ze<1||Ze<X)&&(xt=!1),We!==0&&(at>Ie||at>De)&&(M=!1),We>5e4&&(xt=!1,M=!1),xt){var wt=void 0,zt=this._computeIndentLevel(Ze-1);if(zt>=0?(Ut=Ze-1,Vt=zt,wt=Math.ceil(zt/this._options.indentSize)):(oo(Ze),wt=this._getIndentLevelForWhitespaceLine(ft,Ft,Vt)),We===0){if(ot=Ze,he=at,ue=wt,ue===0)return{startLineNumber:ot,endLineNumber:he,indent:ue};continue}wt>=ue?ot=Ze:xt=!1}if(M){var Xt=void 0,zt=this._computeIndentLevel(at-1);zt>=0?(Zt=at-1,mo=zt,Xt=Math.ceil(zt/this._options.indentSize)):(Oe(at),Xt=this._getIndentLevelForWhitespaceLine(ft,mo,He)),Xt>=ue?he=at:M=!1}}return{startLineNumber:ot,endLineNumber:he,indent:ue}},_.prototype.getLinesIndentGuides=function(A,X){this._assertNotDisposed();var De=this.getLineCount();if(A<1||A>De)throw new Error("Illegal value for startLineNumber");if(X<1||X>De)throw new Error("Illegal value for endLineNumber");for(var xe=ho.a.getFoldingRules(this._languageIdentifier.id),Ie=Boolean(xe&&xe.offSide),lt=new Array(X-A+1),ft=-2,At=-1,Ft=-2,Ut=-1,Vt=A;Vt<=X;Vt++){var oo=Vt-A,Zt=this._computeIndentLevel(Vt-1);if(Zt>=0){ft=Vt-1,At=Zt,lt[oo]=Math.ceil(Zt/this._options.indentSize);continue}if(ft===-2){ft=-1,At=-1;for(var mo=Vt-2;mo>=0;mo--){var mt=this._computeIndentLevel(mo);if(mt>=0){ft=mo,At=mt;break}}}if(Ft!==-1&&(Ft===-2||Ft<Vt-1)){Ft=-1,Ut=-1;for(var mo=Vt;mo<De;mo++){var mt=this._computeIndentLevel(mo);if(mt>=0){Ft=mo,Ut=mt;break}}}lt[oo]=this._getIndentLevelForWhitespaceLine(Ie,At,Ut)}return lt},_.prototype._getIndentLevelForWhitespaceLine=function(A,X,De){return X===-1||De===-1?0:X<De?1+Math.floor(X/this._options.indentSize):X===De?Math.ceil(De/this._options.indentSize):A?Math.ceil(De/this._options.indentSize):1+Math.floor(De/this._options.indentSize)},_.MODEL_SYNC_LIMIT=50*1024*1024,_.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024,_.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3,_.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:K.c.tabSize,indentSize:K.c.indentSize,insertSpaces:K.c.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:K.c.trimAutoWhitespace,largeFileOptimizations:K.c.largeFileOptimizations},_}(J.a),pn=function(){function be(){this._decorationsTree0=new we,this._decorationsTree1=new we}return be.prototype.intervalSearch=function(_,A,X,De,xe){var Ie=this._decorationsTree0.intervalSearch(_,A,X,De,xe),lt=this._decorationsTree1.intervalSearch(_,A,X,De,xe);return Ie.concat(lt)},be.prototype.search=function(_,A,X,De){if(X)return this._decorationsTree1.search(_,A,De);var xe=this._decorationsTree0.search(_,A,De),Ie=this._decorationsTree1.search(_,A,De);return xe.concat(Ie)},be.prototype.collectNodesFromOwner=function(_){var A=this._decorationsTree0.collectNodesFromOwner(_),X=this._decorationsTree1.collectNodesFromOwner(_);return A.concat(X)},be.prototype.collectNodesPostOrder=function(){var _=this._decorationsTree0.collectNodesPostOrder(),A=this._decorationsTree1.collectNodesPostOrder();return _.concat(A)},be.prototype.insert=function(_){R(_)?this._decorationsTree1.insert(_):this._decorationsTree0.insert(_)},be.prototype.delete=function(_){R(_)?this._decorationsTree1.delete(_):this._decorationsTree0.delete(_)},be.prototype.resolveNode=function(_,A){R(_)?this._decorationsTree1.resolveNode(_,A):this._decorationsTree0.resolveNode(_,A)},be.prototype.acceptReplace=function(_,A,X,De){this._decorationsTree0.acceptReplace(_,A,X,De),this._decorationsTree1.acceptReplace(_,A,X,De)},be}();function rn(be){return be.replace(/[^a-z0-9\-_]/gi," ")}var on=function(){function be(_){this.color=_.color||"",this.darkColor=_.darkColor||""}return be}(),dn=function(be){Eo(_,be);function _(A){var X=be.call(this,A)||this;return X._resolvedColor=null,X.position=typeof A.position=="number"?A.position:h.d.Center,X}return _.prototype.getColor=function(A){return this._resolvedColor||(A.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,A):this._resolvedColor=this._resolveColor(this.color,A)),this._resolvedColor},_.prototype.invalidateCachedColor=function(){this._resolvedColor=null},_.prototype._resolveColor=function(A,X){if(typeof A=="string")return A;var De=A?X.getColor(A.id):null;return De?De.toString():""},_}(on),Uo=function(be){Eo(_,be);function _(A){var X=be.call(this,A)||this;return X.position=A.position,X}return _.prototype.getColor=function(A){return this._resolvedColor||(A.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,A):this._resolvedColor=this._resolveColor(this.color,A)),this._resolvedColor},_.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},_.prototype._resolveColor=function(A,X){return typeof A=="string"?jo.a.fromHex(A):X.getColor(A.id)},_}(on),Bo=function(){function be(_){this.stickiness=_.stickiness||0,this.zIndex=_.zIndex||0,this.className=_.className?rn(_.className):null,this.hoverMessage=Object(Ro.o)(_.hoverMessage),this.glyphMarginHoverMessage=Object(Ro.o)(_.glyphMarginHoverMessage),this.isWholeLine=_.isWholeLine||!1,this.showIfCollapsed=_.showIfCollapsed||!1,this.collapseOnReplaceEdit=_.collapseOnReplaceEdit||!1,this.overviewRuler=_.overviewRuler?new dn(_.overviewRuler):null,this.minimap=_.minimap?new Uo(_.minimap):null,this.glyphMarginClassName=_.glyphMarginClassName?rn(_.glyphMarginClassName):null,this.linesDecorationsClassName=_.linesDecorationsClassName?rn(_.linesDecorationsClassName):null,this.marginClassName=_.marginClassName?rn(_.marginClassName):null,this.inlineClassName=_.inlineClassName?rn(_.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=_.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=_.beforeContentClassName?rn(_.beforeContentClassName):null,this.afterContentClassName=_.afterContentClassName?rn(_.afterContentClassName):null}return be.register=function(_){return new be(_)},be.createDynamic=function(_){return new be(_)},be}();Bo.EMPTY=Bo.register({});var St=[Bo.register({stickiness:0}),Bo.register({stickiness:1}),Bo.register({stickiness:2}),Bo.register({stickiness:3})];function st(be){return be instanceof Bo?be:Bo.createDynamic(be)}var rt=function(be){Eo(_,be);function _(){var A=be.call(this)||this;return A._actual=A._register(new pe.a),A.event=A._actual.event,A._deferredCnt=0,A._shouldFire=!1,A}return _.prototype.beginDeferredEmit=function(){this._deferredCnt++},_.prototype.endDeferredEmit=function(){this._deferredCnt--,this._deferredCnt===0&&(this._shouldFire&&(this._shouldFire=!1,this._actual.fire({})))},_.prototype.fire=function(){this._shouldFire=!0},_}(J.a),Lt=function(be){Eo(_,be);function _(){var A=be.call(this)||this;return A._fastEmitter=A._register(new pe.a),A.fastEvent=A._fastEmitter.event,A._slowEmitter=A._register(new pe.a),A.slowEvent=A._slowEmitter.event,A._deferredCnt=0,A._deferredEvent=null,A}return _.prototype.beginDeferredEmit=function(){this._deferredCnt++},_.prototype.endDeferredEmit=function(){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){var A=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(A),this._slowEmitter.fire(A)}},_.prototype.fire=function(A){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(A):this._deferredEvent=A;return}this._fastEmitter.fire(A),this._slowEmitter.fire(A)},_}(J.a)},tXSY:function(Mt,F,e){"use strict";e.r(F),e.d(F,"SnippetController2",function(){return Ne});var T=e("pmY6"),pe=e("N0LK"),J=e("sswD"),I=e("aokT"),H=e("gCVg"),K=e("wQH0"),D=e("QVNv"),U=e("T8No"),j=e("09fa"),h=e("6OMU"),b=e("dFcq"),O=e("0/Sa"),m=e("tX9W"),C=e("9XeP"),w=e("EWX2"),v=e("Cg/j"),p=e("uACm"),d=e("3/fG"),c=e("MrjW"),u=e("gslv"),f=e("cMvZ"),E=e("bY76"),L="code-workspace";function R(de){return de instanceof E.a}function P(de){return de.configuration?{configPath:de.configuration,id:de.id}:de.folders.length===1?de.folders[0].uri:void 0}var x=e("3rx1"),Q=function(){function de(ge){this._delegates=ge}return de.prototype.resolve=function(ge){for(var Ee=0,Te=this._delegates;Ee<Te.length;Ee++){var Ce=Te[Ee],fe=Ce.resolve(ge);if(fe!==void 0)return fe}return},de}(),V=function(){function de(ge,Ee){this._model=ge,this._selection=Ee}return de.prototype.resolve=function(ge){var Ee=ge.name;if(Ee==="SELECTION"||Ee==="TM_SELECTED_TEXT"){var Te=this._model.getValueInRange(this._selection)||void 0;if(Te&&this._selection.startLineNumber!==this._selection.endLineNumber&&ge.snippet){var Ce=this._model.getLineContent(this._selection.startLineNumber),fe=Object(pe.t)(Ce,0,this._selection.startColumn-1),$=fe;ge.snippet.walk(function(ce){return ce===ge?!1:(ce instanceof p.d&&($=Object(pe.t)(ce.value.split(/\r\n|\r|\n/).pop())),!0)});var S=Object(pe.c)($,fe);Te=Te.replace(/(\r\n|\r|\n)(.*)/g,function(ce,se,ye){return""+se+$.substr(S)+ye})}return Te}else{if(Ee==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(Ee==="TM_CURRENT_WORD"){var z=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return z&&z.word||void 0}else{if(Ee==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(Ee==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber)}}return},de}(),W=function(){function de(ge,Ee){this._labelService=ge,this._model=Ee}return de.prototype.resolve=function(ge){var Ee=ge.name;if(Ee==="TM_FILENAME")return c.basename(this._model.uri.fsPath);if(Ee==="TM_FILENAME_BASE"){var Te=c.basename(this._model.uri.fsPath),Ce=Te.lastIndexOf(".");return Ce<=0?Te:Te.slice(0,Ce)}else{if(Ee==="TM_DIRECTORY"&&this._labelService)return c.dirname(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(Object(u.d)(this._model.uri));if(Ee==="TM_FILEPATH"&&this._labelService)return this._labelService.getUriLabel(this._model.uri)}return},de}(),B=function(){function de(ge,Ee,Te,Ce){this._readClipboardText=ge,this._selectionIdx=Ee,this._selectionCount=Te,this._spread=Ce}return de.prototype.resolve=function(ge){if(ge.name!=="CLIPBOARD")return;var Ee=this._readClipboardText();if(!Ee)return;if(this._spread){var Te=Ee.split(/\r\n|\n|\r/).filter(function(Ce){return!Object(pe.x)(Ce)});if(Te.length===this._selectionCount)return Te[this._selectionIdx]}return Ee},de}(),ae=function(){function de(ge){this._model=ge}return de.prototype.resolve=function(ge){var Ee=ge.name,Te=this._model.getLanguageIdentifier(),Ce=f.a.getComments(Te.id);return Ce?Ee==="LINE_COMMENT"?Ce.lineCommentToken||void 0:Ee==="BLOCK_COMMENT_START"?Ce.blockCommentStartToken||void 0:Ee==="BLOCK_COMMENT_END"&&Ce.blockCommentEndToken||void 0:void 0},de}(),we=function(){function de(){}return de.prototype.resolve=function(ge){var Ee=ge.name;return Ee==="CURRENT_YEAR"?String(new Date().getFullYear()):Ee==="CURRENT_YEAR_SHORT"?String(new Date().getFullYear()).slice(-2):Ee==="CURRENT_MONTH"?Object(pe.F)(new Date().getMonth().valueOf()+1,2):Ee==="CURRENT_DATE"?Object(pe.F)(new Date().getDate().valueOf(),2):Ee==="CURRENT_HOUR"?Object(pe.F)(new Date().getHours().valueOf(),2):Ee==="CURRENT_MINUTE"?Object(pe.F)(new Date().getMinutes().valueOf(),2):Ee==="CURRENT_SECOND"?Object(pe.F)(new Date().getSeconds().valueOf(),2):Ee==="CURRENT_DAY_NAME"?de.dayNames[new Date().getDay()]:Ee==="CURRENT_DAY_NAME_SHORT"?de.dayNamesShort[new Date().getDay()]:Ee==="CURRENT_MONTH_NAME"?de.monthNames[new Date().getMonth()]:Ee==="CURRENT_MONTH_NAME_SHORT"?de.monthNamesShort[new Date().getMonth()]:Ee==="CURRENT_SECONDS_UNIX"?String(Math.floor(Date.now()/1e3)):void 0},de.dayNames=[d.a("Sunday","Sunday"),d.a("Monday","Monday"),d.a("Tuesday","Tuesday"),d.a("Wednesday","Wednesday"),d.a("Thursday","Thursday"),d.a("Friday","Friday"),d.a("Saturday","Saturday")],de.dayNamesShort=[d.a("SundayShort","Sun"),d.a("MondayShort","Mon"),d.a("TuesdayShort","Tue"),d.a("WednesdayShort","Wed"),d.a("ThursdayShort","Thu"),d.a("FridayShort","Fri"),d.a("SaturdayShort","Sat")],de.monthNames=[d.a("January","January"),d.a("February","February"),d.a("March","March"),d.a("April","April"),d.a("May","May"),d.a("June","June"),d.a("July","July"),d.a("August","August"),d.a("September","September"),d.a("October","October"),d.a("November","November"),d.a("December","December")],de.monthNamesShort=[d.a("JanuaryShort","Jan"),d.a("FebruaryShort","Feb"),d.a("MarchShort","Mar"),d.a("AprilShort","Apr"),d.a("MayShort","May"),d.a("JuneShort","Jun"),d.a("JulyShort","Jul"),d.a("AugustShort","Aug"),d.a("SeptemberShort","Sep"),d.a("OctoberShort","Oct"),d.a("NovemberShort","Nov"),d.a("DecemberShort","Dec")],de}(),Me=function(){function de(ge){this._workspaceService=ge}return de.prototype.resolve=function(ge){if(!this._workspaceService)return;var Ee=P(this._workspaceService.getWorkspace());return Ee?ge.name==="WORKSPACE_NAME"?this._resolveWorkspaceName(Ee):ge.name==="WORKSPACE_FOLDER"?this._resoveWorkspacePath(Ee):void 0:void 0},de.prototype._resolveWorkspaceName=function(ge){if(R(ge))return c.basename(ge.path);var Ee=c.basename(ge.configPath.path);return Object(pe.m)(Ee,L)&&(Ee=Ee.substr(0,Ee.length-L.length-1)),Ee},de.prototype._resoveWorkspacePath=function(ge){if(R(ge))return Object(x.c)(ge.fsPath);var Ee=c.basename(ge.configPath.path),Te=ge.configPath.fsPath;return Object(pe.m)(Te,Ee)&&(Te=Te.substr(0,Te.length-Ee.length-1)),Te?Object(x.c)(Te):"/"},de}(),Pe=function(){function de(){}return de.prototype.resolve=function(ge){var Ee=ge.name;return Ee==="RANDOM"?Math.random().toString().slice(-6):Ee==="RANDOM_HEX"?Math.random().toString(16).slice(-6):void 0},de}(),Be=e("t9D7"),Ke=e("MD5Z"),Fe=e("R8sh");Object(Be.e)(function(de,ge){function Ee(Te){var Ce=de.getColor(Te);return Ce?Ce.toString():"transparent"}ge.addRule(".monaco-editor .snippet-placeholder { background-color: "+Ee(Ke.bc)+"; outline-color: "+Ee(Ke.cc)+"; }"),ge.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+Ee(Ke.Zb)+"; outline-color: "+Ee(Ke.ac)+"; }")});var re=function(){function de(ge,Ee,Te){this._nestingLevel=1,this._editor=ge,this._snippet=Ee,this._offset=Te,this._placeholderGroups=Object(h.o)(Ee.placeholders,p.b.compareByIndex),this._placeholderGroupsIdx=-1}return de.prototype.dispose=function(){if(this._placeholderDecorations){var ge=[];this._placeholderDecorations.forEach(function(Ee){return ge.push(Ee)}),this._editor.deltaDecorations(ge,[])}this._placeholderGroups.length=0},de.prototype._initDecorations=function(){var ge=this;if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;var Ee=this._editor.getModel();this._editor.changeDecorations(function(Te){for(var Ce=0,fe=ge._snippet.placeholders;Ce<fe.length;Ce++){var $=fe[Ce],S=ge._snippet.offset($),z=ge._snippet.fullLen($),ce=I.a.fromPositions(Ee.getPositionAt(ge._offset+S),Ee.getPositionAt(ge._offset+S+z)),se=$.isFinalTabstop?de._decor.inactiveFinal:de._decor.inactive,ye=Te.addDecoration(ce,se);ge._placeholderDecorations.set($,ye)}})},de.prototype.move=function(ge){var Ee=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){for(var Te=[],Ce=0,fe=this._placeholderGroups[this._placeholderGroupsIdx];Ce<fe.length;Ce++){var $=fe[Ce];if($.transform){var S=this._placeholderDecorations.get($),z=this._editor.getModel().getDecorationRange(S),ce=this._editor.getModel().getValueInRange(z);Te.push(O.a.replaceMove(z,$.transform.resolve(ce)))}}Te.length>0&&this._editor.executeEdits("snippet.placeholderTransform",Te)}var se=!1;ge===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,se=!0):ge===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,se=!0);var ye=this._editor.getModel().changeDecorations(function(Re){for(var Le=new Set,Ue=[],Je=0,nt=Ee._placeholderGroups[Ee._placeholderGroupsIdx];Je<nt.length;Je++){var vt=nt[Je],Rt=Ee._placeholderDecorations.get(vt),Ot=Ee._editor.getModel().getDecorationRange(Rt);Ue.push(new H.a(Ot.startLineNumber,Ot.startColumn,Ot.endLineNumber,Ot.endColumn)),se=se&&Ee._hasPlaceholderBeenCollapsed(vt),Re.changeDecorationOptions(Rt,vt.isFinalTabstop?de._decor.activeFinal:de._decor.active),Le.add(vt);for(var Kt=0,ao=Ee._snippet.enclosingPlaceholders(vt);Kt<ao.length;Kt++){var lo=ao[Kt],so=Ee._placeholderDecorations.get(lo);Re.changeDecorationOptions(so,lo.isFinalTabstop?de._decor.activeFinal:de._decor.active),Le.add(lo)}}return Ee._placeholderDecorations.forEach(function(jt,pt){Le.has(pt)||Re.changeDecorationOptions(jt,pt.isFinalTabstop?de._decor.inactiveFinal:de._decor.inactive)}),Ue});return se?this.move(ge):ye},de.prototype._hasPlaceholderBeenCollapsed=function(ge){for(var Ee=ge;Ee;){if(Ee instanceof p.b){var Te=this._placeholderDecorations.get(Ee),Ce=this._editor.getModel().getDecorationRange(Te);if(Ce.isEmpty()&&Ee.toString().length>0)return!0}Ee=Ee.parent}return!1},Object.defineProperty(de.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),de.prototype.computePossibleSelections=function(){for(var ge=new Map,Ee=0,Te=this._placeholderGroups;Ee<Te.length;Ee++)for(var Ce=Te[Ee],fe=void 0,$=0,S=Ce;$<S.length;$++){var z=S[$];if(z.isFinalTabstop)break;fe||(fe=[],ge.set(z.index,fe));var ce=this._placeholderDecorations.get(z),se=this._editor.getModel().getDecorationRange(ce);if(!se){ge.delete(z.index);break}fe.push(se)}return ge},Object.defineProperty(de.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),de.prototype.merge=function(ge){var Ee=this,Te=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(function(Ce){for(var fe=0,$=Ee._placeholderGroups[Ee._placeholderGroupsIdx];fe<$.length;fe++){var S=$[fe],z=ge.shift();console.assert(!z._placeholderDecorations);for(var ce=z._snippet.placeholderInfo.last.index,se=0,ye=z._snippet.placeholderInfo.all;se<ye.length;se++){var Re=ye[se];Re.isFinalTabstop?Re.index=S.index+(ce+1)/Ee._nestingLevel:Re.index=S.index+Re.index/Ee._nestingLevel}Ee._snippet.replace(S,z._snippet.children);var Le=Ee._placeholderDecorations.get(S);Ce.removeDecoration(Le),Ee._placeholderDecorations.delete(S);for(var Ue=0,Je=z._snippet.placeholders;Ue<Je.length;Ue++){var nt=Je[Ue],vt=z._snippet.offset(nt),Rt=z._snippet.fullLen(nt),Ot=I.a.fromPositions(Te.getPositionAt(z._offset+vt),Te.getPositionAt(z._offset+vt+Rt)),Kt=Ce.addDecoration(Ot,de._decor.inactive);Ee._placeholderDecorations.set(nt,Kt)}}Ee._placeholderGroups=Object(h.o)(Ee._snippet.placeholders,p.b.compareByIndex)})},de._decor={active:m.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:m.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:m.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:m.a.register({stickiness:1,className:"finish-snippet-placeholder"})},de}(),ee={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},ne=function(){function de(ge,Ee,Te){Te===void 0&&(Te=ee),this._templateMerges=[],this._snippets=[],this._editor=ge,this._template=Ee,this._options=Te}return de.adjustWhitespace=function(ge,Ee,Te,Ce,fe){var $=ge.getLineContent(Ee.lineNumber),S=Object(pe.t)($,0,Ee.column-1);Te.walk(function(z){if(z instanceof p.d&&!(z.parent instanceof p.a)){var ce=z.value.split(/\r\n|\r|\n/);if(Ce)for(var se=1;se<ce.length;se++){var ye=Object(pe.t)(ce[se]);ce[se]=ge.normalizeIndentation(S+ye)+ce[se].substr(ye.length)}if(fe){var Re=ce.join(ge.getEOL());Re!==z.value&&z.parent.replace(z,[new p.d(Re)])}}return!0})},de.adjustSelection=function(ge,Ee,Te,Ce){if(Te!==0||Ce!==0){var fe=Ee.positionLineNumber,$=Ee.positionColumn,S=$-Te,z=$+Ce,ce=ge.validateRange({startLineNumber:fe,startColumn:S,endLineNumber:fe,endColumn:z});Ee=H.a.createWithDirection(ce.startLineNumber,ce.startColumn,ce.endLineNumber,ce.endColumn,Ee.getDirection())}return Ee},de.createEditsAndSnippets=function(ge,Ee,Te,Ce,fe,$,S){var z=[],ce=[];if(!ge.hasModel())return{edits:z,snippets:ce};for(var se=ge.getModel(),ye=ge.invokeWithinContext(function(Ct){return Ct.get(w.a,v.d)}),Re=ge.invokeWithinContext(function(Ct){return new W(Ct.get(Fe.a,v.d),se)}),Le=ge.invokeWithinContext(function(Ct){return Ct.get(C.a,v.d)}),Ue=function(){return S||Le&&Le.readTextSync()},Je=0,nt=se.getValueInRange(de.adjustSelection(se,ge.getSelection(),Te,0)),vt=se.getValueInRange(de.adjustSelection(se,ge.getSelection(),0,Ce)),Rt=se.getLineFirstNonWhitespaceColumn(ge.getSelection().positionLineNumber),Ot=ge.getSelections().map(function(Ct,ht){return{selection:Ct,idx:ht}}).sort(function(Ct,ht){return I.a.compareRangesUsingStarts(Ct.selection,ht.selection)}),Kt=0,ao=Ot;Kt<ao.length;Kt++){var lo=ao[Kt],so=lo.selection,jt=lo.idx,pt=de.adjustSelection(se,so,Te,0),gt=de.adjustSelection(se,so,0,Ce);nt!==se.getValueInRange(pt)&&(pt=so),vt!==se.getValueInRange(gt)&&(gt=so);var Tt=so.setStartPosition(pt.startLineNumber,pt.startColumn).setEndPosition(gt.endLineNumber,gt.endColumn),it=new p.c().parse(Ee,!0,fe),et=Tt.getStartPosition();de.adjustWhitespace(se,et,it,$||jt>0&&Rt!==se.getLineFirstNonWhitespaceColumn(so.positionLineNumber),!0),it.resolveVariables(new Q([Re,new B(Ue,jt,Ot.length,ge.getOption(60)==="spread"),new V(se,so),new ae(se),new we,new Me(ye),new Pe]));var ut=se.getOffsetAt(et)+Je;Je+=it.toString().length-se.getValueLengthInRange(Tt),z[jt]=O.a.replace(Tt,it.toString()),ce[jt]=new re(ge,it,ut)}return{edits:z,snippets:ce}},de.prototype.dispose=function(){Object(T.f)(this._snippets)},de.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},de.prototype.insert=function(){var ge=this;if(!this._editor.hasModel())return;var Ee=de.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),Te=Ee.edits,Ce=Ee.snippets;this._snippets=Ce,this._editor.executeEdits("snippet",Te,function(fe){return ge._snippets[0].hasPlaceholder?ge._move(!0):fe.map(function($){return H.a.fromPositions($.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])},de.prototype.merge=function(ge,Ee){var Te=this;if(Ee===void 0&&(Ee=ee),!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,ge]);var Ce=de.createEditsAndSnippets(this._editor,ge,Ee.overwriteBefore,Ee.overwriteAfter,!0,Ee.adjustWhitespace,Ee.clipboardText),fe=Ce.edits,$=Ce.snippets;this._editor.executeEdits("snippet",fe,function(S){for(var z=0,ce=Te._snippets;z<ce.length;z++){var se=ce[z];se.merge($)}return console.assert($.length===0),Te._snippets[0].hasPlaceholder?Te._move(void 0):S.map(function(ye){return H.a.fromPositions(ye.range.getEndPosition())})})},de.prototype.next=function(){var ge=this._move(!0);this._editor.setSelections(ge),this._editor.revealPositionInCenterIfOutsideViewport(ge[0].getPosition())},de.prototype.prev=function(){var ge=this._move(!1);this._editor.setSelections(ge),this._editor.revealPositionInCenterIfOutsideViewport(ge[0].getPosition())},de.prototype._move=function(ge){for(var Ee=[],Te=0,Ce=this._snippets;Te<Ce.length;Te++){var fe=Ce[Te],$=fe.move(ge);Ee.push.apply(Ee,$)}return Ee},Object.defineProperty(de.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),de.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var ge=this._editor.getSelections();if(ge.length<this._snippets.length)return!1;for(var Ee=new Map,Te=function(z){var ce=z.computePossibleSelections();if(Ee.size===0&&ce.forEach(function(se,ye){se.sort(I.a.compareRangesUsingStarts);for(var Re=0,Le=ge;Re<Le.length;Re++){var Ue=Le[Re];if(se[0].containsRange(Ue)){Ee.set(ye,[]);break}}}),Ee.size===0)return{value:!1};Ee.forEach(function(se,ye){se.push.apply(se,ce.get(ye))})},Ce=0,fe=this._snippets;Ce<fe.length;Ce++){var $=fe[Ce],S=Te($);if(typeof S=="object")return S.value}return ge.sort(I.a.compareRangesUsingStarts),Ee.forEach(function(z,ce){if(z.length!==ge.length){Ee.delete(ce);return}z.sort(I.a.compareRangesUsingStarts);for(var se=0;se<z.length;se++)if(!z[se].containsRange(ge[se])){Ee.delete(ce);return}}),Ee.size>0},de}(),q=function(){return q=Object.assign||function(de){for(var ge,Ee=1,Te=arguments.length;Ee<Te;Ee++){ge=arguments[Ee];for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&(de[Ce]=ge[Ce])}return de},q.apply(this,arguments)},le=function(de,ge,Ee,Te){var Ce=arguments.length,fe=Ce<3?ge:Te===null?Te=Object.getOwnPropertyDescriptor(ge,Ee):Te,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")fe=Reflect.decorate(de,ge,Ee,Te);else for(var S=de.length-1;S>=0;S--)($=de[S])&&(fe=(Ce<3?$(fe):Ce>3?$(ge,Ee,fe):$(ge,Ee))||fe);return Ce>3&&fe&&Object.defineProperty(ge,Ee,fe),fe},Z=function(de,ge){return function(Ee,Te){ge(Ee,Te,de)}},ve={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},Ne=function(){function de(ge,Ee,Te){this._editor=ge,this._logService=Ee,this._snippetListener=new T.b,this._modelVersionId=-1,this._inSnippet=de.InSnippetMode.bindTo(Te),this._hasNextTabstop=de.HasNextTabstop.bindTo(Te),this._hasPrevTabstop=de.HasPrevTabstop.bindTo(Te)}return de.get=function(ge){return ge.getContribution(de.ID)},de.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(T.f)(this._session),this._snippetListener.dispose()},de.prototype.insert=function(ge,Ee){try{this._doInsert(ge,typeof Ee=="undefined"?ve:q(q({},ve),Ee))}catch(Te){this.cancel(),this._logService.error(Te),this._logService.error("snippet_error"),this._logService.error("insert_template=",ge),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},de.prototype._doInsert=function(ge,Ee){var Te=this;if(!this._editor.hasModel())return;this._snippetListener.clear(),Ee.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(ge,Ee):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new ne(this._editor,ge,Ee),this._session.insert()),Ee.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(Ce){return Ce.isFlush&&Te.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return Te.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return Te._updateState()}))},de.prototype._updateState=function(){if(!this._session||!this._editor.hasModel())return;if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()},de.prototype._handleChoice=function(){var ge=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var Ee=this._session.choice;if(!Ee){this._currentChoice=void 0;return}if(this._currentChoice!==Ee){this._currentChoice=Ee,this._editor.setSelections(this._editor.getSelections().map(function(Ce){return H.a.fromPositions(Ce.getStartPosition())}));var Te=Ee.options[0];Object(D.f)(this._editor,Ee.options.map(function(Ce,fe){return{kind:13,label:Ce.value,insertText:Ce.value,sortText:Object(pe.J)("a",fe+1),range:I.a.fromPositions(ge._editor.getPosition(),ge._editor.getPosition().delta(0,Te.value.length))}}))}},de.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},de.prototype.cancel=function(ge){ge===void 0&&(ge=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(T.f)(this._session),this._session=void 0,this._modelVersionId=-1,ge&&this._editor.setSelections([this._editor.getSelection()])},de.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},de.prototype.next=function(){this._session&&this._session.next(),this._updateState()},de.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},de.ID="snippetController2",de.InSnippetMode=new U.d("inSnippetMode",!1),de.HasNextTabstop=new U.d("hasNextTabstop",!1),de.HasPrevTabstop=new U.d("hasPrevTabstop",!1),de=le([Z(1,j.a),Z(2,U.c)],de),de}();Object(J.h)(Ne.ID,Ne);var Xe=J.c.bindToContribution(Ne.get);Object(J.g)(new Xe({id:"jumpToNextSnippetPlaceholder",precondition:U.a.and(Ne.InSnippetMode,Ne.HasNextTabstop),handler:function(de){return de.next()},kbOpts:{weight:100+30,kbExpr:K.a.editorTextFocus,primary:2}})),Object(J.g)(new Xe({id:"jumpToPrevSnippetPlaceholder",precondition:U.a.and(Ne.InSnippetMode,Ne.HasPrevTabstop),handler:function(de){return de.prev()},kbOpts:{weight:100+30,kbExpr:K.a.editorTextFocus,primary:1024|2}})),Object(J.g)(new Xe({id:"leaveSnippet",precondition:Ne.InSnippetMode,handler:function(de){return de.cancel(!0)},kbOpts:{weight:100+30,kbExpr:K.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object(J.g)(new Xe({id:"acceptSnippet",precondition:Ne.InSnippetMode,handler:function(de){return de.finish()}}))},tYmi:function(Mt,F,e){"use strict";e.d(F,"b",function(){return J}),e.d(F,"a",function(){return H});var T=e("bY76"),pe=e("MNsG"),J;(function(K){K.inMemory="inmemory",K.vscode="vscode",K.internal="private",K.walkThrough="walkThrough",K.walkThroughSnippet="walkThroughSnippet",K.http="http",K.https="https",K.file="file",K.mailto="mailto",K.untitled="untitled",K.data="data",K.command="command",K.vscodeRemote="vscode-remote",K.vscodeRemoteResource="vscode-remote-resource",K.userData="vscode-userdata"})(J||(J={}));var I=function(){function K(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}return K.prototype.setPreferredWebSchema=function(D){this._preferredWebSchema=D},K.prototype.rewrite=function(D){if(this._delegate)return this._delegate(D);var U=D.authority,j=this._hosts[U];j&&j.indexOf(":")!==-1&&(j="["+j+"]");var h=this._ports[U],b=this._connectionTokens[U],O="path="+encodeURIComponent(D.path);return typeof b=="string"&&(O+="&tkn="+encodeURIComponent(b)),T.a.from({scheme:pe.g?this._preferredWebSchema:J.vscodeRemoteResource,authority:j+":"+h,path:"/vscode-remote-resource",query:O})},K}(),H=new I},twdY:function(Mt,F,e){"use strict";e.d(F,"r",function(){return m}),e.d(F,"A",function(){return C}),e.d(F,"F",function(){return w}),e.d(F,"E",function(){return v}),e.d(F,"y",function(){return p}),e.d(F,"h",function(){return d}),e.d(F,"G",function(){return c}),e.d(F,"z",function(){return u}),e.d(F,"n",function(){return f}),e.d(F,"D",function(){return L}),e.d(F,"u",function(){return R}),e.d(F,"v",function(){return P}),e.d(F,"d",function(){return x}),e.d(F,"x",function(){return Q}),e.d(F,"p",function(){return V}),e.d(F,"m",function(){return W}),e.d(F,"i",function(){return B}),e.d(F,"f",function(){return ae}),e.d(F,"e",function(){return we}),e.d(F,"q",function(){return Me}),e.d(F,"C",function(){return Pe}),e.d(F,"b",function(){return Be}),e.d(F,"a",function(){return Ke}),e.d(F,"g",function(){return Fe}),e.d(F,"j",function(){return re}),e.d(F,"t",function(){return ee}),e.d(F,"s",function(){return ne}),e.d(F,"c",function(){return q}),e.d(F,"w",function(){return le}),e.d(F,"o",function(){return Z}),e.d(F,"l",function(){return ve}),e.d(F,"k",function(){return Ne}),e.d(F,"B",function(){return Xe});var T=e("746U"),pe=e("bY76"),J=e("aokT"),I=e("MI8n"),H=e("pmY6"),K=e("l2gE");function D(de,ge,Ee,Te){if(Array.isArray(de)){for(var Ce=0,fe=0,$=de;fe<$.length;fe++){var S=$[fe],z=D(S,ge,Ee,Te);if(z===10)return z;z>Ce&&(Ce=z)}return Ce}else{if(typeof de=="string")return Te?de==="*"?5:de===Ee?10:0:0;if(de){var ce=de.language,se=de.pattern,ye=de.scheme,Re=de.hasAccessToAllModels;if(!Te&&!Re)return 0;var Ce=0;if(ye)if(ye===ge.scheme)Ce=10;else if(ye==="*")Ce=5;else return 0;if(ce)if(ce===Ee)Ce=10;else if(ce==="*")Ce=Math.max(Ce,5);else return 0;if(se)if(se===ge.fsPath||Object(K.a)(se,ge.fsPath))Ce=10;else return 0;return Ce}else return 0}}var U=e("G2kB");function j(de){return typeof de=="string"?!1:Array.isArray(de)?de.every(j):!!de.exclusive}var h=function(){function de(){this._clock=0,this._entries=[],this._onDidChange=new I.a}return Object.defineProperty(de.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),de.prototype.register=function(ge,Ee){var Te=this,Ce={selector:ge,provider:Ee,_score:-1,_time:this._clock++};return this._entries.push(Ce),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(H.h)(function(){if(Ce){var fe=Te._entries.indexOf(Ce);fe>=0&&(Te._entries.splice(fe,1),Te._lastCandidate=void 0,Te._onDidChange.fire(Te._entries.length),Ce=void 0)}})},de.prototype.has=function(ge){return this.all(ge).length>0},de.prototype.all=function(ge){if(!ge)return[];this._updateScores(ge);for(var Ee=[],Te=0,Ce=this._entries;Te<Ce.length;Te++){var fe=Ce[Te];fe._score>0&&Ee.push(fe.provider)}return Ee},de.prototype.ordered=function(ge){var Ee=[];return this._orderedForEach(ge,function(Te){return Ee.push(Te.provider)}),Ee},de.prototype.orderedGroups=function(ge){var Ee=[],Te,Ce;return this._orderedForEach(ge,function(fe){Te&&Ce===fe._score?Te.push(fe.provider):(Ce=fe._score,Te=[fe.provider],Ee.push(Te))}),Ee},de.prototype._orderedForEach=function(ge,Ee){if(!ge)return;this._updateScores(ge);for(var Te=0,Ce=this._entries;Te<Ce.length;Te++){var fe=Ce[Te];fe._score>0&&Ee(fe)}},de.prototype._updateScores=function(ge){var Ee={uri:ge.uri.toString(),language:ge.getLanguageIdentifier().language};if(this._lastCandidate&&this._lastCandidate.language===Ee.language&&this._lastCandidate.uri===Ee.uri)return;this._lastCandidate=Ee;for(var Te=0,Ce=this._entries;Te<Ce.length;Te++){var fe=Ce[Te];if(fe._score=D(fe.selector,ge.uri,ge.getLanguageIdentifier().language,Object(U.b)(ge)),j(fe.selector)&&fe._score>0){for(var $=0,S=this._entries;$<S.length;$++){var z=S[$];z._score=0}fe._score=1e3;break}}this._entries.sort(de._compareByScoreAndTime)},de._compareByScoreAndTime=function(ge,Ee){return ge._score<Ee._score?1:ge._score>Ee._score?-1:ge._time<Ee._time?1:ge._time>Ee._time?-1:0},de}(),b=e("QDVR"),O=function(){function de(){this._map=new Map,this._promises=new Map,this._onDidChange=new I.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}return de.prototype.fire=function(ge){this._onDidChange.fire({changedLanguages:ge,changedColorMap:!1})},de.prototype.register=function(ge,Ee){var Te=this;return this._map.set(ge,Ee),this.fire([ge]),Object(H.h)(function(){if(Te._map.get(ge)!==Ee)return;Te._map.delete(ge),Te.fire([ge])})},de.prototype.registerPromise=function(ge,Ee){var Te=this,Ce=null,fe=!1;return this._promises.set(ge,Ee.then(function($){if(Te._promises.delete(ge),fe||!$)return;Ce=Te.register(ge,$)})),Object(H.h)(function(){fe=!0,Ce&&Ce.dispose()})},de.prototype.getPromise=function(ge){var Ee=this,Te=this.get(ge);if(Te)return Promise.resolve(Te);var Ce=this._promises.get(ge);return Ce?Ce.then(function(fe){return Ee.get(ge)}):null},de.prototype.get=function(ge){return Object(T.o)(this._map.get(ge))},de.prototype.setColorMap=function(ge){this._colorMap=ge,this._onDidChange.fire({changedLanguages:Object(b.d)(this._map),changedColorMap:!0})},de.prototype.getColorMap=function(){return this._colorMap},de.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},de}(),m=function(){function de(ge,Ee){this.language=ge,this.id=Ee}return de}(),C=function(){function de(){}return de.getLanguageId=function(ge){return(ge&255)>>>0},de.getTokenType=function(ge){return(ge&1792)>>>8},de.getFontStyle=function(ge){return(ge&14336)>>>11},de.getForeground=function(ge){return(ge&8372224)>>>14},de.getBackground=function(ge){return(ge&4286578688)>>>23},de.getClassNameFromMetadata=function(ge){var Ee=this.getForeground(ge),Te="mtk"+Ee,Ce=this.getFontStyle(ge);return Ce&1&&(Te+=" mtki"),Ce&2&&(Te+=" mtkb"),Ce&4&&(Te+=" mtku"),Te},de.getInlineStyleFromMetadata=function(ge,Ee){var Te=this.getForeground(ge),Ce=this.getFontStyle(ge),fe="color: "+Ee[Te]+";";return Ce&1&&(fe+="font-style: italic;"),Ce&2&&(fe+="font-weight: bold;"),Ce&4&&(fe+="text-decoration: underline;"),fe},de}(),w=function(){var de=Object.create(null);return de[0]="method",de[1]="function",de[2]="constructor",de[3]="field",de[4]="variable",de[5]="class",de[6]="struct",de[7]="interface",de[8]="module",de[9]="property",de[10]="event",de[11]="operator",de[12]="unit",de[13]="value",de[14]="constant",de[15]="enum",de[16]="enum-member",de[17]="keyword",de[25]="snippet",de[18]="text",de[19]="color",de[20]="file",de[21]="reference",de[22]="customcolor",de[23]="folder",de[24]="type-parameter",function(ge){return de[ge]||"property"}}(),v=function(){var de=Object.create(null);return de.method=0,de.function=1,de.constructor=2,de.field=3,de.variable=4,de.class=5,de.struct=6,de.interface=7,de.module=8,de.property=9,de.event=10,de.operator=11,de.unit=12,de.value=13,de.constant=14,de.enum=15,de["enum-member"]=16,de.enumMember=16,de.keyword=17,de.snippet=25,de.text=18,de.color=19,de.file=20,de.reference=21,de.customcolor=22,de.folder=23,de["type-parameter"]=24,de.typeParameter=24,function(ge,Ee){var Te=de[ge];return typeof Te=="undefined"&&!Ee&&(Te=9),Te}}(),p;(function(de){de[de.Invoke=1]="Invoke",de[de.TriggerCharacter=2]="TriggerCharacter",de[de.ContentChange=3]="ContentChange"})(p||(p={}));var d;(function(de){de[de.Text=0]="Text",de[de.Read=1]="Read",de[de.Write=2]="Write"})(d||(d={}));function c(de){return de&&pe.a.isUri(de.uri)&&J.a.isIRange(de.range)&&(J.a.isIRange(de.originSelectionRange)||J.a.isIRange(de.targetSelectionRange))}var u;(function(de){var ge=new Map;ge.set("file",0),ge.set("module",1),ge.set("namespace",2),ge.set("package",3),ge.set("class",4),ge.set("method",5),ge.set("property",6),ge.set("field",7),ge.set("constructor",8),ge.set("enum",9),ge.set("interface",10),ge.set("function",11),ge.set("variable",12),ge.set("constant",13),ge.set("string",14),ge.set("number",15),ge.set("boolean",16),ge.set("array",17),ge.set("object",18),ge.set("key",19),ge.set("null",20),ge.set("enum-member",21),ge.set("struct",22),ge.set("event",23),ge.set("operator",24),ge.set("type-parameter",25);var Ee=new Map;Ee.set(0,"file"),Ee.set(1,"module"),Ee.set(2,"namespace"),Ee.set(3,"package"),Ee.set(4,"class"),Ee.set(5,"method"),Ee.set(6,"property"),Ee.set(7,"field"),Ee.set(8,"constructor"),Ee.set(9,"enum"),Ee.set(10,"interface"),Ee.set(11,"function"),Ee.set(12,"variable"),Ee.set(13,"constant"),Ee.set(14,"string"),Ee.set(15,"number"),Ee.set(16,"boolean"),Ee.set(17,"array"),Ee.set(18,"object"),Ee.set(19,"key"),Ee.set(20,"null"),Ee.set(21,"enum-member"),Ee.set(22,"struct"),Ee.set(23,"event"),Ee.set(24,"operator"),Ee.set(25,"type-parameter");function Te($){return ge.get($)}de.fromString=Te;function Ce($){return Ee.get($)}de.toString=Ce;function fe($,S){return"codicon "+(S?"inline":"block")+" codicon-symbol-"+(Ee.get($)||"property")}de.toCssClassName=fe})(u||(u={}));var f=function(){function de(ge){this.value=ge}return de.Comment=new de("comment"),de.Imports=new de("imports"),de.Region=new de("region"),de}(),E;(function(de){function ge(Ee){return Object(T.i)(Ee)&&(Boolean(Ee.newUri)||Boolean(Ee.oldUri))}de.is=ge})(E||(E={}));var L;(function(de){function ge(Ee){return Object(T.i)(Ee)&&pe.a.isUri(Ee.resource)&&Object(T.i)(Ee.edit)}de.is=ge})(L||(L={}));var R=new h,P=new h,x=new h,Q=new h,V=new h,W=new h,B=new h,ae=new h,we=new h,Me=new h,Pe=new h,Be=new h,Ke=new h,Fe=new h,re=new h,ee=new h,ne=new h,q=new h,le=new h,Z=new h,ve=new h,Ne=new h,Xe=new O},uACm:function(Mt,F,e){"use strict";e.d(F,"d",function(){return K}),e.d(F,"b",function(){return U}),e.d(F,"a",function(){return j}),e.d(F,"c",function(){return w});var T=function(){var v=function(p,d){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var f in u)u.hasOwnProperty(f)&&(c[f]=u[f])},v(p,d)};return function(p,d){v(p,d);function c(){this.constructor=p}p.prototype=d===null?Object.create(d):(c.prototype=d.prototype,new c)}}(),pe=function(){for(var v=0,p=0,d=arguments.length;p<d;p++)v+=arguments[p].length;for(var c=Array(v),u=0,p=0;p<d;p++)for(var f=arguments[p],E=0,L=f.length;E<L;E++,u++)c[u]=f[E];return c},J,I=function(){function v(){this.value="",this.pos=0}return v.isDigitCharacter=function(p){return p>=48&&p<=57},v.isVariableCharacter=function(p){return p===95||p>=97&&p<=122||p>=65&&p<=90},v.prototype.text=function(p){this.value=p,this.pos=0},v.prototype.tokenText=function(p){return this.value.substr(p.pos,p.len)},v.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var p=this.pos,d=0,c=this.value.charCodeAt(p),u;if(u=v._table[c],typeof u=="number")return this.pos+=1,{type:u,pos:p,len:1};if(v.isDigitCharacter(c)){u=8;do d+=1,c=this.value.charCodeAt(p+d);while(v.isDigitCharacter(c));return this.pos+=d,{type:u,pos:p,len:d}}if(v.isVariableCharacter(c)){u=9;do c=this.value.charCodeAt(p+ ++d);while(v.isVariableCharacter(c)||v.isDigitCharacter(c));return this.pos+=d,{type:u,pos:p,len:d}}u=10;do d+=1,c=this.value.charCodeAt(p+d);while(!isNaN(c)&&typeof v._table[c]=="undefined"&&!v.isDigitCharacter(c)&&!v.isVariableCharacter(c));return this.pos+=d,{type:u,pos:p,len:d}},v._table=(J={},J[36]=0,J[58]=1,J[44]=2,J[123]=3,J[125]=4,J[92]=5,J[47]=6,J[124]=7,J[43]=11,J[45]=12,J[63]=13,J),v}(),H=function(){function v(){this._children=[]}return v.prototype.appendChild=function(p){return p instanceof K&&this._children[this._children.length-1]instanceof K?this._children[this._children.length-1].value+=p.value:(p.parent=this,this._children.push(p)),this},v.prototype.replace=function(p,d){var c=p.parent,u=c.children.indexOf(p),f=c.children.slice(0);f.splice.apply(f,pe([u,1],d)),c._children=f,function E(L,R){for(var P=0,x=L;P<x.length;P++){var Q=x[P];Q.parent=R,E(Q.children,Q)}}(d,c)},Object.defineProperty(v.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"snippet",{get:function(){for(var p=this;;){if(!p)return;if(p instanceof C)return p;p=p.parent}},enumerable:!0,configurable:!0}),v.prototype.toString=function(){return this.children.reduce(function(p,d){return p+d.toString()},"")},v.prototype.len=function(){return 0},v}(),K=function(v){T(p,v);function p(d){var c=v.call(this)||this;return c.value=d,c}return p.prototype.toString=function(){return this.value},p.prototype.len=function(){return this.value.length},p.prototype.clone=function(){return new p(this.value)},p}(H),D=function(v){T(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p}(H),U=function(v){T(p,v);function p(d){var c=v.call(this)||this;return c.index=d,c}return p.compareByIndex=function(d,c){return d.index===c.index?0:d.isFinalTabstop?1:c.isFinalTabstop||d.index<c.index?-1:d.index>c.index?1:0},Object.defineProperty(p.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof j?this._children[0]:void 0},enumerable:!0,configurable:!0}),p.prototype.clone=function(){var d=new p(this.index);return this.transform&&(d.transform=this.transform.clone()),d._children=this.children.map(function(c){return c.clone()}),d},p}(D),j=function(v){T(p,v);function p(){var d=v!==null&&v.apply(this,arguments)||this;return d.options=[],d}return p.prototype.appendChild=function(d){return d instanceof K&&(d.parent=this,this.options.push(d)),this},p.prototype.toString=function(){return this.options[0].value},p.prototype.len=function(){return this.options[0].len()},p.prototype.clone=function(){var d=new p;return this.options.forEach(d.appendChild,d),d},p}(H),h=function(v){T(p,v);function p(){var d=v!==null&&v.apply(this,arguments)||this;return d.regexp=new RegExp(""),d}return p.prototype.resolve=function(d){var c=this,u=!1,f=d.replace(this.regexp,function(){return u=!0,c._replace(Array.prototype.slice.call(arguments,0,-2))});return!u&&this._children.some(function(E){return E instanceof b&&Boolean(E.elseValue)})&&(f=this._replace([])),f},p.prototype._replace=function(d){for(var c="",u=0,f=this._children;u<f.length;u++){var E=f[u];if(E instanceof b){var L=d[E.index]||"";L=E.resolve(L),c+=L}else c+=E.toString()}return c},p.prototype.toString=function(){return""},p.prototype.clone=function(){var d=new p;return d.regexp=new RegExp(this.regexp.source,""+(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),d._children=this.children.map(function(c){return c.clone()}),d},p}(H),b=function(v){T(p,v);function p(d,c,u,f){var E=v.call(this)||this;return E.index=d,E.shorthandName=c,E.ifValue=u,E.elseValue=f,E}return p.prototype.resolve=function(d){return this.shorthandName==="upcase"?d?d.toLocaleUpperCase():"":this.shorthandName==="downcase"?d?d.toLocaleLowerCase():"":this.shorthandName==="capitalize"?d?d[0].toLocaleUpperCase()+d.substr(1):"":this.shorthandName==="pascalcase"?d?this._toPascalCase(d):"":Boolean(d)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(d)&&typeof this.elseValue=="string"?this.elseValue:d||""},p.prototype._toPascalCase=function(d){var c=d.match(/[a-z]+/gi);return c?c.map(function(u){return u.charAt(0).toUpperCase()+u.substr(1).toLowerCase()}).join(""):d},p.prototype.clone=function(){var d=new p(this.index,this.shorthandName,this.ifValue,this.elseValue);return d},p}(H),O=function(v){T(p,v);function p(d){var c=v.call(this)||this;return c.name=d,c}return p.prototype.resolve=function(d){var c=d.resolve(this);return this.transform&&(c=this.transform.resolve(c||"")),c!==void 0?(this._children=[new K(c)],!0):!1},p.prototype.clone=function(){var d=new p(this.name);return this.transform&&(d.transform=this.transform.clone()),d._children=this.children.map(function(c){return c.clone()}),d},p}(D);function m(v,p){for(var d=pe(v);d.length>0;){var c=d.shift(),u=p(c);if(!u)break;d.unshift.apply(d,c.children)}}var C=function(v){T(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return Object.defineProperty(p.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var d=[],c;this.walk(function(u){return u instanceof U&&(d.push(u),c=!c||c.index<u.index?u:c),!0}),this._placeholders={all:d,last:c}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"placeholders",{get:function(){var d=this.placeholderInfo.all;return d},enumerable:!0,configurable:!0}),p.prototype.offset=function(d){var c=0,u=!1;return this.walk(function(f){return f===d?(u=!0,!1):(c+=f.len(),!0)}),u?c:-1},p.prototype.fullLen=function(d){var c=0;return m([d],function(u){return c+=u.len(),!0}),c},p.prototype.enclosingPlaceholders=function(d){for(var c=[],u=d.parent;u;)u instanceof U&&c.push(u),u=u.parent;return c},p.prototype.resolveVariables=function(d){var c=this;return this.walk(function(u){return u instanceof O&&(u.resolve(d)&&(c._placeholders=void 0)),!0}),this},p.prototype.appendChild=function(d){return this._placeholders=void 0,v.prototype.appendChild.call(this,d)},p.prototype.replace=function(d,c){return this._placeholders=void 0,v.prototype.replace.call(this,d,c)},p.prototype.clone=function(){var d=new p;return this._children=this.children.map(function(c){return c.clone()}),d},p.prototype.walk=function(d){m(this.children,d)},p}(H),w=function(){function v(){this._scanner=new I,this._token={type:14,pos:0,len:0}}return v.escape=function(p){return p.replace(/\$|}|\\/g,"\\$&")},v.prototype.parse=function(p,d,c){this._scanner.text(p),this._token=this._scanner.next();for(var u=new C;this._parse(u););var f=new Map,E=[],L=0;u.walk(function(we){return we instanceof U&&(L+=1,we.isFinalTabstop?f.set(0,void 0):!f.has(we.index)&&we.children.length>0?f.set(we.index,we.children):E.push(we)),!0});for(var R=0,P=E;R<P.length;R++){var x=P[R],Q=f.get(x.index);if(Q){var V=new U(x.index);V.transform=x.transform;for(var W=0,B=Q;W<B.length;W++){var ae=B[W];V.appendChild(ae.clone())}u.replace(x,[V])}}return c||(c=L>0&&d),!f.has(0)&&c&&u.appendChild(new U(0)),u},v.prototype._accept=function(p,d){if(p===void 0||this._token.type===p){var c=d?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),c}return!1},v.prototype._backTo=function(p){return this._scanner.pos=p.pos+p.len,this._token=p,!1},v.prototype._until=function(p){for(var d=this._token;this._token.type!==p;){if(this._token.type===14)return!1;if(this._token.type===5){var c=this._scanner.next();if(c.type!==0&&c.type!==4&&c.type!==5)return!1}this._token=this._scanner.next()}var u=this._scanner.value.substring(d.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),u},v.prototype._parse=function(p){return this._parseEscaped(p)||this._parseTabstopOrVariableName(p)||this._parseComplexPlaceholder(p)||this._parseComplexVariable(p)||this._parseAnything(p)},v.prototype._parseEscaped=function(p){var d;return(d=this._accept(5,!0))?(d=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||d,p.appendChild(new K(d)),!0):!1},v.prototype._parseTabstopOrVariableName=function(p){var d,c=this._token,u=this._accept(0)&&(d=this._accept(9,!0)||this._accept(8,!0));return u?(p.appendChild(/^\d+$/.test(d)?new U(Number(d)):new O(d)),!0):this._backTo(c)},v.prototype._parseComplexPlaceholder=function(p){var d,c=this._token,u=this._accept(0)&&this._accept(3)&&(d=this._accept(8,!0));if(!u)return this._backTo(c);var f=new U(Number(d));if(this._accept(1))for(;;){if(this._accept(4))return p.appendChild(f),!0;if(this._parse(f))continue;return p.appendChild(new K("${"+d+":")),f.children.forEach(p.appendChild,p),!0}else if(f.index>0&&this._accept(7))for(var E=new j;;){if(this._parseChoiceElement(E)){if(this._accept(2))continue;if(this._accept(7)&&(f.appendChild(E),this._accept(4)))return p.appendChild(f),!0}return this._backTo(c),!1}else return this._accept(6)?this._parseTransform(f)?(p.appendChild(f),!0):(this._backTo(c),!1):this._accept(4)?(p.appendChild(f),!0):this._backTo(c)},v.prototype._parseChoiceElement=function(p){for(var d=this._token,c=[];!(this._token.type===2||this._token.type===7);){var u=void 0;if((u=this._accept(5,!0))?u=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||u:u=this._accept(void 0,!0),!u)return this._backTo(d),!1;c.push(u)}return c.length===0?(this._backTo(d),!1):(p.appendChild(new K(c.join(""))),!0)},v.prototype._parseComplexVariable=function(p){var d,c=this._token,u=this._accept(0)&&this._accept(3)&&(d=this._accept(9,!0));if(!u)return this._backTo(c);var f=new O(d);if(this._accept(1))for(;;){if(this._accept(4))return p.appendChild(f),!0;if(this._parse(f))continue;return p.appendChild(new K("${"+d+":")),f.children.forEach(p.appendChild,p),!0}else return this._accept(6)?this._parseTransform(f)?(p.appendChild(f),!0):(this._backTo(c),!1):this._accept(4)?(p.appendChild(f),!0):this._backTo(c)},v.prototype._parseTransform=function(p){for(var d=new h,c="",u="";!this._accept(6);){var f=void 0;if(f=this._accept(5,!0)){f=this._accept(6,!0)||f,c+=f;continue}if(this._token.type!==14){c+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var f=void 0;if(f=this._accept(5,!0)){f=this._accept(5,!0)||this._accept(6,!0)||f,d.appendChild(new K(f));continue}if(this._parseFormatString(d)||this._parseAnything(d))continue;return!1}for(;!this._accept(4);){if(this._token.type!==14){u+=this._accept(void 0,!0);continue}return!1}try{d.regexp=new RegExp(c,u)}catch(E){return!1}return p.transform=d,!0},v.prototype._parseFormatString=function(p){var d=this._token;if(!this._accept(0))return!1;var c=!1;this._accept(3)&&(c=!0);var u=this._accept(8,!0);if(u)if(c){if(this._accept(4))return p.appendChild(new b(Number(u))),!0;if(!this._accept(1))return this._backTo(d),!1}else return p.appendChild(new b(Number(u))),!0;else return this._backTo(d),!1;if(this._accept(6)){var f=this._accept(9,!0);return!f||!this._accept(4)?(this._backTo(d),!1):(p.appendChild(new b(Number(u),f)),!0)}else if(this._accept(11)){var E=this._until(4);if(E)return p.appendChild(new b(Number(u),void 0,E,void 0)),!0}else if(this._accept(12)){var L=this._until(4);if(L)return p.appendChild(new b(Number(u),void 0,void 0,L)),!0}else if(this._accept(13)){var E=this._until(1);if(E){var L=this._until(4);if(L)return p.appendChild(new b(Number(u),void 0,E,L)),!0}}else{var L=this._until(4);if(L)return p.appendChild(new b(Number(u),void 0,void 0,L)),!0}return this._backTo(d),!1},v.prototype._parseAnything=function(p){return this._token.type!==14?(p.appendChild(new K(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},v}()},uAX5:function(Mt,F,e){},uDWl:function(Mt,F,e){"use strict";e.d(F,"a",function(){return b});var T=e("D3Dy"),pe=e("/kV6"),J=e("MNsG"),I=new Array(230),H=new Array(112);(function(){for(var O=0;O<H.length;O++)H[O]=-1;function m(C,w){I[C]=w,H[w]=C}m(3,7),m(8,1),m(9,2),m(13,3),m(16,4),m(17,5),m(18,6),m(19,7),m(20,8),m(27,9),m(32,10),m(33,11),m(34,12),m(35,13),m(36,14),m(37,15),m(38,16),m(39,17),m(40,18),m(45,19),m(46,20),m(48,21),m(49,22),m(50,23),m(51,24),m(52,25),m(53,26),m(54,27),m(55,28),m(56,29),m(57,30),m(65,31),m(66,32),m(67,33),m(68,34),m(69,35),m(70,36),m(71,37),m(72,38),m(73,39),m(74,40),m(75,41),m(76,42),m(77,43),m(78,44),m(79,45),m(80,46),m(81,47),m(82,48),m(83,49),m(84,50),m(85,51),m(86,52),m(87,53),m(88,54),m(89,55),m(90,56),m(93,58),m(96,93),m(97,94),m(98,95),m(99,96),m(100,97),m(101,98),m(102,99),m(103,100),m(104,101),m(105,102),m(106,103),m(107,104),m(108,105),m(109,106),m(110,107),m(111,108),m(112,59),m(113,60),m(114,61),m(115,62),m(116,63),m(117,64),m(118,65),m(119,66),m(120,67),m(121,68),m(122,69),m(123,70),m(124,71),m(125,72),m(126,73),m(127,74),m(128,75),m(129,76),m(130,77),m(144,78),m(145,79),m(186,80),m(187,81),m(188,82),m(189,83),m(190,84),m(191,85),m(192,86),m(193,110),m(194,111),m(219,87),m(220,88),m(221,89),m(222,90),m(223,91),m(226,92),m(229,109),T.i?m(91,57):T.h?(m(59,80),m(107,81),m(109,83),J.e&&m(224,57)):T.m&&(m(91,57),J.e?m(93,57):m(92,57))})();function K(O){if(O.charCode){var m=String.fromCharCode(O.charCode).toUpperCase();return pe.b.fromString(m)}return I[O.keyCode]||0}var D=J.e?256:2048,U=512,j=1024,h=J.e?2048:256,b=function(){function O(m){this._standardKeyboardEventBrand=!0;var C=m;this.browserEvent=C,this.target=C.target,this.ctrlKey=C.ctrlKey,this.shiftKey=C.shiftKey,this.altKey=C.altKey,this.metaKey=C.metaKey,this.keyCode=K(C),this.code=C.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return O.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},O.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},O.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},O.prototype.equals=function(m){return this._asKeybinding===m},O.prototype._computeKeybinding=function(){var m=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(m=this.keyCode);var C=0;return this.ctrlKey&&(C|=D),this.altKey&&(C|=U),this.shiftKey&&(C|=j),this.metaKey&&(C|=h),C|=m,C},O.prototype._computeRuntimeKeybinding=function(){var m=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(m=this.keyCode),new pe.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,m)},O}()},uWgD:function(Mt,F,e){},ufhN:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return e.e(341).then(e.bind(null,"rMIR"))}})},ujyM:function(Mt,F,e){},undH:function(Mt,F,e){},"v+CO":function(Mt,F,e){"use strict";e.r(F),e.d(F,"EditorActionCommandEntry",function(){return O}),e.d(F,"QuickCommandAction",function(){return m});var T=e("N0LK"),pe=e("D3Dy"),J=e("/cxE"),I=e("fpMC"),H=e("Rpxm"),K=e("sswD"),D=e("wQH0"),U=e("rzPn"),j=e("bexQ"),h=e("A9l+"),b=function(){var C=function(w,v){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])},C(w,v)};return function(w,v){C(w,v);function p(){this.constructor=w}w.prototype=v===null?Object.create(v):(p.prototype=v.prototype,new p)}}(),O=function(C){b(w,C);function w(v,p,d,c,u){var f=C.call(this)||this;return f.key=v,f.keyAriaLabel=p,f.setHighlights(d),f.action=c,f.editor=u,f}return w.prototype.getLabel=function(){return this.action.label},w.prototype.getAriaLabel=function(){return this.keyAriaLabel?T.r(h.d.ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):T.r(h.d.ariaLabelEntry,this.getLabel())},w.prototype.getGroupLabel=function(){return this.key},w.prototype.run=function(v,p){var d=this;return v===1?(setTimeout(function(){d.editor.focus();try{var c=d.action.run()||Promise.resolve();c.then(void 0,J.e)}catch(u){Object(J.e)(u)}},50),!0):!1},w}(H.b),m=function(C){b(w,C);function w(){return C.call(this,h.d.quickCommandActionInput,{id:"editor.action.quickCommand",label:h.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:D.a.focus,primary:pe.i?512|59:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})||this}return w.prototype.run=function(v,p){var d=this,c=v.get(j.a);this._show(this.getController(p),{getModel:function(u){return new H.c(d._editorActionsToEntries(c,p,u))},getAutoFocus:function(u){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:u}}})},w.prototype._sort=function(v,p){var d=(v.getLabel()||"").toLowerCase(),c=(p.getLabel()||"").toLowerCase();return d.localeCompare(c)},w.prototype._editorActionsToEntries=function(v,p,d){for(var c=p.getSupportedActions(),u=[],f=0,E=c;f<E.length;f++){var L=E[f],R=v.lookupKeybinding(L.id);if(L.label){var P=Object(I.f)(d,L.label);P&&u.push(new O(R&&R.getLabel()||"",R&&R.getAriaLabel()||"",P,L,p))}}return u=u.sort(this._sort),u},w}(U.a);Object(K.f)(m)},vATl:function(Mt,F,e){"use strict";e.d(F,"a",function(){return C}),e.d(F,"b",function(){return w}),e.d(F,"d",function(){return v}),e.d(F,"c",function(){return p});var T=e("N0LK"),pe=e("JQT/"),J=e("pmY6"),I=e("sswD"),H=e("T8No"),K=e("24hK"),D=e("Cg/j"),U=e("9fML"),j=function(){var d=function(c,u){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,E){f.__proto__=E}||function(f,E){for(var L in E)E.hasOwnProperty(L)&&(f[L]=E[L])},d(c,u)};return function(c,u){d(c,u);function f(){this.constructor=c}c.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),h=Object(D.c)("IEditorCancelService"),b=new H.d("cancellableOperation",!1);Object(U.b)(h,function(){function d(){this._tokens=new WeakMap}return d.prototype.add=function(c,u){var f=this._tokens.get(c);f||(f=c.invokeWithinContext(function(L){var R=b.bindTo(L.get(H.c)),P=new K.a;return{key:R,tokens:P}}),this._tokens.set(c,f));var E;return f.key.set(!0),E=f.tokens.push(u),function(){E&&(E(),f.key.set(!f.tokens.isEmpty()),E=void 0)}},d.prototype.cancel=function(c){var u=this._tokens.get(c);if(!u)return;var f=u.tokens.pop();f&&(f.cancel(),u.key.set(!u.tokens.isEmpty()))},d}(),!0);var O=function(d){j(c,d);function c(u,f){var E=d.call(this,f)||this;return E.editor=u,E._unregister=u.invokeWithinContext(function(L){return L.get(h).add(u,E)}),E}return c.prototype.dispose=function(){this._unregister(),d.prototype.dispose.call(this)},c}(pe.b);Object(I.g)(new(function(d){j(c,d);function c(){return d.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:b})||this}return c.prototype.runEditorCommand=function(u,f){u.get(h).cancel(f)},c}(I.c)));var m=function(){var d=function(c,u){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,E){f.__proto__=E}||function(f,E){for(var L in E)E.hasOwnProperty(L)&&(f[L]=E[L])},d(c,u)};return function(c,u){d(c,u);function f(){this.constructor=c}c.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),C=function(){function d(c,u){if(this.flags=u,(this.flags&1)!==0){var f=c.getModel();this.modelVersionId=f?T.r("{0}#{1}",f.uri.toString(),f.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=c.getPosition():this.position=null,(this.flags&2)!==0?this.selection=c.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=c.getScrollLeft(),this.scrollTop=c.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return d.prototype._equals=function(c){if(!(c instanceof d))return!1;var u=c;return this.modelVersionId!==u.modelVersionId||(this.scrollLeft!==u.scrollLeft||this.scrollTop!==u.scrollTop||(!this.position&&u.position||this.position&&!u.position||this.position&&u.position&&!this.position.equals(u.position)))?!1:!(!this.selection&&u.selection||this.selection&&!u.selection||this.selection&&u.selection&&!this.selection.equalsRange(u.selection))},d.prototype.validate=function(c){return this._equals(new d(c,this.flags))},d}(),w=function(d){m(c,d);function c(u,f,E){var L=d.call(this,u,E)||this;return L.editor=u,L._listener=new J.b,f&4&&L._listener.add(u.onDidChangeCursorPosition(function(R){return L.cancel()})),f&2&&L._listener.add(u.onDidChangeCursorSelection(function(R){return L.cancel()})),f&8&&L._listener.add(u.onDidScrollChange(function(R){return L.cancel()})),f&1&&(L._listener.add(u.onDidChangeModel(function(R){return L.cancel()})),L._listener.add(u.onDidChangeModelContent(function(R){return L.cancel()}))),L}return c.prototype.dispose=function(){this._listener.dispose(),d.prototype.dispose.call(this)},c}(O),v=function(d){m(c,d);function c(u,f){var E=d.call(this,f)||this;return E._listener=u.onDidChangeContent(function(){return E.cancel()}),E}return c.prototype.dispose=function(){this._listener.dispose(),d.prototype.dispose.call(this)},c}(pe.b),p=function(){function d(c,u){this._visiblePosition=c,this._visiblePositionScrollDelta=u}return d.capture=function(c){var u=null,f=0;if(c.getScrollTop()!==0){var E=c.getVisibleRanges();if(E.length>0){u=E[0].getStartPosition();var L=c.getTopForPosition(u.lineNumber,u.column);f=c.getScrollTop()-L}}return new d(u,f)},d.prototype.restore=function(c){if(this._visiblePosition){var u=c.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);c.setScrollTop(u+this._visiblePositionScrollDelta)}},d}()},vMFT:function(Mt,F,e){},vRMv:function(Mt,F,e){"use strict";e.d(F,"b",function(){return j}),e.d(F,"a",function(){return h}),e.d(F,"c",function(){return b}),e.d(F,"e",function(){return O}),e.d(F,"d",function(){return m});var T=e("6OMU"),pe=e("JQT/"),J=e("/cxE"),I=e("sswD"),H=e("twdY"),K=function(C,w,v,p){function d(c){return c instanceof v?c:new v(function(u){u(c)})}return new(v||(v=Promise))(function(c,u){function f(R){try{L(p.next(R))}catch(P){u(P)}}function E(R){try{L(p.throw(R))}catch(P){u(P)}}function L(R){R.done?c(R.value):d(R.value).then(f,E)}L((p=p.apply(C,w||[])).next())})},D=function(C,w){var v={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},p,d,c,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(L){return function(R){return E([L,R])}}function E(L){if(p)throw new TypeError("Generator is already executing.");for(;v;)try{if(p=1,d&&(c=L[0]&2?d.return:L[0]?d.throw||((c=d.return)&&c.call(d),0):d.next)&&!(c=c.call(d,L[1])).done)return c;(d=0,c)&&(L=[L[0]&2,c.value]);switch(L[0]){case 0:case 1:c=L;break;case 4:return v.label++,{value:L[1],done:!1};case 5:v.label++,d=L[1],L=[0];continue;case 7:L=v.ops.pop(),v.trys.pop();continue;default:if(!(c=v.trys,c=c.length>0&&c[c.length-1])&&(L[0]===6||L[0]===2)){v=0;continue}if(L[0]===3&&(!c||L[1]>c[0]&&L[1]<c[3])){v.label=L[1];break}if(L[0]===6&&v.label<c[1]){v.label=c[1],c=L;break}if(c&&v.label<c[2]){v.label=c[2],v.ops.push(L);break}c[2]&&v.ops.pop(),v.trys.pop();continue}L=w.call(C,v)}catch(R){L=[6,R],d=0}finally{p=c=0}if(L[0]&5)throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}};function U(C,w,v,p){var d=v.ordered(C),c=d.map(function(u){return Promise.resolve(p(u,C,w)).then(void 0,function(f){Object(J.f)(f);return})});return Promise.all(c).then(T.m).then(T.d)}function j(C,w,v){return U(C,w,H.f,function(p,d,c){return p.provideDefinition(d,c,v)})}function h(C,w,v){return U(C,w,H.e,function(p,d,c){return p.provideDeclaration(d,c,v)})}function b(C,w,v){return U(C,w,H.q,function(p,d,c){return p.provideImplementation(d,c,v)})}function O(C,w,v){return U(C,w,H.C,function(p,d,c){return p.provideTypeDefinition(d,c,v)})}function m(C,w,v,p){var d=this;return U(C,w,H.u,function(c,u,f){return K(d,void 0,void 0,function(){var E,L;return D(this,function(R){switch(R.label){case 0:return[4,c.provideReferences(u,f,{includeDeclaration:!0},p)];case 1:return E=R.sent(),!v||!E||E.length!==2?[2,E]:[4,c.provideReferences(u,f,{includeDeclaration:!1},p)];case 2:return L=R.sent(),L&&L.length===1?[2,L]:[2,E]}})})})}Object(I.k)("_executeDefinitionProvider",function(C,w){return j(C,w,pe.a.None)}),Object(I.k)("_executeDeclarationProvider",function(C,w){return h(C,w,pe.a.None)}),Object(I.k)("_executeImplementationProvider",function(C,w){return b(C,w,pe.a.None)}),Object(I.k)("_executeTypeDefinitionProvider",function(C,w){return O(C,w,pe.a.None)}),Object(I.k)("_executeReferenceProvider",function(C,w){return m(C,w,!1,pe.a.None)})},vVA1:function(Mt,F,e){"use strict";e.r(F);var T=e("sswD"),pe=e("scqD"),J=e("A9l+"),I=function(){var K=function(D,U){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,h){j.__proto__=h}||function(j,h){for(var b in h)h.hasOwnProperty(b)&&(j[b]=h[b])},K(D,U)};return function(D,U){K(D,U);function j(){this.constructor=D}D.prototype=U===null?Object.create(U):(j.prototype=U.prototype,new j)}}(),H=function(K){I(D,K);function D(){var U=K.call(this,{id:"editor.action.toggleHighContrast",label:J.h.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0})||this;return U._originalThemeName=null,U}return D.prototype.run=function(U,j){var h=U.get(pe.a);this._originalThemeName?(h.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=h.getTheme().themeName,h.setTheme("hc-black"))},D}(T.b);Object(T.f)(H)},vl9R:function(Mt,F,e){"use strict";e.d(F,"d",function(){return pe}),e.d(F,"b",function(){return J}),e.d(F,"c",function(){return I}),e.d(F,"a",function(){return H});var T=Object.prototype.hasOwnProperty;function pe(K){var D=[];for(var U in K)T.call(K,U)&&D.push(K[U]);return D}function J(K){for(var D in K)if(T.call(K,D))return K[D];return}function I(K,D){var U=function(b){if(T.call(K,b)){var O=D({key:b,value:K[b]},function(){delete K[b]});if(O===!1)return{value:void 0}}};for(var j in K){var h=U(j);if(typeof h=="object")return h.value}}var H=function(){function K(){this.map=new Map}return K.prototype.add=function(D,U){var j=this.map.get(D);j||(j=new Set,this.map.set(D,j)),j.add(U)},K.prototype.delete=function(D,U){var j=this.map.get(D);if(!j)return;j.delete(U),j.size===0&&this.map.delete(D)},K.prototype.forEach=function(D,U){var j=this.map.get(D);if(!j)return;j.forEach(U)},K}()},"w29/":function(Mt,F,e){"use strict";e.r(F);var T=e("5DEy"),pe=e.n(T),J=e("3/fG"),I=e("D3Dy"),H=e("MNsG"),K=e("5TxY"),D=e("sswD"),U=e("Vxe3"),j=e("wQH0"),h=function(){var f=function(E,L){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,P){R.__proto__=P}||function(R,P){for(var x in P)P.hasOwnProperty(x)&&(R[x]=P[x])},f(E,L)};return function(E,L){f(E,L);function R(){this.constructor=E}E.prototype=L===null?Object.create(L):(R.prototype=L.prototype,new R)}}(),b="9_cutcopypaste",O=H.f||document.queryCommandSupported("cut"),m=H.f||document.queryCommandSupported("copy"),C=m&&!I.f,w=H.f||!I.d&&document.queryCommandSupported("paste"),v=function(f){h(E,f);function E(L,R){var P=f.call(this,R)||this;return P.browserCommand=L,P}return E.prototype.runCommand=function(L,R){var P=L.get(U.a).getFocusedCodeEditor();if(P&&P.hasTextFocus()){P.trigger("keyboard",this.id,R);return}document.execCommand(this.browserCommand)},E.prototype.run=function(L,R){R.focus(),document.execCommand(this.browserCommand)},E}(D.b),p=function(f){h(E,f);function E(){var L=this,R={kbExpr:j.a.textInputFocus,primary:2048|54,win:{primary:2048|54,secondary:[1024|20]},weight:100};return H.f||(R=void 0),L=f.call(this,"cut",{id:"editor.action.clipboardCutAction",label:J.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:j.a.writable,kbOpts:R,contextMenuOpts:{group:b,order:1},menuOpts:{menuId:17,group:"2_ccp",title:J.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this,L}return E.prototype.run=function(L,R){if(!R.hasModel())return;var P=R.getOption(25);if(!P&&R.getSelection().isEmpty())return;f.prototype.run.call(this,L,R)},E}(v),d=function(f){h(E,f);function E(){var L=this,R={kbExpr:j.a.textInputFocus,primary:2048|33,win:{primary:2048|33,secondary:[2048|19]},weight:100};return H.f||(R=void 0),L=f.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:J.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:R,contextMenuOpts:{group:b,order:2},menuOpts:{menuId:17,group:"2_ccp",title:J.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,L}return E.prototype.run=function(L,R){if(!R.hasModel())return;var P=R.getOption(25);if(!P&&R.getSelection().isEmpty())return;f.prototype.run.call(this,L,R)},E}(v),c=function(f){h(E,f);function E(){var L=this,R={kbExpr:j.a.textInputFocus,primary:2048|52,win:{primary:2048|52,secondary:[1024|19]},weight:100};return H.f||(R=void 0),L=f.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:J.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:j.a.writable,kbOpts:R,contextMenuOpts:{group:b,order:3},menuOpts:{menuId:17,group:"2_ccp",title:J.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,L}return E}(v),u=function(f){h(E,f);function E(){return f.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:J.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:j.a.textInputFocus,primary:0,weight:100}})||this}return E.prototype.run=function(L,R){if(!R.hasModel())return;var P=R.getOption(25);if(!P&&R.getSelection().isEmpty())return;K.a.forceCopyWithSyntaxHighlighting=!0,f.prototype.run.call(this,L,R),K.a.forceCopyWithSyntaxHighlighting=!1},E}(v);O&&Object(D.f)(p),m&&Object(D.f)(d),w&&Object(D.f)(c),C&&Object(D.f)(u)},w9QG:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return e.e(340).then(e.bind(null,"Czvm"))}})},wQH0:function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("T8No"),pe;(function(J){J.editorSimpleInput=new T.d("editorSimpleInput",!1),J.editorTextFocus=new T.d("editorTextFocus",!1),J.focus=new T.d("editorFocus",!1),J.textInputFocus=new T.d("textInputFocus",!1),J.readOnly=new T.d("editorReadonly",!1),J.writable=J.readOnly.toNegated(),J.hasNonEmptySelection=new T.d("editorHasSelection",!1),J.hasOnlyEmptySelection=J.hasNonEmptySelection.toNegated(),J.hasMultipleSelections=new T.d("editorHasMultipleSelections",!1),J.hasSingleSelection=J.hasMultipleSelections.toNegated(),J.tabMovesFocus=new T.d("editorTabMovesFocus",!1),J.tabDoesNotMoveFocus=J.tabMovesFocus.toNegated(),J.isInEmbeddedEditor=new T.d("isInEmbeddedEditor",!1),J.canUndo=new T.d("canUndo",!1),J.canRedo=new T.d("canRedo",!1),J.languageId=new T.d("editorLangId",""),J.hasCompletionItemProvider=new T.d("editorHasCompletionItemProvider",!1),J.hasCodeActionsProvider=new T.d("editorHasCodeActionsProvider",!1),J.hasCodeLensProvider=new T.d("editorHasCodeLensProvider",!1),J.hasDefinitionProvider=new T.d("editorHasDefinitionProvider",!1),J.hasDeclarationProvider=new T.d("editorHasDeclarationProvider",!1),J.hasImplementationProvider=new T.d("editorHasImplementationProvider",!1),J.hasTypeDefinitionProvider=new T.d("editorHasTypeDefinitionProvider",!1),J.hasHoverProvider=new T.d("editorHasHoverProvider",!1),J.hasDocumentHighlightProvider=new T.d("editorHasDocumentHighlightProvider",!1),J.hasDocumentSymbolProvider=new T.d("editorHasDocumentSymbolProvider",!1),J.hasReferenceProvider=new T.d("editorHasReferenceProvider",!1),J.hasRenameProvider=new T.d("editorHasRenameProvider",!1),J.hasSignatureHelpProvider=new T.d("editorHasSignatureHelpProvider",!1),J.hasDocumentFormattingProvider=new T.d("editorHasDocumentFormattingProvider",!1),J.hasDocumentSelectionFormattingProvider=new T.d("editorHasDocumentSelectionFormattingProvider",!1),J.hasMultipleDocumentFormattingProvider=new T.d("editorHasMultipleDocumentFormattingProvider",!1),J.hasMultipleDocumentSelectionFormattingProvider=new T.d("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(pe||(pe={}))},woZy:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return e.e(325).then(e.bind(null,"I+Au"))}})},wxcJ:function(Mt,F,e){"use strict";(function(T){e.d(F,"a",function(){return I}),e.d(F,"b",function(){return H}),e.d(F,"c",function(){return K});var pe=e("MNsG"),J=typeof T=="undefined"?{cwd:function(){return"/"},env:Object.create(null),get platform(){return pe.h?"win32":pe.e?"darwin":"linux"},nextTick:function(D){return Object(pe.i)(D)}}:T,I=J.cwd,H=J.env,K=J.platform}).call(this,e("Q2Ig"))},"x/UI":function(Mt,F,e){"use strict";e.d(F,"a",function(){return pe});var T=e("Cg/j"),pe=Object(T.c)("IWorkspaceEditService")},xONI:function(Mt,F,e){"use strict";e.d(F,"a",function(){return h});var T=e("KgQ1"),pe=e.n(T),J=e("EffR"),I=e("7lZ/"),H=e("pmY6"),K=e("nuFA"),D=e("qj0h"),U=function(){var C=function(w,v){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])},C(w,v)};return function(w,v){C(w,v);function p(){this.constructor=w}w.prototype=v===null?Object.create(v):(p.prototype=v.prototype,new p)}}(),j=function(){function C(w){this._element=w}return Object.defineProperty(C.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"textContent",{set:function(w){if(this.disposed||w===this._textContent)return;this._textContent=w,this._element.textContent=w},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"className",{set:function(w){if(this.disposed||w===this._className)return;this._className=w,this._element.className=w},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"title",{set:function(w){if(this.disposed||w===this._title)return;this._title=w,this._title?this._element.title=w:this._element.removeAttribute("title")},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"empty",{set:function(w){if(this.disposed||w===this._empty)return;this._empty=w,this._element.style.marginLeft=w?"0":""},enumerable:!0,configurable:!0}),C.prototype.dispose=function(){this.disposed=!0},C}(),h=function(C){U(w,C);function w(v,p){var d=C.call(this)||this;d.domNode=d._register(new j(J.q(v,J.a(".monaco-icon-label"))));var c=J.q(d.domNode.element,J.a(".monaco-icon-label-container")),u=J.q(c,J.a("span.monaco-icon-name-container"));return d.descriptionContainer=d._register(new j(J.q(c,J.a("span.monaco-icon-description-container")))),(p==null?void 0:p.supportHighlights)?d.nameNode=new m(u,!!p.supportCodicons):d.nameNode=new b(u),(p==null?void 0:p.supportDescriptionHighlights)?d.descriptionNodeFactory=function(){return new I.a(J.q(d.descriptionContainer.element,J.a("span.label-description")),!!p.supportCodicons)}:d.descriptionNodeFactory=function(){return d._register(new j(J.q(d.descriptionContainer.element,J.a("span.label-description"))))},d}return w.prototype.setLabel=function(v,p,d){var c=["monaco-icon-label"];d&&(d.extraClasses&&c.push.apply(c,d.extraClasses),d.italic&&c.push("italic")),this.domNode.className=c.join(" "),this.domNode.title=(d==null?void 0:d.title)||"",this.nameNode.setLabel(v,d),(p||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof I.a?(this.descriptionNode.set(p||"",d?d.descriptionMatches:void 0),(d==null?void 0:d.descriptionTitle)?this.descriptionNode.element.title=d.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=p||"",this.descriptionNode.title=(d==null?void 0:d.descriptionTitle)||"",this.descriptionNode.empty=!p))},w}(H.a),b=function(){function C(w){this.container=w,this.label=void 0,this.singleLabel=void 0}return C.prototype.setLabel=function(w,v){if(this.label===w&&Object(D.e)(this.options,v))return;if(this.label=w,this.options=v,typeof w=="string")this.singleLabel||(this.container.innerHTML="",J.P(this.container,"multiple"),this.singleLabel=J.q(this.container,J.a("a.label-name",{id:v==null?void 0:v.domId}))),this.singleLabel.textContent=w;else{this.container.innerHTML="",J.f(this.container,"multiple"),this.singleLabel=void 0;for(var p=0;p<w.length;p++){var d=w[p],c=(v==null?void 0:v.domId)&&(v==null?void 0:v.domId)+"_"+p;J.q(this.container,J.a("a.label-name",{id:c,"data-icon-label-count":w.length,"data-icon-label-index":p},d)),p<w.length-1&&J.q(this.container,J.a("span.label-separator",void 0,(v==null?void 0:v.separator)||"/"))}}},C}();function O(C,w,v){if(!v)return;var p=0;return C.map(function(d){var c={start:p,end:p+d.length},u=v.map(function(f){return K.a.intersect(c,f)}).filter(function(f){return!K.a.isEmpty(f)}).map(function(f){var E=f.start,L=f.end;return{start:E-p,end:L-p}});return p=c.end+w.length,u})}var m=function(){function C(w,v){this.container=w,this.supportCodicons=v,this.label=void 0,this.singleLabel=void 0}return C.prototype.setLabel=function(w,v){if(this.label===w&&Object(D.e)(this.options,v))return;if(this.label=w,this.options=v,typeof w=="string")this.singleLabel||(this.container.innerHTML="",J.P(this.container,"multiple"),this.singleLabel=new I.a(J.q(this.container,J.a("a.label-name",{id:v==null?void 0:v.domId})),this.supportCodicons)),this.singleLabel.set(w,v==null?void 0:v.matches,v==null?void 0:v.title,v==null?void 0:v.labelEscapeNewLines);else{this.container.innerHTML="",J.f(this.container,"multiple"),this.singleLabel=void 0;for(var p=(v==null?void 0:v.separator)||"/",d=O(w,p,v==null?void 0:v.matches),c=0;c<w.length;c++){var u=w[c],f=d?d[c]:void 0,E=(v==null?void 0:v.domId)&&(v==null?void 0:v.domId)+"_"+c,L=J.a("a.label-name",{id:E,"data-icon-label-count":w.length,"data-icon-label-index":c}),R=new I.a(J.q(this.container,L),this.supportCodicons);R.set(u,f,v==null?void 0:v.title,v==null?void 0:v.labelEscapeNewLines),c<w.length-1&&J.q(L,J.a("span.label-separator",void 0,p))}}},C}()},xYNL:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return e.e(315).then(e.bind(null,"tGOS"))}})},xmOD:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return e.e(335).then(e.bind(null,"fB/Z"))}})},y3CF:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return e.e(322).then(e.bind(null,"YdqL"))}})},yEoX:function(Mt,F,e){},yI7H:function(Mt,F,e){},yKqg:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return e.e(331).then(e.bind(null,"LdT9"))}})},yqFB:function(Mt,F,e){},yrU1:function(Mt,F,e){},z3hU:function(Mt,F,e){"use strict";e.r(F),e.d(F,"LanguageServiceDefaultsImpl",function(){return I});var T=e("M/lh"),pe="3.7.5";"use strict";var J=monaco.Emitter,I=function(){function v(p,d){this._onDidChange=new J,this._onDidExtraLibsChange=new J,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(p),this.setDiagnosticsOptions(d),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(v.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),v.prototype.getExtraLibs=function(){return this._extraLibs},v.prototype.addExtraLib=function(p,d){var c=this,u;if(typeof d=="undefined"?u="ts:extralib-"+Math.random().toString(36).substring(2,15):u=d,this._extraLibs[u]&&this._extraLibs[u].content===p)return{dispose:function(){}};var f=1;return this._extraLibs[u]&&(f=this._extraLibs[u].version+1),this._extraLibs[u]={content:p,version:f},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var E=c._extraLibs[u];if(!E)return;if(E.version!==f)return;delete c._extraLibs[u],c._fireOnDidExtraLibsChangeSoon()}}},v.prototype.setExtraLibs=function(p){if(this._extraLibs=Object.create(null),p&&p.length>0)for(var d=0,c=p;d<c.length;d++){var u=c[d],f=u.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),E=u.content;this._extraLibs[f]={content:E,version:1}}this._fireOnDidExtraLibsChangeSoon()},v.prototype._fireOnDidExtraLibsChangeSoon=function(){var p=this;if(this._onDidExtraLibsChangeTimeout!==-1)return;this._onDidExtraLibsChangeTimeout=setTimeout(function(){p._onDidExtraLibsChangeTimeout=-1,p._onDidExtraLibsChange.fire(void 0)},0)},v.prototype.getCompilerOptions=function(){return this._compilerOptions},v.prototype.setCompilerOptions=function(p){this._compilerOptions=p||Object.create(null),this._onDidChange.fire(void 0)},v.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},v.prototype.setDiagnosticsOptions=function(p){this._diagnosticsOptions=p||Object.create(null),this._onDidChange.fire(void 0)},v.prototype.setMaximumWorkerIdleTime=function(p){},v.prototype.setEagerModelSync=function(p){this._eagerModelSync=p},v.prototype.getEagerModelSync=function(){return this._eagerModelSync},v}(),H;(function(v){v[v.None=0]="None",v[v.CommonJS=1]="CommonJS",v[v.AMD=2]="AMD",v[v.UMD=3]="UMD",v[v.System=4]="System",v[v.ES2015=5]="ES2015",v[v.ESNext=99]="ESNext"})(H||(H={}));var K;(function(v){v[v.None=0]="None",v[v.Preserve=1]="Preserve",v[v.React=2]="React",v[v.ReactNative=3]="ReactNative"})(K||(K={}));var D;(function(v){v[v.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",v[v.LineFeed=1]="LineFeed"})(D||(D={}));var U;(function(v){v[v.ES3=0]="ES3",v[v.ES5=1]="ES5",v[v.ES2015=2]="ES2015",v[v.ES2016=3]="ES2016",v[v.ES2017=4]="ES2017",v[v.ES2018=5]="ES2018",v[v.ES2019=6]="ES2019",v[v.ES2020=7]="ES2020",v[v.ESNext=99]="ESNext",v[v.JSON=100]="JSON",v[v.Latest=99]="Latest"})(U||(U={}));var j;(function(v){v[v.Classic=1]="Classic",v[v.NodeJs=2]="NodeJs"})(j||(j={}));var h=new I({allowNonTsExtensions:!0,target:U.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),b=new I({allowNonTsExtensions:!0,allowJs:!0,target:U.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function O(){return w().then(function(v){return v.getTypeScriptWorker()})}function m(){return w().then(function(v){return v.getJavaScriptWorker()})}function C(){return{ModuleKind:H,JsxEmit:K,NewLineKind:D,ScriptTarget:U,ModuleResolutionKind:j,typescriptVersion:pe,typescriptDefaults:h,javascriptDefaults:b,getTypeScriptWorker:O,getJavaScriptWorker:m}}monaco.languages.typescript=C();function w(){return e.e(349).then(e.bind(null,"4yiN"))}monaco.languages.onLanguage("typescript",function(){return w().then(function(v){return v.setupTypeScript(h)})}),monaco.languages.onLanguage("javascript",function(){return w().then(function(v){return v.setupJavaScript(b)})})},zN7H:function(Mt,F,e){"use strict";e.d(F,"a",function(){return U});var T=e("N0LK"),pe=e("Ll0s"),J=e("aokT"),I=e("gCVg"),H=e("cMvZ"),K=Object.create(null);function D(j,h){K[j]||(K[j]=["",j]);for(var b=K[j],O=b.length;O<=h;O++)b[O]=b[O-1]+j;return b[h]}var U=function(){function j(h,b){this._opts=b,this._selection=h,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return j.unshiftIndent=function(h,b,O,m,C){var w=pe.a.visibleColumnFromColumn(h,b,O);if(C){var v=D(" ",m),p=pe.a.prevIndentTabStop(w,m),d=p/m;return D(v,d)}else{var v=" ",p=pe.a.prevRenderTabStop(w,O),d=p/O;return D(v,d)}},j.shiftIndent=function(h,b,O,m,C){var w=pe.a.visibleColumnFromColumn(h,b,O);if(C){var v=D(" ",m),p=pe.a.nextIndentTabStop(w,m),d=p/m;return D(v,d)}else{var v=" ",p=pe.a.nextRenderTabStop(w,O),d=p/O;return D(v,d)}},j.prototype._addEditOperation=function(h,b,O){this._useLastEditRangeForCursorEndPosition?h.addTrackedEditOperation(b,O):h.addEditOperation(b,O)},j.prototype.getEditOperations=function(h,b){var O=this._selection.startLineNumber,m=this._selection.endLineNumber;this._selection.endColumn===1&&O!==m&&(m=m-1);var C=this._opts,w=C.tabSize,v=C.indentSize,p=C.insertSpaces,d=O===m;if(this._selection.isEmpty()&&(/^\s*$/.test(h.getLineContent(O))&&(this._useLastEditRangeForCursorEndPosition=!0)),this._opts.useTabStops)for(var c=0,u=0,f=O;f<=m;f++,c=u){u=0;var E=h.getLineContent(f),L=T.q(E);if(this._opts.isUnshift&&(E.length===0||L===0))continue;if(!d&&!this._opts.isUnshift&&E.length===0)continue;if(L===-1&&(L=E.length),f>1){var R=pe.a.visibleColumnFromColumn(E,L+1,w);if(R%v!==0&&h.isCheapToTokenize(f-1)){var P=H.a.getEnterAction(this._opts.autoIndent,h,new J.a(f-1,h.getLineMaxColumn(f-1),f-1,h.getLineMaxColumn(f-1)));if(P){if(u=c,P.appendText)for(var x=0,Q=P.appendText.length;x<Q&&u<v&&P.appendText.charCodeAt(x)===32;x++)u++;P.removeText&&(u=Math.max(0,u-P.removeText));for(var x=0;x<u&&!(L===0||E.charCodeAt(L-1)!==32);x++)L--}}}if(this._opts.isUnshift&&L===0)continue;var V=void 0;this._opts.isUnshift?V=j.unshiftIndent(E,L+1,w,v,p):V=j.shiftIndent(E,L+1,w,v,p),this._addEditOperation(b,new J.a(f,1,f,L+1),V),f===O&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=L+1)}else for(var W=p?D(" ",v):" ",f=O;f<=m;f++){var E=h.getLineContent(f),L=T.q(E);if(this._opts.isUnshift&&(E.length===0||L===0))continue;if(!d&&!this._opts.isUnshift&&E.length===0)continue;if(L===-1&&(L=E.length),this._opts.isUnshift&&L===0)continue;if(this._opts.isUnshift){L=Math.min(L,v);for(var B=0;B<L;B++){var ae=E.charCodeAt(B);if(ae===9){L=B+1;break}}this._addEditOperation(b,new J.a(f,1,f,L+1),"")}else this._addEditOperation(b,new J.a(f,1,f,1),W),f===O&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}this._selectionId=b.trackSelection(this._selection)},j.prototype.computeCursorState=function(h,b){if(this._useLastEditRangeForCursorEndPosition){var O=b.getInverseEditOperations()[0];return new I.a(O.range.endLineNumber,O.range.endColumn,O.range.endLineNumber,O.range.endColumn)}var m=b.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var C=this._selection.startColumn,w=m.startColumn;return w<=C?m:m.getDirection()===0?new I.a(m.startLineNumber,C,m.endLineNumber,m.endColumn):new I.a(m.endLineNumber,m.endColumn,m.startLineNumber,C)}return m},j}()},zQEy:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return e.e(307).then(e.bind(null,"On+f"))}})},zrhQ:function(Mt,F,e){"use strict";e.d(F,"c",function(){return pe}),e.d(F,"b",function(){return I}),e.d(F,"a",function(){return H});function T(K,D){var U=Math.pow(10,D);return Math.round(K*U)/U}var pe=function(){function K(D,U,j,h){h===void 0&&(h=1),this.r=Math.min(255,Math.max(0,D))|0,this.g=Math.min(255,Math.max(0,U))|0,this.b=Math.min(255,Math.max(0,j))|0,this.a=T(Math.max(Math.min(1,h),0),3)}return K.equals=function(D,U){return D.r===U.r&&D.g===U.g&&D.b===U.b&&D.a===U.a},K}(),J=function(){function K(D,U,j,h){this.h=Math.max(Math.min(360,D),0)|0,this.s=T(Math.max(Math.min(1,U),0),3),this.l=T(Math.max(Math.min(1,j),0),3),this.a=T(Math.max(Math.min(1,h),0),3)}return K.equals=function(D,U){return D.h===U.h&&D.s===U.s&&D.l===U.l&&D.a===U.a},K.fromRGBA=function(D){var U=D.r/255,j=D.g/255,h=D.b/255,b=D.a,O=Math.max(U,j,h),m=Math.min(U,j,h),C=0,w=0,v=(m+O)/2,p=O-m;if(p>0){w=Math.min(v<=.5?p/(2*v):p/(2-2*v),1);switch(O){case U:C=(j-h)/p+(j<h?6:0);break;case j:C=(h-U)/p+2;break;case h:C=(U-j)/p+4;break}C*=60,C=Math.round(C)}return new K(C,w,v,b)},K._hue2rgb=function(D,U,j){return j<0&&(j+=1),j>1&&(j-=1),j<1/6?D+(U-D)*6*j:j<1/2?U:j<2/3?D+(U-D)*(2/3-j)*6:D},K.toRGBA=function(D){var U=D.h/360,j=D.s,h=D.l,b=D.a,O,m,C;if(j===0)O=m=C=h;else{var w=h<.5?h*(1+j):h+j-h*j,v=2*h-w;O=K._hue2rgb(v,w,U+1/3),m=K._hue2rgb(v,w,U),C=K._hue2rgb(v,w,U-1/3)}return new pe(Math.round(O*255),Math.round(m*255),Math.round(C*255),b)},K}(),I=function(){function K(D,U,j,h){this.h=Math.max(Math.min(360,D),0)|0,this.s=T(Math.max(Math.min(1,U),0),3),this.v=T(Math.max(Math.min(1,j),0),3),this.a=T(Math.max(Math.min(1,h),0),3)}return K.equals=function(D,U){return D.h===U.h&&D.s===U.s&&D.v===U.v&&D.a===U.a},K.fromRGBA=function(D){var U=D.r/255,j=D.g/255,h=D.b/255,b=Math.max(U,j,h),O=Math.min(U,j,h),m=b-O,C=b===0?0:m/b,w;return m===0?w=0:b===U?w=((j-h)/m%6+6)%6:b===j?w=(h-U)/m+2:w=(U-j)/m+4,new K(Math.round(w*60),C,b,D.a)},K.toRGBA=function(D){var U=D.h,j=D.s,h=D.v,b=D.a,O=h*j,m=O*(1-Math.abs(U/60%2-1)),C=h-O,w=[0,0,0],v=w[0],p=w[1],d=w[2];return U<60?(v=O,p=m):U<120?(v=m,p=O):U<180?(p=O,d=m):U<240?(p=m,d=O):U<300?(v=m,d=O):U<360&&(v=O,d=m),v=Math.round((v+C)*255),p=Math.round((p+C)*255),d=Math.round((d+C)*255),new pe(v,p,d,b)},K}(),H=function(){function K(D){if(D)if(D instanceof pe)this.rgba=D;else if(D instanceof J)this._hsla=D,this.rgba=J.toRGBA(D);else if(D instanceof I)this._hsva=D,this.rgba=I.toRGBA(D);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return K.fromHex=function(D){return K.Format.CSS.parseHex(D)||K.red},Object.defineProperty(K.prototype,"hsla",{get:function(){return this._hsla?this._hsla:J.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"hsva",{get:function(){return this._hsva?this._hsva:I.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),K.prototype.equals=function(D){return!!D&&pe.equals(this.rgba,D.rgba)&&J.equals(this.hsla,D.hsla)&&I.equals(this.hsva,D.hsva)},K.prototype.getRelativeLuminance=function(){var D=K._relativeLuminanceForComponent(this.rgba.r),U=K._relativeLuminanceForComponent(this.rgba.g),j=K._relativeLuminanceForComponent(this.rgba.b),h=.2126*D+.7152*U+.0722*j;return T(h,4)},K._relativeLuminanceForComponent=function(D){var U=D/255;return U<=.03928?U/12.92:Math.pow((U+.055)/1.055,2.4)},K.prototype.isLighter=function(){var D=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return D>=128},K.prototype.isLighterThan=function(D){var U=this.getRelativeLuminance(),j=D.getRelativeLuminance();return U>j},K.prototype.isDarkerThan=function(D){var U=this.getRelativeLuminance(),j=D.getRelativeLuminance();return U<j},K.prototype.lighten=function(D){return new K(new J(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*D,this.hsla.a))},K.prototype.darken=function(D){return new K(new J(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*D,this.hsla.a))},K.prototype.transparent=function(D){var U=this.rgba,j=U.r,h=U.g,b=U.b,O=U.a;return new K(new pe(j,h,b,O*D))},K.prototype.isTransparent=function(){return this.rgba.a===0},K.prototype.isOpaque=function(){return this.rgba.a===1},K.prototype.opposite=function(){return new K(new pe(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},K.prototype.toString=function(){return""+K.Format.CSS.format(this)},K.getLighterColor=function(D,U,j){if(D.isLighterThan(U))return D;j=j||.5;var h=D.getRelativeLuminance(),b=U.getRelativeLuminance();return j=j*(b-h)/b,D.lighten(j)},K.getDarkerColor=function(D,U,j){if(D.isDarkerThan(U))return D;j=j||.5;var h=D.getRelativeLuminance(),b=U.getRelativeLuminance();return j=j*(h-b)/h,D.darken(j)},K.white=new K(new pe(255,255,255,1)),K.black=new K(new pe(0,0,0,1)),K.red=new K(new pe(255,0,0,1)),K.blue=new K(new pe(0,0,255,1)),K.cyan=new K(new pe(0,255,255,1)),K.lightgrey=new K(new pe(211,211,211,1)),K.transparent=new K(new pe(0,0,0,0)),K}();(function(K){var D;(function(U){var j;(function(h){function b(f){return f.rgba.a===1?"rgb("+f.rgba.r+", "+f.rgba.g+", "+f.rgba.b+")":K.Format.CSS.formatRGBA(f)}h.formatRGB=b;function O(f){return"rgba("+f.rgba.r+", "+f.rgba.g+", "+f.rgba.b+", "+ +f.rgba.a.toFixed(2)+")"}h.formatRGBA=O;function m(f){return f.hsla.a===1?"hsl("+f.hsla.h+", "+(f.hsla.s*100).toFixed(2)+"%, "+(f.hsla.l*100).toFixed(2)+"%)":K.Format.CSS.formatHSLA(f)}h.formatHSL=m;function C(f){return"hsla("+f.hsla.h+", "+(f.hsla.s*100).toFixed(2)+"%, "+(f.hsla.l*100).toFixed(2)+"%, "+f.hsla.a.toFixed(2)+")"}h.formatHSLA=C;function w(f){var E=f.toString(16);return E.length!==2?"0"+E:E}function v(f){return"#"+w(f.rgba.r)+w(f.rgba.g)+w(f.rgba.b)}h.formatHex=v;function p(f,E){return E===void 0&&(E=!1),E&&f.rgba.a===1?K.Format.CSS.formatHex(f):"#"+w(f.rgba.r)+w(f.rgba.g)+w(f.rgba.b)+w(Math.round(f.rgba.a*255))}h.formatHexA=p;function d(f){return f.isOpaque()?K.Format.CSS.formatHex(f):K.Format.CSS.formatRGBA(f)}h.format=d;function c(f){var E=f.length;if(E===0)return null;if(f.charCodeAt(0)!==35)return null;if(E===7){var L=16*u(f.charCodeAt(1))+u(f.charCodeAt(2)),R=16*u(f.charCodeAt(3))+u(f.charCodeAt(4)),P=16*u(f.charCodeAt(5))+u(f.charCodeAt(6));return new K(new pe(L,R,P,1))}if(E===9){var L=16*u(f.charCodeAt(1))+u(f.charCodeAt(2)),R=16*u(f.charCodeAt(3))+u(f.charCodeAt(4)),P=16*u(f.charCodeAt(5))+u(f.charCodeAt(6)),x=16*u(f.charCodeAt(7))+u(f.charCodeAt(8));return new K(new pe(L,R,P,x/255))}if(E===4){var L=u(f.charCodeAt(1)),R=u(f.charCodeAt(2)),P=u(f.charCodeAt(3));return new K(new pe(16*L+L,16*R+R,16*P+P))}if(E===5){var L=u(f.charCodeAt(1)),R=u(f.charCodeAt(2)),P=u(f.charCodeAt(3)),x=u(f.charCodeAt(4));return new K(new pe(16*L+L,16*R+R,16*P+P,(16*x+x)/255))}return null}h.parseHex=c;function u(f){switch(f){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(j=U.CSS||(U.CSS={}))})(D=K.Format||(K.Format={}))})(H||(H={}))}}]);