diff --git a/index.html b/index.html index f83254cebb..f08954b21d 100644 --- a/index.html +++ b/index.html @@ -118,6 +118,6 @@ - + diff --git a/monaco-editor.883c13cd.async.js b/monaco-editor.883c13cd.async.js index 78102ce60d..2170a9a691 100644 --- a/monaco-editor.883c13cd.async.js +++ b/monaco-editor.883c13cd.async.js @@ -1,15 +1,15 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{"+3Gp":function(Lt,N,e){"use strict";e.d(N,"a",function(){return z}),e.d(N,"b",function(){return O});var T=e("MNsG"),le=e("Yr1X"),$=function(){var W=function(x,h){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var f in w)w.hasOwnProperty(f)&&(y[f]=w[f])},W(x,h)};return function(x,h){W(x,h);function y(){this.constructor=x}x.prototype=h===null?Object.create(h):(y.prototype=h.prototype,new y)}}(),R=T.e?1.5:1.35,B=8,z=function(){function W(x){this.zoomLevel=x.zoomLevel,this.fontFamily=String(x.fontFamily),this.fontWeight=String(x.fontWeight),this.fontSize=x.fontSize,this.fontFeatureSettings=x.fontFeatureSettings,this.lineHeight=x.lineHeight|0,this.letterSpacing=x.letterSpacing}return W.createFromValidatedSettings=function(x,h,y){var w=x.get(33),f=x.get(37),v=x.get(36),C=x.get(35),g=x.get(49),u=x.get(46);return W._create(w,f,v,C,g,u,h,y)},W._create=function(x,h,y,w,f,v,C,g){f===0?f=Math.round(R*y):fW.getLineMinColumn(x)?h=h-R.G(W.getLineContent(x),h-1):x>1&&(x=x-1,h=W.getLineMaxColumn(x)),new le.a(x,h)},O.left=function(W,x,h,y){var w=O.leftPosition(x,h,y);return new B(w.lineNumber,w.column,0)},O.moveLeft=function(W,x,h,y,w){var f,v;if(h.hasSelection()&&!y)f=h.selection.startLineNumber,v=h.selection.startColumn;else{var C=O.left(W,x,h.position.lineNumber,h.position.column-(w-1));f=C.lineNumber,v=C.column}return h.move(y,f,v,0)},O.rightPosition=function(W,x,h){return hg?(h=g,v?y=x.getLineMaxColumn(h):y=Math.min(x.getLineMaxColumn(h),y)):y=T.a.columnFromVisibleColumn2(W,x,h,C),w=C-T.a.visibleColumnFromColumn(x.getLineContent(h),y,W.tabSize),new B(h,y,w)},O.moveDown=function(W,x,h,y,w){var f,v;h.hasSelection()&&!y?(f=h.selection.endLineNumber,v=h.selection.endColumn):(f=h.position.lineNumber,v=h.position.column);var C=O.down(W,x,f,v,h.leftoverVisibleColumns,w,!0);return h.move(y,C.lineNumber,C.column,C.leftoverVisibleColumns)},O.translateDown=function(W,x,h){var y=h.selection,w=O.down(W,x,y.selectionStartLineNumber,y.selectionStartColumn,h.selectionStartLeftoverVisibleColumns,1,!1),f=O.down(W,x,y.positionLineNumber,y.positionColumn,h.leftoverVisibleColumns,1,!1);return new T.f(new $.a(w.lineNumber,w.column,w.lineNumber,w.column),w.leftoverVisibleColumns,new le.a(f.lineNumber,f.column),f.leftoverVisibleColumns)},O.up=function(W,x,h,y,w,f,v){var C=T.a.visibleColumnFromColumn(x.getLineContent(h),y,W.tabSize)+w;return h=h-f,h<1?(h=1,v?y=x.getLineMinColumn(h):y=Math.min(x.getLineMaxColumn(h),y)):y=T.a.columnFromVisibleColumn2(W,x,h,C),w=C-T.a.visibleColumnFromColumn(x.getLineContent(h),y,W.tabSize),new B(h,y,w)},O.moveUp=function(W,x,h,y,w){var f,v;h.hasSelection()&&!y?(f=h.selection.startLineNumber,v=h.selection.startColumn):(f=h.position.lineNumber,v=h.position.column);var C=O.up(W,x,f,v,h.leftoverVisibleColumns,w,!0);return h.move(y,C.lineNumber,C.column,C.leftoverVisibleColumns)},O.translateUp=function(W,x,h){var y=h.selection,w=O.up(W,x,y.selectionStartLineNumber,y.selectionStartColumn,h.selectionStartLeftoverVisibleColumns,1,!1),f=O.up(W,x,y.positionLineNumber,y.positionColumn,h.leftoverVisibleColumns,1,!1);return new T.f(new $.a(w.lineNumber,w.column,w.lineNumber,w.column),w.leftoverVisibleColumns,new le.a(f.lineNumber,f.column),f.leftoverVisibleColumns)},O.moveToBeginningOfLine=function(W,x,h,y){var w=h.position.lineNumber,f=x.getLineMinColumn(w),v=x.getLineFirstNonWhitespaceColumn(w)||f,C,g=h.position.column;return g===v?C=f:C=v,h.move(y,w,C,0)},O.moveToEndOfLine=function(W,x,h,y){var w=h.position.lineNumber,f=x.getLineMaxColumn(w);return h.move(y,w,f,0)},O.moveToBeginningOfBuffer=function(W,x,h,y){return h.move(y,1,1,0)},O.moveToEndOfBuffer=function(W,x,h,y){var w=x.getLineCount(),f=x.getLineMaxColumn(w);return h.move(y,w,f,0)},O}()},"+a1H":function(Lt,N,e){"use strict";e.r(N);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(296).then(e.bind(null,"O3xE"))}})},"+hIS":function(Lt,N,e){"use strict";e.d(N,"a",function(){return z});var T=typeof monaco=="undefined"?self.monaco:monaco,le={},$={},R=function(){function O(W){var x=this;this._languageId=W,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(h,y){x._lazyLoadPromiseResolve=h,x._lazyLoadPromiseReject=y})}return O.getOrCreate=function(W){return $[W]||($[W]=new O(W)),$[W]},O.prototype.whenLoaded=function(){return this._lazyLoadPromise},O.prototype.load=function(){var W=this;return this._loadingTriggered||(this._loadingTriggered=!0,le[this._languageId].loader().then(function(x){return W._lazyLoadPromiseResolve(x)},function(x){return W._lazyLoadPromiseReject(x)})),this._lazyLoadPromise},O}();function B(O){return R.getOrCreate(O).load()}function z(O){var W=O.id;le[W]=O,T.languages.register(O);var x=R.getOrCreate(W);T.languages.setMonarchTokensProvider(W,x.whenLoaded().then(function(h){return h.language})),T.languages.onLanguage(W,function(){x.load().then(function(h){T.languages.setLanguageConfiguration(W,h.conf)})})}},"/RFl":function(Lt,N,e){"use strict";e.r(N),e.d(N,"DragAndDropController",function(){return w});var T=e("OhnE"),le=e("pmY6"),$=e("MNsG"),R=e("sswD"),B=e("cGHE"),z=e("aokT"),O=e("gCVg"),W=function(){function f(v,C,g){this.selection=v,this.targetPosition=C,this.copy=g,this.targetSelection=null}return f.prototype.getEditOperations=function(v,C){var g=v.getValueInRange(this.selection);if(this.copy||C.addEditOperation(this.selection,null),C.addEditOperation(new z.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),g),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 O.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 O.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.lineNumberHe?He:De},fe.float=function(De,Me){if(typeof De=="number")return De;if(typeof De=="undefined")return Me;var He=parseFloat(De);return isNaN(He)?Me:He},fe.prototype.validate=function(De){return this.validationFn(fe.float(De,this.defaultValue))},fe}(y),C=function(ne){R(fe,ne);function fe(De,Me,He,Je){Je===void 0&&(Je=void 0);var nt=this;return typeof Je!="undefined"&&(Je.type="string",Je.default=He),nt=ne.call(this,De,Me,He,Je)||this,nt}return fe.string=function(De,Me){return typeof De!="string"?Me:De},fe.prototype.validate=function(De){return fe.string(De,this.defaultValue)},fe}(y),g=function(ne){R(fe,ne);function fe(De,Me,He,Je,nt){nt===void 0&&(nt=void 0);var vt=this;return typeof nt!="undefined"&&(nt.type="string",nt.enum=Je,nt.default=He),vt=ne.call(this,De,Me,He,nt)||this,vt._allowedValues=Je,vt}return fe.stringSet=function(De,Me,He){return typeof De!="string"||He.indexOf(De)===-1?Me:De},fe.prototype.validate=function(De){return fe.stringSet(De,this.defaultValue,this._allowedValues)},fe}(y),u=function(ne){R(fe,ne);function fe(De,Me,He,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=ne.call(this,De,Me,He,Rt)||this,Ot._allowedValues=nt,Ot._convert=vt,Ot}return fe.prototype.validate=function(De){return typeof De!="string"?this.defaultValue:this._allowedValues.indexOf(De)===-1?this.defaultValue:this._convert(De)},fe}(x);function s(ne){switch(ne){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var l=function(ne){R(fe,ne);function fe(){return ne.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 fe.prototype.validate=function(De){switch(De){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},fe.prototype.compute=function(De,Me,He){return He===0?De.accessibilitySupport:He},fe}(x),c=function(ne){R(fe,ne);function fe(){var De=this,Me={insertSpace:!0};return De=ne.call(this,13,"comments",Me,{"editor.comments.insertSpace":{type:"boolean",default:Me.insertSpace,description:T.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,De}return fe.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Me=De;return{insertSpace:w.boolean(Me.insertSpace,this.defaultValue.insertSpace)}},fe}(x);function p(ne){switch(ne){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var _;(function(ne){ne[ne.Line=1]="Line",ne[ne.Block=2]="Block",ne[ne.Underline=3]="Underline",ne[ne.LineThin=4]="LineThin",ne[ne.BlockOutline=5]="BlockOutline",ne[ne.UnderlineThin=6]="UnderlineThin"})(_||(_={}));function L(ne){switch(ne){case"line":return _.Line;case"block":return _.Block;case"underline":return _.Underline;case"line-thin":return _.LineThin;case"block-outline":return _.BlockOutline;case"underline-thin":return _.UnderlineThin}}var I=function(ne){R(fe,ne);function fe(){return ne.call(this,104,[55,26])||this}return fe.prototype.compute=function(De,Me,He){var Je="monaco-editor";return Me.get(26)&&(Je+=" "+Me.get(26)),De.extraEditorClassName&&(Je+=" "+De.extraEditorClassName),Me.get(55)==="default"?Je+=" mouse-default":Me.get(55)==="copy"&&(Je+=" mouse-copy"),Me.get(85)&&(Je+=" showUnused"),Je},fe}(h),P=function(ne){R(fe,ne);function fe(){return ne.call(this,25,"emptySelectionClipboard",!0,{description:T.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return fe.prototype.compute=function(De,Me,He){return He&&De.emptySelectionClipboard},fe}(w),A=function(ne){R(fe,ne);function fe(){var De=this,Me={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return De=ne.call(this,28,"find",Me,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Me.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:Me.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:Me.globalFindClipboard,description:T.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:le.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:Me.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,De}return fe.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Me=De;return{seedSearchStringFromSelection:w.boolean(Me.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof De.autoFindInSelection=="boolean"?De.autoFindInSelection?"always":"never":g.stringSet(Me.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:w.boolean(Me.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:w.boolean(Me.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},fe}(x),Q=function(ne){R(fe,ne);function fe(){return ne.call(this,35,"fontLigatures",fe.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 fe.prototype.validate=function(De){return typeof De=="undefined"?this.defaultValue:typeof De=="string"?De==="false"?fe.OFF:De==="true"?fe.ON:De:Boolean(De)?fe.ON:fe.OFF},fe.OFF='"liga" off, "calt" off',fe.ON='"liga" on, "calt" on',fe}(x),K=function(ne){R(fe,ne);function fe(){return ne.call(this,34)||this}return fe.prototype.compute=function(De,Me,He){return De.fontInfo},fe}(h),U=function(ne){R(fe,ne);function fe(){return ne.call(this,36,"fontSize",he.fontSize,{type:"number",minimum:6,maximum:100,default:he.fontSize,description:T.a("fontSize","Controls the font size in pixels.")})||this}return fe.prototype.validate=function(De){var Me=v.float(De,this.defaultValue);return Me===0?he.fontSize:v.clamp(Me,6,100)},fe.prototype.compute=function(De,Me,He){return De.fontInfo.fontSize},fe}(y),V=function(ne){R(fe,ne);function fe(){var De=this,Me={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:""},He={type:"string",enum:["peek","gotoAndPeek","goto"],default:Me.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 De=ne.call(this,41,"gotoLocation",Me,{"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":B({description:T.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},He),"editor.gotoLocation.multipleTypeDefinitions":B({description:T.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},He),"editor.gotoLocation.multipleDeclarations":B({description:T.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},He),"editor.gotoLocation.multipleImplementations":B({description:T.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},He),"editor.gotoLocation.multipleReferences":B({description:T.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},He),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:Me.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:Me.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:Me.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:Me.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:Me.alternativeReferenceCommand,description:T.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,De}return fe.prototype.validate=function(De){var Me,He,Je,nt,vt;if(typeof De!="object")return this.defaultValue;var Rt=De;return{multiple:g.stringSet(Rt.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(Me=Rt.multipleDefinitions)!==null&&Me!==void 0?Me:g.stringSet(Rt.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(He=Rt.multipleTypeDefinitions)!==null&&He!==void 0?He:g.stringSet(Rt.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Je=Rt.multipleDeclarations)!==null&&Je!==void 0?Je:g.stringSet(Rt.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(nt=Rt.multipleImplementations)!==null&&nt!==void 0?nt:g.stringSet(Rt.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(vt=Rt.multipleReferences)!==null&&vt!==void 0?vt:g.stringSet(Rt.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:C.string(Rt.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:C.string(Rt.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:C.string(Rt.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:C.string(Rt.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:C.string(Rt.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},fe}(x),de=function(ne){R(fe,ne);function fe(){var De=this,Me={enabled:!0,delay:300,sticky:!0};return De=ne.call(this,44,"hover",Me,{"editor.hover.enabled":{type:"boolean",default:Me.enabled,description:T.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Me.delay,description:T.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Me.sticky,description:T.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,De}return fe.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Me=De;return{enabled:w.boolean(Me.enabled,this.defaultValue.enabled),delay:f.clampedInt(Me.delay,this.defaultValue.delay,0,1e4),sticky:w.boolean(Me.sticky,this.defaultValue.sticky)}},fe}(x),_e=function(ne){R(fe,ne);function fe(){return ne.call(this,107,[40,48,30,54,78,50])||this}return fe.prototype.compute=function(De,Me,He){return fe.computeLayout(Me,{outerWidth:De.outerWidth,outerHeight:De.outerHeight,lineHeight:De.fontInfo.lineHeight,lineNumbersDigitCount:De.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:De.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:De.fontInfo.maxDigitWidth,pixelRatio:De.pixelRatio})},fe.computeLayout=function(De,Me){var He=Me.outerWidth|0,Je=Me.outerHeight|0,nt=Me.lineHeight|0,vt=Me.lineNumbersDigitCount|0,Rt=Me.typicalHalfwidthCharacterWidth,Ot=Me.maxDigitWidth,Kt=Me.pixelRatio,ao=De.get(40),lo=De.get(50).renderType!==0,so=De.get(51)|0,jt=De.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=De.get(78),Ct=ut.verticalScrollbarSize|0,ht=ut.verticalHasArrows,Et=ut.arrowSize|0,Yt=ut.horizontalScrollbarSize|0,Nt=De.get(48),bt=De.get(30),$e;if(typeof Nt=="string"&&/^\d+(\.\d+)?ch$/.test(Nt)){var Ye=parseFloat(Nt.substr(0,Nt.length-2));$e=f.clampedInt(Ye*Rt,0,0,1e3)}else $e=f.clampedInt(Nt,0,0,1e3);bt&&($e+=16);var ze=0;if(lo){var Ke=Math.max(vt,so);ze=Math.round(Ke*Ot)}var ge=0;ao&&(ge=nt);var G=0,oe=G+ge,Y=oe+ze,ae=Y+$e,Fe=He-ge-ze-$e,dt,Dt,Qt,to;if(!pt)Dt=0,Qt=0,dt=0,to=Fe;else{var fo=it/Kt;dt=Tt?1:2,Qt=Math.max(0,Math.floor((Fe-Ct-2)*fo/(Rt+fo)))+z;var ho=Qt/fo;ho>et&&(Qt=Math.floor(et*fo)),to=Fe-Qt,gt==="left"?(Dt=0,G+=Qt,oe+=Qt,Y+=Qt,ae+=Qt):Dt=He-Qt-Ct}var _o=Math.max(1,Math.floor((to-Ct-2)/Rt)),Oo=ht?Et:0;return{width:He,height:Je,glyphMarginLeft:G,glyphMarginWidth:ge,lineNumbersLeft:oe,lineNumbersWidth:ze,decorationsLeft:Y,decorationsWidth:$e,contentLeft:ae,contentWidth:to,renderMinimap:dt,minimapLeft:Dt,minimapWidth:Qt,viewportColumn:_o,verticalScrollbarWidth:Ct,horizontalScrollbarHeight:Yt,overviewRuler:{top:Oo,width:Ct,height:Je-2*Oo,right:0}}},fe}(h),Se=function(ne){R(fe,ne);function fe(){var De=this,Me={enabled:!0};return De=ne.call(this,47,"lightbulb",Me,{"editor.lightbulb.enabled":{type:"boolean",default:Me.enabled,description:T.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,De}return fe.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Me=De;return{enabled:w.boolean(Me.enabled,this.defaultValue.enabled)}},fe}(x),Ie=function(ne){R(fe,ne);function fe(){return ne.call(this,49,"lineHeight",he.lineHeight,0,150,{description:T.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return fe.prototype.compute=function(De,Me,He){return De.fontInfo.lineHeight},fe}(f),Pe=function(ne){R(fe,ne);function fe(){var De=this,Me={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return De=ne.call(this,54,"minimap",Me,{"editor.minimap.enabled":{type:"boolean",default:Me.enabled,description:T.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Me.side,description:T.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Me.showSlider,description:T.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:Me.scale,minimum:1,maximum:3,description:T.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:Me.renderCharacters,description:T.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Me.maxColumn,description:T.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,De}return fe.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Me=De;return{enabled:w.boolean(Me.enabled,this.defaultValue.enabled),side:g.stringSet(Me.side,this.defaultValue.side,["right","left"]),showSlider:g.stringSet(Me.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:w.boolean(Me.renderCharacters,this.defaultValue.renderCharacters),scale:f.clampedInt(Me.scale,1,1,3),maxColumn:f.clampedInt(Me.maxColumn,this.defaultValue.maxColumn,1,1e4)}},fe}(x);function Ve(ne){return ne==="ctrlCmd"?le.e?"metaKey":"ctrlKey":"altKey"}var ke=function(ne){R(fe,ne);function fe(){var De=this,Me={enabled:!0,cycle:!1};return De=ne.call(this,64,"parameterHints",Me,{"editor.parameterHints.enabled":{type:"boolean",default:Me.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:Me.cycle,description:T.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,De}return fe.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Me=De;return{enabled:w.boolean(Me.enabled,this.defaultValue.enabled),cycle:w.boolean(Me.cycle,this.defaultValue.cycle)}},fe}(x),se=function(ne){R(fe,ne);function fe(){return ne.call(this,105)||this}return fe.prototype.compute=function(De,Me,He){return De.pixelRatio},fe}(h),ee=function(ne){R(fe,ne);function fe(){var De=this,Me={other:!0,comments:!1,strings:!1};return De=ne.call(this,66,"quickSuggestions",Me,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:Me.strings,description:T.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:Me.comments,description:T.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:Me.other,description:T.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Me,description:T.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,De.defaultValue=Me,De}return fe.prototype.validate=function(De){if(typeof De=="boolean")return De;if(typeof De=="object"){var Me=De,He={other:w.boolean(Me.other,this.defaultValue.other),comments:w.boolean(Me.comments,this.defaultValue.comments),strings:w.boolean(Me.strings,this.defaultValue.strings)};return He.other&&He.comments&&He.strings?!0:!He.other&&!He.comments&&!He.strings?!1:He}return this.defaultValue},fe}(x),ie=function(ne){R(fe,ne);function fe(){return ne.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 fe.prototype.validate=function(De){var Me=this.defaultValue.renderType,He=this.defaultValue.renderFn;return typeof De!="undefined"&&(typeof De=="function"?(Me=4,He=De):De==="interval"?Me=3:De==="relative"?Me=2:De==="on"?Me=1:Me=0),{renderType:Me,renderFn:He}},fe}(x);function q(ne){var fe=ne.get(73);return fe==="editable"?ne.get(68):!(fe==="on")}var ce=function(ne){R(fe,ne);function fe(){var De=this,Me=[];return De=ne.call(this,77,"rulers",Me,{type:"array",items:{type:"number"},default:Me,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,De}return fe.prototype.validate=function(De){if(Array.isArray(De)){for(var Me=[],He=0,Je=De;He