UNPKG

delight

Version:

## How to use

2 lines 2.91 MB
/*! For license information please see bundle.4615ef3a.js.LICENSE.txt */ !function(e){function t(t){for(var i,o,r=t[0],s=t[1],a=0,c=[];a<r.length;a++)o=r[a],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&c.push(n[o][0]),n[o]=0;for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);for(l&&l(t);c.length;)c.shift()()}var i={},n={1:0};function o(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.e=function(e){var t=[],i=n[e];if(0!==i)if(i)t.push(i[2]);else{var r=new Promise((function(t,o){i=n[e]=[t,o]}));t.push(i[2]=r);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=function(e){return o.p+"static/js/"+({}[e]||e)+"."+{0:"93eb137f",2:"73eb6055",3:"1dab0744",4:"c6b536c8",5:"ebce39fb",6:"a12c5b6b",7:"2ab96012"}[e]+".chunk.js"}(e);var l=new Error;s=function(t){a.onerror=a.onload=null,clearTimeout(c);var i=n[e];if(0!==i){if(i){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",l.name="ChunkLoadError",l.type=o,l.request=r,i[1](l)}n[e]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(t)},o.m=e,o.c=i,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],s=r.push.bind(r);r.push=t,r=r.slice();for(var a=0;a<r.length;a++)t(r[a]);var l=s;o(o.s="1idS")}({"+3Gp":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return a}));var n=i("MNsG"),o=i("Yr1X");const r=n.f?1.5:1.35;class s{constructor(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}static createFromValidatedSettings(e,t,i){const n=e.get(35),o=e.get(39),r=e.get(38),a=e.get(37),l=e.get(51),c=e.get(48);return s._create(n,o,r,a,l,c,t,i)}static _create(e,t,i,n,a,l,c,d){0===a?a=Math.round(r*i):a<8&&(a=8);const u=1+(d?0:.1*o.a.getZoomLevel());return new s({zoomLevel:c,fontFamily:e,fontWeight:t,fontSize:i*=u,fontFeatureSettings:n,lineHeight:a*=u,letterSpacing:l})}getId(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing}getMassagedFontFamily(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?`"${this.fontFamily}"`:this.fontFamily}}class a extends s{constructor(e,t){super(e),this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},"+7oY":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"g",(function(){return a})),i.d(t,"b",(function(){return l})),i.d(t,"f",(function(){return c})),i.d(t,"d",(function(){return d})),i.d(t,"c",(function(){return u})),i.d(t,"e",(function(){return h}));var n=i("ic2d"),o=i("Cg/j"),r=i("CRAX");const s=Object(o.c)("configurationService");function a(e,t){const i=Object.create(null);for(let n in e)l(i,n,e[n],t);return i}function l(e,t,i,n){const o=t.split("."),r=o.pop();let s=e;for(let l=0;l<o.length;l++){let e=o[l],i=s[e];switch(typeof i){case"undefined":i=s[e]=Object.create(null);break;case"object":break;default:return void n(`Ignoring ${t} as ${o.slice(0,l+1).join(".")} is ${JSON.stringify(i)}`)}s=i}if("object"===typeof s&&null!==s)try{s[r]=i}catch(a){n(`Ignoring ${t} as ${o.join(".")} is ${JSON.stringify(s)}`)}else n(`Ignoring ${t} as ${o.join(".")} is ${JSON.stringify(s)}`)}function c(e,t){!function e(t,i){const n=i.shift();if(0===i.length)return void delete t[n];if(-1!==Object.keys(t).indexOf(n)){const o=t[n];"object"!==typeof o||Array.isArray(o)||(e(o,i),0===Object.keys(o).length&&delete t[n])}}(e,t.split("."))}function d(e,t,i){const n=function(e,t){let i=e;for(const n of t){if("object"!==typeof i||null===i)return;i=i[n]}return i}(e,t.split("."));return"undefined"===typeof n?i:n}function u(){const e=n.a.as(r.a.Configuration).getConfigurationProperties();return Object.keys(e)}function h(){const e=Object.create(null),t=n.a.as(r.a.Configuration).getConfigurationProperties();for(let i in t){l(e,i,t[i].default,e=>console.error("Conflict in default settings: "+e))}return e}},"+Fos":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i("Ll0s"),o=i("cGHE"),r=i("aokT"),s=i("N0LK");class a{constructor(e,t,i){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class l{static leftPosition(e,t,i){return i>e.getLineMinColumn(t)?i-=s.N(e.getLineContent(t),i-1):t>1&&(t-=1,i=e.getLineMaxColumn(t)),new o.a(t,i)}static left(e,t,i,n){const o=l.leftPosition(t,i,n);return new a(o.lineNumber,o.column,0)}static moveLeft(e,t,i,n,o){let r,s;if(i.hasSelection()&&!n)r=i.selection.startLineNumber,s=i.selection.startColumn;else{let n=l.left(e,t,i.position.lineNumber,i.position.column-(o-1));r=n.lineNumber,s=n.column}return i.move(n,r,s,0)}static rightPosition(e,t,i){return i<e.getLineMaxColumn(t)?i+=s.L(e.getLineContent(t),i-1):t<e.getLineCount()&&(t+=1,i=e.getLineMinColumn(t)),new o.a(t,i)}static right(e,t,i,n){const o=l.rightPosition(t,i,n);return new a(o.lineNumber,o.column,0)}static moveRight(e,t,i,n,o){let r,s;if(i.hasSelection()&&!n)r=i.selection.endLineNumber,s=i.selection.endColumn;else{let n=l.right(e,t,i.position.lineNumber,i.position.column+(o-1));r=n.lineNumber,s=n.column}return i.move(n,r,s,0)}static down(e,t,i,o,r,s,l){const c=n.a.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize)+r,d=t.getLineCount(),u=i===d&&o===t.getLineMaxColumn(i);return(i+=s)>d?(i=d,o=l?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),o)):o=n.a.columnFromVisibleColumn2(e,t,i,c),r=u?0:c-n.a.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize),new a(i,o,r)}static moveDown(e,t,i,n,o){let r,s;i.hasSelection()&&!n?(r=i.selection.endLineNumber,s=i.selection.endColumn):(r=i.position.lineNumber,s=i.position.column);let a=l.down(e,t,r,s,i.leftoverVisibleColumns,o,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateDown(e,t,i){let s=i.selection,a=l.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),c=l.down(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new n.f(new r.a(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.a(c.lineNumber,c.column),c.leftoverVisibleColumns)}static up(e,t,i,o,r,s,l){const c=n.a.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize)+r,d=1===i&&1===o;return(i-=s)<1?(i=1,o=l?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),o)):o=n.a.columnFromVisibleColumn2(e,t,i,c),r=d?0:c-n.a.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize),new a(i,o,r)}static moveUp(e,t,i,n,o){let r,s;i.hasSelection()&&!n?(r=i.selection.startLineNumber,s=i.selection.startColumn):(r=i.position.lineNumber,s=i.position.column);let a=l.up(e,t,r,s,i.leftoverVisibleColumns,o,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){let s=i.selection,a=l.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),c=l.up(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new n.f(new r.a(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.a(c.lineNumber,c.column),c.leftoverVisibleColumns)}static moveToBeginningOfLine(e,t,i,n){let o,r=i.position.lineNumber,s=t.getLineMinColumn(r),a=t.getLineFirstNonWhitespaceColumn(r)||s;return o=i.position.column===a?s:a,i.move(n,r,o,0)}static moveToEndOfLine(e,t,i,n,o){let r=i.position.lineNumber,s=t.getLineMaxColumn(r);return i.move(n,r,s,o?1073741824-s:0)}static moveToBeginningOfBuffer(e,t,i,n){return i.move(n,1,1,0)}static moveToEndOfBuffer(e,t,i,n){let o=t.getLineCount(),r=t.getLineMaxColumn(o);return i.move(n,o,r,0)}}},"+hIS":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i("+sZP"),o={},r={},s=function(){function e(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,i){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=i}))}return e.getOrCreate=function(t){return r[t]||(r[t]=new e(t)),r[t]},e.prototype.whenLoaded=function(){return this._lazyLoadPromise},e.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,o[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},e}();function a(e){var t=e.id;o[t]=e,n.languages.register(e);var i=s.getOrCreate(t);n.languages.setMonarchTokensProvider(t,i.whenLoaded().then((function(e){return e.language}))),n.languages.onLanguage(t,(function(){i.load().then((function(e){n.languages.setLanguageConfiguration(t,e.conf)}))}))}},"+sZP":function(e,t,i){"use strict";var n=i("M/lh");i.o(n,"languages")&&i.d(t,"languages",(function(){return n.languages}))},"+wdc":function(e,t,i){"use strict";var n,o,r,s,a;if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,c=null,d=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(i){throw setTimeout(d,0),i}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(d,0))},o=function(e,t){c=setTimeout(e,t)},r=function(){clearTimeout(c)},s=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var h=window.performance,g=window.Date,f=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof h&&"function"===typeof h.now)t.unstable_now=function(){return h.now()};else{var b=g.now();t.unstable_now=function(){return g.now()-b}}var _=!1,v=null,y=-1,w=5,C=0;s=function(){return t.unstable_now()>=C},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var S=new MessageChannel,x=S.port2;S.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();C=e+w;try{v(!0,e)?x.postMessage(null):(_=!1,v=null)}catch(i){throw x.postMessage(null),i}}else _=!1},n=function(e){v=e,_||(_=!0,x.postMessage(null))},o=function(e,i){y=f((function(){e(t.unstable_now())}),i)},r=function(){p(y),y=-1}}function k(e,t){var i=e.length;e.push(t);e:for(;;){var n=i-1>>>1,o=e[n];if(!(void 0!==o&&0<E(o,t)))break e;e[n]=t,e[i]=o,i=n}}function O(e){return void 0===(e=e[0])?null:e}function L(e){var t=e[0];if(void 0!==t){var i=e.pop();if(i!==t){e[0]=i;e:for(var n=0,o=e.length;n<o;){var r=2*(n+1)-1,s=e[r],a=r+1,l=e[a];if(void 0!==s&&0>E(s,i))void 0!==l&&0>E(l,s)?(e[n]=l,e[a]=i,n=a):(e[n]=s,e[r]=i,n=r);else{if(!(void 0!==l&&0>E(l,i)))break e;e[n]=l,e[a]=i,n=a}}}return t}return null}function E(e,t){var i=e.sortIndex-t.sortIndex;return 0!==i?i:e.id-t.id}var D=[],N=[],M=1,T=null,I=3,R=!1,A=!1,P=!1;function F(e){for(var t=O(N);null!==t;){if(null===t.callback)L(N);else{if(!(t.startTime<=e))break;L(N),t.sortIndex=t.expirationTime,k(D,t)}t=O(N)}}function j(e){if(P=!1,F(e),!A)if(null!==O(D))A=!0,n(B);else{var t=O(N);null!==t&&o(j,t.startTime-e)}}function B(e,i){A=!1,P&&(P=!1,r()),R=!0;var n=I;try{for(F(i),T=O(D);null!==T&&(!(T.expirationTime>i)||e&&!s());){var a=T.callback;if(null!==a){T.callback=null,I=T.priorityLevel;var l=a(T.expirationTime<=i);i=t.unstable_now(),"function"===typeof l?T.callback=l:T===O(D)&&L(D),F(i)}else L(D);T=O(D)}if(null!==T)var c=!0;else{var d=O(N);null!==d&&o(j,d.startTime-i),c=!1}return c}finally{T=null,I=n,R=!1}}function W(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||R||(A=!0,n(B))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return O(D)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var i=I;I=t;try{return e()}finally{I=i}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=I;I=e;try{return t()}finally{I=i}},t.unstable_scheduleCallback=function(e,i,s){var a=t.unstable_now();if("object"===typeof s&&null!==s){var l=s.delay;l="number"===typeof l&&0<l?a+l:a,s="number"===typeof s.timeout?s.timeout:W(e)}else s=W(e),l=a;return e={id:M++,callback:i,priorityLevel:e,startTime:l,expirationTime:s=l+s,sortIndex:-1},l>a?(e.sortIndex=l,k(N,e),null===O(D)&&e===O(N)&&(P?r():P=!0,o(j,l-a))):(e.sortIndex=s,k(D,e),A||R||(A=!0,n(B))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var i=O(D);return i!==T&&null!==T&&null!==i&&null!==i.callback&&i.startTime<=e&&i.expirationTime<T.expirationTime||s()},t.unstable_wrapCallback=function(e){var t=I;return function(){var i=I;I=t;try{return e.apply(this,arguments)}finally{I=i}}}},"/6w4":function(e,t,i){},"/9aa":function(e,t,i){var n=i("NykK"),o=i("ExA7");e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},"/RFl":function(e,t,i){"use strict";i.r(t),i.d(t,"DragAndDropController",(function(){return h}));i("OhnE");var n=i("pmY6"),o=i("MNsG"),r=i("sswD"),s=i("cGHE"),a=i("aokT"),l=i("gCVg");class c{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){let i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new l.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):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new l.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):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new l.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):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new l.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.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new l.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):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}var d=i("tX9W");function u(e){return o.f?e.altKey:e.ctrlKey}class h extends n.a{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(e=>this._onEditorMouseDown(e))),this._register(this._editor.onMouseUp(e=>this._onEditorMouseUp(e))),this._register(this._editor.onMouseDrag(e=>this._onEditorMouseDrag(e))),this._register(this._editor.onMouseDrop(e=>this._onEditorMouseDrop(e))),this._register(this._editor.onKeyDown(e=>this.onEditorKeyDown(e))),this._register(this._editor.onKeyUp(e=>this.onEditorKeyUp(e))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._dndDecorationIds=[],this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(25)&&!this._editor.getOption(13)&&(u(e)&&(this._modifierPressed=!0),this._mouseDown&&u(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(25)&&!this._editor.getOption(13)&&(u(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===h.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){let t=e.target;if(null===this._dragSelection){let e=(this._editor.getSelections()||[]).filter(e=>t.position&&e.containsPosition(t.position));if(1!==e.length)return;this._dragSelection=e[0]}u(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){let t=new s.a(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){let e=this._editor.getSelection();if(e){const{selectionStartLineNumber:n,selectionStartColumn:o}=e;i=[new l.a(n,o,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(e=>e.containsPosition(t)?new l.a(t.lineNumber,t.column,t.lineNumber,t.column):e);this._editor.setSelections(i||[],"mouse")}else(!this._dragSelection.containsPosition(t)||(u(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(h.ID,new c(this._dragSelection,t,u(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){let t=[{range:new a.a(e.lineNumber,e.column,e.lineNumber,e.column),options:h._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,t),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}h.ID="editor.contrib.dragAndDrop",h.TRIGGER_KEY_VALUE=o.f?6:5,h._DECORATION_OPTIONS=d.a.register({className:"dnd-target"}),Object(r.m)(h.ID,h)},"/UlZ":function(e,t,i){"use strict";i.d(t,"h",(function(){return s})),i.d(t,"b",(function(){return a})),i.d(t,"j",(function(){return l})),i.d(t,"a",(function(){return c})),i.d(t,"i",(function(){return v})),i.d(t,"e",(function(){return y})),i.d(t,"f",(function(){return C})),i.d(t,"l",(function(){return S})),i.d(t,"c",(function(){return k})),i.d(t,"d",(function(){return O})),i.d(t,"k",(function(){return L})),i.d(t,"g",(function(){return D}));var n=i("3/fG"),o=i("MNsG"),r=i("0JNc");const s=8;class a{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class l{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class c{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class d{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class u{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class h{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,i){return i}}class g extends h{static boolean(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}constructor(e,t,i,n){"undefined"!==typeof n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return g.boolean(e,this.defaultValue)}}class f extends h{constructor(e,t,i,n,o,r){"undefined"!==typeof r&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){if("undefined"===typeof e)return t;let o=parseInt(e,10);return isNaN(o)?t:(o=Math.max(i,o),o=Math.min(n,o),0|o)}validate(e){return f.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class p extends h{constructor(e,t,i,n,o){"undefined"!==typeof o&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(p.float(e,this.defaultValue))}}class m extends h{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,i,n){"undefined"!==typeof n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return m.string(e,this.defaultValue)}}class b extends h{constructor(e,t,i,n,o){"undefined"!==typeof o&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}static stringSet(e,t,i){return"string"!==typeof e||-1===i.indexOf(e)?t:e}validate(e){return b.stringSet(e,this.defaultValue,this._allowedValues)}}class _ extends d{constructor(e,t,i,n,o,r,s){"undefined"!==typeof s&&(s.type="string",s.enum=o,s.default=n),super(e,t,i,s),this._allowedValues=o,this._convert=r}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var v;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(v||(v={}));class y extends d{constructor(){super(37,"fontLigatures",y.OFF,{anyOf:[{type:"boolean",description:n.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:n.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:n.a("fontLigaturesGeneral","Configures font ligatures or font features."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?y.OFF:"true"===e?y.ON:e:Boolean(e)?y.ON:y.OFF}}y.OFF='"liga" off, "calt" off',y.ON='"liga" on, "calt" on';class w extends d{constructor(){super(39,"fontWeight",k.fontWeight,{anyOf:[{type:"number",minimum:w.MINIMUM_VALUE,maximum:w.MAXIMUM_VALUE,errorMessage:n.a("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:w.SUGGESTION_VALUES}],default:k.fontWeight,description:n.a("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(f.clampedInt(e,k.fontWeight,w.MINIMUM_VALUE,w.MAXIMUM_VALUE))}}w.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],w.MINIMUM_VALUE=1,w.MAXIMUM_VALUE=1e3;class C extends u{constructor(){super(117,[42,50,31,56,84,52,53,86,106,109,110,2])}compute(e,t,i){return C.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,p=e.minimap.side,m=e.verticalScrollbarWidth,b=e.viewLineCount,_=e.remainingWidth,v=e.isViewportWrapping,y=u?2:3;let w=Math.floor(o*n);const S=w/o;let x=!1,k=!1,O=y*h,L=h/o,E=1;if("fill"===f||"fit"===f){const{typicalViewportLineCount:i,extraLinesBeyondLastLine:r,desiredRatio:s,minimapLineCount:c}=C.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:d,height:n,lineHeight:l,pixelRatio:o});if(b/c>1)x=!0,k=!0,h=1,O=1,L=h/o;else{let n=!1,c=h+1;if("fit"===f){const i=Math.ceil((b+r)*O);v&&a&&_<=t.stableFitRemainingWidth?(n=!0,c=t.stableFitMaxMinimapScale):(n=i>w,v&&n?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0))}if("fill"===f||n){x=!0;const e=h;O=Math.min(l*o,Math.max(1,Math.floor(1/s))),h=Math.min(c,Math.max(1,Math.floor(O/y))),h>e&&(E=Math.min(2,h/e)),L=h/o/E,w=Math.ceil(Math.max(i,b+r)*O),v&&n&&(t.stableFitMaxMinimapScale=h)}}}const D=Math.floor(g*L),N=Math.min(D,Math.max(0,Math.floor((_-m-2)*L/(c+L)))+s);let M=Math.floor(o*N);const T=M/o;M=Math.floor(M*E);return{renderMinimap:u?1:2,minimapLeft:"left"===p?0:i-N-m,minimapWidth:N,minimapHeightIsEditorHeight:x,minimapIsSampling:k,minimapScale:h,minimapLineHeight:O,minimapCanvasInnerWidth:M,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:T,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const i=0|t.outerWidth,n=0|t.outerHeight,o=0|t.lineHeight,r=0|t.lineNumbersDigitCount,s=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,d=t.viewLineCount,u=e.get(106),h=e.get(109),g=e.get(110),p=e.get(2),m=t.isDominatedByLongLines,b=e.get(42),_=0!==e.get(52).renderType,v=e.get(53),y=e.get(86),w=e.get(56),S=e.get(84),x=S.verticalScrollbarSize,k=S.verticalHasArrows,O=S.arrowSize,L=S.horizontalScrollbarSize,E=e.get(50),D=e.get(31);let N;if("string"===typeof E&&/^\d+(\.\d+)?ch$/.test(E)){const e=parseFloat(E.substr(0,E.length-2));N=f.clampedInt(e*s,0,0,1e3)}else N=f.clampedInt(E,0,0,1e3);D&&(N+=16);let M=0;if(_){const e=Math.max(r,v);M=Math.round(e*a)}let T=0;b&&(T=o);let I=0,R=I+T,A=R+M,P=A+N;const F=i-T-M-N;let j=!1,B=!1,W=-1;2!==p&&(g&&m?(j=!0,B=!0):"on"===u||"bounded"===u?B=!0:"wordWrapColumn"===u&&(W=h));const V=C._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:s,pixelRatio:l,scrollBeyondLastLine:y,minimap:w,verticalScrollbarWidth:x,viewLineCount:d,remainingWidth:F,isViewportWrapping:B},t.memory||new c);0!==V.renderMinimap&&0===V.minimapLeft&&(I+=V.minimapWidth,R+=V.minimapWidth,A+=V.minimapWidth,P+=V.minimapWidth);const z=F-V.minimapWidth,H=Math.max(1,Math.floor((z-x-2)/s)),U=k?O:0;return B&&(W=Math.max(1,H),"bounded"===u&&(W=Math.min(W,h))),{width:i,height:n,glyphMarginLeft:I,glyphMarginWidth:T,lineNumbersLeft:R,lineNumbersWidth:M,decorationsLeft:A,decorationsWidth:N,contentLeft:P,contentWidth:z,minimap:V,viewportColumn:H,isWordWrapMinified:j,isViewportWrapping:B,wrappingColumn:W,verticalScrollbarWidth:x,horizontalScrollbarHeight:L,overviewRuler:{top:U,width:x,height:n-2*U,right:0}}}}function S(e){const t=e.get(79);return"editable"===t?e.get(72):"on"!==t}function x(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const k={fontFamily:o.f?"Menlo, Monaco, 'Courier New', monospace":o.d?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:o.f?12:14,lineHeight:0,letterSpacing:0},O={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},L=[];function E(e){return L[e.id]=e,e}const D={acceptSuggestionOnCommitCharacter:E(new g(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:n.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:E(new b(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",n.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:n.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:E(new class extends d{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[n.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),n.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),n.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:n.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:E(new f(3,"accessibilityPageSize",10,1,1073741824,{description:n.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:E(new m(4,"ariaLabel",n.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:E(new b(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),n.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:n.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:E(new b(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",n.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:n.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:E(new b(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),n.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:n.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:E(new _(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[n.a("editor.autoIndent.none","The editor will not insert indentation automatically."),n.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),n.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),n.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),n.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:n.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:E(new g(9,"automaticLayout",!1)),autoSurround:E(new b(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[n.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),n.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),n.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:n.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:E(new g(11,"codeLens",!0,{description:n.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:E(new g(12,"colorDecorators",!0,{description:n.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:E(new g(13,"columnSelection",!1,{description:n.a("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:E(new class extends d{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(14,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:n.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:n.a("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:g.boolean(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:g.boolean(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:E(new g(15,"contextmenu",!0)),copyWithSyntaxHighlighting:E(new g(16,"copyWithSyntaxHighlighting",!0,{description:n.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:E(new _(17,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:n.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:E(new g(18,"cursorSmoothCaretAnimation",!1,{description:n.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:E(new _(19,"cursorStyle",v.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return v.Line;case"block":return v.Block;case"underline":return v.Underline;case"line-thin":return v.LineThin;case"block-outline":return v.BlockOutline;case"underline-thin":return v.UnderlineThin}}),{description:n.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:E(new f(20,"cursorSurroundingLines",0,0,1073741824,{description:n.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:E(new b(21,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[n.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),n.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:n.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:E(new f(22,"cursorWidth",0,0,1073741824,{markdownDescription:n.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:E(new g(23,"disableLayerHinting",!1)),disableMonospaceOptimizations:E(new g(24,"disableMonospaceOptimizations",!1)),dragAndDrop:E(new g(25,"dragAndDrop",!0,{description:n.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:E(new class extends g{constructor(){super(26,"emptySelectionClipboard",!0,{description:n.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),extraEditorClassName:E(new m(27,"extraEditorClassName","")),fastScrollSensitivity:E(new p(28,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:n.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:E(new class extends d{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(29,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:n.a("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:e.seedSearchStringFromSelection,description:n.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:e.autoFindInSelection,enumDescriptions:[n.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),n.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),n.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:n.a("find.autoFindInSelection","Controls the condition for turning on find in selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:n.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:o.f},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:n.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.")},"editor.find.loop":{type:"boolean",default:e.loop,description:n.a("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:g.boolean(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:g.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":b.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:g.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:g.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:g.boolean(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:E(new g(30,"fixedOverflowWidgets",!1)),folding:E(new g(31,"folding",!0,{description:n.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:E(new b(32,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[n.a("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),n.a("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:n.a("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:E(new g(33,"foldingHighlight",!0,{description:n.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),unfoldOnClickAfterEndOfLine:E(new g(34,"unfoldOnClickAfterEndOfLine",!1,{description:n.a("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:E(new m(35,"fontFamily",k.fontFamily,{description:n.a("fontFamily","Controls the font family.")})),fontInfo:E(new class extends u{constructor(){super(36)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:E(new y),fontSize:E(new class extends h{constructor(){super(38,"fontSize",k.fontSize,{type:"number",minimum:6,maximum:100,default:k.fontSize,description:n.a("fontSize","Controls the font size in pixels.")})}validate(e){let t=p.float(e,this.defaultValue);return 0===t?k.fontSize:p.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:E(new w),formatOnPaste:E(new g(40,"formatOnPaste",!1,{description:n.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:E(new g(41,"formatOnType",!1,{description:n.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:E(new g(42,"glyphMargin",!0,{description:n.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:E(new class extends d{constructor(){const e={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:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[n.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),n.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),n.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};super(43,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:n.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":Object.assign({description:n.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:n.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:n.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:n.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:n.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,description:n.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:e.alternativeTypeDefinitionCommand,description:n.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:e.alternativeDeclarationCommand,description:n.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:e.alternativeImplementationCommand,description:n.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:e.alternativeReferenceCommand,description:n.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||"object"!==typeof e)return this.defaultValue;const s=e;return{multiple:b.stringSet(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=s.multipleDefinitions)&&void 0!==t?t:b.stringSet(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=s.multipleTypeDefinitions)&&void 0!==i?i:b.stringSet(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=s.multipleDeclarations)&&void 0!==n?n:b.stringSet(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=s.multipleImplementations)&&void 0!==o?o:b.stringSet(s.multipleImplementation