mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-11 04:00:54 +02:00
12 lines
2.1 MiB
12 lines
2.1 MiB
webpackJsonp([0],{
|
||
|
||
/***/ "lbPO":
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
!function(e,t){ true?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.monaco=t():e.monaco=t();}(window,function(){return function(e){function t(t){for(var n,o,r=t[0],s=t[1],a=0,l=[];a<r.length;a++)o=r[a],i[o]&&l.push(i[o][0]),i[o]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(u&&u(t);l.length;)l.shift()();}var n={},i={0:0};function o(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,o),i.l=!0,i.exports;}o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n});},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 n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t];}.bind(null,i));return n;},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.webpackJsonpmonaco=window.webpackJsonpmonaco||[],s=r.push.bind(r);r.push=t,r=r.slice();for(var a=0;a<r.length;a++)t(r[a]);var u=s;return o(o.s="./index.js");}({"./index.js":function(e,t,n){"use strict";n.r(t);var i=n("./node_modules/monaco-editor/esm/vs/base/common/winjs.base.js"),o=n("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),r={};i.b.addEventListener("error",function(e){var t=e.detail,n=t.id;t.parent?t.handler&&r&&delete r[n]:(r[n]=t,1===Object.keys(r).length&&setTimeout(function(){var e=r;r={},Object.keys(e).forEach(function(t){var n=e[t];n.exception?a(n.exception):n.error&&a(n.error),console.log("WARNING: Promise with no error callback:"+n.id),console.log(n),n.exception&&console.log(n.exception.stack);});},0));});var s=new(function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e;},0);};}return e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e);});},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e);},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e);},e;}())();function a(e){d(e)||s.onUnexpectedError(e);}function u(e){d(e)||s.onUnexpectedExternalError(e);}function l(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}:e;}var c="Canceled";function d(e){return e instanceof Error&&e.name===c&&e.message===c;}function h(){var e=new Error(c);return e.name=e.message,e;}function p(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument");}function f(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(e)?(e.forEach(function(e){return e&&e.dispose();}),[]):0===t.length?e?(e.dispose(),e):void 0:(f(e),f(t),[]);}function g(e){return{dispose:function(){return f(e);}};}function m(e){return{dispose:function(){e();}};}var _,v,y=function(){function e(){this._toDispose=[];}return e.prototype.dispose=function(){this._toDispose=f(this._toDispose);},e.prototype._register=function(e){return this._toDispose.push(e),e;},e.None=Object.freeze({dispose:function(){}}),e;}(),b=function(){function e(e){this.object=e;}return e.prototype.dispose=function(){},e;}(),C=(_=function(e,t){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(e,t);},function(e,t){function n(){this.constructor=e;}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n());}),w={done:!0,value:void 0};!function(e){var t={next:function(){return w;}};function n(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value);}e.empty=function(){return t;},e.fromArray=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),{next:function(){return t>=n?w:{done:!1,value:e[t++]};}};},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty();},e.map=function(e,t){return{next:function(){var n=e.next();return n.done?w:{done:!1,value:t(n.value)};}};},e.filter=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return w;if(t(n.value))return{done:!1,value:n.value};}}};},e.forEach=n,e.collect=function(e){var t=[];return n(e,function(e){return t.push(e);}),t;};}(v||(v={}));var S,x=function(){function e(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===i&&(i=t-1),this.items=e,this.start=t,this.end=n,this.index=i;}return e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current();},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index];},e;}(),E=function(e){function t(t,n,i,o){return void 0===n&&(n=0),void 0===i&&(i=t.length),void 0===o&&(o=n-1),e.call(this,t,n,i,o)||this;}return C(t,e),t.prototype.current=function(){return e.prototype.current.call(this);},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current();},t.prototype.first=function(){return this.index=this.start,this.current();},t.prototype.last=function(){return this.index=this.end-1,this.current();},t.prototype.parent=function(){return null;},t;}(x),L=function(){function e(e,t){this.iterator=e,this.fn=t;}return e.prototype.next=function(){return this.fn(this.iterator.next());},e;}(),T=function(){return function(e){this.element=e;};}(),I=function(){function e(){}return e.prototype.isEmpty=function(){return!this._first;},e.prototype.unshift=function(e){return this.insert(e,!1);},e.prototype.push=function(e){return this.insert(e,!0);},e.prototype.insert=function(e,t){var n=this,i=new T(e);if(this._first){if(t){var o=this._last;this._last=i,i.prev=o,o.next=i;}else{var r=this._first;this._first=i,i.next=r,r.prev=i;}}else this._first=i,this._last=i;return function(){for(var e=n._first;e instanceof T;){if(e===i){if(e.prev&&e.next){var t=e.prev;t.next=e.next,e.next.prev=t;}else e.prev||e.next?e.next?e.prev||(n._first=n._first.next,n._first.prev=void 0):(n._last=n._last.prev,n._last.next=void 0):(n._first=void 0,n._last=void 0);break;}e=e.next;}};},e.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t?(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e):w;}};},e;}();!function(e){var t={dispose:function(){}};e.None=function(){return t;};}(S||(S={}));var N=function(){function e(e){void 0===e&&(e=null),this._options=e,this._event=null,this._disposed=!1,this._deliveryQueue=null,this._listeners=null;}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,i,o){t._listeners||(t._listeners=new I());var r=t._listeners.isEmpty();r&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s,a=t._listeners.push(i?[n,i]:n);return r&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,i),s={dispose:function(){(s.dispose=e._noop,t._disposed)||(a(),t._options&&t._options.onLastListenerRemove&&(t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)));}},Array.isArray(o)&&o.push(s),s;}),this._event;},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){var i=this._deliveryQueue.shift(),o=i[0],r=i[1];try{"function"==typeof o?o.call(void 0,r):o[0].call(o[1],r);}catch(n){a(n);}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=null),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0;},e._noop=function(){},e;}(),k=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new N({onFirstListenerAdd:function(){return e.onFirstListenerAdd();},onLastListenerRemove:function(){return e.onLastListenerRemove();}});}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event;},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return m(function(e){var t,n=this,i=!1;return function(){return i?t:(i=!0,t=e.apply(n,arguments));};}(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1);}));},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t);});},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t);});},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e);});},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null;},e.prototype.dispose=function(){this.emitter.dispose();},e;}();function O(e){return function(t,n,i){void 0===n&&(n=null);var o=!1,r=e(function(e){if(!o)return r?r.dispose():o=!0,t.call(n,e);},null,i);return o&&r.dispose(),r;};}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,i){return void 0===n&&(n=null),g(e.map(function(e){return e(function(e){return t.call(n,e);},null,i);}));};}function R(e,t,n,i){var o;void 0===n&&(n=100),void 0===i&&(i=!1);var r=void 0,s=void 0,a=0,u=new N({onFirstListenerAdd:function(){o=e(function(e){a++,r=t(r,e),i&&!s&&u.fire(r),clearTimeout(s),s=setTimeout(function(){var e=r;r=void 0,s=void 0,(!i||a>1)&&u.fire(e),a=0;},n);});},onLastListenerRemove:function(){o.dispose();}});return u.event;}var A=function(){function e(){this.buffers=[];}return e.prototype.wrapEvent=function(e){var t=this;return function(n,i,o){return e(function(e){var o=t.buffers[t.buffers.length-1];o?o.push(function(){return n.call(i,e);}):n.call(i,e);},void 0,o);};},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach(function(e){return e();}),n;},e;}();function M(e,t){return function(n,i,o){return void 0===i&&(i=null),e(function(e){return n.call(i,t(e));},null,o);};}function P(e,t){return function(n,i,o){return void 0===i&&(i=null),e(function(e){return t(e)&&n.call(i,e);},null,o);};}var F=function(){function e(e){this._event=e;}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event;},enumerable:!0,configurable:!0}),e.prototype.map=function(t){return new e(M(this._event,t));},e.prototype.filter=function(t){return new e(P(this._event,t));},e.prototype.on=function(e,t,n){return this._event(e,t,n);},e;}();function W(e){return new F(e);}var B,V=function(){function e(){var e=this;this.listening=!1,this.inputEvent=S.None,this.inputEventListener=y.None,this.emitter=new N({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter);},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose();}}),this.event=this.emitter.event;}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter));},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose();},e;}(),H=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n);}};});!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof U||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested;},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:S.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:H});}(B||(B={}));var U=function(){function e(){this._isCancelled=!1,this._emitter=null;}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()));},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?H:(this._emitter||(this._emitter=new N()),this._emitter.event);},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null);},e;}(),j=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new U()),this._token;},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof U&&this._token.cancel():this._token=B.Cancelled;},e.prototype.dispose=function(){this._token?this._token instanceof U&&this._token.dispose():this._token=B.None;},e;}(),z=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();function K(e){return e&&"function"==typeof e.then;}function q(e){var t=new j(),n=e(t.token),i=new Promise(function(e,i){t.token.onCancellationRequested(function(){i(h());}),Promise.resolve(n).then(function(n){t.dispose(),e(n);},function(e){t.dispose(),i(e);});});return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel();},e.prototype.then=function(e,t){return i.then(e,t);},e.prototype.catch=function(e){return this.then(void 0,e);},e;}())();}var G=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null;}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new i.b(function(e,t){n.doResolve=e,n.doReject=t;}).then(function(){n.completionPromise=null,n.doResolve=null;var e=n.task;return n.task=null,e();})),this.timeout=setTimeout(function(){n.timeout=null,n.doResolve(null);},t),this.completionPromise;},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject(h()),this.completionPromise=null);},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null);},e.prototype.dispose=function(){this.cancelTimeout();},e;}();function $(e,t){return t?new Promise(function(n,i){var o=setTimeout(n,e);t.onCancellationRequested(function(){clearTimeout(o),i(h());});}):q(function(t){return $(e,t);});}function Y(e,t){function n(){try{t();}catch(e){a(e);}}return e.then(function(e){return n();},function(e){return n();}),Promise.resolve(e);}function X(e,t,n){void 0===t&&(t=function(e){return!!e;}),void 0===n&&(n=null);var i=0,o=e.length,r=function(){if(i>=o)return Promise.resolve(n);var s=e[i++];return Promise.resolve(s()).then(function(e){return t(e)?Promise.resolve(e):r();});};return r();}var Z,Q=function(e){function t(t,n){var i=e.call(this)||this;return i._token=-1,"function"==typeof t&&"number"==typeof n&&i.setIfNotSet(t,n),i;}return z(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this);},t.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1);},t.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout(function(){n._token=-1,e();},t);},t.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout(function(){n._token=-1,e();},t));},t;}(y),J=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t;}return z(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this);},t.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1);},t.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval(function(){e();},t);},t;}(y),ee=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this);}return e.prototype.dispose=function(){this.cancel(),this.runner=null;},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1);},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e);},e.prototype.isScheduled=function(){return-1!==this.timeoutToken;},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun();},e.prototype.doRun=function(){this.runner&&this.runner();},e;}();!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15;}});Z=function(t,n){void 0===n&&(n=0);var i=setTimeout(function(){return t(e);},n),o=!1;return{dispose:function(){o||(o=!0,clearTimeout(i));}};};}else Z=function(e,t){var n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),i=!1;return{dispose:function(){i||(i=!0,cancelIdleCallback(n));}};};}();var te=function(){function e(e){var t=this;this._executor=function(){try{t._value=e();}catch(e){t._error=e;}finally{t._didRun=!0;}},this._handle=Z(function(){return t._executor();});}return e.prototype.dispose=function(){this._handle.dispose();},e.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value;},e;}();var ne=function(){function e(e){var t;K(t=e)&&"function"==typeof t.done?this._winjsPromise=e:this._winjsPromise=new i.a(function(t,n){var i=!0;e(function(e){i?o.h(function(){return t(e);}):t(e);},function(e){i?o.h(function(){return n(e);}):n(e);}),i=!1;});}return e.all=function(t){return new e(i.a.join(t).then(null,function(e){for(var t in e)if(e.hasOwnProperty(t))return e[t];}));},e.race=function(t){return new e(i.a.any(t).then(function(e){return e.value;},function(e){return e.value;}));},e.resolve=function(t){return new e(i.a.wrap(t));},e.reject=function(t){return new e(i.a.wrapError(t));},e.prototype.then=function(t,n){var r=!0,s=new e(this._winjsPromise.then(t&&function(e){return r?new i.a(function(n,i){o.h(function(){var o;try{o=t(e);}catch(e){return void i(e);}n(o);});}):t(e);},n&&function(e){return r?new i.a(function(t,i){o.h(function(){var o;try{o=n(e);}catch(e){return void i(e);}t(o);});}):n(e);}));return r=!1,s;},e.prototype.catch=function(e){return this.then(null,e);},e;}();function ie(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(e,t){return 0===t.length?e:e.replace(/\{(\d+)\}/g,function(e,n){var i=n[0];return void 0!==t[i]?t[i]:e;});}(t,n);}function oe(e,t){return void 0===t&&(t=0),e[e.length-(1+t)];}function re(e,t,n){if(void 0===n&&(n=function(e,t){return e===t;}),e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var i=0,o=e.length;i<o;i++)if(!n(e[i],t[i]))return!1;return!0;}function se(e,t,n){for(var i=0,o=e.length-1;i<=o;){var r=(i+o)/2|0,s=n(e[r],t);if(s<0)i=r+1;else{if(!(s>0))return r;o=r-1;}}return-(i+1);}function ae(e,t){return function e(t,n,i,o,r){if(o<=i)return;var s=i+(o-i)/2|0;e(t,n,i,s,r);e(t,n,s+1,o,r);if(n(t[s],t[s+1])<=0)return;!function(e,t,n,i,o,r){for(var s=n,a=i+1,u=n;u<=o;u++)r[u]=e[u];for(var u=n;u<=o;u++)s>i?e[u]=r[a++]:a>o?e[u]=r[s++]:t(r[a],r[s])<0?e[u]=r[a++]:e[u]=r[s++];}(t,n,i,s,o,r);}(e,t,0,e.length-1,[]),e;}function ue(e,t){for(var n=[],i=void 0,o=0,r=ae(e.slice(0),t);o<r.length;o++){var s=r[o];i&&0===t(i[0],s)?i.push(s):(i=[s],n.push(i));}return n;}function le(e){return e?e.filter(function(e){return!!e;}):e;}function ce(e){return!Array.isArray(e)||0===e.length;}function de(e,t){for(var n=0;n<e.length;n++){if(t(e[n]))return n;}return-1;}function he(e,t,n){void 0===n&&(n=null);var i=de(e,t);return i<0?n:e[i];}function pe(e){var t;return(t=[]).concat.apply(t,e);}function fe(e,t){var n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);var i=[];if(n<=t)for(var o=n;o<t;o++)i.push(o);else for(o=n;o>t;o--)i.push(o);return i;}var ge={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function me(e){return typeof e===ge.string||e instanceof String;}function _e(e){return!(typeof e!==ge.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date);}function ve(e){return(typeof e===ge.number||e instanceof Number)&&!isNaN(e);}function ye(e){return!0===e||!1===e;}function be(e){return typeof e===ge.undefined;}function Ce(e){return be(e)||null===e;}var we=Object.prototype.hasOwnProperty;function Se(e){if(!_e(e))return!1;for(var t in e)if(we.call(e,t))return!1;return!0;}function xe(e){return typeof e===ge.function;}function Ee(e,t){if(me(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t);}else if(xe(t)){if(e instanceof t)return;if(!Ce(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");}}function Le(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){e[n]&&"object"==typeof e[n]?t[n]=Le(e[n]):t[n]=e[n];}),t;}var Te=Object.prototype.hasOwnProperty;function Ie(e,t,n){return void 0===n&&(n=!0),_e(e)?(_e(t)&&Object.keys(t).forEach(function(i){i in e?n&&(_e(e[i])&&_e(t[i])?Ie(e[i],t[i],n):e[i]=t[i]):e[i]=t[i];}),e):t;}function Ne(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Ne(e[n],t[n]))return!1;}else{var o=[];for(i in e)o.push(i);o.sort();var r=[];for(i in t)r.push(i);if(r.sort(),!Ne(o,r))return!1;for(n=0;n<o.length;n++)if(!Ne(e[o[n]],t[o[n]]))return!1;}return!0;}function ke(e,t){void 0===t&&(t=!1),t&&(e=e.map(function(e){return e.toLowerCase();}));var n=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t;}(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase());}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e);};}function Oe(e,t,n){void 0===n&&(n=null);var i=t(e);return void 0===i?n:i;}var De="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";var Re=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0;n<De.length;n++)e.indexOf(De[n])>=0||(t+="\\"+De[n]);return t+="\\s]+)",new RegExp(t,"g");}();function Ae(e){var t=Re;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),t=new RegExp(e.source,n);}return t.lastIndex=0,t;}function Me(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=o[0].indexOf(" ")>=0?function(e,t,n,i){var o,r=e-1-i;for(t.lastIndex=0;o=t.exec(n);){var s=o.index||0;if(s>r)return null;if(t.lastIndex>=r)return{word:o[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex};}return null;}(e,t,n,i):function(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1,a=n.indexOf(" ",r);for(-1===a&&(a=n.length),t.lastIndex=s;o=t.exec(n);){var u=o.index||0;if(u<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+u,endColumn:i+1+t.lastIndex};}return null;}(e,t,n,i);return t.lastIndex=0,r;}var Pe,Fe=function(){return(Fe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e;}).apply(this,arguments);};!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";}(Pe||(Pe={}));var We=function(){function e(e){this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=0|e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.multiCursorModifier=e.multiCursorModifier,this.multiCursorMergeOverlapping=e.multiCursorMergeOverlapping,this.wordSeparators=e.wordSeparators,this.autoClosingBrackets=e.autoClosingBrackets,this.autoClosingQuotes=e.autoClosingQuotes,this.autoSurround=e.autoSurround,this.autoIndent=e.autoIndent,this.useTabStops=e.useTabStops,this.tabFocusMode=e.tabFocusMode,this.dragAndDrop=e.dragAndDrop,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo,this.contribInfo=e.contribInfo,this.showUnused=e.showUnused;}return e.prototype.equals=function(t){return this.canUseLayerHinting===t.canUseLayerHinting&&this.pixelRatio===t.pixelRatio&&this.editorClassName===t.editorClassName&&this.lineHeight===t.lineHeight&&this.readOnly===t.readOnly&&this.accessibilitySupport===t.accessibilitySupport&&this.multiCursorModifier===t.multiCursorModifier&&this.multiCursorMergeOverlapping===t.multiCursorMergeOverlapping&&this.wordSeparators===t.wordSeparators&&this.autoClosingBrackets===t.autoClosingBrackets&&this.autoClosingQuotes===t.autoClosingQuotes&&this.autoSurround===t.autoSurround&&this.autoIndent===t.autoIndent&&this.useTabStops===t.useTabStops&&this.tabFocusMode===t.tabFocusMode&&this.dragAndDrop===t.dragAndDrop&&this.showUnused===t.showUnused&&this.emptySelectionClipboard===t.emptySelectionClipboard&&this.copyWithSyntaxHighlighting===t.copyWithSyntaxHighlighting&&e._equalsLayoutInfo(this.layoutInfo,t.layoutInfo)&&this.fontInfo.equals(t.fontInfo)&&e._equalsViewOptions(this.viewInfo,t.viewInfo)&&e._equalsWrappingInfo(this.wrappingInfo,t.wrappingInfo)&&e._equalsContribOptions(this.contribInfo,t.contribInfo);},e.prototype.createChangeEvent=function(t){return{canUseLayerHinting:this.canUseLayerHinting!==t.canUseLayerHinting,pixelRatio:this.pixelRatio!==t.pixelRatio,editorClassName:this.editorClassName!==t.editorClassName,lineHeight:this.lineHeight!==t.lineHeight,readOnly:this.readOnly!==t.readOnly,accessibilitySupport:this.accessibilitySupport!==t.accessibilitySupport,multiCursorModifier:this.multiCursorModifier!==t.multiCursorModifier,multiCursorMergeOverlapping:this.multiCursorMergeOverlapping!==t.multiCursorMergeOverlapping,wordSeparators:this.wordSeparators!==t.wordSeparators,autoClosingBrackets:this.autoClosingBrackets!==t.autoClosingBrackets,autoClosingQuotes:this.autoClosingQuotes!==t.autoClosingQuotes,autoSurround:this.autoSurround!==t.autoSurround,autoIndent:this.autoIndent!==t.autoIndent,useTabStops:this.useTabStops!==t.useTabStops,tabFocusMode:this.tabFocusMode!==t.tabFocusMode,dragAndDrop:this.dragAndDrop!==t.dragAndDrop,emptySelectionClipboard:this.emptySelectionClipboard!==t.emptySelectionClipboard,copyWithSyntaxHighlighting:this.copyWithSyntaxHighlighting!==t.copyWithSyntaxHighlighting,layoutInfo:!e._equalsLayoutInfo(this.layoutInfo,t.layoutInfo),fontInfo:!this.fontInfo.equals(t.fontInfo),viewInfo:!e._equalsViewOptions(this.viewInfo,t.viewInfo),wrappingInfo:!e._equalsWrappingInfo(this.wrappingInfo,t.wrappingInfo),contribInfo:!e._equalsContribOptions(this.contribInfo,t.contribInfo)};},e._equalsLayoutInfo=function(e,t){return e.width===t.width&&e.height===t.height&&e.glyphMarginLeft===t.glyphMarginLeft&&e.glyphMarginWidth===t.glyphMarginWidth&&e.glyphMarginHeight===t.glyphMarginHeight&&e.lineNumbersLeft===t.lineNumbersLeft&&e.lineNumbersWidth===t.lineNumbersWidth&&e.lineNumbersHeight===t.lineNumbersHeight&&e.decorationsLeft===t.decorationsLeft&&e.decorationsWidth===t.decorationsWidth&&e.decorationsHeight===t.decorationsHeight&&e.contentLeft===t.contentLeft&&e.contentWidth===t.contentWidth&&e.contentHeight===t.contentHeight&&e.renderMinimap===t.renderMinimap&&e.minimapLeft===t.minimapLeft&&e.minimapWidth===t.minimapWidth&&e.viewportColumn===t.viewportColumn&&e.verticalScrollbarWidth===t.verticalScrollbarWidth&&e.horizontalScrollbarHeight===t.horizontalScrollbarHeight&&this._equalsOverviewRuler(e.overviewRuler,t.overviewRuler);},e._equalsOverviewRuler=function(e,t){return e.width===t.width&&e.height===t.height&&e.top===t.top&&e.right===t.right;},e._equalsViewOptions=function(e,t){return e.extraEditorClassName===t.extraEditorClassName&&e.disableMonospaceOptimizations===t.disableMonospaceOptimizations&&re(e.rulers,t.rulers)&&e.ariaLabel===t.ariaLabel&&e.renderLineNumbers===t.renderLineNumbers&&e.renderCustomLineNumbers===t.renderCustomLineNumbers&&e.selectOnLineNumbers===t.selectOnLineNumbers&&e.glyphMargin===t.glyphMargin&&e.revealHorizontalRightPadding===t.revealHorizontalRightPadding&&e.roundedSelection===t.roundedSelection&&e.overviewRulerLanes===t.overviewRulerLanes&&e.overviewRulerBorder===t.overviewRulerBorder&&e.cursorBlinking===t.cursorBlinking&&e.mouseWheelZoom===t.mouseWheelZoom&&e.cursorStyle===t.cursorStyle&&e.cursorWidth===t.cursorWidth&&e.hideCursorInOverviewRuler===t.hideCursorInOverviewRuler&&e.scrollBeyondLastLine===t.scrollBeyondLastLine&&e.scrollBeyondLastColumn===t.scrollBeyondLastColumn&&e.smoothScrolling===t.smoothScrolling&&e.stopRenderingLineAfter===t.stopRenderingLineAfter&&e.renderWhitespace===t.renderWhitespace&&e.renderControlCharacters===t.renderControlCharacters&&e.fontLigatures===t.fontLigatures&&e.renderIndentGuides===t.renderIndentGuides&&e.highlightActiveIndentGuide===t.highlightActiveIndentGuide&&e.renderLineHighlight===t.renderLineHighlight&&this._equalsScrollbarOptions(e.scrollbar,t.scrollbar)&&this._equalsMinimapOptions(e.minimap,t.minimap)&&e.fixedOverflowWidgets===t.fixedOverflowWidgets;},e._equalsScrollbarOptions=function(e,t){return e.arrowSize===t.arrowSize&&e.vertical===t.vertical&&e.horizontal===t.horizontal&&e.useShadows===t.useShadows&&e.verticalHasArrows===t.verticalHasArrows&&e.horizontalHasArrows===t.horizontalHasArrows&&e.handleMouseWheel===t.handleMouseWheel&&e.horizontalScrollbarSize===t.horizontalScrollbarSize&&e.horizontalSliderSize===t.horizontalSliderSize&&e.verticalScrollbarSize===t.verticalScrollbarSize&&e.verticalSliderSize===t.verticalSliderSize&&e.mouseWheelScrollSensitivity===t.mouseWheelScrollSensitivity;},e._equalsMinimapOptions=function(e,t){return e.enabled===t.enabled&&e.side===t.side&&e.showSlider===t.showSlider&&e.renderCharacters===t.renderCharacters&&e.maxColumn===t.maxColumn;},e._equalFindOptions=function(e,t){return e.seedSearchStringFromSelection===t.seedSearchStringFromSelection&&e.autoFindInSelection===t.autoFindInSelection&&e.globalFindClipboard===t.globalFindClipboard;},e._equalsParameterHintOptions=function(e,t){return e.enabled===t.enabled&&e.cycle===t.cycle;},e._equalsHoverOptions=function(e,t){return e.enabled===t.enabled&&e.delay===t.delay&&e.sticky===t.sticky;},e._equalsSuggestOptions=function(e,t){return e===t||!(!e||!t)&&e.filterGraceful===t.filterGraceful&&e.snippets===t.snippets&&e.snippetsPreventQuickSuggestions===t.snippetsPreventQuickSuggestions&&e.localityBonus===t.localityBonus;},e._equalsWrappingInfo=function(e,t){return e.inDiffEditor===t.inDiffEditor&&e.isDominatedByLongLines===t.isDominatedByLongLines&&e.isWordWrapMinified===t.isWordWrapMinified&&e.isViewportWrapping===t.isViewportWrapping&&e.wrappingColumn===t.wrappingColumn&&e.wrappingIndent===t.wrappingIndent&&e.wordWrapBreakBeforeCharacters===t.wordWrapBreakBeforeCharacters&&e.wordWrapBreakAfterCharacters===t.wordWrapBreakAfterCharacters&&e.wordWrapBreakObtrusiveCharacters===t.wordWrapBreakObtrusiveCharacters;},e._equalsContribOptions=function(t,n){return t.selectionClipboard===n.selectionClipboard&&this._equalsHoverOptions(t.hover,n.hover)&&t.links===n.links&&t.contextmenu===n.contextmenu&&e._equalsQuickSuggestions(t.quickSuggestions,n.quickSuggestions)&&t.quickSuggestionsDelay===n.quickSuggestionsDelay&&this._equalsParameterHintOptions(t.parameterHints,n.parameterHints)&&t.iconsInSuggestions===n.iconsInSuggestions&&t.formatOnType===n.formatOnType&&t.formatOnPaste===n.formatOnPaste&&t.suggestOnTriggerCharacters===n.suggestOnTriggerCharacters&&t.acceptSuggestionOnEnter===n.acceptSuggestionOnEnter&&t.acceptSuggestionOnCommitCharacter===n.acceptSuggestionOnCommitCharacter&&t.wordBasedSuggestions===n.wordBasedSuggestions&&t.suggestSelection===n.suggestSelection&&t.suggestFontSize===n.suggestFontSize&&t.suggestLineHeight===n.suggestLineHeight&&t.tabCompletion===n.tabCompletion&&this._equalsSuggestOptions(t.suggest,n.suggest)&&t.selectionHighlight===n.selectionHighlight&&t.occurrencesHighlight===n.occurrencesHighlight&&t.codeLens===n.codeLens&&t.folding===n.folding&&t.foldingStrategy===n.foldingStrategy&&t.showFoldingControls===n.showFoldingControls&&t.matchBrackets===n.matchBrackets&&this._equalFindOptions(t.find,n.find)&&t.colorDecorators===n.colorDecorators&&Ne(t.codeActionsOnSave,n.codeActionsOnSave)&&t.codeActionsOnSaveTimeout===n.codeActionsOnSaveTimeout&&t.lightbulbEnabled===n.lightbulbEnabled;},e._equalsQuickSuggestions=function(e,t){return"boolean"==typeof e?"boolean"==typeof t&&e===t:"boolean"!=typeof t&&e.comments===t.comments&&e.other===t.other&&e.strings===t.strings;},e;}();function Be(e,t){return void 0===e?t:"false"!==e&&Boolean(e);}function Ve(e,t){return"string"!=typeof e?t:e;}function He(e,t,n){return"string"!=typeof e?t:-1===n.indexOf(e)?t:e;}function Ue(e,t,n,i){var o;return void 0===e?o=t:(o=parseInt(e,10),isNaN(o)&&(o=t)),o=Math.max(n,o),0|(o=Math.min(i,o));}function je(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1;}}var ze,Ke=function(){function e(){}return e.validate=function(e,t){var n=e.wordWrap;!0===n?n="on":!1===n&&(n="off"),n=He(n,t.wordWrap,["off","on","wordWrapColumn","bounded"]);var i=this._sanitizeViewInfo(e,t.viewInfo),r=this._sanitizeContribInfo(e,t.contribInfo),s=void 0;"string"==typeof e.multiCursorModifier&&(s="ctrlCmd"===e.multiCursorModifier?o.d?"metaKey":"ctrlKey":"altKey");var a,u,l,c,d,h=He(s,t.multiCursorModifier,["altKey","metaKey","ctrlKey"]);return"boolean"==typeof e.autoClosingBrackets&&!1===e.autoClosingBrackets?(a="never",u="never",l="never"):(a=He(e.autoClosingBrackets,t.autoClosingBrackets,["always","languageDefined","beforeWhitespace","never"]),u=He(e.autoClosingQuotes,t.autoClosingQuotes,["always","languageDefined","beforeWhitespace","never"]),l=He(e.autoSurround,t.autoSurround,["languageDefined","brackets","quotes","never"])),{inDiffEditor:Be(e.inDiffEditor,t.inDiffEditor),wordSeparators:Ve(e.wordSeparators,t.wordSeparators),lineNumbersMinChars:Ue(e.lineNumbersMinChars,t.lineNumbersMinChars,1,10),lineDecorationsWidth:void 0===e.lineDecorationsWidth?t.lineDecorationsWidth:e.lineDecorationsWidth,readOnly:Be(e.readOnly,t.readOnly),mouseStyle:He(e.mouseStyle,t.mouseStyle,["text","default","copy"]),disableLayerHinting:Be(e.disableLayerHinting,t.disableLayerHinting),automaticLayout:Be(e.automaticLayout,t.automaticLayout),wordWrap:n,wordWrapColumn:Ue(e.wordWrapColumn,t.wordWrapColumn,1,1073741824),wordWrapMinified:Be(e.wordWrapMinified,t.wordWrapMinified),wrappingIndent:(c=e.wrappingIndent,d=t.wrappingIndent,"string"!=typeof c?d:"same"===c?1:"indent"===c?2:"deepIndent"===c?3:0),wordWrapBreakBeforeCharacters:Ve(e.wordWrapBreakBeforeCharacters,t.wordWrapBreakBeforeCharacters),wordWrapBreakAfterCharacters:Ve(e.wordWrapBreakAfterCharacters,t.wordWrapBreakAfterCharacters),wordWrapBreakObtrusiveCharacters:Ve(e.wordWrapBreakObtrusiveCharacters,t.wordWrapBreakObtrusiveCharacters),autoClosingBrackets:a,autoClosingQuotes:u,autoSurround:l,autoIndent:Be(e.autoIndent,t.autoIndent),dragAndDrop:Be(e.dragAndDrop,t.dragAndDrop),emptySelectionClipboard:Be(e.emptySelectionClipboard,t.emptySelectionClipboard),copyWithSyntaxHighlighting:Be(e.copyWithSyntaxHighlighting,t.copyWithSyntaxHighlighting),useTabStops:Be(e.useTabStops,t.useTabStops),multiCursorModifier:h,multiCursorMergeOverlapping:Be(e.multiCursorMergeOverlapping,t.multiCursorMergeOverlapping),accessibilitySupport:He(e.accessibilitySupport,t.accessibilitySupport,["auto","on","off"]),showUnused:Be(e.showUnused,t.showUnused),viewInfo:i,contribInfo:r};},e._sanitizeScrollbarOpts=function(e,t,n){if("object"!=typeof e)return t;var i=Ue(e.horizontalScrollbarSize,t.horizontalScrollbarSize,0,1e3),o=Ue(e.verticalScrollbarSize,t.verticalScrollbarSize,0,1e3);return{vertical:je(e.vertical,t.vertical),horizontal:je(e.horizontal,t.horizontal),arrowSize:Ue(e.arrowSize,t.arrowSize,0,1e3),useShadows:Be(e.useShadows,t.useShadows),verticalHasArrows:Be(e.verticalHasArrows,t.verticalHasArrows),horizontalHasArrows:Be(e.horizontalHasArrows,t.horizontalHasArrows),horizontalScrollbarSize:i,horizontalSliderSize:Ue(e.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:o,verticalSliderSize:Ue(e.verticalSliderSize,o,0,1e3),handleMouseWheel:Be(e.handleMouseWheel,t.handleMouseWheel),mouseWheelScrollSensitivity:n};},e._sanitizeMinimapOpts=function(e,t){return"object"!=typeof e?t:{enabled:Be(e.enabled,t.enabled),side:He(e.side,t.side,["right","left"]),showSlider:He(e.showSlider,t.showSlider,["always","mouseover"]),renderCharacters:Be(e.renderCharacters,t.renderCharacters),maxColumn:Ue(e.maxColumn,t.maxColumn,1,1e4)};},e._santizeFindOpts=function(e,t){return"object"!=typeof e?t:{seedSearchStringFromSelection:Be(e.seedSearchStringFromSelection,t.seedSearchStringFromSelection),autoFindInSelection:Be(e.autoFindInSelection,t.autoFindInSelection),globalFindClipboard:Be(e.globalFindClipboard,t.globalFindClipboard)};},e._sanitizeParameterHintOpts=function(e,t){return"object"!=typeof e?t:{enabled:Be(e.enabled,t.enabled),cycle:Be(e.cycle,t.cycle)};},e._santizeHoverOpts=function(e,t){var n;if("boolean"==typeof e)n={enabled:e};else{if("object"!=typeof e)return t;n=e;}return{enabled:Be(n.enabled,t.enabled),delay:Ue(n.delay,t.delay,0,1e4),sticky:Be(n.sticky,t.sticky)};},e._sanitizeSuggestOpts=function(e,t){var n=e.suggest||{};return{filterGraceful:Be(n.filterGraceful,t.filterGraceful),snippets:He(e.snippetSuggestions,t.snippets,["top","bottom","inline","none"]),snippetsPreventQuickSuggestions:Be(n.snippetsPreventQuickSuggestions,t.filterGraceful),localityBonus:Be(n.localityBonus,t.localityBonus)};},e._sanitizeTabCompletionOpts=function(e,t){return!1===e?"off":!0===e?"onlySnippets":He(e,t,["on","off","onlySnippets"]);},e._sanitizeViewInfo=function(e,t){var n=[];if(Array.isArray(e.rulers)){for(var i=0,o=e.rulers.length;i<o;i++)n.push(Ue(e.rulers[i],0,0,1e4));n.sort();}var r=t.renderLineNumbers,s=t.renderCustomLineNumbers;if(void 0!==e.lineNumbers){var a=e.lineNumbers;!0===a?a="on":!1===a&&(a="off"),"function"==typeof a?(r=4,s=a):r="interval"===a?3:"relative"===a?2:"on"===a?1:0;}var u=Be(e.fontLigatures,t.fontLigatures),l=Be(e.disableMonospaceOptimizations,t.disableMonospaceOptimizations)||u,c=e.renderWhitespace;!0===c?c="boundary":!1===c&&(c="none"),c=He(e.renderWhitespace,t.renderWhitespace,["none","boundary","all"]);var d=e.renderLineHighlight;!0===d?d="line":!1===d&&(d="none"),d=He(e.renderLineHighlight,t.renderLineHighlight,["none","gutter","line","all"]);var h,p,f,g=(h=e.mouseWheelScrollSensitivity,p=t.scrollbar.mouseWheelScrollSensitivity,f=parseFloat(h),isNaN(f)&&(f=p),f);0===g&&(g=1);var m=this._sanitizeScrollbarOpts(e.scrollbar,t.scrollbar,g),_=this._sanitizeMinimapOpts(e.minimap,t.minimap);return{extraEditorClassName:Ve(e.extraEditorClassName,t.extraEditorClassName),disableMonospaceOptimizations:l,rulers:n,ariaLabel:Ve(e.ariaLabel,t.ariaLabel),renderLineNumbers:r,renderCustomLineNumbers:s,selectOnLineNumbers:Be(e.selectOnLineNumbers,t.selectOnLineNumbers),glyphMargin:Be(e.glyphMargin,t.glyphMargin),revealHorizontalRightPadding:Ue(e.revealHorizontalRightPadding,t.revealHorizontalRightPadding,0,1e3),roundedSelection:Be(e.roundedSelection,t.roundedSelection),overviewRulerLanes:Ue(e.overviewRulerLanes,t.overviewRulerLanes,0,3),overviewRulerBorder:Be(e.overviewRulerBorder,t.overviewRulerBorder),cursorBlinking:function(e,t){if("string"!=typeof e)return t;switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"visible":case"solid":return 5;}return 1;}(e.cursorBlinking,t.cursorBlinking),mouseWheelZoom:Be(e.mouseWheelZoom,t.mouseWheelZoom),cursorStyle:function(e,t){return"string"!=typeof e?t:"line"===e?Pe.Line:"block"===e?Pe.Block:"underline"===e?Pe.Underline:"line-thin"===e?Pe.LineThin:"block-outline"===e?Pe.BlockOutline:"underline-thin"===e?Pe.UnderlineThin:Pe.Line;}(e.cursorStyle,t.cursorStyle),cursorWidth:Ue(e.cursorWidth,t.cursorWidth,0,Number.MAX_VALUE),hideCursorInOverviewRuler:Be(e.hideCursorInOverviewRuler,t.hideCursorInOverviewRuler),scrollBeyondLastLine:Be(e.scrollBeyondLastLine,t.scrollBeyondLastLine),scrollBeyondLastColumn:Ue(e.scrollBeyondLastColumn,t.scrollBeyondLastColumn,0,1073741824),smoothScrolling:Be(e.smoothScrolling,t.smoothScrolling),stopRenderingLineAfter:Ue(e.stopRenderingLineAfter,t.stopRenderingLineAfter,-1,1073741824),renderWhitespace:c,renderControlCharacters:Be(e.renderControlCharacters,t.renderControlCharacters),fontLigatures:u,renderIndentGuides:Be(e.renderIndentGuides,t.renderIndentGuides),highlightActiveIndentGuide:Be(e.highlightActiveIndentGuide,t.highlightActiveIndentGuide),renderLineHighlight:d,scrollbar:m,minimap:_,fixedOverflowWidgets:Be(e.fixedOverflowWidgets,t.fixedOverflowWidgets)};},e._sanitizeContribInfo=function(e,t){var n;n="object"==typeof e.quickSuggestions?Fe({other:!0},e.quickSuggestions):Be(e.quickSuggestions,t.quickSuggestions),"boolean"==typeof e.acceptSuggestionOnEnter&&(e.acceptSuggestionOnEnter=e.acceptSuggestionOnEnter?"on":"off");var i=this._santizeFindOpts(e.find,t.find);return{selectionClipboard:Be(e.selectionClipboard,t.selectionClipboard),hover:this._santizeHoverOpts(e.hover,t.hover),links:Be(e.links,t.links),contextmenu:Be(e.contextmenu,t.contextmenu),quickSuggestions:n,quickSuggestionsDelay:Ue(e.quickSuggestionsDelay,t.quickSuggestionsDelay,-1073741824,1073741824),parameterHints:this._sanitizeParameterHintOpts(e.parameterHints,t.parameterHints),iconsInSuggestions:Be(e.iconsInSuggestions,t.iconsInSuggestions),formatOnType:Be(e.formatOnType,t.formatOnType),formatOnPaste:Be(e.formatOnPaste,t.formatOnPaste),suggestOnTriggerCharacters:Be(e.suggestOnTriggerCharacters,t.suggestOnTriggerCharacters),acceptSuggestionOnEnter:He(e.acceptSuggestionOnEnter,t.acceptSuggestionOnEnter,["on","smart","off"]),acceptSuggestionOnCommitCharacter:Be(e.acceptSuggestionOnCommitCharacter,t.acceptSuggestionOnCommitCharacter),wordBasedSuggestions:Be(e.wordBasedSuggestions,t.wordBasedSuggestions),suggestSelection:He(e.suggestSelection,t.suggestSelection,["first","recentlyUsed","recentlyUsedByPrefix"]),suggestFontSize:Ue(e.suggestFontSize,t.suggestFontSize,0,1e3),suggestLineHeight:Ue(e.suggestLineHeight,t.suggestLineHeight,0,1e3),tabCompletion:this._sanitizeTabCompletionOpts(e.tabCompletion,t.tabCompletion),suggest:this._sanitizeSuggestOpts(e,t.suggest),selectionHighlight:Be(e.selectionHighlight,t.selectionHighlight),occurrencesHighlight:Be(e.occurrencesHighlight,t.occurrencesHighlight),codeLens:Be(e.codeLens,t.codeLens),folding:Be(e.folding,t.folding),foldingStrategy:He(e.foldingStrategy,t.foldingStrategy,["auto","indentation"]),showFoldingControls:He(e.showFoldingControls,t.showFoldingControls,["always","mouseover"]),matchBrackets:Be(e.matchBrackets,t.matchBrackets),find:i,colorDecorators:Be(e.colorDecorators,t.colorDecorators),lightbulbEnabled:Be(!!e.lightbulb&&e.lightbulb.enabled,t.lightbulbEnabled),codeActionsOnSave:function(e,t){if(!e)return t;for(var n=Object.create(null),i=0,o=Object.keys(e);i<o.length;i++){var r=o[i],s=e[r];"boolean"==typeof s&&(n[r]=s);}return n;}(e.codeActionsOnSave,{}),codeActionsOnSaveTimeout:Ue(e.codeActionsOnSaveTimeout,t.codeActionsOnSaveTimeout,1,1e4)};},e;}(),qe=function(){function e(){}return e._tweakValidatedOptions=function(e,t){var n=2===t,i=1===t;return{inDiffEditor:e.inDiffEditor,wordSeparators:e.wordSeparators,lineNumbersMinChars:e.lineNumbersMinChars,lineDecorationsWidth:e.lineDecorationsWidth,readOnly:e.readOnly,mouseStyle:e.mouseStyle,disableLayerHinting:e.disableLayerHinting,automaticLayout:e.automaticLayout,wordWrap:e.wordWrap,wordWrapColumn:e.wordWrapColumn,wordWrapMinified:e.wordWrapMinified,wrappingIndent:e.wrappingIndent,wordWrapBreakBeforeCharacters:e.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:e.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:e.wordWrapBreakObtrusiveCharacters,autoClosingBrackets:e.autoClosingBrackets,autoClosingQuotes:e.autoClosingQuotes,autoSurround:e.autoSurround,autoIndent:e.autoIndent,dragAndDrop:e.dragAndDrop,emptySelectionClipboard:e.emptySelectionClipboard,copyWithSyntaxHighlighting:e.copyWithSyntaxHighlighting,useTabStops:e.useTabStops,multiCursorModifier:e.multiCursorModifier,multiCursorMergeOverlapping:e.multiCursorMergeOverlapping,accessibilitySupport:e.accessibilitySupport,showUnused:e.showUnused,viewInfo:{extraEditorClassName:e.viewInfo.extraEditorClassName,disableMonospaceOptimizations:e.viewInfo.disableMonospaceOptimizations,rulers:e.viewInfo.rulers,ariaLabel:i?ie("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.viewInfo.ariaLabel,renderLineNumbers:e.viewInfo.renderLineNumbers,renderCustomLineNumbers:e.viewInfo.renderCustomLineNumbers,selectOnLineNumbers:e.viewInfo.selectOnLineNumbers,glyphMargin:e.viewInfo.glyphMargin,revealHorizontalRightPadding:e.viewInfo.revealHorizontalRightPadding,roundedSelection:!n&&e.viewInfo.roundedSelection,overviewRulerLanes:e.viewInfo.overviewRulerLanes,overviewRulerBorder:e.viewInfo.overviewRulerBorder,cursorBlinking:e.viewInfo.cursorBlinking,mouseWheelZoom:e.viewInfo.mouseWheelZoom,cursorStyle:e.viewInfo.cursorStyle,cursorWidth:e.viewInfo.cursorWidth,hideCursorInOverviewRuler:e.viewInfo.hideCursorInOverviewRuler,scrollBeyondLastLine:e.viewInfo.scrollBeyondLastLine,scrollBeyondLastColumn:e.viewInfo.scrollBeyondLastColumn,smoothScrolling:e.viewInfo.smoothScrolling,stopRenderingLineAfter:e.viewInfo.stopRenderingLineAfter,renderWhitespace:n?"none":e.viewInfo.renderWhitespace,renderControlCharacters:!n&&e.viewInfo.renderControlCharacters,fontLigatures:!n&&e.viewInfo.fontLigatures,renderIndentGuides:!n&&e.viewInfo.renderIndentGuides,highlightActiveIndentGuide:e.viewInfo.highlightActiveIndentGuide,renderLineHighlight:e.viewInfo.renderLineHighlight,scrollbar:e.viewInfo.scrollbar,minimap:{enabled:!n&&e.viewInfo.minimap.enabled,side:e.viewInfo.minimap.side,renderCharacters:e.viewInfo.minimap.renderCharacters,showSlider:e.viewInfo.minimap.showSlider,maxColumn:e.viewInfo.minimap.maxColumn},fixedOverflowWidgets:e.viewInfo.fixedOverflowWidgets},contribInfo:{selectionClipboard:e.contribInfo.selectionClipboard,hover:e.contribInfo.hover,links:!n&&e.contribInfo.links,contextmenu:e.contribInfo.contextmenu,quickSuggestions:e.contribInfo.quickSuggestions,quickSuggestionsDelay:e.contribInfo.quickSuggestionsDelay,parameterHints:e.contribInfo.parameterHints,iconsInSuggestions:e.contribInfo.iconsInSuggestions,formatOnType:e.contribInfo.formatOnType,formatOnPaste:e.contribInfo.formatOnPaste,suggestOnTriggerCharacters:e.contribInfo.suggestOnTriggerCharacters,acceptSuggestionOnEnter:e.contribInfo.acceptSuggestionOnEnter,acceptSuggestionOnCommitCharacter:e.contribInfo.acceptSuggestionOnCommitCharacter,wordBasedSuggestions:e.contribInfo.wordBasedSuggestions,suggestSelection:e.contribInfo.suggestSelection,suggestFontSize:e.contribInfo.suggestFontSize,suggestLineHeight:e.contribInfo.suggestLineHeight,tabCompletion:e.contribInfo.tabCompletion,suggest:e.contribInfo.suggest,selectionHighlight:!n&&e.contribInfo.selectionHighlight,occurrencesHighlight:!n&&e.contribInfo.occurrencesHighlight,codeLens:!n&&e.contribInfo.codeLens,folding:!n&&e.contribInfo.folding,foldingStrategy:e.contribInfo.foldingStrategy,showFoldingControls:e.contribInfo.showFoldingControls,matchBrackets:!n&&e.contribInfo.matchBrackets,find:e.contribInfo.find,colorDecorators:e.contribInfo.colorDecorators,lightbulbEnabled:e.contribInfo.lightbulbEnabled,codeActionsOnSave:e.contribInfo.codeActionsOnSave,codeActionsOnSaveTimeout:e.contribInfo.codeActionsOnSaveTimeout}};},e.createInternalEditorOptions=function(e,t){var n;n="auto"===t.accessibilitySupport?e.accessibilitySupport:"on"===t.accessibilitySupport?2:1;var i,o=this._tweakValidatedOptions(t,n);"string"==typeof o.lineDecorationsWidth&&/^\d+(\.\d+)?ch$/.test(o.lineDecorationsWidth)?i=parseFloat(o.lineDecorationsWidth.substr(0,o.lineDecorationsWidth.length-2))*e.fontInfo.typicalHalfwidthCharacterWidth:i=Ue(o.lineDecorationsWidth,0,0,1e3);o.contribInfo.folding&&(i+=16);var r=Ge.compute({outerWidth:e.outerWidth,outerHeight:e.outerHeight,showGlyphMargin:o.viewInfo.glyphMargin,lineHeight:e.fontInfo.lineHeight,showLineNumbers:0!==o.viewInfo.renderLineNumbers,lineNumbersMinChars:o.lineNumbersMinChars,lineNumbersDigitCount:e.lineNumbersDigitCount,lineDecorationsWidth:i,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,verticalScrollbarWidth:o.viewInfo.scrollbar.verticalScrollbarSize,horizontalScrollbarHeight:o.viewInfo.scrollbar.horizontalScrollbarSize,scrollbarArrowSize:o.viewInfo.scrollbar.arrowSize,verticalScrollbarHasArrows:o.viewInfo.scrollbar.verticalHasArrows,minimap:o.viewInfo.minimap.enabled,minimapSide:o.viewInfo.minimap.side,minimapRenderCharacters:o.viewInfo.minimap.renderCharacters,minimapMaxColumn:o.viewInfo.minimap.maxColumn,pixelRatio:e.pixelRatio}),s=null,a=o.wordWrap,u=o.wordWrapColumn,l=o.wordWrapMinified;s=2===n?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:l&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,r.viewportColumn)}:"on"===a?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,r.viewportColumn)}:"bounded"===a?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,r.viewportColumn),u)}:"wordWrapColumn"===a?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:u}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1};var c={inDiffEditor:o.inDiffEditor,isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn,wrappingIndent:o.wrappingIndent,wordWrapBreakBeforeCharacters:o.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:o.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:o.wordWrapBreakObtrusiveCharacters},d="monaco-editor";return o.viewInfo.extraEditorClassName&&(d+=" "+o.viewInfo.extraEditorClassName),e.extraEditorClassName&&(d+=" "+e.extraEditorClassName),o.viewInfo.fontLigatures&&(d+=" enable-ligatures"),"default"===o.mouseStyle?d+=" mouse-default":"copy"===o.mouseStyle&&(d+=" mouse-copy"),new We({canUseLayerHinting:!o.disableLayerHinting,pixelRatio:e.pixelRatio,editorClassName:d,lineHeight:e.fontInfo.lineHeight,readOnly:o.readOnly,accessibilitySupport:n,multiCursorModifier:o.multiCursorModifier,multiCursorMergeOverlapping:o.multiCursorMergeOverlapping,wordSeparators:o.wordSeparators,autoClosingBrackets:o.autoClosingBrackets,autoClosingQuotes:o.autoClosingQuotes,autoSurround:o.autoSurround,autoIndent:o.autoIndent,useTabStops:o.useTabStops,tabFocusMode:!!o.readOnly||e.tabFocusMode,dragAndDrop:o.dragAndDrop,emptySelectionClipboard:o.emptySelectionClipboard&&e.emptySelectionClipboard,copyWithSyntaxHighlighting:o.copyWithSyntaxHighlighting,layoutInfo:r,fontInfo:e.fontInfo,viewInfo:o.viewInfo,wrappingInfo:c,contribInfo:o.contribInfo,showUnused:o.showUnused});},e;}(),Ge=function(){function e(){}return e.compute=function(e){var t=0|e.outerWidth,n=0|e.outerHeight,i=e.showGlyphMargin,o=0|e.lineHeight,r=e.showLineNumbers,s=0|e.lineNumbersMinChars,a=0|e.lineNumbersDigitCount,u=0|e.lineDecorationsWidth,l=e.typicalHalfwidthCharacterWidth,c=e.maxDigitWidth,d=0|e.verticalScrollbarWidth,h=e.verticalScrollbarHasArrows,p=0|e.scrollbarArrowSize,f=0|e.horizontalScrollbarHeight,g=e.minimap,m=e.minimapSide,_=e.minimapRenderCharacters,v=0|e.minimapMaxColumn,y=e.pixelRatio,b=0;if(r){var C=Math.max(a,s);b=Math.round(C*c);}var w=0;i&&(w=o);var S,x,E,L,T=0,I=T+w,N=I+b,k=N+u,O=t-w-b-u;if(g){var D=void 0;y>=2?(S=_?2:4,D=2/y):(S=_?1:3,D=1/y),(E=Math.max(0,Math.floor((O-d-2)*D/(l+D))))/D>v&&(E=Math.floor(v*D)),L=O-E,"left"===m?(x=0,T+=E,I+=E,N+=E,k+=E):x=t-E-d;}else x=0,E=0,S=0,L=O;var R=h?p:0;return{width:t,height:n,glyphMarginLeft:T,glyphMarginWidth:w,glyphMarginHeight:n,lineNumbersLeft:I,lineNumbersWidth:b,lineNumbersHeight:n,decorationsLeft:N,decorationsWidth:u,decorationsHeight:n,contentLeft:k,contentWidth:L,contentHeight:n,renderMinimap:S,minimapLeft:x,minimapWidth:E,viewportColumn:Math.max(1,Math.floor((L-d-2)/l)),verticalScrollbarWidth:d,horizontalScrollbarHeight:f,overviewRuler:{top:R,width:d,height:n-2*R,right:0}};},e;}(),$e={fontFamily:o.d?"Menlo, Monaco, 'Courier New', monospace":o.c?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:o.d?12:14,lineHeight:0,letterSpacing:0},Ye={tabSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},Xe={inDiffEditor:!1,wordSeparators:De,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" \t})]?|&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:ie("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorStyle:Pe.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},iconsInSuggestions:!0,formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",suggest:{filterGraceful:!0,snippets:"inline",snippetsPreventQuickSuggestions:!0,localityBonus:!1},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}},Ze=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null);}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e;},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e];},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0;},e;}(),Qe=new Ze(),Je=new Ze(),et=new Ze();function tt(e,t){return(e|(65535&t)<<16>>>0)>>>0;}function nt(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return 0!==i?new st(it(n,t),it(i,t)):it(n,t);}function it(e,t){var n=!!(2048&e),i=!!(256&e);return new rt(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e);}!function(){function e(e,t,n,i){void 0===n&&(n=t),void 0===i&&(i=n),Qe.define(e,t),Je.define(e,n),et.define(e,i);}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide");}(),function(e){e.toString=function(e){return Qe.keyCodeToStr(e);},e.fromString=function(e){return Qe.strToKeyCode(e);},e.toUserSettingsUS=function(e){return Je.keyCodeToStr(e);},e.toUserSettingsGeneral=function(e){return et.keyCodeToStr(e);},e.fromUserSettings=function(e){return Je.strToKeyCode(e)||et.strToKeyCode(e);};}(ze||(ze={}));var ot,rt=function(){function e(e,t,n,i,o){this.type=1,this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=o;}return e.prototype.equals=function(e){return 1===e.type&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode;},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode;},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode;},e;}(),st=function(){return function(e,t){this.type=2,this.firstPart=e,this.chordPart=t;};}(),at=function(){return function(e,t,n,i,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=o,this.keyAriaLabel=r;};}(),ut=function(){return function(){};}(),lt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ct=/^\w[\w\d+.-]*$/,dt=/^\//,ht=/^\/\//,pt=!0;var ft="",gt="/",mt=/^(([^:\/?#]+?):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,_t=function(){function e(e,t,n,i,o){"object"==typeof e?(this.scheme=e.scheme||ft,this.authority=e.authority||ft,this.path=e.path||ft,this.query=e.query||ft,this.fragment=e.fragment||ft):(this.scheme=e||ft,this.authority=t||ft,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==gt&&(t=gt+t):t=gt;}return t;}(this.scheme,n||ft),this.query=i||ft,this.fragment=o||ft,function(e){if(!e.scheme){if(pt)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');}if(e.scheme&&!ct.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!dt.test(e.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(ht.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');}(this));}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme;},Object.defineProperty(e.prototype,"fsPath",{get:function(){return wt(this);},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,o=e.query,r=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=ft),void 0===n?n=this.authority:null===n&&(n=ft),void 0===i?i=this.path:null===i&&(i=ft),void 0===o?o=this.query:null===o&&(o=ft),void 0===r?r=this.fragment:null===r&&(r=ft),t===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&r===this.fragment?this:new vt(t,n,i,o,r);},e.parse=function(e){var t=mt.exec(e);return t?new vt(t[2]||ft,decodeURIComponent(t[4]||ft),decodeURIComponent(t[5]||ft),decodeURIComponent(t[7]||ft),decodeURIComponent(t[9]||ft)):new vt(ft,ft,ft,ft,ft);},e.file=function(e){var t=ft;if(o.g&&(e=e.replace(/\\/g,gt)),e[0]===gt&&e[1]===gt){var n=e.indexOf(gt,2);-1===n?(t=e.substring(2),e=gt):(t=e.substring(2,n),e=e.substring(n)||gt);}return new vt("file",t,e,ft,ft);},e.from=function(e){return new vt(e.scheme,e.authority,e.path,e.query,e.fragment);},e.prototype.toString=function(e){return void 0===e&&(e=!1),St(this,e);},e.prototype.toJSON=function(){return this;},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new vt(t);return n._fsPath=t.fsPath,n._formatted=t.external,n;}return t;},e;}(),vt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t;}return lt(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=wt(this)),this._fsPath;},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?St(this,!0):(this._formatted||(this._formatted=St(this,!1)),this._formatted);},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e;},t;}(_t),yt=((ot={})[58]="%3A",ot[47]="%2F",ot[63]="%3F",ot[35]="%23",ot[91]="%5B",ot[93]="%5D",ot[64]="%40",ot[33]="%21",ot[36]="%24",ot[38]="%26",ot[39]="%27",ot[40]="%28",ot[41]="%29",ot[42]="%2A",ot[43]="%2B",ot[44]="%2C",ot[59]="%3B",ot[61]="%3D",ot[32]="%20",ot);function bt(e,t){for(var n=void 0,i=-1,o=0;o<e.length;o++){var r=e.charCodeAt(o);if(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r)-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));var s=yt[r];void 0!==s?(-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),n+=s):-1===i&&(i=o);}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e;}function Ct(e){for(var t=void 0,n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=yt[i]):void 0!==t&&(t+=e[n]);}return void 0!==t?t:e;}function wt(e){var t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,o.g&&(t=t.replace(/\//g,"\\")),t;}function St(e,t){var n=t?Ct:bt,i="",o=e.scheme,r=e.authority,s=e.path,a=e.query,u=e.fragment;if(o&&(i+=o,i+=":"),(r||"file"===o)&&(i+=gt,i+=gt),r){var l=r.indexOf("@");if(-1!==l){var c=r.substr(0,l);r=r.substr(l+1),-1===(l=c.indexOf(":"))?i+=n(c,!1):(i+=n(c.substr(0,l),!1),i+=":",i+=n(c.substr(l+1),!1)),i+="@";}-1===(l=(r=r.toLowerCase()).indexOf(":"))?i+=n(r,!1):(i+=n(r.substr(0,l),!1),i+=r.substr(l));}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(d=s.charCodeAt(1))>=65&&d<=90&&(s="/"+String.fromCharCode(d+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var d;(d=s.charCodeAt(0))>=65&&d<=90&&(s=String.fromCharCode(d+32)+":"+s.substr(2));}i+=n(s,!0);}return a&&(i+="?",i+=n(a,!1)),u&&(i+="#",i+=t?u:bt(u,!1)),i;}var xt,Et,Lt,Tt,It,Nt,kt,Ot,Dt,Rt,At,Mt,Pt,Ft,Wt,Bt,Vt,Ht,Ut,jt,zt,Kt,qt,Gt,$t,Yt,Xt,Zt,Qt=function(){function e(e,t){this.lineNumber=e,this.column=t;}return e.prototype.with=function(t,n){return void 0===t&&(t=this.lineNumber),void 0===n&&(n=this.column),t===this.lineNumber&&n===this.column?this:new e(t,n);},e.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t);},e.prototype.equals=function(t){return e.equals(this,t);},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column;},e.prototype.isBefore=function(t){return e.isBefore(this,t);},e.isBefore=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column;},e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t);},e.isBeforeOrEqual=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column;},e.compare=function(e,t){var n=0|e.lineNumber,i=0|t.lineNumber;return n===i?(0|e.column)-(0|t.column):n-i;},e.prototype.clone=function(){return new e(this.lineNumber,this.column);},e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")";},e.lift=function(t){return new e(t.lineNumber,t.column);},e.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column;},e;}(),Jt=function(){function e(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i);}return e.prototype.isEmpty=function(){return e.isEmpty(this);},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn;},e.prototype.containsPosition=function(t){return e.containsPosition(this,t);},e.containsPosition=function(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn);},e.prototype.containsRange=function(t){return e.containsRange(this,t);},e.containsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn);},e.prototype.plusRange=function(t){return e.plusRange(this,t);},e.plusRange=function(t,n){var i,o,r,s;return n.startLineNumber<t.startLineNumber?(i=n.startLineNumber,o=n.startColumn):n.startLineNumber===t.startLineNumber?(i=n.startLineNumber,o=Math.min(n.startColumn,t.startColumn)):(i=t.startLineNumber,o=t.startColumn),n.endLineNumber>t.endLineNumber?(r=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(r=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(r=t.endLineNumber,s=t.endColumn),new e(i,o,r,s);},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t);},e.intersectRanges=function(t,n){var i=t.startLineNumber,o=t.startColumn,r=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return i<a?(i=a,o=u):i===a&&(o=Math.max(o,u)),r>l?(r=l,s=c):r===l&&(s=Math.min(s,c)),i>r?null:i===r&&o>s?null:new e(i,o,r,s);},e.prototype.equalsRange=function(t){return e.equalsRange(this,t);},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn;},e.prototype.getEndPosition=function(){return new Qt(this.endLineNumber,this.endColumn);},e.prototype.getStartPosition=function(){return new Qt(this.startLineNumber,this.startColumn);},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]";},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n);},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn);},e.prototype.collapseToStart=function(){return e.collapseToStart(this);},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column);},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null;},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn;},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn);},e.areIntersecting=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn);},e.compareRangesUsingStarts=function(e,t){if(e&&t){var n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){var o=0|e.startColumn,r=0|t.startColumn;if(o===r){var s=0|e.endLineNumber,a=0|t.endLineNumber;return s===a?(0|e.endColumn)-(0|t.endColumn):s-a;}return o-r;}return n-i;}return(e?1:0)-(t?1:0);},e.compareRangesUsingEnds=function(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber;},e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber;},e;}(),en=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),tn=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i,o)||this;return r.selectionStartLineNumber=t,r.selectionStartColumn=n,r.positionLineNumber=i,r.positionColumn=o,r;}return en(t,e),t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn);},t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]";},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e);},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn;},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1;},t.prototype.setEndPosition=function(e,n){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn);},t.prototype.getPosition=function(){return new Qt(this.positionLineNumber,this.positionColumn);},t.prototype.setStartPosition=function(e,n){return 0===this.getDirection()?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n);},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column);},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0;},t.isISelection=function(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn;},t.createWithDirection=function(e,n,i,o,r){return 0===r?new t(e,n,i,o):new t(i,o,e,n);},t;}(Jt),nn=function(){function e(e,t,n){this.offset=0|e,this.type=t,this.language=n;}return e.prototype.toString=function(){return"("+this.offset+", "+this.type+")";},e;}(),on=function(){return function(e,t){this.tokens=e,this.endState=t;};}(),rn=function(){return function(e,t){this.tokens=e,this.endState=t;};}();!function(e){e[e.Unnecessary=1]="Unnecessary";}(xt||(xt={})),(Lt=Et||(Et={}))[Lt.Hint=1]="Hint",Lt[Lt.Info=2]="Info",Lt[Lt.Warning=4]="Warning",Lt[Lt.Error=8]="Error",function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE";}(Tt||(Tt={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL";}(It||(It={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible";}(Nt||(Nt={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full";}(kt||(kt={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF";}(Ot||(Ot={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF";}(Dt||(Dt={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF";}(Rt||(Rt={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter";}(At||(At={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate";}(Mt||(Mt={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo";}(Pt||(Pt={})),function(e){e[e.None=0]="None",e[e.Small=1]="Small",e[e.Large=2]="Large",e[e.SmallBlocks=3]="SmallBlocks",e[e.LargeBlocks=4]="LargeBlocks";}(Ft||(Ft={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent";}(Wt||(Wt={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid";}(Bt||(Bt={})),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";}(Vt||(Vt={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom";}(Ht||(Ht={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW";}(Ut||(Ut={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER";}(jt||(jt={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR";}(zt||(zt={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent";}(Kt||(Kt={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.Snippet=25]="Snippet";}(qt||(qt={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet";}(Gt||(Gt={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions";}($t||($t={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange";}(Yt||(Yt={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write";}(Xt||(Xt={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter";}(Zt||(Zt={}));var sn=function(){function e(){}return e.chord=function(e,t){return tt(e,t);},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e;}();function an(){return{editor:void 0,languages:void 0,CancellationTokenSource:j,Emitter:N,KeyCode:Tt,KeyMod:sn,Position:Qt,Range:Jt,Selection:tn,SelectionDirection:It,MarkerSeverity:Et,MarkerTag:xt,Promise:i.b,Uri:_t,Token:nn};}var un;n("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/standalone-tokens.css");!function(e){e.serviceIds=new Map(),e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[];};}(un||(un={}));var ln=dn("instantiationService");function cn(e,t,n,i){t[un.DI_TARGET]===t?t[un.DI_DEPENDENCIES].push({id:e,index:n,optional:i}):(t[un.DI_DEPENDENCIES]=[{id:e,index:n,optional:i}],t[un.DI_TARGET]=t);}function dn(e){if(un.serviceIds.has(e))return un.serviceIds.get(e);var t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");cn(t,e,i,!1);};return t.toString=function(){return e;},un.serviceIds.set(e,t),t;}function hn(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");cn(e,t,i,!0);};}var pn=dn("codeEditorService"),fn=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new N(),this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._accessibilitySupport=0,this._onDidChangeAccessibilitySupport=new N(),this.onDidChangeAccessibilitySupport=this._onDidChangeAccessibilitySupport.event;}return e.prototype.getZoomLevel=function(){return this._zoomLevel;},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime;},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1);},e.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport;},e.INSTANCE=new e(),e;}();function gn(){return fn.INSTANCE.getZoomLevel();}function mn(e){return fn.INSTANCE.onDidChangeZoomLevel(e);}var _n=navigator.userAgent,vn=_n.indexOf("Trident")>=0,yn=_n.indexOf("Edge/")>=0,bn=vn||yn,Cn=_n.indexOf("Firefox")>=0,wn=_n.indexOf("AppleWebKit")>=0,Sn=_n.indexOf("Chrome")>=0,xn=-1===_n.indexOf("Chrome")&&_n.indexOf("Safari")>=0,En=_n.indexOf("iPad")>=0,Ln=yn&&_n.indexOf("WebView/")>=0;var Tn=function(e,t,n){var i=function(e){return o.fire(e);},o=new N({onFirstListenerAdd:function(){e.addEventListener(t,i,n);},onLastListenerRemove:function(){e.removeEventListener(t,i,n);}});return o.event;};function In(e){return M(e,function(e){return e.preventDefault(),e.stopPropagation(),e;});}var Nn=new Array(230),kn=new Array(112);!function(){for(var e=0;e<kn.length;e++)kn[e]=-1;function t(e,t){Nn[e]=t,kn[t]=e;}t(3,7),t(8,1),t(9,2),t(13,3),t(16,4),t(17,5),t(18,6),t(19,7),t(20,8),t(27,9),t(32,10),t(33,11),t(34,12),t(35,13),t(36,14),t(37,15),t(38,16),t(39,17),t(40,18),t(45,19),t(46,20),t(48,21),t(49,22),t(50,23),t(51,24),t(52,25),t(53,26),t(54,27),t(55,28),t(56,29),t(57,30),t(65,31),t(66,32),t(67,33),t(68,34),t(69,35),t(70,36),t(71,37),t(72,38),t(73,39),t(74,40),t(75,41),t(76,42),t(77,43),t(78,44),t(79,45),t(80,46),t(81,47),t(82,48),t(83,49),t(84,50),t(85,51),t(86,52),t(87,53),t(88,54),t(89,55),t(90,56),t(93,58),t(96,93),t(97,94),t(98,95),t(99,96),t(100,97),t(101,98),t(102,99),t(103,100),t(104,101),t(105,102),t(106,103),t(107,104),t(108,105),t(109,106),t(110,107),t(111,108),t(112,59),t(113,60),t(114,61),t(115,62),t(116,63),t(117,64),t(118,65),t(119,66),t(120,67),t(121,68),t(122,69),t(123,70),t(124,71),t(125,72),t(126,73),t(127,74),t(128,75),t(129,76),t(130,77),t(144,78),t(145,79),t(186,80),t(187,81),t(188,82),t(189,83),t(190,84),t(191,85),t(192,86),t(193,110),t(194,111),t(219,87),t(220,88),t(221,89),t(222,90),t(223,91),t(226,92),t(229,109),vn?t(91,57):Cn?(t(59,80),t(107,81),t(109,83),o.d&&t(224,57)):wn&&(t(91,57),o.d?t(93,57):t(92,57));}();var On=o.d?256:2048,Dn=o.d?2048:256,Rn=function(){function e(e){var t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return ze.fromString(t);}return Nn[e.keyCode]||0;}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding();}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault();},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation();},e.prototype.toKeybinding=function(){return this._asRuntimeKeybinding;},e.prototype.equals=function(e){return this._asKeybinding===e;},e.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=On),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=Dn),t|=e;},e.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new rt(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e);},e;}(),An=!1,Mn=null;function Pn(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return An=!0,null;}catch(e){return An=!0,null;}return e.parent;}function Fn(e,t){for(var n,i=e.document.getElementsByTagName("iframe"),o=0,r=i.length;o<r;o++)if((n=i[o]).contentWindow===t)return n;return null;}var Wn=function(){function e(){}return e.getSameOriginWindowChain=function(){if(!Mn){Mn=[];var e,t=window;do{(e=Pn(t))?Mn.push({window:t,iframeElement:Fn(e,t)}):Mn.push({window:t,iframeElement:null}),t=e;}while(t);}return Mn.slice(0);},e.hasDifferentOriginAncestor=function(){return Mn||this.getSameOriginWindowChain(),An;},e.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};for(var n=0,i=0,o=this.getSameOriginWindowChain(),r=0;r<o.length;r++){var s=o[r];if(s.window===t)break;if(!s.iframeElement)break;var a=s.iframeElement.getBoundingClientRect();n+=a.top,i+=a.left;}return{top:n,left:i};},e;}(),Bn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Vn=function(){function e(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);var t=Wn.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top;}return e.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault();},e.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation();},e;}(),Hn=function(e){function t(t){var n=e.call(this,t)||this;return n.dataTransfer=t.dataTransfer,n;}return Bn(t,e),t;}(Vn),Un=function(){function e(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){var i=e,r=e;void 0!==i.wheelDeltaY?this.deltaY=i.wheelDeltaY/120:void 0!==r.VERTICAL_AXIS&&r.axis===r.VERTICAL_AXIS&&(this.deltaY=-r.detail/3),void 0!==i.wheelDeltaX?xn&&o.g?this.deltaX=-i.wheelDeltaX/120:this.deltaX=i.wheelDeltaX/120:void 0!==r.HORIZONTAL_AXIS&&r.axis===r.HORIZONTAL_AXIS&&(this.deltaX=-e.detail/3),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120);}}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault();},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation();},e;}(),jn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();function zn(e){for(;e.firstChild;)e.removeChild(e.firstChild);}function Kn(e){e.parentNode&&e.parentNode.removeChild(e);}var qn=new(function(){function e(){}return e.prototype._findClassName=function(e,t){var n=e.className;if(n){t=t.trim();var i=n.length,o=t.length;if(0!==o){if(i<o)this._lastStart=-1;else{if(n===t)return this._lastStart=0,void(this._lastEnd=i);for(var r,s=-1;(s=n.indexOf(t,s+1))>=0;){if(r=s+o,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(r))return this._lastStart=s,void(this._lastEnd=r+1);if(s>0&&32===n.charCodeAt(s-1)&&r===i)return this._lastStart=s-1,void(this._lastEnd=r);if(0===s&&r===i)return this._lastStart=0,void(this._lastEnd=r);}this._lastStart=-1;}}else this._lastStart=-1;}else this._lastStart=-1;},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart;},e.prototype.addClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.addClass(e,n);});});},e.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t;},e.prototype.removeClass=function(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd));},e.prototype.removeClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.removeClass(e,n);});});},e.prototype.toggleClass=function(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t);},e;}())(),Gn=new(function(){function e(){}return e.prototype.hasClass=function(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t);},e.prototype.addClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.addClass(e,n);});});},e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t);},e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t);},e.prototype.removeClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.removeClass(e,n);});});},e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n);},e;}())(),$n=vn?qn:Gn,Yn=$n.hasClass.bind($n),Xn=$n.addClass.bind($n),Zn=$n.addClasses.bind($n),Qn=$n.removeClass.bind($n),Jn=$n.removeClasses.bind($n),ei=$n.toggleClass.bind($n),ti=function(){function e(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._useCapture=i||!1,this._node.addEventListener(this._type,this._handler,this._useCapture);}return e.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null);},e;}();function ni(e,t,n,i){return new ti(e,t,n,i);}var ii=function(e,t,n,i){var o=n;return"click"===t||"mousedown"===t?o=function(e){return function(t){return e(new Vn(t));};}(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new Rn(t));};}(n)),ni(e,t,o,i);};function oi(e,t){return ni(e,"mouseout",function(n){for(var i=n.relatedTarget||n.toElement;i&&i!==e;)i=i.parentNode;i!==e&&t(n);});}var ri,si,ai=null;var ui,li,ci,di,hi,pi=function(){function e(e,t){void 0===t&&(t=0),this._runner=e,this.priority=t,this._canceled=!1;}return e.prototype.dispose=function(){this._canceled=!0;},e.prototype.execute=function(){if(!this._canceled)try{this._runner();}catch(e){a(e);}},e.sort=function(e,t){return t.priority-e.priority;},e;}();ui=[],li=null,ci=!1,di=!1,hi=function(){for(ci=!1,li=ui,ui=[],di=!0;li.length>0;){li.sort(pi.sort),li.shift().execute();}di=!1;},si=function(e,t){void 0===t&&(t=0);var n,i=new pi(e,t);return ui.push(i),ci||(ci=!0,n=hi,ai||(ai=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout(function(){return e(new Date().getTime());},0);}),ai.call(self,n)),i;},ri=function(e,t){if(di){var n=new pi(e,t);return li.push(n),n;}return si(e,t);};var fi=16,gi=function(e,t){return t;},mi=function(e){function t(t,n,i,o,r){void 0===o&&(o=gi),void 0===r&&(r=fi);var s=e.call(this)||this,a=null,u=0,l=s._register(new Q()),c=function(){u=new Date().getTime(),i(a),a=null;};return s._register(ni(t,n,function(e){a=o(a,e);var t=new Date().getTime()-u;t>=r?(l.cancel(),c()):l.setIfNotSet(c,r-t);})),s;}return jn(t,e),t;}(y);function _i(e,t,n,i,o){return new mi(e,t,n,i,o);}function vi(e){return document.defaultView.getComputedStyle(e,null);}var yi=function(e,t){return parseFloat(t)||0;};function bi(e,t,n){var i=vi(e),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),yi(e,o);}var Ci={getBorderLeftWidth:function(e){return bi(e,"border-left-width","borderLeftWidth");},getBorderRightWidth:function(e){return bi(e,"border-right-width","borderRightWidth");},getBorderTopWidth:function(e){return bi(e,"border-top-width","borderTopWidth");},getBorderBottomWidth:function(e){return bi(e,"border-bottom-width","borderBottomWidth");},getPaddingLeft:function(e){return bi(e,"padding-left","paddingLeft");},getPaddingRight:function(e){return bi(e,"padding-right","paddingRight");},getPaddingTop:function(e){return bi(e,"padding-top","paddingTop");},getPaddingBottom:function(e){return bi(e,"padding-bottom","paddingBottom");},getMarginLeft:function(e){return bi(e,"margin-left","marginLeft");},getMarginTop:function(e){return bi(e,"margin-top","marginTop");},getMarginRight:function(e){return bi(e,"margin-right","marginRight");},getMarginBottom:function(e){return bi(e,"margin-bottom","marginBottom");},__commaSentinel:!1},wi=function(){return function(e,t){this.width=e,this.height=t;};}();function Si(e){for(var t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var o=vi(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=Ci.getBorderLeftWidth(e),n+=Ci.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent);}return{left:i,top:n};}function xi(e){var t=e.getBoundingClientRect();return{left:t.left+Ei.scrollX,top:t.top+Ei.scrollY,width:t.width,height:t.height};}var Ei=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop;},enumerable:!0,configurable:!0}),e;}())();function Li(e){var t=Ci.getMarginLeft(e)+Ci.getMarginRight(e);return e.offsetWidth+t;}function Ti(e){var t=Ci.getBorderLeftWidth(e)+Ci.getBorderRightWidth(e),n=Ci.getPaddingLeft(e)+Ci.getPaddingRight(e);return e.offsetWidth-t-n;}function Ii(e){var t=Ci.getBorderTopWidth(e)+Ci.getBorderBottomWidth(e),n=Ci.getPaddingTop(e)+Ci.getPaddingBottom(e);return e.offsetHeight-t-n;}function Ni(e){var t=Ci.getMarginTop(e)+Ci.getMarginBottom(e);return e.offsetHeight+t;}function ki(e,t){for(;e;){if(e===t)return!0;e=e.parentNode;}return!1;}function Oi(e,t,n){for(;e;){if(Yn(e,t))return e;if(n)if("string"==typeof n){if(Yn(e,n))return null;}else if(e===n)return null;e=e.parentNode;}return null;}function Di(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t;}var Ri=null;function Ai(){return Ri||(Ri=Di()),Ri;}function Mi(e,t){if(void 0===t&&(t=Ai()),t){for(var n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[];}(t),i=[],o=0;o<n.length;o++){-1!==n[o].selectorText.indexOf(e)&&i.push(o);}for(o=i.length-1;o>=0;o--)t.sheet.deleteRule(i[o]);}}var Pi={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",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",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:wn?"webkitAnimationStart":"animationstart",ANIMATION_END:wn?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:wn?"webkitAnimationIteration":"animationiteration"},Fi={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0);}};var Wi=function(){function e(e){var t=this;this._onDidFocus=new N(),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new N(),this.onDidBlur=this._onDidBlur.event,this.disposables=[];var n=ki(document.activeElement,e),i=!1;Tn(e,Pi.FOCUS,!0)(function(){i=!1,n||(n=!0,t._onDidFocus.fire());},null,this.disposables),Tn(e,Pi.BLUR,!0)(function(){n&&(i=!0,window.setTimeout(function(){i&&(i=!1,n=!1,t._onDidBlur.fire());},0));},null,this.disposables);}return e.prototype.dispose=function(){this.disposables=f(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose();},e;}();function Bi(e){return new Wi(e);}function Vi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){return e.appendChild(t);}),t[t.length-1];}var Hi,Ui=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;function ji(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=Ui.exec(e);if(!o)throw new Error("Bad use of emmet");var r=document.createElement(o[1]||"div");return o[3]&&(r.id=o[3]),o[4]&&(r.className=o[4].replace(/\./g," ").trim()),t=t||{},Object.keys(t).forEach(function(e){var n=t[e];/^on\w+$/.test(e)?r[e]=n:"selected"===e?n&&r.setAttribute(e,"true"):r.setAttribute(e,n);}),n.filter(function(e){return!!e;}).forEach(function(e){e instanceof Node?r.appendChild(e):r.appendChild(document.createTextNode(e));}),r;}function zi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var o=i[n];o.style.display="",o.removeAttribute("aria-hidden");}}function Ki(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var o=i[n];o.style.display="none",o.setAttribute("aria-hidden","true");}}function qi(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=function(e,t){for(;e;){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode;}return null;}(e.parentElement,"tabIndex");t&&t.focus();}e.removeAttribute("tabindex");}}function Gi(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0);}function $i(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio;}function Yi(e){if(o.e||Ln)window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e);}}function Xi(e){var t=JSON.parse(e);return t=function e(t,n){if(!t||n>200)return t;if("object"==typeof t){switch(t.$mid){case 1:return _t.revive(t);case 2:return new RegExp(t.source,t.flags);}for(var i in t)Object.hasOwnProperty.call(t,i)&&(t[i]=e(t[i],n+1));}return t;}(t,0);}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data";}(Hi||(Hi={}));var Zi="";function Qi(e){return!e||"string"!=typeof e||0===e.trim().length;}function Ji(e,t,n){void 0===n&&(n="0");for(var i=""+e,o=[i],r=i.length;r<t;r++)o.push(n);return o.reverse().join("");}var eo=/{(\d+)}/g;function to(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(eo,function(e,n){var i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i];});}function no(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e;}});}function io(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&");}function oo(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var i=0;e.indexOf(t,i)===i;)i+=n;return e.substring(i);}function ro(e,t){if(!e||!t)return e;var n=t.length,i=e.length;if(0===n||0===i)return e;for(var o=i,r=-1;-1!==(r=e.lastIndexOf(t,o-1))&&r+n===o;){if(0===r)return"";o=r;}return e.substring(0,o);}function so(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0;}function ao(e,t){var n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t;}function uo(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=io(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),new RegExp(e,i);}function lo(e){for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(32!==i&&9!==i)return t;}return-1;}function co(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=t;i<n;i++){var o=e.charCodeAt(i);if(32!==o&&9!==o)return e.substring(t,i);}return e.substring(t,n);}function ho(e,t){void 0===t&&(t=e.length-1);for(var n=t;n>=0;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n;}return-1;}function po(e){return e>=97&&e<=122;}function fo(e){return e>=65&&e<=90;}function go(e){return po(e)||fo(e);}function mo(e,t){return(e?e.length:0)===(t?t.length:0)&&_o(e,t);}function _o(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var i=0;i<n;i++){var o=e.charCodeAt(i),r=t.charCodeAt(i);if(o!==r)if(go(o)&&go(r)){var s=Math.abs(o-r);if(0!==s&&32!==s)return!1;}else if(String.fromCharCode(o).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1;}return!0;}function vo(e,t){var n=t.length;return!(t.length>e.length)&&_o(e,t,n);}function yo(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i;}function bo(e){return 55296<=e&&e<=56319;}function Co(e){return 56320<=e&&e<=57343;}var wo=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function So(e){return wo.test(e);}var xo=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;var Eo=/^[\t\n\r\x20-\x7E]*$/;function Lo(e){return Eo.test(e);}function To(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374;}var Io=String.fromCharCode(65279);function No(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0));}function ko(e){return btoa(encodeURIComponent(e));}var Oo="/",Do=o.g?"\\":"/";function Ro(e,t){void 0===t&&(t=Do);var n=~e.lastIndexOf("/")||~e.lastIndexOf("\\");if(0===n)return".";if(0==~n)return e[0];if(~n==e.length-1)return Ro(e.substring(0,e.length-1));var i=e.substring(0,~n);return o.g&&":"===i[i.length-1]&&(i+=t),i;}function Ao(e){var t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?Ao(e.substring(0,e.length-1)):e.substr(1+~t);}function Mo(e){var t=~(e=Ao(e)).lastIndexOf(".");return t?e.substring(~t):"";}var Po=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,Fo=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;function Wo(e,t){if(null==e)return e;var n=e.length;if(0===n)return".";var i=!(!o.g||!t);if(function(e,t){return t?!Fo.test(e):!Po.test(e);}(e,i))return e;for(var r=i?"\\":"/",s=function(e,t){void 0===t&&(t="/");if(!e)return"";var n=e.length,i=e.charCodeAt(0);if(47===i||92===i){if((47===(i=e.charCodeAt(1))||92===i)&&47!==(i=e.charCodeAt(2))&&92!==i){for(var o=3,r=o;o<n&&47!==(i=e.charCodeAt(o))&&92!==i;o++);if(i=e.charCodeAt(o+1),r!==o&&47!==i&&92!==i)for(o+=1;o<n;o++)if(47===(i=e.charCodeAt(o))||92===i)return e.slice(0,o+1).replace(/[\\\/]/g,t);}return t;}if((i>=65&&i<=90||i>=97&&i<=122)&&58===e.charCodeAt(1))return 47===(i=e.charCodeAt(2))||92===i?e.slice(0,2)+t:e.slice(0,2);var s=e.indexOf("://");if(-1!==s)for(s+=3;s<n;s++)if(47===(i=e.charCodeAt(s))||92===i)return e.slice(0,s+1);return"";}(e,r),a=s.length,u=!1,l="",c=s.length;c<=n;c++)if(c===n||47===e.charCodeAt(c)||92===e.charCodeAt(c)){if(Bo(e,a,c,"..")){var d=l.lastIndexOf(r),h=l.slice(d+1);(s||h.length>0)&&".."!==h&&(l=-1===d?"":l.slice(0,d),u=!0);}else Bo(e,a,c,".")&&(s||l||c<n-1)&&(u=!0);if(!u){var p=e.slice(a,c);""!==l&&l[l.length-1]!==r&&(l+=r),l+=p;}a=c+1,u=!1;}return s+l;}function Bo(e,t,n,i){return t+i.length===n&&e.indexOf(i,t)===t;}var Vo,Ho=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(t>0){var i=e.charCodeAt(e.length-1);if(47!==i&&92!==i){var o=n.charCodeAt(0);47!==o&&92!==o&&(e+=Oo);}}e+=n;}return Wo(e);};function Uo(e){return function(e){return Ao(e.path);}(e)||e.authority;}function jo(e,t,n){var i;return void 0===n&&(n=!(i=e)||i.scheme!==Hi.file||!o.c),!(e!==t)||!(!e||!t)&&(n?mo(e.toString(),t.toString()):e.toString()===t.toString());}function zo(e){if(e.scheme===Hi.file)return _t.file(Ro(Ko(e)));var t=Ro(e.path,"/");return e.authority&&t.length&&47!==t.charCodeAt(0)?null:e.with({path:t});}function Ko(e){var t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:o.g&&47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path.substr(1):e.path,o.g&&(t=t.replace(/\//g,"\\")),t;}!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){var n=new Map();t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(function(e){var t=e.split(":"),i=t[0],o=t[1];i&&o&&n.set(i,o);});var i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n;};}(Vo||(Vo={}));var qo=dn("commandService"),Go=new(function(){function e(){this._commands=new Map();}return e.prototype.registerCommand=function(e,t){var n=this;if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t});}if(e.description){for(var i=[],o=0,r=e.description.args;o<r.length;o++){var s=r[o];i.push(s.constraint);}var a=e.handler;e.handler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++)Ee(e[i],t[i]);}(t,i),a.apply(void 0,[e].concat(t));};}var u=e.id,l=this._commands.get(u);l||(l=new I(),this._commands.set(u,l));var c=l.unshift(e);return m(function(){c(),n._commands.get(u).isEmpty()&&n._commands.delete(u);});},e.prototype.registerCommandAlias=function(e,t){return Go.registerCommand(e,function(e){for(var n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];(n=e.get(qo)).executeCommand.apply(n,[t].concat(i));});},e.prototype.getCommand=function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return t.iterator().next().value;},e.prototype.getCommands=function(){var e=this,t=Object.create(null);return this._commands.forEach(function(n,i){t[i]=e.getCommand(i);}),t;},e;}())(),$o=dn("telemetryService"),Yo=new(function(){function e(){}return e.prototype.publicLog=function(e,t){return i.b.wrap(void 0);},e.prototype.getTelemetryInfo=function(){return i.b.wrap({instanceId:"someValue.instanceId",sessionId:"someValue.sessionId",machineId:"someValue.machineId"});},e;}())(),Xo=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},Zo=function(e,t){return function(n,i){t(n,i,e);};},Qo=function(){function e(e,t,n){void 0===n&&(n=Yo),this._editorService=e,this._commandService=t,this._telemetryService=n;}return e.prototype.open=function(e,t){var n;this._telemetryService&&this._telemetryService.publicLog("openerService",{scheme:e.scheme});var i=e.scheme,o=e.path,r=e.query,s=e.fragment,a=void 0;if(i===Hi.http||i===Hi.https||i===Hi.mailto)Yi(e.toString(!0));else if("command"===i&&Go.getCommand(o)){var u=[];try{u=Xi(r),Array.isArray(u)||(u=[u]);}catch(e){}a=(n=this._commandService).executeCommand.apply(n,[o].concat(u));}else{var l=void 0,c=/^L?(\d+)(?:,(\d+))?/.exec(s);if(c&&(l={startLineNumber:parseInt(c[1]),startColumn:c[2]?parseInt(c[2]):1},e=e.with({fragment:""})),!e.scheme)return Promise.resolve(void 0);e.scheme===Hi.file&&(e=function(e){var t;return t=e.scheme===Hi.file?_t.file(Wo(Ko(e))).path:Wo(e.path),e.with({path:t});}(e)),a=this._editorService.openCodeEditor({resource:e,options:{selection:l}},this._editorService.getFocusedCodeEditor(),t&&t.openToSide);}return Promise.resolve(a);},e=Xo([Zo(0,pn),Zo(1,qo),Zo(2,hn($o))],e);}();function Jo(e,t){if(!e||null===e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed");}var er={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},tr=function(){function e(e,t){void 0===t&&(t={});var n=this;this._onDidUpdate=new N(),this._editor=e,this._options=Ie(t,er,!1),this.disposed=!1,this._disposables=[],this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._disposables.push(this._editor.onDidDispose(function(){return n.dispose();})),this._disposables.push(this._editor.onDidUpdateDiff(function(){return n._onDiffUpdated();})),this._options.followsCaret&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeCursorPosition(function(e){n.ignoreSelectionChange||(n.nextIdx=-1);})),this._options.alwaysRevealFirst&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeModel(function(e){n.revealFirst=!0;})),this._init();}return e.prototype._init=function(){this._editor.getLineChanges();},e.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1));},e.prototype._compute=function(e){var t=this;this.ranges=[],e&&e.forEach(function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(function(e){t.ranges.push({rhs:!0,range:new Jt(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)});}):t.ranges.push({rhs:!0,range:new Jt(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)});}),this.ranges.sort(function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0;}),this._onDidUpdate.fire(this);},e.prototype._initIdx=function(e){var t=!1,n=this._editor.getPosition();if(n){for(var i=0,o=this.ranges.length;i<o&&!t;i++){var r=this.ranges[i].range;n.isBeforeOrEqual(r.getStartPosition())&&(this.nextIdx=i+(e?0:-1),t=!0);}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1);}else this.nextIdx=0;},e.prototype._move=function(e,t){if(Jo(!this.disposed,"Illegal State - diff navigator has been disposed"),this.canNavigate()){-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var i=n.range.getStartPosition();this._editor.setPosition(i),this._editor.revealPositionInCenter(i,t);}finally{this.ignoreSelectionChange=!1;}}},e.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0;},e.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e);},e.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e);},e.prototype.dispose=function(){f(this._disposables),this._disposables.length=0,this._onDidUpdate.dispose(),this.ranges=[],this.disposed=!0;},e;}(),nr=new(function(){function e(){this._zoomLevel=0,this._onDidChangeZoomLevel=new N(),this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event;}return e.prototype.getZoomLevel=function(){return this._zoomLevel;},e.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel));},e;}())(),ir=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),or=o.d?1.5:1.35;function rr(e,t){if("number"==typeof e)return e;if(void 0===e)return t;var n=parseFloat(e);return isNaN(n)?t:n;}function sr(e,t,n){return e<t?t:e>n?n:e;}function ar(e,t){return"string"!=typeof e?t:e;}var ur=function(){function e(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing;}return e.createFromRawSettings=function(t,n){var i=ar(t.fontFamily,$e.fontFamily),o=ar(t.fontWeight,$e.fontWeight),r=rr(t.fontSize,$e.fontSize);0===(r=sr(r,0,100))?r=$e.fontSize:r<8&&(r=8);var s=function(e,t){if("number"==typeof e)return Math.round(e);if(void 0===e)return t;var n=parseInt(e);return isNaN(n)?t:n;}(t.lineHeight,0);0===(s=sr(s,0,150))?s=Math.round(or*r):s<8&&(s=8);var a=rr(t.letterSpacing,0);a=sr(a,-5,20);var u=1+.1*nr.getZoomLevel();return new e({zoomLevel:n,fontFamily:i,fontWeight:o,fontSize:r*=u,lineHeight:s*=u,letterSpacing:a});},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing;},e.prototype.getMassagedFontFamily=function(){return /[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily;},e;}(),lr=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isTrusted=n,i.isMonospace=t.isMonospace,i.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,i.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,i.canUseHalfwidthRightwardsArrow=t.canUseHalfwidthRightwardsArrow,i.spaceWidth=t.spaceWidth,i.maxDigitWidth=t.maxDigitWidth,i;}return ir(t,e),t.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&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.maxDigitWidth===e.maxDigitWidth;},t;}(ur);var cr,dr={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},hr={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"};!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full";}(cr||(cr={}));var pr=function(){function e(e){this.tabSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace);}return e.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace;},e.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace};},e;}(),fr=function(){return function(e,t){this.range=e,this.matches=t;};}(),gr=function(){return function(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n;};}(),mr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();function _r(e){var t=[];return e.forEach(function(e){return t.push(e);}),t;}var vr=function(){function e(){this._value="",this._pos=0;}return e.prototype.reset=function(e){return this._value=e,this._pos=0,this;},e.prototype.next=function(){return this._pos+=1,this;},e.prototype.hasNext=function(){return this._pos<this._value.length-1;},e.prototype.cmp=function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos);},e.prototype.value=function(){return this._value[this._pos];},e;}(),yr=function(){function e(){}return e.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next();},e.prototype.hasNext=function(){return this._to<this._value.length;},e.prototype.next=function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++;}else e=!1;}return this;},e.prototype.cmp=function(e){for(var t=0,n=e.length,i=this._from;t<n&&i<this._to;){var o=e.charCodeAt(t)-this._value.charCodeAt(i);if(0!==o)return o;t+=1,i+=1;}return n===this._to-this._from?0:t<n?-1:1;},e.prototype.value=function(){return this._value.substring(this._from,this._to);},e;}(),br=function(){return function(){};}(),Cr=function(){function e(e){this._iter=e;}return e.forPaths=function(){return new e(new yr());},e.forStrings=function(){return new e(new vr());},e.prototype.clear=function(){this._root=void 0;},e.prototype.set=function(e,t){var n,i=this._iter.reset(e);for(this._root||(this._root=new br(),this._root.segment=i.value()),n=this._root;;){var o=i.cmp(n.segment);if(o>0)n.left||(n.left=new br(),n.left.segment=i.value()),n=n.left;else if(o<0)n.right||(n.right=new br(),n.right.segment=i.value()),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new br(),n.mid.segment=i.value()),n=n.mid;}}var r=n.value;return n.value=t,n.key=e,r;},e.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid;}}return n?n.value:void 0;},e.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),n=this._root,i=void 0;n;){var o=t.cmp(n.segment);if(o>0)n=n.left;else if(o<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid;}}return n&&n.value||i;},e.prototype.forEach=function(e){this._forEach(this._root,e);},e.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t));},e;}(),wr=function(){function e(){this.map=new Map(),this.ignoreCase=!1;}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t);},e.prototype.get=function(e){return this.map.get(this.toKey(e));},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t;},e;}(),Sr=function(e){function t(t,n){void 0===n&&(n=1);var i=e.call(this)||this;return i._limit=t,i._ratio=Math.min(Math.max(0,n),1),i;}return mr(t,e),t.prototype.get=function(t){return e.prototype.get.call(this,t,2);},t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,2),this.checkTrim();},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio));},t;}(function(){function e(){this._map=new Map(),this._head=void 0,this._tail=void 0,this._size=0;}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0;},Object.defineProperty(e.prototype,"size",{get:function(){return this._size;},enumerable:!0,configurable:!0}),e.prototype.get=function(e,t){void 0===t&&(t=0);var n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value;},e.prototype.set=function(e,t,n){void 0===n&&(n=0);var i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:default:this.addItemLast(i);}this._map.set(e,i),this._size++;}},e.prototype.forEach=function(e,t){for(var n=this._head;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next;},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0);}else this.clear();},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e;}else this._tail=e;this._head=e;},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e;}else this._head=e;this._tail=e;},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e;}else if(2===t){if(e===this._tail)return;n=e.next,i=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e;}},e.prototype.toJSON=function(){var e=[];return this.forEach(function(t,n){e.push([n,t]);}),e;},e;}()),xr="**",Er="/",Lr="[/\\\\]",Tr="[^/\\\\]",Ir=/\//g;function Nr(e){switch(e){case 0:return"";case 1:return Tr+"*?";default:return"(?:"+Lr+"|"+Tr+"+"+Lr+"|"+Lr+Tr+"+)*?";}}function kr(e,t){if(!e)return[];for(var n,i=[],o=!1,r=!1,s="",a=0;a<e.length;a++){switch(n=e[a]){case t:if(!o&&!r){i.push(s),s="";continue;}break;case"{":o=!0;break;case"}":o=!1;break;case"[":r=!0;break;case"]":r=!1;}s+=n;}return s&&i.push(s),i;}var Or=/^\*\*\/\*\.[\w\.-]+$/,Dr=/^\*\*\/([\w\.-]+)\/?$/,Rr=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,Ar=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,Mr=/^\*\*((\/[\w\.-]+)+)\/?$/,Pr=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,Fr=new Sr(1e4),Wr=function(){return!1;},Br=function(){return null;};function Vr(e,t){if(!e)return Br;var n,i,o=(n=(n="string"!=typeof e?e.pattern:e).trim())+"_"+!!t.trimForExclusions,r=Fr.get(o);if(r)return Hr(r,e);if(Or.test(n)){var s=n.substr(4);r=function(e,t){return e&&ao(e,s)?n:null;};}else r=(i=Dr.exec(Ur(n,t)))?function(e,t){var n="/"+e,i="\\"+e,o=function(o,r){return o?r?r===e?t:null:o===e||ao(o,n)||ao(o,i)?t:null:null;},r=[e];return o.basenames=r,o.patterns=[t],o.allBasenames=r,o;}(i[1],n):(t.trimForExclusions?Ar:Rr).test(n)?function(e,t){var n=Kr(e.slice(1,-1).split(",").map(function(e){return Vr(e,t);}).filter(function(e){return e!==Br;}),e),i=n.length;if(!i)return Br;if(1===i)return n[0];var o=function(t,i){for(var o=0,r=n.length;o<r;o++)if(n[o](t,i))return e;return null;},r=he(n,function(e){return!!e.allBasenames;});r&&(o.allBasenames=r.allBasenames);var s=n.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e;},[]);s.length&&(o.allPaths=s);return o;}(n,t):(i=Mr.exec(Ur(n,t)))?jr(i[1].substr(1),n,!0):(i=Pr.exec(Ur(n,t)))?jr(i[1],n,!1):function(e){try{var t=new RegExp("^"+function e(t){if(!t)return"";var n="",i=kr(t,Er);if(i.every(function(e){return e===xr;}))n=".*";else{var o=!1;i.forEach(function(t,r){if(t!==xr){for(var s,a=!1,u="",l=!1,c="",d=0;d<t.length;d++)if("}"!==(s=t[d])&&a)u+=s;else if(!l||"]"===s&&c)switch(s){case"{":a=!0;continue;case"[":l=!0;continue;case"}":var h="(?:"+kr(u,",").map(function(t){return e(t);}).join("|")+")";n+=h,a=!1,u="";break;case"]":n+="["+c+"]",l=!1,c="";break;case"?":n+=Tr;continue;case"*":n+=Nr(1);continue;default:n+=io(s);}else c+="-"===s?s:"^"!==s&&"!"!==s||c?s===Er?"":io(s):"^";r<i.length-1&&(i[r+1]!==xr||r+2<i.length)&&(n+=Lr),o=!1;}else o||(n+=Nr(2),o=!0);});}return n;}(e)+"$");return function(n,i){return t.lastIndex=0,n&&t.test(n)?e:null;};}catch(e){return Br;}}(n);return Fr.set(o,r),Hr(r,e);}function Hr(e,t){return"string"==typeof t?e:function(n,i){return function(e,t,n,i){if(void 0===i&&(i=Do),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!vo(e,t))return!1;if(t.length===e.length)return!0;var o=t.length;return t.charAt(t.length-1)===i&&o--,e.charAt(o)===i;}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t);}(n,t.base)?e(t.pathToRelative(t.base,n),i):null;};}function Ur(e,t){return t.trimForExclusions&&ao(e,"/**")?e.substr(0,e.length-2):e;}function jr(e,t,n){var i=Do!==Oo?e.replace(Ir,Do):e,o=Do+i,r=n?function(e,n){return e&&(e===i||ao(e,o))?t:null;}:function(e,n){return e&&e===i?t:null;};return r.allPaths=[(n?"*/":"./")+e],r;}function zr(e,t,n){return!(!e||!t)&&function(e,t){void 0===t&&(t={});if(!e)return Wr;if("string"==typeof e||(o=e,r=o,r&&"string"==typeof r.base&&"string"==typeof r.pattern&&"function"==typeof r.pathToRelative)){var n=Vr(e,t);if(n===Br)return Wr;var i=function(e,t){return!!n(e,t);};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i;}var o,r;return function(e,t){var n=Kr(Object.getOwnPropertyNames(e).map(function(n){return function(e,t,n){if(!1===t)return Br;var i=Vr(e,n);if(i===Br)return Br;if("boolean"==typeof t)return i;if(t){var o=t.when;if("string"==typeof o){var r=function(t,n,r,s){if(!s||!i(t,n))return null;var a=o.replace("$(basename)",r),u=s(a);return K(u)?u.then(function(t){return t?e:null;}):u?e:null;};return r.requiresSiblings=!0,r;}}return i;}(n,e[n],t);}).filter(function(e){return e!==Br;})),i=n.length;if(!i)return Br;if(!n.some(function(e){return!!e.requiresSiblings;})){if(1===i)return n[0];var o=function(e,t){for(var i=0,o=n.length;i<o;i++){var r=n[i](e,t);if(r)return r;}return null;},r=he(n,function(e){return!!e.allBasenames;});r&&(o.allBasenames=r.allBasenames);var s=n.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e;},[]);return s.length&&(o.allPaths=s),o;}var a=function(e,t,i){for(var o=void 0,r=0,s=n.length;r<s;r++){var a=n[r];a.requiresSiblings&&i&&(t||(t=Ao(e)),o||(o=t.substr(0,t.length-Mo(e).length)));var u=a(e,t,o,i);if(u)return u;}return null;},u=he(n,function(e){return!!e.allBasenames;});u&&(a.allBasenames=u.allBasenames);var l=n.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e;},[]);l.length&&(a.allPaths=l);return a;}(e,t);}(e)(t,void 0,n);}function Kr(e,t){var n=e.filter(function(e){return!!e.basenames;});if(n.length<2)return e;var i,o=n.reduce(function(e,t){var n=t.basenames;return n?e.concat(n):e;},[]);if(t){i=[];for(var r=0,s=o.length;r<s;r++)i.push(t);}else i=n.reduce(function(e,t){var n=t.patterns;return n?e.concat(n):e;},[]);var a=function(e,t){if(!e)return null;if(!t){var n=void 0;for(n=e.length;n>0;n--){var r=e.charCodeAt(n-1);if(47===r||92===r)break;}t=e.substr(n);}var s=o.indexOf(t);return-1!==s?i[s]:null;};a.basenames=o,a.patterns=i,a.allBasenames=o;var u=e.filter(function(e){return!e.basenames;});return u.push(a),u;}function qr(e,t,n,i){if(Array.isArray(e)){for(var o=0,r=0,s=e;r<s.length;r++){var a=qr(s[r],t,n,i);if(10===a)return a;a>o&&(o=a);}return o;}if("string"==typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){var u=e.language,l=e.pattern,c=e.scheme,d=e.hasAccessToAllModels;if(!i&&!d)return 0;o=0;if(c)if(c===t.scheme)o=10;else{if("*"!==c)return 0;o=5;}if(u)if(u===n)o=10;else{if("*"!==u)return 0;o=Math.max(o,5);}if(l){if(l!==t.fsPath&&!zr(l,t.fsPath))return 0;o=10;}return o;}return 0;}var Gr=dn("modelService");function $r(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget;}function Yr(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(Yr):!!e.exclusive);}var Xr,Zr,Qr,Jr=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new N();}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event;},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this,i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),m(function(){if(i){var e=n._entries.indexOf(i);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),i=void 0);}});},e.prototype.has=function(e){return this.all(e).length>0;},e.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],n=0,i=this._entries;n<i.length;n++){var o=i[n];o._score>0&&t.push(o.provider);}return t;},e.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,function(e){return t.push(e.provider);}),t;},e.prototype.orderedGroups=function(e){var t,n,i=[];return this._orderedForEach(e,function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],i.push(t));}),i;},e.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0;n<this._entries.length;n++){var i=this._entries[n];i._score>0&&t(i);}}},e.prototype._updateScores=function(t){var n={uri:t.uri.toString(),language:t.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==n.language||this._lastCandidate.uri!==n.uri){this._lastCandidate=n;for(var i=0,o=this._entries;i<o.length;i++){var r=o[i];if(r._score=qr(r.selector,t.uri,t.getLanguageIdentifier().language,$r(t)),Yr(r.selector)&&r._score>0){for(var s=0,a=this._entries;s<a.length;s++){a[s]._score=0;}r._score=1e3;break;}}this._entries.sort(e._compareByScoreAndTime);}},e._compareByScoreAndTime=function(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0;},e;}(),es=function(){function e(){this._onDidChange=new N(),this.onDidChange=this._onDidChange.event,this._map=Object.create(null),this._promises=Object.create(null),this._colorMap=null;}return e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1});},e.prototype.register=function(e,t){var n=this;return this._map[e]=t,this.fire([e]),m(function(){n._map[e]===t&&(delete n._map[e],n.fire([e]));});},e.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var i=this._promises[e];return i?i.then(function(n){return t.get(e);}):null;},e.prototype.get=function(e){return this._map[e]||null;},e.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Object.keys(this._map),changedColorMap:!0});},e.prototype.getColorMap=function(){return this._colorMap;},e.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null;},e;}(),ts=function(){return function(e,t){this.language=e,this.id=t;};}(),ns=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0;},e.getTokenType=function(e){return(1792&e)>>>8;},e.getFontStyle=function(e){return(14336&e)>>>11;},e.getForeground=function(e){return(8372224&e)>>>14;},e.getBackground=function(e){return(4286578688&e)>>>23;},e.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t;},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),i=this.getFontStyle(e),o="color: "+t[n]+";";return 1&i&&(o+="font-style: italic;"),2&i&&(o+="font-weight: bold;"),4&i&&(o+="text-decoration: underline;"),o;},e;}(),is=((Xr=Object.create(null))[0]="method",Xr[1]="function",Xr[2]="constructor",Xr[3]="field",Xr[4]="variable",Xr[5]="class",Xr[6]="struct",Xr[7]="interface",Xr[8]="module",Xr[9]="property",Xr[10]="event",Xr[11]="operator",Xr[12]="unit",Xr[13]="value",Xr[14]="constant",Xr[15]="enum",Xr[16]="enum-member",Xr[17]="keyword",Xr[25]="snippet",Xr[18]="text",Xr[19]="color",Xr[20]="file",Xr[21]="reference",Xr[22]="customcolor",Xr[23]="folder",Xr[24]="type-parameter",function(e){return Xr[e]||"property";}),os=function(){var e=Object.create(null);return e.method=0,e.function=1,e.constructor=2,e.field=3,e.variable=4,e.class=5,e.struct=6,e.interface=7,e.module=8,e.property=9,e.event=10,e.operator=11,e.unit=12,e.value=13,e.constant=14,e.enum=15,e["enum-member"]=16,e.keyword=17,e.snippet=25,e.text=18,e.color=19,e.file=20,e.reference=21,e.customcolor=22,e.folder=23,e["type-parameter"]=24,function(t){return e[t]||"property";};}();!function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange";}(Zr||(Zr={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write";}(Qr||(Qr={}));var rs,ss=((rs=Object.create(null))[0]="file",rs[1]="module",rs[2]="namespace",rs[3]="package",rs[4]="class",rs[5]="method",rs[6]="property",rs[7]="field",rs[8]="constructor",rs[9]="enum",rs[10]="interface",rs[11]="function",rs[12]="variable",rs[13]="constant",rs[14]="string",rs[15]="number",rs[16]="boolean",rs[17]="array",rs[18]="object",rs[19]="key",rs[20]="null",rs[21]="enum-member",rs[22]="struct",rs[23]="event",rs[24]="operator",rs[25]="type-parameter",function(e){return"symbol-icon "+(rs[e]||"property");}),as=function(){function e(e){this.value=e;}return e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e;}();var us=new Jr(),ls=new Jr(),cs=new Jr(),ds=new Jr(),hs=new Jr(),ps=new Jr(),fs=new Jr(),gs=new Jr(),ms=new Jr(),_s=new Jr(),vs=new Jr(),ys=new Jr(),bs=new Jr(),Cs=new Jr(),ws=new Jr(),Ss=new Jr(),xs=new Jr(),Es=new Jr(),Ls=new es(),Ts=new(function(){function e(){}return e.prototype.clone=function(){return this;},e.prototype.equals=function(e){return this===e;},e;}())(),Is=new ts("vs.editor.nullMode",0);function Ns(e,t,n,i){return new on([new nn(i,"",e)],n);}function ks(e,t,n,i){var o=new Uint32Array(2);return o[0]=i,o[1]=(16384|e<<0|2<<23)>>>0,new rn(o,null===n?Ts:n);}var Os=dn("editorWorkerService"),Ds=dn("textModelService"),Rs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),As=self;void 0===As.Promise&&(As.Promise=ne);var Ms="$initialize",Ps=!1;function Fs(e){o.f&&(Ps||(Ps=!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(e.message));}var Ws=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null);}return e.prototype.setWorkerId=function(e){this._workerId=e;},e.prototype.sendMessage=function(e,t){var n=this,i=String(++this._lastSentReq);return new Promise(function(o,r){n._pendingReplies[i]={resolve:o,reject:r},n._send({vsWorker:n._workerId,req:i,method:e,args:t});});},e.prototype.handleMessage=function(e){var t;try{t=JSON.parse(e);}catch(e){return;}t&&t.vsWorker&&(-1!==this._workerId&&t.vsWorker!==this._workerId||this._handleMessage(t));},e.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return void console.warn("Got reply to unknown seq");var i=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var o=n.err;return n.err.$isError&&((o=new Error()).name=n.err.name,o.message=n.err.message,o.stack=n.err.stack),void i.reject(o);}i.resolve(n.res);}else{var r=e,s=r.req;this._handler.handleMessage(r.method,r.args).then(function(e){t._send({vsWorker:t._workerId,seq:s,res:e,err:void 0});},function(e){e.detail instanceof Error&&(e.detail=l(e.detail)),t._send({vsWorker:t._workerId,seq:s,res:void 0,err:l(e)});});}},e.prototype._send=function(e){var t=JSON.stringify(e);this._handler.sendMessage(t);},e;}(),Bs=function(e){function t(t,n){var i=e.call(this)||this,o=null;i._worker=i._register(t.create("vs/base/common/worker/simpleWorker",function(e){i._protocol.handleMessage(e);},function(e){o&&o(e);})),i._protocol=new Ws({sendMessage:function(e){i._worker.postMessage(e);},handleMessage:function(e,t){return Promise.resolve(null);}}),i._protocol.setWorkerId(i._worker.getId());var r=null;void 0!==self.require&&"function"==typeof self.require.getConfig?r=self.require.getConfig():void 0!==self.requirejs&&(r=self.requirejs.s.contexts._.config),i._onModuleLoaded=i._protocol.sendMessage(Ms,[i._worker.getId(),n,r]),i._lazyProxy=new Promise(function(e,t){o=t,i._onModuleLoaded.then(function(t){for(var n={},i=0;i<t.length;i++)n[t[i]]=a(t[i],s);e(n);},function(e){t(e),i._onError("Worker failed to load "+n,e);});});var s=function(e,t){return i._request(e,t);},a=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n);};};return i;}return Rs(t,e),t.prototype.getProxyObject=function(){return this._lazyProxy;},t.prototype._request=function(e,t){var n=this;return new Promise(function(i,o){n._onModuleLoaded.then(function(){n._protocol.sendMessage(e,t).then(i,o);},o);});},t.prototype._onError=function(e,t){console.error(e),console.info(t);},t;}(y);!function(){function e(e,t){var n=this;this._requestHandler=t,this._protocol=new Ws({sendMessage:function(t){e(t);},handleMessage:function(e,t){return n._handleMessage(e,t);}});}e.prototype.onmessage=function(e){this._protocol.handleMessage(e);},e.prototype._handleMessage=function(e,t){if(e===Ms)return this.initialize(t[0],t[1],t[2]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t));}catch(e){return Promise.reject(e);}},e.prototype.initialize=function(e,t,n){var i=this;if(this._protocol.setWorkerId(e),this._requestHandler){var o=[];for(var r in this._requestHandler)"function"==typeof this._requestHandler[r]&&o.push(r);return Promise.resolve(o);}return n&&(void 0!==n.baseUrl&&delete n.baseUrl,void 0!==n.paths&&void 0!==n.paths.vs&&delete n.paths.vs,n.catchError=!0,self.require.config(n)),new Promise(function(e,n){self.require([t],function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var r=t[0];if(i._requestHandler=r.create(),i._requestHandler){var s=[];for(var a in i._requestHandler)"function"==typeof i._requestHandler[a]&&s.push(a);e(s);}else n(new Error("No RequestHandler!"));},n);});};}();var Vs,Hs=function(){function e(e,t,n,i,r){this.id=t,this.worker=function(e,t){if(o.b.MonacoEnvironment){if("function"==typeof o.b.MonacoEnvironment.getWorker)return o.b.MonacoEnvironment.getWorker(e,t);if("function"==typeof o.b.MonacoEnvironment.getWorkerUrl)return new Worker(o.b.MonacoEnvironment.getWorkerUrl(e,t));}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker");}("workerMain.js",n),this.postMessage(e),this.worker.onmessage=function(e){i(e.data);},"function"==typeof this.worker.addEventListener&&this.worker.addEventListener("error",r);}return e.prototype.getId=function(){return this.id;},e.prototype.postMessage=function(e){this.worker&&this.worker.postMessage(e);},e.prototype.dispose=function(){this.worker&&this.worker.terminate(),this.worker=null;},e;}(),Us=function(){function e(e){this._label=e,this._webWorkerFailedBeforeError=!1;}return e.prototype.create=function(t,n,i){var o=this,r=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Hs(t,r,this._label||"anonymous"+r,n,function(e){Fs(e),o._webWorkerFailedBeforeError=e,i(e);});},e.LAST_WORKER_ID=0,e;}();!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent";}(Vs||(Vs={}));var js=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;}}}return e.prototype.isOK=function(e){return 0==(this._standardTokenMask&e);},e;}();function zs(e,t){for(var n=e.getCount(),i=e.findTokenIndexAtOffset(t),o=e.getLanguageId(i),r=i;r+1<n&&e.getLanguageId(r+1)===o;)r++;for(var s=i;s>0&&e.getLanguageId(s-1)===o;)s--;return new Ks(e,o,s,r+1,e.getStartOffset(s),e.getEndOffset(r));}var Ks=function(){function e(e,t,n,i,o,r){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=r;}return e.prototype.getLineContent=function(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset);},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex;},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex;},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex);},e;}();function qs(e){return 0!=(7&e);}var Gs=function(){function e(t){t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map(function(e){return new js(e);}):t.brackets?this._autoClosingPairs=t.brackets.map(function(e){return new js({open:e[0],close:e[1]});}):this._autoClosingPairs=[],this._autoCloseBefore="string"==typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs;}return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs;},e.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore;},e.prototype.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;for(var i=t.findTokenIndexAtOffset(n-2),o=t.getStandardTokenType(i),r=0;r<this._autoClosingPairs.length;++r){var s=this._autoClosingPairs[r];if(s.open===e)return s.isOK(o);}return!1;},e.prototype.getSurroundingPairs=function(){return this._surroundingPairs;},e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t",e;}(),$s=function(){return function(e,t,n,i,o){this.languageIdentifier=e,this.open=t,this.close=n,this.forwardRegex=i,this.reversedRegex=o;};}(),Ys=function(){return function(e,t){var n=this;this.brackets=t.map(function(t){return new $s(e,t[0],t[1],Zs({open:t[0],close:t[1]}),Qs({open:t[0],close:t[1]}));}),this.forwardRegex=Js(this.brackets),this.reversedRegex=ea(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};var i=0;this.brackets.forEach(function(e){n.textIsBracket[e.open.toLowerCase()]=e,n.textIsBracket[e.close.toLowerCase()]=e,n.textIsOpenBracket[e.open.toLowerCase()]=!0,n.textIsOpenBracket[e.close.toLowerCase()]=!1,i=Math.max(i,e.open.length),i=Math.max(i,e.close.length);}),this.maxBracketLength=i;};}();function Xs(e,t){var n={};return function(i){var o=e(i);return n.hasOwnProperty(o)||(n[o]=t(i)),n[o];};}var Zs=Xs(function(e){return e.open+";"+e.close;},function(e){return na([e.open,e.close]);}),Qs=Xs(function(e){return e.open+";"+e.close;},function(e){return na([ia(e.open),ia(e.close)]);}),Js=Xs(function(e){return e.map(function(e){return e.open+";"+e.close;}).join(";");},function(e){var t=[];return e.forEach(function(e){t.push(e.open),t.push(e.close);}),na(t);}),ea=Xs(function(e){return e.map(function(e){return e.open+";"+e.close;}).join(";");},function(e){var t=[];return e.forEach(function(e){t.push(ia(e.open)),t.push(ia(e.close));}),na(t);});function ta(e){var t=/^[\w]+$/.test(e);return e=io(e),t?"\\b"+e+"\\b":e;}function na(e){return uo("("+e.map(ta).join(")|(")+")",!0);}var ia=function(){var e=null,t=null;return function(n){return e!==n&&(t=function(e){for(var t="",n=e.length-1;n>=0;n--)t+=e.charAt(n);return t;}(e=n)),t;};}(),oa=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var r=n.length-(o.index||0),s=o[0].length,a=i+r;return new Jt(t,a-s+1,t,a+1);},e.findPrevBracketInToken=function(e,t,n,i,o){var r=ia(n).substring(n.length-o,n.length-i);return this._findPrevBracketInText(e,t,r,i);},e.findNextBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var r=o.index||0,s=o[0].length;if(0===s)return null;var a=i+r;return new Jt(t,a+1,t,a+1+s);},e.findNextBracketInToken=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i);},e;}(),ra=function(){function e(e,t,n){n=n||{},this._richEditBrackets=e,this._complexAutoClosePairs=t.filter(function(e){return e.open.length>1&&!!e.close;}).map(function(e){return new js(e);}),n.docComment&&this._complexAutoClosePairs.push(new js({open:n.docComment.open,close:n.docComment.close}));}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets.length;t<n;t++){var i=this._richEditBrackets.brackets[t],o=i.close.charAt(i.close.length-1);e.push(o);}for(var r=0,s=this._complexAutoClosePairs;r<s.length;r++){var a=s[r];e.push(a.open.charAt(a.open.length-1));}return e=e.filter(function(e,t,n){return n.indexOf(e)===t;});},e.prototype.onElectricCharacter=function(e,t,n){return this._onElectricAutoClose(e,t,n)||this._onElectricAutoIndent(e,t,n);},e.prototype._onElectricAutoIndent=function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var i=t.findTokenIndexAtOffset(n-1);if(qs(t.getStandardTokenType(i)))return null;var o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,n-1)+e,s=oa.findPrevBracketInToken(o,1,r,0,r.length);if(!s)return null;var a=r.substring(s.startColumn-1,s.endColumn-1);if(a=a.toLowerCase(),this._richEditBrackets.textIsOpenBracket[a])return null;var u=r.substring(0,s.startColumn-1);return /^\s*$/.test(u)?{matchOpenBracket:a}:null;},e.prototype._onElectricAutoClose=function(e,t,n){if(!this._complexAutoClosePairs.length)return null;for(var i=t.getLineContent(),o=0,r=this._complexAutoClosePairs.length;o<r;o++){var s=this._complexAutoClosePairs[o];if(e===s.open.charAt(s.open.length-1)){var a=n-s.open.length+1;if(i.substring(a-1,n-1)+e===s.open){var u=t.findTokenIndexAtOffset(n-1),l=t.getStandardTokenType(u);if(s.isOK(l)&&!(i.indexOf(s.close,n-1)>=0))return{appendText:s.close};}}}return null;},e;}(),sa=function(){function e(e){this._indentationRules=e;}return e.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e));},e.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e));},e.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e));},e.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e));},e.prototype.getIndentMetadata=function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t;},e;}(),aa=function(){function e(t){var n=this;(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach(function(t){var i=e._createOpenBracketRegExp(t[0]),o=e._createCloseBracketRegExp(t[1]);i&&o&&n._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:o});}),this._regExpRules=t.regExpRules||[];}return e.prototype.onEnter=function(e,t,n){for(var i=0,o=this._regExpRules.length;i<o;i++){var r=this._regExpRules[i];if([{reg:r.beforeText,text:t},{reg:r.afterText,text:n},{reg:r.oneLineAboveText,text:e}].every(function(e){return!e.reg||e.reg.test(e.text);}))return r.action;}if(t.length>0&&n.length>0)for(i=0,o=this._brackets.length;i<o;i++){if((s=this._brackets[i]).openRegExp.test(t)&&s.closeRegExp.test(n))return{indentAction:Vs.IndentOutdent};}if(t.length>0)for(i=0,o=this._brackets.length;i<o;i++){var s;if((s=this._brackets[i]).openRegExp.test(t))return{indentAction:Vs.Indent};}return null;},e._createOpenBracketRegExp=function(t){var n=io(t);return /\B/.test(n.charAt(0))||(n="\\b"+n),n+="\\s*$",e._safeRegExp(n);},e._createCloseBracketRegExp=function(t){var n=io(t);return /\B/.test(n.charAt(n.length-1))||(n+="\\b"),n="^\\s*"+n,e._safeRegExp(n);},e._safeRegExp=function(e){try{return new RegExp(e);}catch(e){return a(e),null;}},e;}(),ua=function(){function e(t,n,i){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var o=null;n&&(o=n._conf),this._conf=e._mergeConf(o,i),this.onEnter=e._handleOnEnter(this._conf),this.comments=e._handleComments(this._conf),this.characterPair=new Gs(this._conf),this.wordDefinition=this._conf.wordPattern||Re,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules&&(this.indentRulesSupport=new sa(this._conf.indentationRules)),this.foldingRules=this._conf.folding||{};}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new Ys(this._languageIdentifier,this._conf.brackets)),this._brackets;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){if(!this._electricCharacter){var e=[];this._conf.autoClosingPairs?e=this._conf.autoClosingPairs:this._conf.brackets&&(e=this._conf.brackets.map(function(e){return{open:e[0],close:e[1]};})),this._electricCharacter=new ra(this.brackets,e,this._conf.__electricCharacterSupport);}return this._electricCharacter;},enumerable:!0,configurable:!0}),e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport};},e._handleOnEnter=function(e){var t={},n=!0;return e.brackets&&(n=!1,t.brackets=e.brackets),e.indentationRules&&(n=!1),e.onEnterRules&&(n=!1,t.regExpRules=e.onEnterRules),n?null:new aa(t);},e._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){var i=t.blockComment,o=i[0],r=i[1];n.blockCommentStartToken=o,n.blockCommentEndToken=r;}return n;},e;}(),la=(function(){}(),new(function(){function e(){this._onDidChange=new N(),this.onDidChange=this._onDidChange.event,this._entries=[];}return e.prototype.register=function(e,t){var n=this,i=this._getRichEditSupport(e.id),o=new ua(e,i,t);return this._entries[e.id]=o,this._onDidChange.fire({languageIdentifier:e}),m(function(){n._entries[e.id]===o&&(n._entries[e.id]=i,n._onDidChange.fire({languageIdentifier:e}));});},e.prototype._getRichEditSupport=function(e){return this._entries[e]||null;},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null;},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[];},e.prototype.onElectricCharacter=function(e,t,n){var i=zs(t,n-1),o=this._getElectricCharacterSupport(i.languageId);return o?o.onElectricCharacter(e,i,n-i.firstCharOffset):null;},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t&&t.comments||null;},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null;},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[];},e.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():Gs.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED;},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[];},e.prototype.shouldAutoClosePair=function(e,t,n){var i=zs(t,n-1),o=this._getCharacterPairSupport(i.languageId);return!!o&&o.shouldAutoClosePair(e,i,n-i.firstCharOffset);},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return Ae(t&&t.wordDefinition||null);},e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{};},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null;},e.prototype.getPrecedingValidLine=function(e,t,n){var i=e.getLanguageIdAtPosition(t,0);if(t>1){var o=t-1,r=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==i)return r;var s=e.getLineContent(o);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return o;r=o;}}return-1;},e.prototype.getInheritIndentForLine=function(e,t,n){void 0===n&&(n=!0);var i=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!i)return null;if(t<=1)return{indentation:"",action:null};var o=this.getPrecedingValidLine(e,t,i);if(o<0)return null;if(o<1)return{indentation:"",action:null};var r=e.getLineContent(o);if(i.shouldIncrease(r)||i.shouldIndentNextLine(r))return{indentation:co(r),action:Vs.Indent,line:o};if(i.shouldDecrease(r))return{indentation:co(r),action:null,line:o};if(1===o)return{indentation:co(e.getLineContent(o)),action:null,line:o};var s=o-1,a=i.getIndentMetadata(e.getLineContent(s));if(!(3&a)&&4&a){for(var u=0,l=s-1;l>0;l--)if(!i.shouldIndentNextLine(e.getLineContent(l))){u=l;break;}return{indentation:co(e.getLineContent(u+1)),action:null,line:u+1};}if(n)return{indentation:co(e.getLineContent(o)),action:null,line:o};for(l=o;l>0;l--){var c=e.getLineContent(l);if(i.shouldIncrease(c))return{indentation:co(c),action:Vs.Indent,line:l};if(i.shouldIndentNextLine(c)){u=0;for(var d=l-1;d>0;d--)if(!i.shouldIndentNextLine(e.getLineContent(l))){u=d;break;}return{indentation:co(e.getLineContent(u+1)),action:null,line:u+1};}if(i.shouldDecrease(c))return{indentation:co(c),action:null,line:l};}return{indentation:co(e.getLineContent(1)),action:null,line:1};},e.prototype.getGoodIndentForLine=function(e,t,n,i){var o=this.getIndentRulesSupport(t);if(!o)return null;var r=this.getInheritIndentForLine(e,n),s=e.getLineContent(n);if(r){var u=r.line;if(void 0!==u){var l=this._getOnEnterSupport(t),c=null;try{l&&(c=l.onEnter("",e.getLineContent(u),""));}catch(e){a(e);}if(c){var d=co(e.getLineContent(u));return c.removeText&&(d=d.substring(0,d.length-c.removeText)),c.indentAction===Vs.Indent||c.indentAction===Vs.IndentOutdent?d=i.shiftIndent(d):c.indentAction===Vs.Outdent&&(d=i.unshiftIndent(d)),o.shouldDecrease(s)&&(d=i.unshiftIndent(d)),c.appendText&&(d+=c.appendText),co(d);}}return o.shouldDecrease(s)?r.action===Vs.Indent?r.indentation:i.unshiftIndent(r.indentation):r.action===Vs.Indent?i.shiftIndent(r.indentation):r.indentation;}return null;},e.prototype.getIndentForEnter=function(e,t,n,i){e.forceTokenization(t.startLineNumber);var o,r,s=e.getLineTokens(t.startLineNumber),a=zs(s,t.startColumn-1),u=a.getLineContent(),l=!1;(a.firstCharOffset>0&&s.getLanguageId(0)!==a.languageId?(l=!0,o=u.substr(0,t.startColumn-1-a.firstCharOffset)):o=s.getLineContent().substring(0,t.startColumn-1),t.isEmpty())?r=u.substr(t.startColumn-1-a.firstCharOffset):r=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-a.firstCharOffset);var c=this.getIndentRulesSupport(a.languageId);if(!c)return null;var d=o,h=co(o);if(!i&&!l){var p=this.getInheritIndentForLine(e,t.startLineNumber);c.shouldDecrease(o)&&p&&(h=p.indentation,p.action!==Vs.Indent&&(h=n.unshiftIndent(h))),d=h+oo(oo(o," "),"\t");}var f={getLineTokens:function(t){return e.getLineTokens(t);},getLanguageIdentifier:function(){return e.getLanguageIdentifier();},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n);},getLineContent:function(n){return n===t.startLineNumber?d:e.getLineContent(n);}},g=co(s.getLineContent()),m=this.getInheritIndentForLine(f,t.startLineNumber+1);if(!m){var _=l?g:h;return{beforeEnter:_,afterEnter:_};}var v=l?g:m.indentation;return m.action===Vs.Indent&&(v=n.shiftIndent(v)),c.shouldDecrease(r)&&(v=n.unshiftIndent(v)),{beforeEnter:l?g:h,afterEnter:v};},e.prototype.getIndentActionForType=function(e,t,n,i){var o=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),r=this.getIndentRulesSupport(o.languageId);if(!r)return null;var s,a=o.getLineContent(),u=a.substr(0,t.startColumn-1-o.firstCharOffset);t.isEmpty()?s=a.substr(t.startColumn-1-o.firstCharOffset):s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-o.firstCharOffset);if(!r.shouldDecrease(u+s)&&r.shouldDecrease(u+n+s)){var l=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!l)return null;var c=l.indentation;return l.action!==Vs.Indent&&(c=i.unshiftIndent(c)),c;}return null;},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null;},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null;},e.prototype.getRawEnterActionAtPosition=function(e,t,n){var i=this.getEnterAction(e,new Jt(t,n,t,n));return i?i.enterAction:null;},e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this._getOnEnterSupport(i.languageId);if(!o)return null;var r,s=i.getLineContent(),u=s.substr(0,t.startColumn-1-i.firstCharOffset);t.isEmpty()?r=s.substr(t.startColumn-1-i.firstCharOffset):r=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset);var l=t.startLineNumber,c="";if(l>1&&0===i.firstCharOffset){var d=this.getScopedLineTokens(e,l-1);d.languageId===i.languageId&&(c=d.getLineContent());}var h=null;try{h=o.onEnter(c,u,r);}catch(e){a(e);}return h?(h.appendText||(h.indentAction===Vs.Indent||h.indentAction===Vs.IndentOutdent?h.appendText="\t":h.appendText=""),h.removeText&&(n=n.substring(0,n.length-h.removeText)),{enterAction:h,indentation:n}):null;},e.prototype.getIndentationAtPosition=function(e,t,n){var i=co(e.getLineContent(t));return i.length>n-1&&(i=i.substring(0,n-1)),i;},e.prototype.getScopedLineTokens=function(e,t,n){return e.forceTokenization(t),zs(e.getLineTokens(t),void 0===n?e.getLineMaxColumn(t)-1:n-1);},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null;},e;}())()),ca=function(){function e(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i;}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength;},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength;},e;}();function da(e){return{getLength:function(){return e.length;},getElementAtIndex:function(t){return e.charCodeAt(t);}};}function ha(e,t,n){return new ma(da(e),da(t)).ComputeDiff(n);}var pa=function(){function e(){}return e.Assert=function(e,t){if(!e)throw new Error(t);},e;}(),fa=function(){function e(){}return e.Copy=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r];},e;}(),ga=function(){function e(){this.m_changes=[],this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE,this.m_originalCount=0,this.m_modifiedCount=0;}return e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new ca(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE;},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++;},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++;},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes;},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes;},e;}(),ma=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_forwardHistory=[],this.m_reverseHistory=[];}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t);},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t);},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t);},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e);},e.prototype._ComputeDiff=function(e,t,n,i,o){var r=this.ComputeDiffRecursive(e,t,n,i,[!1]);return o?this.PrettifyChanges(r):r;},e.prototype.ComputeDiffRecursive=function(e,t,n,i,o){for(o[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){var r=void 0;return n<=i?(pa.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new ca(e,0,n,i-n+1)]):e<=t?(pa.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new ca(e,t-e+1,n,0)]):(pa.Assert(e===t+1,"originalStart should only be one more than originalEnd"),pa.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r;}var s=[0],a=[0],u=this.ComputeRecursionPoint(e,t,n,i,s,a,o),l=s[0],c=a[0];if(null!==u)return u;if(!o[0]){var d=this.ComputeDiffRecursive(e,l,n,c,o),h=[];return h=o[0]?[new ca(l+1,t-(l+1)+1,c+1,i-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,i,o),this.ConcatenateChanges(d,h);}return[new ca(e,t-e+1,n,i-n+1)];},e.prototype.WALKTRACE=function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,m,_){var v,y,b=null,C=new ga(),w=t,S=n,x=h[0]-g[0]-i,E=Number.MIN_VALUE,L=this.m_forwardHistory.length-1;do{(y=x+e)===w||y<S&&u[y-1]<u[y+1]?(p=(c=u[y+1])-x-i,c<E&&C.MarkNextChange(),E=c,C.AddModifiedElement(c+1,p),x=y+1-e):(p=(c=u[y-1]+1)-x-i,c<E&&C.MarkNextChange(),E=c-1,C.AddOriginalElement(c,p+1),x=y-1-e),L>=0&&(e=(u=this.m_forwardHistory[L])[0],w=1,S=u.length-1);}while(--L>=-1);if(v=C.getReverseChanges(),_[0]){var T=h[0]+1,I=g[0]+1;if(null!==v&&v.length>0){var N=v[v.length-1];T=Math.max(T,N.getOriginalEnd()),I=Math.max(I,N.getModifiedEnd());}b=[new ca(T,d-T+1,I,f-I+1)];}else{C=new ga(),w=r,S=s,x=h[0]-g[0]-a,E=Number.MAX_VALUE,L=m?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(y=x+o)===w||y<S&&l[y-1]>=l[y+1]?(p=(c=l[y+1]-1)-x-a,c>E&&C.MarkNextChange(),E=c+1,C.AddOriginalElement(c+1,p+1),x=y+1-o):(p=(c=l[y-1])-x-a,c>E&&C.MarkNextChange(),E=c,C.AddModifiedElement(c+1,p+1),x=y-1-o),L>=0&&(o=(l=this.m_reverseHistory[L])[0],w=1,S=l.length-1);}while(--L>=-1);b=C.getChanges();}return this.ConcatenateChanges(v,b);},e.prototype.ComputeRecursionPoint=function(e,t,n,i,o,r,s){var a,u=0,l=0,c=0,d=0,h=0,p=0;e--,n--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var f,g,m=t-e+(i-n),_=m+1,v=new Array(_),y=new Array(_),b=i-n,C=t-e,w=e-n,S=t-i,x=(C-b)%2==0;for(v[b]=e,y[C]=t,s[0]=!1,a=1;a<=m/2+1;a++){var E=0,L=0;for(c=this.ClipDiagonalBound(b-a,a,b,_),d=this.ClipDiagonalBound(b+a,a,b,_),f=c;f<=d;f+=2){for(l=(u=f===c||f<d&&v[f-1]<v[f+1]?v[f+1]:v[f-1]+1)-(f-b)-w,g=u;u<t&&l<i&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(v[f]=u,u+l>E+L&&(E=u,L=l),!x&&Math.abs(f-C)<=a-1&&u>=y[f])return o[0]=u,r[0]=l,g<=y[f]&&a<=1448?this.WALKTRACE(b,c,d,w,C,h,p,S,v,y,u,t,o,l,i,r,x,s):null;}var T=(E-e+(L-n)-a)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(E,this.OriginalSequence,T))return s[0]=!0,o[0]=E,r[0]=L,T>0&&a<=1448?this.WALKTRACE(b,c,d,w,C,h,p,S,v,y,u,t,o,l,i,r,x,s):[new ca(++e,t-e+1,++n,i-n+1)];for(h=this.ClipDiagonalBound(C-a,a,C,_),p=this.ClipDiagonalBound(C+a,a,C,_),f=h;f<=p;f+=2){for(l=(u=f===h||f<p&&y[f-1]>=y[f+1]?y[f+1]-1:y[f-1])-(f-C)-S,g=u;u>e&&l>n&&this.ElementsAreEqual(u,l);)u--,l--;if(y[f]=u,x&&Math.abs(f-b)<=a&&u<=v[f])return o[0]=u,r[0]=l,g>=v[f]&&a<=1448?this.WALKTRACE(b,c,d,w,C,h,p,S,v,y,u,t,o,l,i,r,x,s):null;}if(a<=1447){var I=new Array(d-c+2);I[0]=b-c+1,fa.Copy(v,c,I,1,d-c+1),this.m_forwardHistory.push(I),(I=new Array(p-h+2))[0]=C-h+1,fa.Copy(y,h,I,1,p-h+1),this.m_reverseHistory.push(I);}}return this.WALKTRACE(b,c,d,w,C,h,p,S,v,y,u,t,o,l,i,r,x,s);},e.prototype.PrettifyChanges=function(e){for(var t=0;t<e.length;t++){for(var n=e[t],i=t<e.length-1?e[t+1].originalStart:this.OriginalSequence.getLength(),o=t<e.length-1?e[t+1].modifiedStart:this.ModifiedSequence.getLength(),r=n.originalLength>0,s=n.modifiedLength>0;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<o&&(!r||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));)n.originalStart++,n.modifiedStart++;var a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--);}for(t=e.length-1;t>=0;t--){n=e[t],i=0,o=0;if(t>0){var u=e[t-1];u.originalLength>0&&(i=u.originalStart+u.originalLength),u.modifiedLength>0&&(o=u.modifiedStart+u.modifiedLength);}r=n.originalLength>0,s=n.modifiedLength>0;for(var l=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,p=n.modifiedStart-d;if(h<i||p<o)break;if(r&&!this.OriginalElementsAreEqual(h,h+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(p,p+n.modifiedLength))break;var f=this._boundaryScore(h,n.originalLength,p,n.modifiedLength);f>c&&(c=f,l=d);}n.originalStart-=l,n.modifiedStart-=l;}return e;},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t);},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0;}return!1;},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t);},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0;}return!1;},e.prototype._boundaryScore=function(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0);},e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var i=new Array(e.length+t.length-1);return fa.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],fa.Copy(t,1,i,e.length,t.length-1),i;}i=new Array(e.length+t.length);return fa.Copy(e,0,i,0,e.length),fa.Copy(t,0,i,e.length,t.length),i;},e.prototype.ChangesOverlap=function(e,t,n){if(pa.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),pa.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var i=e.originalStart,o=e.originalLength,r=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new ca(i,o,r,s),!0;}return n[0]=null,!1;},e.prototype.ClipDiagonalBound=function(e,t,n,i){if(e>=0&&e<i)return e;var o=t%2==0;return e<0?o===(n%2==0)?0:1:o===((i-n-1)%2==0)?i-1:i-2;},e;}(),_a=5e3,va=3;function ya(e,t,n,i){return new ma(e,t,n).ComputeDiff(i);}var ba=function(){function e(t){for(var n=[],i=[],o=0,r=t.length;o<r;o++)n[o]=e._getFirstNonBlankColumn(t[o],1),i[o]=e._getLastNonBlankColumn(t[o],1);this._lines=t,this._startColumns=n,this._endColumns=i;}return e.prototype.getLength=function(){return this._lines.length;},e.prototype.getElementAtIndex=function(e){return this._lines[e].substring(this._startColumns[e]-1,this._endColumns[e]-1);},e.prototype.getStartLineNumber=function(e){return e+1;},e.prototype.getEndLineNumber=function(e){return e+1;},e._getFirstNonBlankColumn=function(e,t){var n=lo(e);return-1===n?t:n+1;},e._getLastNonBlankColumn=function(e,t){var n=ho(e);return-1===n?t:n+2;},e.prototype.getCharSequence=function(e,t,n){for(var i=[],o=[],r=[],s=0,a=t;a<=n;a++)for(var u=this._lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:u.length+1,d=l;d<c;d++)i[s]=u.charCodeAt(d-1),o[s]=a+1,r[s]=d,s++;return new Ca(i,o,r);},e;}(),Ca=function(){function e(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n;}return e.prototype.getLength=function(){return this._charCodes.length;},e.prototype.getElementAtIndex=function(e){return this._charCodes[e];},e.prototype.getStartLineNumber=function(e){return this._lineNumbers[e];},e.prototype.getStartColumn=function(e){return this._columns[e];},e.prototype.getEndLineNumber=function(e){return this._lineNumbers[e];},e.prototype.getEndColumn=function(e){return this._columns[e]+1;},e;}(),wa=function(){function e(e,t,n,i,o,r,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=o,this.modifiedStartColumn=r,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a;}return e.createFromDiffChange=function(t,n,i){var o,r,s,a,u,l,c,d;return 0===t.originalLength?(o=0,r=0,s=0,a=0):(o=n.getStartLineNumber(t.originalStart),r=n.getStartColumn(t.originalStart),s=n.getEndLineNumber(t.originalStart+t.originalLength-1),a=n.getEndColumn(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=0,l=0,c=0,d=0):(u=i.getStartLineNumber(t.modifiedStart),l=i.getStartColumn(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=i.getEndColumn(t.modifiedStart+t.modifiedLength-1)),new e(o,r,s,a,u,l,c,d);},e;}();var Sa=function(){function e(e,t,n,i,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=o;}return e.createFromDiffResult=function(t,n,i,o,r,s,a){var u,l,c,d,h=void 0;if(0===n.originalLength?(u=i.getStartLineNumber(n.originalStart)-1,l=0):(u=i.getStartLineNumber(n.originalStart),l=i.getEndLineNumber(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(c=o.getStartLineNumber(n.modifiedStart)-1,d=0):(c=o.getStartLineNumber(n.modifiedStart),d=o.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),s&&0!==n.originalLength&&0!==n.modifiedLength&&r()){var p=i.getCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),f=o.getCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),g=ya(p,f,r,!0);a&&(g=function(e){if(e.length<=1)return e;for(var t=[e[0]],n=t[0],i=1,o=e.length;i<o;i++){var r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),a=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,a)<va?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r);}return t;}(g)),h=[];for(var m=0,_=g.length;m<_;m++)h.push(wa.createFromDiffChange(g[m],p,f));}return new e(u,l,c,d,h);},e;}(),xa=function(){function e(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.maximumRunTimeMs=_a,this.originalLines=e,this.modifiedLines=t,this.original=new ba(e),this.modified=new ba(t);}return e.prototype.computeDiff=function(){if(1===this.original.getLength()&&0===this.original.getElementAtIndex(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.getLength(),charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];if(1===this.modified.getLength()&&0===this.modified.getElementAtIndex(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:this.original.getLength(),modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];this.computationStartTime=new Date().getTime();var e=ya(this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldMakePrettyDiff);if(this.shouldIgnoreTrimWhitespace){for(var t=[],n=0,i=e.length;n<i;n++)t.push(Sa.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e[n],this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return t;}for(var o=[],r=0,s=0,a=(n=-1,e.length);n<a;n++){for(var u=n+1<a?e[n+1]:null,l=u?u.originalStart:this.originalLines.length,c=u?u.modifiedStart:this.modifiedLines.length;r<l&&s<c;){var d=this.originalLines[r],h=this.modifiedLines[s];if(d!==h){for(var p=ba._getFirstNonBlankColumn(d,1),f=ba._getFirstNonBlankColumn(h,1);p>1&&f>1;){if(d.charCodeAt(p-2)!==h.charCodeAt(f-2))break;p--,f--;}(p>1||f>1)&&this._pushTrimWhitespaceCharChange(o,r+1,1,p,s+1,1,f);for(var g=ba._getLastNonBlankColumn(d,1),m=ba._getLastNonBlankColumn(h,1),_=d.length+1,v=h.length+1;g<_&&m<v;){if(d.charCodeAt(g-1)!==d.charCodeAt(m-1))break;g++,m++;}(g<_||m<v)&&this._pushTrimWhitespaceCharChange(o,r+1,g,_,s+1,m,v);}r++,s++;}u&&(o.push(Sa.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=u.originalLength,s+=u.modifiedLength);}return o;},e.prototype._pushTrimWhitespaceCharChange=function(e,t,n,i,o,r,s){if(!this._mergeTrimWhitespaceCharChange(e,t,n,i,o,r,s)){var a=void 0;this.shouldComputeCharChanges&&(a=[new wa(t,n,t,i,o,r,o,s)]),e.push(new Sa(t,t,o,o,a));}},e.prototype._mergeTrimWhitespaceCharChange=function(e,t,n,i,o,r,s){var a=e.length;if(0===a)return!1;var u=e[a-1];return 0!==u.originalEndLineNumber&&0!==u.modifiedEndLineNumber&&u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===o&&(u.originalEndLineNumber=t,u.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&u.charChanges.push(new wa(t,n,t,i,o,r,o,s)),!0);},e.prototype._continueProcessingPredicate=function(){return 0===this.maximumRunTimeMs||new Date().getTime()-this.computationStartTime<this.maximumRunTimeMs;},e;}(),Ea=function(){function e(e,t,n){for(var i=new Uint8Array(e*t),o=0,r=e*t;o<r;o++)i[o]=n;this._data=i,this.rows=e,this.cols=t;}return e.prototype.get=function(e,t){return this._data[e*this.cols+t];},e.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n;},e;}();function La(e){return e<0?0:e>255?255:0|e;}function Ta(e){return e<0?0:e>4294967295?4294967295:0|e;}var Ia=function(){return function(e,t){this.index=e,this.remainder=t;};}(),Na=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1;}return e.prototype.getCount=function(){return this.values.length;},e.prototype.insertValues=function(e,t){e=Ta(e);var n=this.values,i=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0);},e.prototype.changeValue=function(e,t){return e=Ta(e),t=Ta(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0);},e.prototype.removeValues=function(e,t){e=Ta(e),t=Ta(t);var n=this.values,i=this.prefixSum;if(e>=n.length)return!1;var o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0);},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1);},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=Ta(e),this._getAccumulatedValue(e));},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e];},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,n=this.values.length-1,i=0,o=0,r=0;t<=n;)if(i=t+(n-t)/2|0,e<(r=(o=this.prefixSum[i])-this.values[i]))n=i-1;else{if(!(e>=o))break;t=i+1;}return new Ia(i,e-r);},e;}(),ka=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new Na(e),this._bustCache();}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null;},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache();},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache();},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache();},e.prototype.getTotalValue=function(){return this._actual.getTotalValue();},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e);},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t<this._cache.length)return this._cache[t];}return this._actual.getIndexOf(e);},e.prototype.warmUpCache=function(e,t){for(var n=[],i=e;i<=t;i++)n[i-e]=this.getIndexOf(i);this._cache=n,this._cacheAccumulatedValueStart=e;},e;}(),Oa=function(){function e(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null;}return e.prototype.dispose=function(){this._lines.length=0;},e.prototype.getText=function(){return this._lines.join(this._eol);},e.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=e.changes,n=0,i=t.length;n<i;n++){var o=t[n];this._acceptDeleteRange(o.range),this._acceptInsertText(new Qt(o.range.startLineNumber,o.range.startColumn),o.text);}this._versionId=e.versionId;},e.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var e=this._eol.length,t=this._lines.length,n=new Uint32Array(t),i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new Na(n);}},e.prototype._setLineText=function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length);},e.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));}},e.prototype._acceptInsertText=function(e,t){if(0!==t.length){var n=t.split(/\r\n|\r|\n/);if(1!==n.length){n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);for(var i=new Uint32Array(n.length-1),o=1;o<n.length;o++)this._lines.splice(e.lineNumber+o-1,0,n[o]),i[o-1]=n[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i);}else this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));}},e;}(),Da=function(){function e(t){var n=La(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map();}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t;},e.prototype.set=function(e,t){var n=La(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n);},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue;},e;}(),Ra=function(){function e(){this._actual=new Da(0);}return e.prototype.add=function(e){this._actual.set(e,1);},e.prototype.has=function(e){return 1===this._actual.get(e);},e;}(),Aa=function(){function e(e){for(var t=0,n=0,i=0,o=e.length;i<o;i++){var r=e[i],s=r[0];(l=r[1])>t&&(t=l),s>n&&(n=s),(c=r[2])>n&&(n=c);}var a=new Ea(++n,++t,0);for(i=0,o=e.length;i<o;i++){var u=e[i],l=(s=u[0],u[1]),c=u[2];a.set(s,l,c);}this._states=a,this._maxCharCode=t;}return e.prototype.nextState=function(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t);},e;}(),Ma=null;var Pa=null;var Fa=function(){function e(){}return e._createLink=function(e,t,n,i,o){var r=o-1;do{var s=t.charCodeAt(r);if(2!==e.get(s))break;r--;}while(r>i);if(i>0){var a=t.charCodeAt(i-1),u=t.charCodeAt(r);(40===a&&41===u||91===a&&93===u||123===a&&125===u)&&r--;}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:r+2},url:t.substring(i,r+1)};},e.computeLinks=function(t){for(var n=(null===Ma&&(Ma=new Aa([[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]])),Ma),i=function(){if(null===Pa){Pa=new Da(0);for(var e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)Pa.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(e=0;e<".,;".length;e++)Pa.set(".,;".charCodeAt(e),2);}return Pa;}(),o=[],r=1,s=t.getLineCount();r<=s;r++){for(var a=t.getLineContent(r),u=a.length,l=0,c=0,d=0,h=1,p=!1,f=!1,g=!1;l<u;){var m=!1,_=a.charCodeAt(l);if(13===h){var v=void 0;switch(_){case 40:p=!0,v=0;break;case 41:v=p?0:1;break;case 91:f=!0,v=0;break;case 93:v=f?0:1;break;case 123:g=!0,v=0;break;case 125:v=g?0:1;break;case 39:v=34===d||96===d?0:1;break;case 34:v=39===d||96===d?0:1;break;case 96:v=39===d||34===d?0:1;break;default:v=i.get(_);}1===v&&(o.push(e._createLink(i,a,r,c,l)),m=!0);}else if(12===h){1===(v=i.get(_))?m=!0:h=13;}else 0===(h=n.nextState(h,_))&&(m=!0);m&&(h=1,p=!1,f=!1,g=!1,c=l+1,d=_),l++;}13===h&&o.push(e._createLink(i,a,r,c,u));}return o;},e;}();var Wa=function(){function e(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]];}return e.prototype.navigateValueSet=function(e,t,n,i,o){var r;if(e&&t&&(r=this.doNavigateValueSet(t,o)))return{range:e,value:r};if(n&&i&&(r=this.doNavigateValueSet(i,o)))return{range:n,value:r};return null;},e.prototype.doNavigateValueSet=function(e,t){var n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t);},e.prototype.numberReplace=function(e,t){var n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),o=parseFloat(e);return isNaN(i)||isNaN(o)||i!==o?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null;},e.prototype.textReplace=function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t);},e.prototype.valueSetsReplace=function(e,t,n){for(var i=null,o=0,r=e.length;null===i&&o<r;o++)i=this.valueSetReplace(e[o],t,n);return i;},e.prototype.valueSetReplace=function(e,t,n){var i=e.indexOf(t);return i>=0?((i+=n?1:-1)<0?i=e.length-1:i%=e.length,e[i]):null;},e.INSTANCE=new e(),e;}(),Ba=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Va=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return Ba(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol;},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText();},t.prototype.getLinesContent=function(){return this._lines.slice(0);},t.prototype.getLineCount=function(){return this._lines.length;},t.prototype.getLineContent=function(e){return this._lines[e-1];},t.prototype.getWordAtPosition=function(e,t){var n=Me(e.column,Ae(t),this._lines[e.lineNumber-1],0);return n?new Jt(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null;},t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column};},t.prototype.createWordIterator=function(e){var t,n,i=this,o=0,r=0,s=[],a=function(){if(r<s.length){var u=n.substring(s[r].start,s[r].end);return r+=1,t?t.value=u:t={done:!1,value:u},t;}return o>=i._lines.length?w:(n=i._lines[o],s=i._wordenize(n,e),r=0,o+=1,a());};return{next:a};},t.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],i=[],o=0,r=this._wordenize(n,t);o<r.length;o++){var s=r[o];i.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});}return i;},t.prototype._wordenize=function(e,t){var n,i=[];for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)i.push({start:n.index,end:n.index+n[0].length});return i;},t.prototype.getValueInRange=function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(var r=n+1;r<i;r++)o.push(this._lines[r]);return o.push(this._lines[i].substring(0,e.endColumn-1)),o.join(t);},t.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1);},t.prototype.positionAt=function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)};},t.prototype._validateRange=function(e){var t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e;},t.prototype._validatePosition=function(e){if(!Qt.isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{var o=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>o&&(n=o,i=!0);}return i?{lineNumber:t,column:n}:e;},t;}(Oa),Ha=function(e){function t(t){var n=e.call(this,t)||this;return n._models=Object.create(null),n;}return Ba(t,e),t.prototype.dispose=function(){this._models=Object.create(null);},t.prototype._getModel=function(e){return this._models[e];},t.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach(function(n){return t.push(e._models[n]);}),t;},t.prototype.acceptNewModel=function(e){this._models[e.url]=new Va(_t.parse(e.url),e.lines,e.EOL,e.versionId);},t.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t);},t.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e];},t;}(function(){function e(e){this._foreignModuleFactory=e,this._foreignModule=null;}return e.prototype.computeDiff=function(e,t,n){var i=this._getModel(e),o=this._getModel(t);if(!i||!o)return Promise.resolve(null);var r=i.getLinesContent(),s=o.getLinesContent(),a=new xa(r,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0}).computeDiff(),u=!(a.length>0)&&this._modelsAreIdentical(i,o);return Promise.resolve({identical:u,changes:a});},e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount();if(n!==t.getLineCount())return!1;for(var i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1;}return!0;},e.prototype.computeMoreMinimalEdits=function(t,n){var i=this._getModel(t);if(!i)return Promise.resolve(n);for(var o=[],r=void 0,s=0,a=n=ae(n,function(e,t){return e.range&&t.range?Jt.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1);});s<a.length;s++){var u=a[s],l=u.range,c=u.text,d=u.eol;if("number"==typeof d&&(r=d),l){var h=i.getValueInRange(l);if(h!==(c=c.replace(/\r\n|\n|\r/g,i.eol)))if(Math.max(c.length,h.length)>e._diffLimit)o.push({range:l,text:c});else for(var p=ha(h,c,!1),f=i.offsetAt(Jt.lift(l).getStartPosition()),g=0,m=p;g<m.length;g++){var _=m[g],v=i.positionAt(f+_.originalStart),y=i.positionAt(f+_.originalStart+_.originalLength),b={text:c.substr(_.modifiedStart,_.modifiedLength),range:{startLineNumber:v.lineNumber,startColumn:v.column,endLineNumber:y.lineNumber,endColumn:y.column}};i.getValueInRange(b.range)!==b.text&&o.push(b);}}}return"number"==typeof r&&o.push({eol:r,text:void 0,range:void 0}),Promise.resolve(o);},e.prototype.computeLinks=function(e){var t=this._getModel(e);return t?Promise.resolve(function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?Fa.computeLinks(e):[];}(t)):Promise.resolve(null);},e.prototype.textualSuggest=function(t,n,i,o){var r=this._getModel(t);if(!r)return Promise.resolve(null);var s=[],a=new RegExp(i,o),u=r.getWordUntilPosition(n,a),l=Object.create(null);l[u.word]=!0;for(var c=r.createWordIterator(a),d=c.next();!d.done&&s.length<=e._suggestionsLimit;d=c.next()){var h=d.value;l[h]||(l[h]=!0,isNaN(Number(h))&&s.push({kind:18,label:h,insertText:h,range:{startLineNumber:n.lineNumber,startColumn:u.startColumn,endLineNumber:n.lineNumber,endColumn:u.endColumn}}));}return Promise.resolve({suggestions:s});},e.prototype.computeWordRanges=function(e,t,n,i){var o=this._getModel(e);if(!o)return Promise.resolve(Object.create(null));for(var r=new RegExp(n,i),s=Object.create(null),a=t.startLineNumber;a<t.endLineNumber;a++)for(var u=0,l=o.getLineWords(a,r);u<l.length;u++){var c=l[u];if(isNaN(Number(c.word))){var d=s[c.word];d||(d=[],s[c.word]=d),d.push({startLineNumber:a,startColumn:c.startColumn,endLineNumber:a,endColumn:c.endColumn});}}return Promise.resolve(s);},e.prototype.navigateValueSet=function(e,t,n,i,o){var r=this._getModel(e);if(!r)return Promise.resolve(null);var s=new RegExp(i,o);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});var a=r.getValueInRange(t),u=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!u)return Promise.resolve(null);var l=r.getValueInRange(u),c=Wa.INSTANCE.navigateValueSet(t,a,u,l,n);return Promise.resolve(c);},e.prototype.loadForeignModule=function(e,t){var n=this,i={getMirrorModels:function(){return n._getModels();}};if(this._foreignModuleFactory){this._foreignModule=this._foreignModuleFactory(i,t);var o=[];for(var r in this._foreignModule)"function"==typeof this._foreignModule[r]&&o.push(r);return Promise.resolve(o);}return Promise.reject(new Error("Unexpected usage"));},e.prototype.fmr=function(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t));}catch(e){return Promise.reject(e);}},e._diffLimit=1e4,e._suggestionsLimit=1e4,e;}());"function"==typeof importScripts&&(o.b.monaco=an());var Ua=dn("textResourceConfigurationService"),ja=dn("textResourcePropertiesService"),za=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Ka=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},qa=function(e,t){return function(n,i){t(n,i,e);};},Ga=6e4,$a=3e5;function Ya(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing();}var Xa=function(e){function t(t,n){var i=e.call(this)||this;return i._modelService=t,i._workerManager=i._register(new Qa(i._modelService)),i._register(Ss.register("*",{provideLinks:function(e,t){return Ya(i._modelService,e.uri)?i._workerManager.withWorker().then(function(t){return t.computeLinks(e.uri);}):Promise.resolve([]);}})),i._register(cs.register("*",new Za(i._workerManager,n,i._modelService))),i;}return za(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype.canComputeDiff=function(e,t){return Ya(this._modelService,e)&&Ya(this._modelService,t);},t.prototype.computeDiff=function(e,t,n){return this._workerManager.withWorker().then(function(i){return i.computeDiff(e,t,n);});},t.prototype.computeMoreMinimalEdits=function(e,t){return Array.isArray(t)&&0!==t.length&&Ya(this._modelService,e)?this._workerManager.withWorker().then(function(n){return n.computeMoreMinimalEdits(e,t);}):Promise.resolve(t);},t.prototype.canNavigateValueSet=function(e){return Ya(this._modelService,e);},t.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then(function(i){return i.navigateValueSet(e,t,n);});},t.prototype.canComputeWordRanges=function(e){return Ya(this._modelService,e);},t.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then(function(n){return n.computeWordRanges(e,t);});},t=Ka([qa(0,Gr),qa(1,Ua)],t);}(y),Za=function(){function e(e,t,n){this._workerManager=e,this._configurationService=t,this._modelService=n;}return e.prototype.provideCompletionItems=function(e,t){if(this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions&&Ya(this._modelService,e.uri))return this._workerManager.withWorker().then(function(n){return n.textualSuggest(e.uri,t);});},e;}(),Qa=function(e){function t(t){var n=e.call(this)||this;return n._modelService=t,n._editorWorkerClient=null,n._register(new J()).cancelAndSet(function(){return n._checkStopIdleWorker();},Math.round($a/2)),n._register(n._modelService.onModelRemoved(function(e){return n._checkStopEmptyWorker();})),n;}return za(t,e),t.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),e.prototype.dispose.call(this);},t.prototype._checkStopEmptyWorker=function(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null);},t.prototype._checkStopIdleWorker=function(){this._editorWorkerClient&&new Date().getTime()-this._lastWorkerUsedTime>$a&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null);},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new tu(this._modelService,"editorWorkerService")),Promise.resolve(this._editorWorkerClient);},t;}(y),Ja=function(e){function t(t,n,i){var o=e.call(this)||this;if(o._syncedModels=Object.create(null),o._syncedModelsLastUsedTime=Object.create(null),o._proxy=t,o._modelService=n,!i){var r=new J();r.cancelAndSet(function(){return o._checkStopModelSync();},Math.round(Ga/2)),o._register(r);}return o;}return za(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)f(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),e.prototype.dispose.call(this);},t.prototype.esureSyncedResources=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.toString();this._syncedModels[i]||this._beginModelSync(n),this._syncedModels[i]&&(this._syncedModelsLastUsedTime[i]=new Date().getTime());}},t.prototype._checkStopModelSync=function(){var e=new Date().getTime(),t=[];for(var n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>Ga&&t.push(n);}for(var i=0;i<t.length;i++)this._stopModelSync(t[i]);},t.prototype._beginModelSync=function(e){var t=this,n=this._modelService.getModel(e);if(n&&!n.isTooLargeForSyncing()){var i=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});var o=[];o.push(n.onDidChangeContent(function(e){t._proxy.acceptModelChanged(i.toString(),e);})),o.push(n.onWillDispose(function(){t._stopModelSync(i);})),o.push(m(function(){t._proxy.acceptRemovedModel(i);})),this._syncedModels[i]=o;}},t.prototype._stopModelSync=function(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],f(t);},t;}(y),eu=function(){function e(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance);}return e.prototype.dispose=function(){this._instance.dispose();},e.prototype.getProxyObject=function(){return this._proxyObj;},e;}(),tu=function(e){function t(t,n){var i=e.call(this)||this;return i._modelService=t,i._workerFactory=new Us(n),i._worker=null,i._modelManager=null,i;}return za(t,e),t.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new Bs(this._workerFactory,"vs/editor/common/services/editorSimpleWorker"));}catch(e){Fs(e),this._worker=new eu(new Ha(null));}return this._worker;},t.prototype._getProxy=function(){var e=this;return this._getOrCreateWorker().getProxyObject().then(null,function(t){return Fs(t),e._worker=new eu(new Ha(null)),e._getOrCreateWorker().getProxyObject();});},t.prototype._getOrCreateModelManager=function(e){return this._modelManager||(this._modelManager=this._register(new Ja(e,this._modelService,!1))),this._modelManager;},t.prototype._withSyncedResources=function(e){var t=this;return this._getProxy().then(function(n){return t._getOrCreateModelManager(n).esureSyncedResources(e),n;});},t.prototype.computeDiff=function(e,t,n){return this._withSyncedResources([e,t]).then(function(i){return i.computeDiff(e.toString(),t.toString(),n);});},t.prototype.computeMoreMinimalEdits=function(e,t){return this._withSyncedResources([e]).then(function(n){return n.computeMoreMinimalEdits(e.toString(),t);});},t.prototype.computeLinks=function(e){return this._withSyncedResources([e]).then(function(t){return t.computeLinks(e.toString());});},t.prototype.textualSuggest=function(e,t){var n=this;return this._withSyncedResources([e]).then(function(i){var o=n._modelService.getModel(e);if(!o)return null;var r=la.getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"");return i.textualSuggest(e.toString(),t,s,a);});},t.prototype.computeWordRanges=function(e,t){var n=this;return this._withSyncedResources([e]).then(function(i){var o=n._modelService.getModel(e);if(!o)return Promise.resolve(null);var r=la.getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"");return i.computeWordRanges(e.toString(),t,s,a);});},t.prototype.navigateValueSet=function(e,t,n){var i=this;return this._withSyncedResources([e]).then(function(o){var r=i._modelService.getModel(e);if(!r)return null;var s=la.getWordDefinition(r.getLanguageIdentifier().id),a=s.source,u=(s.global?"g":"")+(s.ignoreCase?"i":"")+(s.multiline?"m":"");return o.navigateValueSet(e.toString(),t,n,a,u);});},t;}(y),nu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();var iu,ou=function(e){function t(t,n){var i=e.call(this,t,n.label)||this;return i._foreignModuleId=n.moduleId,i._foreignModuleCreateData=n.createData||null,i._foreignProxy=null,i;}return nu(t,e),t.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then(function(t){return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData).then(function(n){e._foreignModuleCreateData=null;for(var i=function(e,n){return t.fmr(e,n);},o=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n);};},r={},s=0;s<n.length;s++)r[n[s]]=o(n[s],i);return r;});})),this._foreignProxy;},t.prototype.getProxy=function(){return this._getForeignProxy();},t.prototype.withSyncedResources=function(e){var t=this;return this._withSyncedResources(e).then(function(e){return t.getProxy();});},t;}(tu),ru=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t;}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount);},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,o=i+(n<<1),r=i;r<o;r++)if(this._tokens[r]!==e._tokens[r])return!1;return!0;},e.prototype.getLineContent=function(){return this._text;},e.prototype.getCount=function(){return this._tokensCount;},e.prototype.getStartOffset=function(e){return e>0?this._tokens[e-1<<1]:0;},e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return ns.getLanguageId(t);},e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return ns.getTokenType(t);},e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return ns.getForeground(t);},e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return ns.getClassNameFromMetadata(t);},e.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return ns.getInlineStyleFromMetadata(n,t);},e.prototype.getEndOffset=function(e){return this._tokens[e<<1];},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t);},e.prototype.inflate=function(){return this;},e.prototype.sliceAndInflate=function(e,t,n){return new su(this,e,t,n);},e.convertToEndOffset=function(e,t){for(var n=(e.length>>>1)-1,i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t;},e.findIndexInTokensArray=function(e,t){if(e.length<=2)return 0;for(var n=0,i=(e.length>>>1)-1;n<i;){var o=n+Math.floor((i-n)/2),r=e[o<<1];if(r===t)return o+1;r<t?n=o+1:r>t&&(i=o);}return n;},e;}(),su=function(){function e(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var o=this._firstTokenIndex,r=e.getCount();o<r;o++){if(e.getStartOffset(o)>=n)break;this._tokensCount++;}}return e.prototype.equals=function(t){return t instanceof e&&this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount);},e.prototype.getCount=function(){return this._tokensCount;},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e);},e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset;},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e);},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t);},e.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex;},e;}();iu="undefined"!=typeof TextDecoder?function(e){return new au(e);}:function(e){return new uu();};var au=function(){function e(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0;}return e.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0;},e.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer();},e.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e);},e.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e;},e.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0===t||bo(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e;},e.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e;},e.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n);},e;}(),uu=function(){function e(){this._pieces=[],this._piecesLen=0;}return e.prototype.reset=function(){this._pieces=[],this._piecesLen=0;},e.prototype.build=function(){return this._pieces.join("");},e.prototype.write1=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e);},e.prototype.appendASCII=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e);},e.prototype.appendASCIIString=function(e){this._pieces[this._piecesLen++]=e;},e;}(),lu=function(){function e(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i;}return e._equals=function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type;},e.equalsArr=function(t,n){var i=t.length;if(i!==n.length)return!1;for(var o=0;o<i;o++)if(!e._equals(t[o],n[o]))return!1;return!0;},e.filter=function(t,n,i,o){if(0===t.length)return[];for(var r=[],s=0,a=0,u=t.length;a<u;a++){var l=t[a],c=l.range;if(!(c.endLineNumber<n||c.startLineNumber>n)&&(!c.isEmpty()||0!==l.type&&3!==l.type)){var d=c.startLineNumber===n?c.startColumn:i,h=c.endLineNumber===n?c.endColumn:o;r[s++]=new e(d,h,l.inlineClassName,l.type);}}return r;},e.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.className<t.className?-1:e.className>t.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn;},e;}(),cu=function(){return function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n;};}(),du=function(){function e(){this.stopOffsets=[],this.classNames=[],this.count=0;}return e.prototype.consumeLowerThan=function(e,t,n){for(;this.count>0&&this.stopOffsets[0]<e;){for(var i=0;i+1<this.count&&this.stopOffsets[i]===this.stopOffsets[i+1];)i++;n.push(new cu(t,this.stopOffsets[i],this.classNames.join(" "))),t=this.stopOffsets[i]+1,this.stopOffsets.splice(0,i+1),this.classNames.splice(0,i+1),this.count-=i+1;}return this.count>0&&t<e&&(n.push(new cu(t,e-1,this.classNames.join(" "))),t=e),t;},e.prototype.insert=function(e,t){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t);else for(var n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t);break;}this.count++;},e;}(),hu=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],i=new du(),o=0,r=0,s=t.length;r<s;r++){var a=t[r],u=a.startColumn,l=a.endColumn,c=a.className;if(u>1)bo(e.charCodeAt(u-2))&&u--;if(l>1)bo(e.charCodeAt(l-2))&&l--;var d=u-1,h=l-2;o=i.consumeLowerThan(d,o,n),0===i.count&&(o=d),i.insert(h,c);}return i.consumeLowerThan(1073741824,o,n),n;},e;}(),pu=function(){return function(e,t){this.endIndex=e,this.type=t;};}(),fu=function(){function e(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=o,this.containsRTL=r,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=u,this.tabSize=l,this.spaceWidth=c,this.stopRenderingLineAfter=d,this.renderWhitespace="all"===h?2:"boundary"===h?1:0,this.renderControlCharacters=p,this.fontLigatures=f;}return e.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&lu.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens);},e;}(),gu=function(){function e(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length);}return e.getPartIndex=function(e){return(4294901760&e)>>>16;},e.getCharIndex=function(e){return(65535&e)>>>0;},e.prototype.setPartData=function(e,t,n,i){var o=(t<<16|n<<0)>>>0;this._data[e]=o,this._absoluteOffsets[e]=i+n;},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets;},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e];},e.prototype.partDataToCharOffset=function(t,n,i){if(0===this.length)return 0;for(var o=(t<<16|i<<0)>>>0,r=0,s=this.length-1;r+1<s;){var a=r+s>>>1,u=this._data[a];if(u===o)return a;u>o?s=a:r=a;}if(r===s)return r;var l=this._data[r],c=this._data[s];if(l===o)return r;if(c===o)return s;var d=e.getPartIndex(l);return i-e.getCharIndex(l)<=(d!==e.getPartIndex(c)?n:e.getCharIndex(c))-i?r:s;},e;}(),mu=function(){return function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n;};}();function _u(e,t){if(0===e.lineContent.length){var n=0,i="<span><span> </span></span>";if(e.lineDecorations.length>0){for(var o=[],r=0,s=e.lineDecorations.length;r<s;r++){var a=e.lineDecorations[r];1===a.type&&(o.push(e.lineDecorations[r].className),n|=1),2===a.type&&(o.push(e.lineDecorations[r].className),n|=2);}0!==n&&(i='<span><span class="'+o.join(" ")+'"></span></span>');}return t.appendASCIIString(i),new mu(new gu(0,0),!1,n);}return function(e,t){var n=e.fontIsMonospace,i=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,r=e.lineContent,s=e.len,a=e.isOverflowing,u=e.parts,l=e.tabSize,c=e.containsRTL,d=e.spaceWidth,h=e.renderWhitespace,p=e.renderControlCharacters,f=new gu(s+1,u.length),g=0,m=0,_=0,v=0,y=0;t.appendASCIIString("<span>");for(var b=0,C=u.length;b<C;b++){y+=v;var w=u[b],S=w.endIndex,x=w.type,E=0!==h&&x.indexOf("vs-whitespace")>=0;if(_=0,t.appendASCIIString('<span class="'),t.appendASCIIString(x),t.appendASCII(34),E){for(var L=0,T=g,I=m;T<S;T++){var N=r.charCodeAt(T);if(9===N){var k=l-(T+I)%l;I+=k-1,L+=k;}else L++;}if(!n){var O="vs-whitespace"===x;!O&&o||(t.appendASCIIString(' style="width:'),t.appendASCIIString(String(d*L)),t.appendASCIIString('px"'));}for(t.appendASCII(62);g<S;g++){f.setPartData(g,b,_,y);var N=r.charCodeAt(g);if(9===N){var k=l-(g+m)%l;for(m+=k-1,_+=k-1,k>0&&(!i||k>1?t.write1(8594):t.write1(65515),k--);k>0;)t.write1(160),k--;}else t.write1(183);_++;}v=L;}else{var L=0;for(c&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);g<S;g++){f.setPartData(g,b,_,y);var N=r.charCodeAt(g);switch(N){case 9:var k=l-(g+m)%l;for(m+=k-1,_+=k-1;k>0;)t.write1(160),L++,k--;break;case 32:t.write1(160),L++;break;case 60:t.appendASCIIString("<"),L++;break;case 62:t.appendASCIIString(">"),L++;break;case 38:t.appendASCIIString("&"),L++;break;case 0:t.appendASCIIString("�"),L++;break;case 65279:case 8232:t.write1(65533),L++;break;default:To(N)&&m++,p&&N<32?(t.write1(9216+N),L++):(t.write1(N),L++);}_++;}v=L;}t.appendASCIIString("</span>");}f.setPartData(s,u.length-1,_,y),a&&t.appendASCIIString("<span>…</span>");return t.appendASCIIString("</span>"),new mu(f,c,o);}(function(e){var t,n,i=e.useMonospaceOptimizations,o=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<o.length?(t=!0,n=e.stopRenderingLineAfter):(t=!1,n=o.length);var r=function(e,t,n){var i=[],o=0;t>0&&(i[o++]=new pu(t,""));for(var r=0,s=e.getCount();r<s;r++){var a=e.getEndOffset(r);if(!(a<=t)){var u=e.getClassName(r);if(a>=n){i[o++]=new pu(n,u);break;}i[o++]=new pu(a,u);}}return i;}(e.lineTokens,e.fauxIndentLength,n);2!==e.renderWhitespace&&1!==e.renderWhitespace||(r=function(e,t,n,i,o,r,s,a){var u,l=[],c=0,d=0,h=i[d].type,p=i[d].endIndex,f=i.length,g=lo(e);-1===g?(g=t,u=t):u=ho(e);for(var m=0,_=0;_<o;_++){var v=e.charCodeAt(_);9===v?m=r:To(v)?m+=2:m++;}m%=r;for(var y=!1,_=o;_<t;_++){var v=e.charCodeAt(_),b=void 0;if(_<g||_>u)b=!0;else if(9===v)b=!0;else if(32===v){if(a){if(y)b=!0;else{var C=_+1<t?e.charCodeAt(_+1):0;b=32===C||9===C;}}else b=!0;}else b=!1;y?(!b||!s&&m>=r)&&(l[c++]=new pu(_,"vs-whitespace"),m%=r):(_===p||b&&_>o)&&(l[c++]=new pu(_,h),m%=r),9===v?m=r:To(v)?m+=2:m++,y=b,_===p&&++d<f&&(h=i[d].type,p=i[d].endIndex);}var w=!1;if(y)if(n&&a){var S=t>0?e.charCodeAt(t-1):0,x=t>1?e.charCodeAt(t-2):0,E=32===S&&32!==x&&9!==x;E||(w=!0);}else w=!0;return l[c++]=new pu(t,w?"vs-whitespace":h),l;}(o,n,e.continuesWithWrappedLine,r,e.fauxIndentLength,e.tabSize,i,1===e.renderWhitespace));var s=0;if(e.lineDecorations.length>0){for(var a=0,u=e.lineDecorations.length;a<u;a++){var l=e.lineDecorations[a];3===l.type?s|=1:1===l.type?s|=1:2===l.type&&(s|=2);}r=function(e,t,n,i){i.sort(lu.compare);for(var o=hu.normalize(e,i),r=o.length,s=0,a=[],u=0,l=0,c=0,d=n.length;c<d;c++){for(var h=n[c],p=h.endIndex,f=h.type;s<r&&o[s].startOffset<p;){var g=o[s];if(g.startOffset>l&&(l=g.startOffset,a[u++]=new pu(l,f)),!(g.endOffset+1<=p)){l=p,a[u++]=new pu(l,f+" "+g.className);break;}l=g.endOffset+1,a[u++]=new pu(l,f+" "+g.className),s++;}p>l&&(l=p,a[u++]=new pu(l,f));}var m=n[n.length-1].endIndex;if(s<r&&o[s].startOffset===m){for(var _=[];s<r&&o[s].startOffset===m;)_.push(o[s].className),s++;a[u++]=new pu(l,_.join(" "));}return a;}(o,0,r,e.lineDecorations);}e.containsRTL||(r=function(e,t,n){var i=0,o=[],r=0;if(n)for(var s=0,a=t.length;s<a;s++){var u=t[s],l=u.endIndex;if(i+50<l){for(var c=u.type,d=-1,h=i,p=i;p<l;p++)32===e.charCodeAt(p)&&(d=p),-1!==d&&p-h>=50&&(o[r++]=new pu(d+1,c),h=d+1,d=-1);h!==l&&(o[r++]=new pu(l,c));}else o[r++]=u;i=l;}else for(var s=0,a=t.length;s<a;s++){var u=t[s],l=u.endIndex,f=l-i;if(f>50){for(var c=u.type,g=Math.ceil(f/50),p=1;p<g;p++){var m=i+50*p;o[r++]=new pu(m,c);}o[r++]=new pu(l,c);}else o[r++]=u;i=l;}return o;}(o,r,!e.isBasicASCII||e.fontLigatures));return new bu(i,e.canUseHalfwidthRightwardsArrow,o,n,t,r,s,e.tabSize,e.containsRTL,e.spaceWidth,e.renderWhitespace,e.renderControlCharacters);}(e),t);}var vu=function(){return function(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i;};}();function yu(e){var t=iu(1e4),n=_u(e,t);return new vu(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements);}var bu=function(){return function(e,t,n,i,o,r,s,a,u,l,c,d){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=o,this.parts=r,this.containsForeignElements=s,this.tabSize=a,this.containsRTL=u,this.spaceWidth=l,this.renderWhitespace=c,this.renderControlCharacters=d;};}();var Cu,wu,Su=function(){return function(e,t,n,i){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i;};}(),xu=function(){return function(e,t){this.tabSize=e,this.data=t;};}(),Eu=function(){return function(e,t,n,i,o){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.tokens=o;};}(),Lu=function(){function e(t,n,i,o,r,s,a,u,l){this.minColumn=t,this.maxColumn=n,this.content=i,this.continuesWithWrappedLine=o,this.isBasicASCII=e.isBasicASCII(i,s),this.containsRTL=e.containsRTL(i,this.isBasicASCII,r),this.tokens=a,this.inlineDecorations=u,this.tabSize=l;}return e.isBasicASCII=function(e,t){return!t||Lo(e);},e.containsRTL=function(e,t,n){return!(t||!n)&&So(e);},e;}(),Tu=function(){return function(e,t,n){this.range=e,this.inlineClassName=t,this.type=n;};}(),Iu=function(){return function(e,t){this.range=e,this.options=t;};}(),Nu=function(){function e(){}return e.colorizeElement=function(e,t,n,i){var o=(i=i||{}).theme||"vs",r=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();e.setTheme(o);var s=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+o;return this.colorize(t,s||"",r,i).then(function(e){n.innerHTML=e;},function(e){return console.error(e);});},e.colorize=function(e,t,n,i){var o=4;i&&"number"==typeof i.tabSize&&(o=i.tabSize),No(t)&&(t=t.substr(1));var r=t.split(/\r\n|\r|\n/),s=e.getModeId(n);if(!s)return Promise.resolve(Ou(r,o));e.triggerMode(s);var a=Ls.get(s);return a?Promise.resolve(ku(r,o,a)):new Promise(function(e,t){var n=null,i=null,a=function(){n&&(n.dispose(),n=null),i&&(i.dispose(),i=null);var t=Ls.get(s);return e(t?ku(r,o,t):Ou(r,o));};(i=new Q()).cancelAndSet(a,500),n=Ls.onDidChange(function(e){e.changedLanguages.indexOf(s)>=0&&a();});});},e.colorizeLine=function(e,t,n,i,o){void 0===o&&(o=4);var r=Lu.isBasicASCII(e,t),s=Lu.containsRTL(e,r,n);return yu(new fu(!1,!0,e,!1,r,s,0,i,[],o,0,-1,"none",!1,!1)).html;},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var i=e.getLineContent(t);e.forceTokenization(t);var o=e.getLineTokens(t).inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,n);},e;}();function ku(e,t,n){return function(e,t,n){for(var i=[],o=n.getInitialState(),r=0,s=e.length;r<s;r++){var a=e[r],u=n.tokenize2(a,o,0);ru.convertToEndOffset(u.tokens,a.length);var l=new ru(u.tokens,a),c=Lu.isBasicASCII(a,!0),d=Lu.containsRTL(a,c,!0),h=yu(new fu(!1,!0,a,!1,c,d,0,l.inflate(),[],t,0,-1,"none",!1,!1));(i=i.concat(h.html)).push("<br/>"),o=u.endState;}return i.join("");}(e,t,n);}function Ou(e,t){var n=[],i=new Uint32Array(2);i[0]=0,i[1]=16793600;for(var o=0,r=e.length;o<r;o++){var s=e[o];i[0]=s.length;var a=new ru(i,s),u=Lu.isBasicASCII(s,!0),l=Lu.containsRTL(s,u,!0),c=yu(new fu(!1,!0,s,!1,u,l,0,a,[],t,0,-1,"none",!1,!1));(n=n.concat(c.html)).push("<br/>");}return n.join("");}(wu=Cu||(Cu={}))[wu.Ignore=0]="Ignore",wu[wu.Info=1]="Info",wu[wu.Warning=2]="Warning",wu[wu.Error=3]="Error",function(e){var t="error",n="warning",i="warn",o="info",r=Object.create(null);r[e.Error]=ie("sev.error","Error"),r[e.Warning]=ie("sev.warning","Warning"),r[e.Info]=ie("sev.info","Info"),e.fromValue=function(r){return r?mo(t,r)?e.Error:mo(n,r)||mo(i,r)?e.Warning:mo(o,r)?e.Info:e.Ignore:e.Ignore;};}(Cu||(Cu={}));var Du=Cu;function Ru(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===dr.ICodeEditor;}var Au=new(function(){function e(){this.data={};}return e.prototype.add=function(e,t){Jo(me(e)),Jo(_e(t)),Jo(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t;},e.prototype.as=function(e){return this.data[e]||null;},e;}())(),Mu="base.contributions.json";var Pu=new(function(){function e(){this._onDidChangeSchema=new N(),this.schemasById={};}return e.prototype.registerSchema=function(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e);},e;}())();Au.add(Mu,Pu);var Fu={Configuration:"base.contributions.configuration"},Wu={properties:{},patternProperties:{}},Bu={properties:{},patternProperties:{}},Vu={properties:{},patternProperties:{}},Hu={properties:{},patternProperties:{}},Uu="vscode://schemas/settings/editor",ju=Au.as(Mu),zu=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new N(),this._onDidRegisterConfiguration=new N(),this.configurationContributors=[],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),ju.registerSchema(Uu,this.editorConfigurationSchema);}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],[],t);},e.prototype.registerConfigurations=function(e,t,n){var i=this;void 0===n&&(n=!0);var o=this.toConfiguration(t);o&&e.push(o);var r=[];e.forEach(function(e){r.push.apply(r,i.validateAndRegisterProperties(e,n)),i.configurationContributors.push(e),i.registerJSONConfiguration(e),i.updateSchemaForOverrideSettingsConfiguration(e);}),this._onDidRegisterConfiguration.fire(r);},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey();},e.prototype.toConfiguration=function(e){for(var t={id:"defaultOverrides",title:ie("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},n=0,i=e;n<i.length;n++){var o=i[n];for(var r in o.defaults){var s=o.defaults[r];$u.test(r)&&"object"==typeof s&&(t.properties[r]={type:"object",default:s,description:ie("overrideSettings.description","Configure editor settings to be overridden for {0} language.",r),$ref:Uu});}}return Object.keys(t.properties).length?t:null;},e.prototype.validateAndRegisterProperties=function(e,t,n,i){void 0===t&&(t=!0),void 0===n&&(n=2),void 0===i&&(i=!1),n=Ce(e.scope)?n:e.scope,i=e.overridable||i;var o=[],r=e.properties;if(r)for(var s in r){var a=void 0;if(t&&(a=Zu(s)))console.warn(a),delete r[s];else{var u=r[s];be(u.default)&&(u.default=Yu(u.type)),i&&(u.overridable=!0),$u.test(s)?u.scope=void 0:u.scope=Ce(u.scope)?n:u.scope,!r[s].hasOwnProperty("included")||r[s].included?(this.configurationProperties[s]=r[s],o.push(s)):(this.excludedConfigurationProperties[s]=r[s],delete r[s]);}}var l=e.allOf;if(l)for(var c=0,d=l;c<d.length;c++){var h=d[c];o.push.apply(o,this.validateAndRegisterProperties(h,t,n,i));}return o;},e.prototype.getConfigurationProperties=function(){return this.configurationProperties;},e.prototype.registerJSONConfiguration=function(e){!function e(t){var n=t.properties;if(n)for(var i in n)switch(Wu.properties[i]=n[i],n[i].scope){case 1:Bu.properties[i]=n[i];break;case 2:Vu.properties[i]=n[i];break;case 3:Hu.properties[i]=n[i];}var o=t.allOf;o&&o.forEach(e);}(e),this._onDidSchemaChange.fire();},e.prototype.updateSchemaForOverrideSettingsConfiguration=function(e){e.id!==Ku&&(this.update(e),ju.registerSchema(Uu,this.editorConfigurationSchema));},e.prototype.updateOverridePropertyPatternKey=function(){var e=Wu.patternProperties[this.overridePropertyPattern];e||(e={type:"object",description:ie("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:"Unknown Identifier. Use language identifiers",$ref:Uu}),delete Wu.patternProperties[this.overridePropertyPattern],delete Bu.patternProperties[this.overridePropertyPattern],delete Vu.patternProperties[this.overridePropertyPattern],delete Hu.patternProperties[this.overridePropertyPattern],this.computeOverridePropertyPattern(),Wu.patternProperties[this.overridePropertyPattern]=e,Bu.patternProperties[this.overridePropertyPattern]=e,Vu.patternProperties[this.overridePropertyPattern]=e,Hu.patternProperties[this.overridePropertyPattern]=e,this._onDidSchemaChange.fire();},e.prototype.update=function(e){var t=this,n=e.properties;if(n)for(var i in n)n[i].overridable&&(this.editorConfigurationSchema.properties[i]=this.getConfigurationProperties()[i]);var o=e.allOf;o&&o.forEach(function(e){return t.update(e);});},e.prototype.computeOverridePropertyPattern=function(){this.overridePropertyPattern=this.overrideIdentifiers.length?Gu.replace("${0}",this.overrideIdentifiers.map(function(e){return uo(e,!1).source;}).join("|")):qu;},e;}(),Ku="override",qu="\\[.*\\]$",Gu="\\[(${0})\\]$",$u=new RegExp(qu);function Yu(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null;}}var Xu=new zu();function Zu(e){return $u.test(e)?ie("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==Xu.getConfigurationProperties()[e]?ie("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null;}Au.add(Fu.Configuration,Xu);var Qu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Ju=Xe,el=$e,tl=Ye,nl=new(function(){function e(){this._tabFocus=!1,this._onDidChangeTabFocus=new N(),this.onDidChangeTabFocus=this._onDidChangeTabFocus.event;}return e.prototype.getTabFocusMode=function(){return this._tabFocus;},e.prototype.setTabFocusMode=function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus));},e;}())(),il=Object.hasOwnProperty,ol=function(e){function t(t){var n=e.call(this)||this;return n._onDidChange=n._register(new N()),n.onDidChange=n._onDidChange.event,n._rawOptions=Ie({},t||{}),n._rawOptions.scrollbar=Ie({},n._rawOptions.scrollbar||{}),n._rawOptions.minimap=Ie({},n._rawOptions.minimap||{}),n._rawOptions.find=Ie({},n._rawOptions.find||{}),n._rawOptions.hover=Ie({},n._rawOptions.hover||{}),n._rawOptions.parameterHints=Ie({},n._rawOptions.parameterHints||{}),n._validatedOptions=Ke.validate(n._rawOptions,Ju),n._isDominatedByLongLines=!1,n._lineNumbersDigitCount=1,n._register(nr.onDidChangeZoomLevel(function(e){return n._recomputeOptions();})),n._register(nl.onDidChangeTabFocus(function(e){return n._recomputeOptions();})),n;}return Qu(t,e),t.prototype.observeReferenceElement=function(e){},t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype._recomputeOptions=function(){var e=this.editor,t=this._computeInternalOptions();e&&e.equals(t)||(this.editor=t,e&&this._onDidChange.fire(e.createChangeEvent(t)));},t.prototype.getRawOptions=function(){return this._rawOptions;},t.prototype._computeInternalOptions=function(){var e=this._validatedOptions,t=this._getEnvConfiguration(),n=ur.createFromRawSettings(this._rawOptions,t.zoomLevel),i={outerWidth:t.outerWidth,outerHeight:t.outerHeight,fontInfo:this.readConfiguration(n),extraEditorClassName:t.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:t.emptySelectionClipboard,pixelRatio:t.pixelRatio,tabFocusMode:nl.getTabFocusMode(),accessibilitySupport:t.accessibilitySupport};return qe.createInternalEditorOptions(i,e);},t._primitiveArrayEquals=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0;},t._subsetEquals=function(e,t){for(var n in t)if(il.call(t,n)){var i=t[n],o=e[n];if(o===i)continue;if(Array.isArray(o)&&Array.isArray(i)){if(!this._primitiveArrayEquals(o,i))return!1;continue;}if("object"==typeof o&&"object"==typeof i){if(!this._subsetEquals(o,i))return!1;continue;}return!1;}return!0;},t.prototype.updateOptions=function(e){void 0!==e&&(t._subsetEquals(this._rawOptions,e)||(this._rawOptions=Ie(this._rawOptions,e||{}),this._validatedOptions=Ke.validate(this._rawOptions,Ju),this._recomputeOptions()));},t.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions();},t.prototype.setMaxLineNumber=function(e){var n=t._digitCount(e);this._lineNumbersDigitCount!==n&&(this._lineNumbersDigitCount=n,this._recomputeOptions());},t._digitCount=function(e){for(var t=0;e;)e=Math.floor(e/10),t++;return t||1;},t;}(y),rl=Au.as(Fu.Configuration),sl={id:"editor",order:5,type:"object",title:ie("editorConfigurationTitle","Editor"),overridable:!0,scope:3,properties:{"editor.fontFamily":{type:"string",default:el.fontFamily,description:ie("fontFamily","Controls the font family.")},"editor.fontWeight":{type:"string",enum:["normal","bold","100","200","300","400","500","600","700","800","900"],default:el.fontWeight,description:ie("fontWeight","Controls the font weight.")},"editor.fontSize":{type:"number",default:el.fontSize,description:ie("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:el.lineHeight,description:ie("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")},"editor.letterSpacing":{type:"number",default:el.letterSpacing,description:ie("letterSpacing","Controls the letter spacing in pixels.")},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[ie("lineNumbers.off","Line numbers are not rendered."),ie("lineNumbers.on","Line numbers are rendered as absolute number."),ie("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),ie("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:ie("lineNumbers","Controls the display of line numbers.")},"editor.rulers":{type:"array",items:{type:"number"},default:Ju.viewInfo.rulers,description:ie("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.")},"editor.wordSeparators":{type:"string",default:Ju.wordSeparators,description:ie("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")},"editor.tabSize":{type:"number",default:tl.tabSize,minimum:1,markdownDescription:ie("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:tl.insertSpaces,markdownDescription:ie("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:tl.detectIndentation,markdownDescription:ie("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.roundedSelection":{type:"boolean",default:Ju.viewInfo.roundedSelection,description:ie("roundedSelection","Controls whether selections should have rounded corners.")},"editor.scrollBeyondLastLine":{type:"boolean",default:Ju.viewInfo.scrollBeyondLastLine,description:ie("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")},"editor.scrollBeyondLastColumn":{type:"number",default:Ju.viewInfo.scrollBeyondLastColumn,description:ie("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")},"editor.smoothScrolling":{type:"boolean",default:Ju.viewInfo.smoothScrolling,description:ie("smoothScrolling","Controls whether the editor will scroll using an animation.")},"editor.minimap.enabled":{type:"boolean",default:Ju.viewInfo.minimap.enabled,description:ie("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Ju.viewInfo.minimap.side,description:ie("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Ju.viewInfo.minimap.showSlider,description:ie("minimap.showSlider","Controls whether the minimap slider is automatically hidden.")},"editor.minimap.renderCharacters":{type:"boolean",default:Ju.viewInfo.minimap.renderCharacters,description:ie("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Ju.viewInfo.minimap.maxColumn,description:ie("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.hover.enabled":{type:"boolean",default:Ju.contribInfo.hover.enabled,description:ie("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Ju.contribInfo.hover.delay,description:ie("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Ju.contribInfo.hover.sticky,description:ie("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Ju.contribInfo.find.seedSearchStringFromSelection,description:ie("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"boolean",default:Ju.contribInfo.find.autoFindInSelection,description:ie("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:Ju.contribInfo.find.globalFindClipboard,description:ie("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:o.d},"editor.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],markdownEnumDescriptions:[ie("wordWrap.off","Lines will never wrap."),ie("wordWrap.on","Lines will wrap at the viewport width."),ie({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),ie({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#`.")],default:Ju.wordWrap,description:ie({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.")},"editor.wordWrapColumn":{type:"integer",default:Ju.wordWrapColumn,minimum:1,markdownDescription:ie({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`.")},"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[ie("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),ie("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),ie("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),ie("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],default:"same",description:ie("wrappingIndent","Controls the indentation of wrapped lines.")},"editor.mouseWheelScrollSensitivity":{type:"number",default:Ju.viewInfo.scrollbar.mouseWheelScrollSensitivity,markdownDescription:ie("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[ie("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),ie("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",markdownDescription:ie({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).")},"editor.multiCursorMergeOverlapping":{type:"boolean",default:Ju.multiCursorMergeOverlapping,description:ie("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:ie("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:ie("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:ie("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Ju.contribInfo.quickSuggestions,description:ie("quickSuggestions","Controls whether suggestions should automatically show up while typing.")},"editor.quickSuggestionsDelay":{type:"integer",default:Ju.contribInfo.quickSuggestionsDelay,minimum:0,description:ie("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")},"editor.parameterHints.enabled":{type:"boolean",default:Ju.contribInfo.parameterHints.enabled,description:ie("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:Ju.contribInfo.parameterHints.cycle,description:ie("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")},"editor.autoClosingBrackets":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",ie("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),ie("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],default:Ju.autoClosingBrackets,description:ie("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")},"editor.autoClosingQuotes":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",ie("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),ie("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],default:Ju.autoClosingQuotes,description:ie("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")},"editor.autoSurround":{type:"string",enum:["languageDefined","brackets","quotes","never"],enumDescriptions:[ie("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),ie("editor.autoSurround.brackets","Surround with brackets but not quotes."),ie("editor.autoSurround.quotes","Surround with quotes but not brackets."),""],default:Ju.autoSurround,description:ie("autoSurround","Controls whether the editor should automatically surround selections.")},"editor.formatOnType":{type:"boolean",default:Ju.contribInfo.formatOnType,description:ie("formatOnType","Controls whether the editor should automatically format the line after typing.")},"editor.formatOnPaste":{type:"boolean",default:Ju.contribInfo.formatOnPaste,description:ie("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.")},"editor.autoIndent":{type:"boolean",default:Ju.autoIndent,description:ie("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste or move lines. Extensions with indentation rules of the language must be available.")},"editor.suggestOnTriggerCharacters":{type:"boolean",default:Ju.contribInfo.suggestOnTriggerCharacters,description:ie("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:Ju.contribInfo.acceptSuggestionOnEnter,markdownEnumDescriptions:["",ie("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:ie("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:Ju.contribInfo.acceptSuggestionOnCommitCharacter,markdownDescription:ie("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.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[ie("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),ie("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),ie("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),ie("snippetSuggestions.none","Do not show snippet suggestions.")],default:Ju.contribInfo.suggest.snippets,description:ie("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")},"editor.emptySelectionClipboard":{type:"boolean",default:Ju.emptySelectionClipboard,description:ie("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")},"editor.copyWithSyntaxHighlighting":{type:"boolean",default:Ju.copyWithSyntaxHighlighting,description:ie("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")},"editor.wordBasedSuggestions":{type:"boolean",default:Ju.contribInfo.wordBasedSuggestions,description:ie("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],markdownEnumDescriptions:[ie("suggestSelection.first","Always select the first suggestion."),ie("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),ie("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:ie("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:ie("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:ie("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")},"editor.tabCompletion":{type:"string",default:"off",enum:["on","off","onlySnippets"],enumDescriptions:[ie("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),ie("tabCompletion.off","Disable tab completions."),ie("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:ie("tabCompletion","Enables tab completions.")},"editor.suggest.filterGraceful":{type:"boolean",default:!0,description:ie("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:!1,description:ie("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:!0,description:ie("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.selectionHighlight":{type:"boolean",default:Ju.contribInfo.selectionHighlight,description:ie("selectionHighlight","Controls whether the editor should highlight matches similar to the selection")},"editor.occurrencesHighlight":{type:"boolean",default:Ju.contribInfo.occurrencesHighlight,description:ie("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer",default:3,description:ie("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean",default:Ju.viewInfo.overviewRulerBorder,description:ie("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:function(e){if(1===e)return"blink";if(4===e)return"expand";if(3===e)return"phase";if(2===e)return"smooth";if(5===e)return"solid";throw new Error("blinkingStyleToString: Unknown blinkingStyle");}(Ju.viewInfo.cursorBlinking),description:ie("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean",default:Ju.viewInfo.mouseWheelZoom,markdownDescription:ie("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:function(e){if(e===Pe.Line)return"line";if(e===Pe.Block)return"block";if(e===Pe.Underline)return"underline";if(e===Pe.LineThin)return"line-thin";if(e===Pe.BlockOutline)return"block-outline";if(e===Pe.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle");}(Ju.viewInfo.cursorStyle),description:ie("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer",default:Ju.viewInfo.cursorWidth,markdownDescription:ie("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean",default:Ju.viewInfo.fontLigatures,description:ie("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:Ju.viewInfo.hideCursorInOverviewRuler,description:ie("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","all"],enumDescriptions:["",ie("renderWhiteSpace.boundary","Render whitespace characters except for single spaces between words."),""],default:Ju.viewInfo.renderWhitespace,description:ie("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.renderControlCharacters":{type:"boolean",default:Ju.viewInfo.renderControlCharacters,description:ie("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean",default:Ju.viewInfo.renderIndentGuides,description:ie("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean",default:Ju.viewInfo.highlightActiveIndentGuide,description:ie("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",ie("renderLineHighlight.all","Highlights both the gutter and the current line.")],default:Ju.viewInfo.renderLineHighlight,description:ie("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean",default:Ju.contribInfo.codeLens,description:ie("codeLens","Controls whether the editor shows CodeLens")},"editor.folding":{type:"boolean",default:Ju.contribInfo.folding,description:ie("folding","Controls whether the editor has code folding enabled")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:Ju.contribInfo.foldingStrategy,markdownDescription:ie("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:Ju.contribInfo.showFoldingControls,description:ie("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:Ju.contribInfo.matchBrackets,description:ie("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:Ju.viewInfo.glyphMargin,description:ie("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:Ju.useTabStops,description:ie("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean",default:tl.trimAutoWhitespace,description:ie("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:ie("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.dragAndDrop":{type:"boolean",default:Ju.dragAndDrop,description:ie("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[ie("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),ie("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),ie("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:Ju.accessibilitySupport,description:ie("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:Ju.showUnused,description:ie("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean",default:Ju.contribInfo.links,description:ie("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean",default:Ju.contribInfo.colorDecorators,description:ie("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:Ju.contribInfo.lightbulbEnabled,description:ie("codeActions","Enables the code action lightbulb in the editor.")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:ie("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")}},additionalProperties:{type:"boolean"},default:Ju.contribInfo.codeActionsOnSave,description:ie("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number",default:Ju.contribInfo.codeActionsOnSaveTimeout,description:ie("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean",default:Ju.contribInfo.selectionClipboard,description:ie("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:o.c},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:ie("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:ie("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"editor.largeFileOptimizations":{type:"boolean",default:tl.largeFileOptimizations,description:ie("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:ie("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}},al=null;function ul(){return null===al&&(al=Object.create(null),Object.keys(sl.properties).forEach(function(e){al[e]=!0;})),al;}rl.registerConfiguration(sl);var ll=function(){function e(){}return e.insert=function(e,t){return{range:new Jt(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0};},e.delete=function(e){return{range:e,text:null};},e.replace=function(e,t){return{range:e,text:t};},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0};},e;}(),cl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),dl=function(){function e(){}return e.has=function(e){return new pl(e);},e.equals=function(e,t){return new fl(e,t);},e.regex=function(e,t){return new _l(e,t);},e.not=function(e){return new ml(e);},e.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new vl(e);},e.deserialize=function(e){var t=this;if(!e)return null;var n=e.split("&&");return new vl(n.map(function(e){return t._deserializeOne(e);})).normalize();},e._deserializeOne=function(e){if((e=e.trim()).indexOf("!=")>=0){var t=e.split("!=");return new gl(t[0].trim(),this._deserializeValue(t[1]));}if(e.indexOf("==")>=0){t=e.split("==");return new fl(t[0].trim(),this._deserializeValue(t[1]));}if(e.indexOf("=~")>=0){t=e.split("=~");return new _l(t[0].trim(),this._deserializeRegexValue(t[1]));}return /^\!\s*/.test(e)?new ml(e.substr(1).trim()):new pl(e);},e._deserializeValue=function(e){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var t=/^'([^']*)'$/.exec(e);return t?t[1].trim():e;},e._deserializeRegexValue=function(e){if(Qi(e))return console.warn("missing regexp-value for =~-expression"),null;var t=e.indexOf("/"),n=e.lastIndexOf("/");if(t===n||t<0)return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null;var i=e.slice(t+1,n),o="i"===e[n+1]?"i":"";try{return new RegExp(i,o);}catch(t){return console.warn("bad regexp-value '"+e+"', parse error: "+t),null;}},e;}();function hl(e,t){var n=e.getType(),i=t.getType();if(n!==i)return n-i;switch(n){case 1:case 2:case 3:case 4:case 6:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!");}}var pl=function(){function e(e){this.key=e;}return e.prototype.getType=function(){return 1;},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0;},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key;},e.prototype.evaluate=function(e){return!!e.getValue(this.key);},e.prototype.normalize=function(){return this;},e.prototype.keys=function(){return[this.key];},e;}(),fl=function(){function e(e,t){this.key=e,this.value=t;}return e.prototype.getType=function(){return 3;},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0;},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key&&this.value===t.value;},e.prototype.evaluate=function(e){return e.getValue(this.key)==this.value;},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new pl(this.key):new ml(this.key):this;},e.prototype.keys=function(){return[this.key];},e;}(),gl=function(){function e(e,t){this.key=e,this.value=t;}return e.prototype.getType=function(){return 4;},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0;},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key&&this.value===t.value;},e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value;},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new ml(this.key):new pl(this.key):this;},e.prototype.keys=function(){return[this.key];},e;}(),ml=function(){function e(e){this.key=e;}return e.prototype.getType=function(){return 2;},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0;},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key;},e.prototype.evaluate=function(e){return!e.getValue(this.key);},e.prototype.normalize=function(){return this;},e.prototype.keys=function(){return[this.key];},e;}(),_l=function(){function e(e,t){this.key=e,this.regexp=t;}return e.prototype.getType=function(){return 6;},e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0;},e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:"",i=t.regexp?t.regexp.source:"";return this.key===t.key&&n===i;}return!1;},e.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t);},e.prototype.normalize=function(){return this;},e.prototype.keys=function(){return[this.key];},e;}(),vl=function(){function e(t){this.expr=e._normalizeArr(t);}return e.prototype.getType=function(){return 5;},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0;}return!1;},e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0;},e._normalizeArr=function(t){var n=[];if(t){for(var i=0,o=t.length;i<o;i++){var r=t[i];r&&(r=r.normalize())&&(r instanceof e?n=n.concat(r.expr):n.push(r));}n.sort(hl);}return n;},e.prototype.normalize=function(){return 0===this.expr.length?null:1===this.expr.length?this.expr[0]:this;},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push.apply(e,i.keys());}return e;},e;}(),yl=function(e){function t(t,n){var i=e.call(this,t)||this;return i._defaultValue=n,i;}return cl(t,e),t.prototype.bindTo=function(e){return e.createKey(this.key,this._defaultValue);},t.prototype.getValue=function(e){return e.getContextKeyValue(this.key);},t.prototype.toNegated=function(){return dl.not(this.key);},t;}(pl),bl=dn("contextKeyService"),Cl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),wl=function(){function e(e,t,n,i,o){void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=!0),this._onDidChange=new N(),this.onDidChange=this._onDidChange.event,this._id=e,this._label=t,this._cssClass=n,this._enabled=i,this._actionCallback=o;}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label;},set:function(e){this._setLabel(e);},enumerable:!0,configurable:!0}),e.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}));},Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip;},set:function(e){this._setTooltip(e);},enumerable:!0,configurable:!0}),e.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}));},Object.defineProperty(e.prototype,"class",{get:function(){return this._cssClass;},set:function(e){this._setClass(e);},enumerable:!0,configurable:!0}),e.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}));},Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled;},set:function(e){this._setEnabled(e);},enumerable:!0,configurable:!0}),e.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}));},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked;},set:function(e){this._setChecked(e);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radio",{get:function(){return this._radio;},set:function(e){this._setRadio(e);},enumerable:!0,configurable:!0}),e.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}));},e.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}));},e.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0);},e.prototype.dispose=function(){this._onDidChange.dispose();},e;}(),Sl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new N()),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new N()),t.onDidRun=t._onDidRun.event,t;}return Cl(t,e),t.prototype.run=function(e,t){var n=this;return e.enabled?(this._onDidBeforeRun.fire({action:e}),this.runAction(e,t).then(function(t){n._onDidRun.fire({action:e,result:t});},function(t){n._onDidRun.fire({action:e,error:t});})):Promise.resolve(null);},t.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n);},t;}(y),xl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),El=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},Ll=function(e,t){return function(n,i){t(n,i,e);};};function Tl(e){return void 0!==e.command;}var Il=function(){function e(){this.id=String(e.ID++);}return e.ID=1,e.EditorContext=new e(),e.CommandPalette=new e(),e.MenubarEditMenu=new e(),e.MenubarSelectionMenu=new e(),e.MenubarGoMenu=new e(),e;}(),Nl=dn("menuService"),kl=new(function(){function e(){this._commands=Object.create(null),this._menuItems=Object.create(null);}return e.prototype.addCommand=function(e){var t=this._commands[e.id];return this._commands[e.id]=e,void 0!==t;},e.prototype.getCommand=function(e){return this._commands[e];},e.prototype.getCommands=function(){var e=Object.create(null);for(var t in this._commands)e[t]=this.getCommand(t);return e;},e.prototype.appendMenuItem=function(e,t){var n=e.id,i=this._menuItems[n];return i?i.push(t):this._menuItems[n]=i=[t],{dispose:function(){var e=i.indexOf(t);e>=0&&i.splice(e,1);}};},e.prototype.getMenuItems=function(e){var t=e.id,n=this._menuItems[t]||[];return t===Il.CommandPalette.id&&this._appendImplicitItems(n),n;},e.prototype._appendImplicitItems=function(e){for(var t=new Set(),n=0,i=e.filter(function(e){return Tl(e);});n<i.length;n++){var o=i[n],r=o.command,s=o.alt;t.add(r.id),s&&t.add(s.id);}for(var a in this._commands)t.has(a)||e.push({command:this._commands[a]});},e;}())(),Ol=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o._commandService=i,o;}return xl(t,e),t.prototype.run=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._commandService).executeCommand.apply(e,[this.id].concat(t));},t=El([Ll(2,qo)],t);}(wl),Dl=function(e){function t(t){var n=this;return(n="string"==typeof t.title?e.call(this,"",t.title,"submenu")||this:e.call(this,"",t.title.value,"submenu")||this).item=t,n;}return xl(t,e),t;}(wl),Rl=function(e){function t(n,i,o,r,s){var a=this;return(a="string"==typeof n.title?e.call(this,n.id,n.title,s)||this:e.call(this,n.id,n.title.value,s)||this)._cssClass=void 0,a._enabled=!n.precondition||r.contextMatchesRules(n.precondition),a._checked=Boolean(n.toggled&&r.contextMatchesRules(n.toggled)),a._options=o||{},a.item=n,a.alt=i?new t(i,void 0,a._options,r,s):void 0,a;}return xl(t,e),t.prototype.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=[];return this._options.arg&&(i=i.concat([this._options.arg])),this._options.shouldForwardArgs&&(i=i.concat(t)),e.prototype.run.apply(this,i);},t=El([Ll(3,bl),Ll(4,qo)],t);}(Ol),Al=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},Ml=function(e,t){return function(n,i){t(n,i,e);};},Pl=function(){function e(t,n,i,o){var r=this;this._commandService=i,this._contextKeyService=o,this._menuGroups=[],this._disposables=[],this._onDidChange=new N(),n.then(function(n){var i,o=kl.getMenuItems(t),s=new Set();o.sort(e._compareMenuItems);for(var a=0,u=o;a<u.length;a++){var l=u[a],c=l.group;i&&i[0]===c||(i=[c||"",[]],r._menuGroups.push(i)),i[1].push(l),e._fillInKbExprKeys(l.when,s),Tl(l)&&l.command.precondition&&e._fillInKbExprKeys(l.command.precondition,s),Tl(l)&&l.command.toggled&&e._fillInKbExprKeys(l.command.toggled,s);}r._disposables.push(r._contextKeyService.onDidChangeContext(function(e){e.affectsSome(s)&&r._onDidChange.fire();})),r._onDidChange.fire(r);});}return e.prototype.dispose=function(){this._disposables=f(this._disposables),this._onDidChange.dispose();},e.prototype.getActions=function(e){for(var t=[],n=0,i=this._menuGroups;n<i.length;n++){for(var o=i[n],r=o[0],s=[],a=0,u=o[1];a<u.length;a++){var l=u[a];if(this._contextKeyService.contextMatchesRules(l.when||null)){var c=Tl(l)?new Rl(l.command,l.alt,e,this._contextKeyService,this._commandService):new Dl(l);s.push(c);}}s.length>0&&t.push([r,s]);}return t;},e._fillInKbExprKeys=function(e,t){if(e)for(var n=0,i=e.keys();n<i.length;n++){var o=i[n];t.add(o);}},e._compareMenuItems=function(e,t){var n=e.group,i=t.group;if(n!==i){if(!n)return 1;if(!i)return-1;if("navigation"===n)return-1;if("navigation"===i)return 1;var o=n.localeCompare(i);if(0!==o)return o;}var r=e.order||0,s=t.order||0;if(r<s)return-1;if(r>s)return 1;var a="string"==typeof e.command.title?e.command.title:e.command.title.value,u="string"==typeof t.command.title?t.command.title:t.command.title.value;return a.localeCompare(u);},e=Al([Ml(2,qo),Ml(3,bl)],e);}(),Fl=dn("configurationService");function Wl(e,t){var n=Object.create(null);for(var i in e)Bl(n,i,e[i],t);return n;}function Bl(e,t,n,i){for(var o=t.split("."),r=o.pop(),s=e,a=0;a<o.length;a++){var u=o[a],l=s[u];switch(typeof l){case"undefined":l=s[u]=Object.create(null);break;case"object":break;default:return void i("Ignoring "+t+" as "+o.slice(0,a+1).join(".")+" is "+JSON.stringify(l));}s=l;}"object"==typeof s?s[r]=n:i("Ignoring "+t+" as "+o.join(".")+" is "+JSON.stringify(s));}function Vl(e,t){!function e(t,n){var i=n.shift();if(0===n.length)return void delete t[i];if(-1!==Object.keys(t).indexOf(i)){var o=t[i];"object"!=typeof o||Array.isArray(o)||(e(o,n),0===Object.keys(o).length&&delete t[i]);}}(e,t.split("."));}function Hl(e){return e.substring(1,e.length-1);}var Ul=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),jl=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===n&&(n=[]),this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1;}return Object.defineProperty(e.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys);},enumerable:!0,configurable:!0}),e.prototype.getValue=function(e){return e?(t=this.contents,void 0===(i=function(e,t){for(var n=e,i=0;i<t.length;i++){if("object"!=typeof n||null===n)return;n=n[t[i]];}return n;}(t,e.split(".")))?n:i):this.contents;var t,n,i;},e.prototype.override=function(t){var n=this.getContentsForOverrideIdentifer(t);if(!n||"object"!=typeof n||!Object.keys(n).length)return this;for(var i={},o=0,r=function(e,t){if(!t)return e.filter(function(t,n){return e.indexOf(t)===n;});var n=Object.create(null);return e.filter(function(e){var i=t(e);return!n[i]&&(n[i]=!0,!0);});}(Object.keys(this.contents).concat(Object.keys(n)));o<r.length;o++){var s=r[o],a=this.contents[s],u=n[s];u&&("object"==typeof a&&"object"==typeof u?(a=Le(a),this.mergeContents(a,u)):a=u),i[s]=a;}return new e(i);},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=Le(this.contents),o=Le(this.overrides),r=this.keys.slice(),s=0,a=t;s<a.length;s++){var u=a[s];this.mergeContents(i,u.contents);for(var l=function(e){var t=o.filter(function(t){return re(t.identifiers,e.identifiers);})[0];t?c.mergeContents(t.contents,e.contents):o.push(Le(e));},c=this,d=0,h=u.overrides;d<h.length;d++){l(h[d]);}for(var p=0,f=u.keys;p<f.length;p++){var g=f[p];-1===r.indexOf(g)&&r.push(g);}}return new e(i,r,o);},e.prototype.freeze=function(){return this.isFrozen=!0,this;},e.prototype.mergeContents=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];o in e&&_e(e[o])&&_e(t[o])?this.mergeContents(e[o],t[o]):e[o]=Le(t[o]);}},e.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?function(e){if(!e||"object"!=typeof e)return e;for(var t=[e];t.length>0;){var n=t.shift();for(var i in Object.freeze(n),n)if(Te.call(n,i)){var o=n[i];"object"!=typeof o||Object.isFrozen(o)||t.push(o);}}return e;}(e):e;},e.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t<n.length;t++){var i=n[t];if(-1!==i.identifiers.indexOf(e))return i.contents;}return null;},e.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys};},e.prototype.setValue=function(e,t){this.addKey(e),Bl(this.contents,e,t,function(e){throw new Error(e);});},e.prototype.removeValue=function(e){this.removeKey(e)&&Vl(this.contents,e);},e.prototype.addKey=function(e){for(var t=this.keys.length,n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e);},e.prototype.removeKey=function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0);},e;}(),zl=function(e){function t(){for(var t,n=function(){var e=Object.create(null),t=Au.as(Fu.Configuration).getConfigurationProperties();for(var n in t)Bl(e,n,t[n].default,function(e){return console.error("Conflict in default settings: "+e);});return e;}(),i=(t=Au.as(Fu.Configuration).getConfigurationProperties(),Object.keys(t)),o=[],r=0,s=Object.keys(n);r<s.length;r++){var a=s[r];$u.test(a)&&o.push({identifiers:[Hl(a).trim()],contents:Wl(n[a],function(e){return console.error("Conflict in default settings file: "+e);})});}return e.call(this,n,i,o)||this;}return Ul(t,e),t;}(jl),Kl=function(){function e(e,t,n,i,o,r,s){void 0===n&&(n=new jl()),void 0===i&&(i=new wr()),void 0===o&&(o=new jl()),void 0===r&&(r=new wr()),void 0===s&&(s=!0),this._defaultConfiguration=e,this._userConfiguration=t,this._workspaceConfiguration=n,this._folderConfigurations=i,this._memoryConfiguration=o,this._memoryConfigurationByResource=r,this._freeze=s,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new wr();}return e.prototype.getValue=function(e,t,n){return this.getConsolidateConfigurationModel(t,n).getValue(e);},e.prototype.updateValue=function(e,t,n){var i;void 0===n&&(n={}),n.resource?(i=this._memoryConfigurationByResource.get(n.resource))||(i=new jl(),this._memoryConfigurationByResource.set(n.resource,i)):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null);},e.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n;},e.prototype.getConsolidatedConfigurationModelForResource=function(e,t){var n=e.resource,i=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var o=t.getFolder(n);o&&(i=this.getFolderConsolidatedConfiguration(o.uri)||i);var r=this._memoryConfigurationByResource.get(n);r&&(i=i.merge(r));}return i;},e.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;},e.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){var n=this.getWorkspaceConsolidatedConfiguration(),i=this._folderConfigurations.get(e);i?(t=n.merge(i),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n;}return t;},e;}(),ql=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Gl=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s._contextKeyService=t,s._commandService=n,s._telemetryService=i,s._statusService=r,s._notificationService=o,s._currentChord=null,s._currentChordChecker=new J(),s._currentChordStatusMessage=null,s._onDidUpdateKeybindings=s._register(new N()),s;}return ql(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},Object.defineProperty(t.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:S.None;},enumerable:!0,configurable:!0}),t.prototype.lookupKeybinding=function(e){var t=this._getResolver().lookupPrimaryKeybinding(e);return t?t.resolvedKeybinding:null;},t.prototype._enterChordMode=function(e,t){var n=this;this._currentChord={keypress:e,label:t},this._statusService&&(this._currentChordStatusMessage=this._statusService.setStatusMessage(ie("first.chord","({0}) was pressed. Waiting for second key of chord...",t)));var i=Date.now();this._currentChordChecker.cancelAndSet(function(){n._documentHasFocus()?Date.now()-i>5e3&&n._leaveChordMode():n._leaveChordMode();},500);},t.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null;},t.prototype._dispatch=function(e,t){var n=this,i=!1,o=this.resolveKeyboardEvent(e);if(o.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var r=o.getDispatchParts()[0];if(null===r)return i;var s=this._contextKeyService.getContext(t),a=this._currentChord?this._currentChord.keypress:null,u=o.getLabel(),l=this._getResolver().resolve(s,a,r);return l&&l.enterChord?(i=!0,this._enterChordMode(r,u),i):(this._statusService&&this._currentChord&&(l&&l.commandId||(this._statusService.setStatusMessage(ie("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,u),1e4),i=!0)),this._leaveChordMode(),l&&l.commandId&&(l.bubble||(i=!0),void 0===l.commandArgs?this._commandService.executeCommand(l.commandId).then(void 0,function(e){return n._notificationService.warn(e);}):this._commandService.executeCommand(l.commandId,l.commandArgs).then(void 0,function(e){return n._notificationService.warn(e);}),this._telemetryService.publicLog("workbenchActionExecuted",{id:l.commandId,from:"keybinding"})),i);},t;}(y),$l=function(){function e(t,n){this._defaultKeybindings=t,this._defaultBoundCommands=new Map();for(var i=0,o=t.length;i<o;i++){var r=t[i].command;r&&this._defaultBoundCommands.set(r,!0);}this._map=new Map(),this._lookupMap=new Map(),this._keybindings=e.combine(t,n);for(i=0,o=this._keybindings.length;i<o;i++){var s=this._keybindings[i];null!==s.keypressFirstPart&&this._addKeyPress(s.keypressFirstPart,s);}}return e._isTargetedForRemoval=function(e,t,n,i,o){if(e.command!==i)return!1;if(t&&e.keypressFirstPart!==t)return!1;if(n&&e.keypressChordPart!==n)return!1;if(o){if(!e.when)return!1;if(!o.equals(e.when))return!1;}return!0;},e.combine=function(e,t){e=e.slice(0);for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i];if(r.command&&0!==r.command.length&&"-"===r.command.charAt(0))for(var s=r.command.substr(1),a=r.keypressFirstPart,u=r.keypressChordPart,l=r.when,c=e.length-1;c>=0;c--)this._isTargetedForRemoval(e[c],a,u,s,l)&&e.splice(c,1);else n.push(r);}return e.concat(n);},e.prototype._addKeyPress=function(t,n){var i=this._map.get(t);if(void 0===i)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var o=i.length-1;o>=0;o--){var r=i[o];if(r.command!==n.command){var s=null!==r.keypressChordPart,a=null!==n.keypressChordPart;s&&a&&r.keypressChordPart!==n.keypressChordPart||e.whenIsEntirelyIncluded(r.when,n.when)&&this._removeFromLookupMap(r);}}i.push(n),this._addToLookupMap(n);},e.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e);}},e.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if(void 0!==t)for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return void t.splice(n,1);}},e.whenIsEntirelyIncluded=function(e,t){if(!t)return!0;if(!e)return!1;for(var n=e instanceof vl?e.expr:[e],i=t instanceof vl?t.expr:[t],o=0,r=0;r<i.length;r++){for(var s=i[r],a=!1;!a&&o<n.length;){n[o].equals(s)&&(a=!0),o++;}if(!a)return!1;}return!0;},e.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);return void 0===t||0===t.length?null:t[t.length-1];},e.prototype.resolve=function(e,t,n){var i=null;if(null!==t){if(void 0===(a=this._map.get(t)))return null;i=[];for(var o=0,r=a.length;o<r;o++){var s=a[o];s.keypressChordPart===n&&i.push(s);}}else{var a;if(void 0===(a=this._map.get(n)))return null;i=a;}var u=this._findCommand(e,i);return u?null===t&&null!==u.keypressChordPart?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:u.command,commandArgs:u.commandArgs,bubble:u.bubble}:null;},e.prototype._findCommand=function(t,n){for(var i=n.length-1;i>=0;i--){var o=n[i];if(e.contextMatchesRules(t,o.when))return o;}return null;},e.contextMatchesRules=function(e,t){return!t||t.evaluate(e);},e;}(),Yl=new(function(){function e(){this._keybindings=[],this._keybindingsSorted=!0;}return e.bindToCurrentPlatform=function(e){if(1===o.a){if(e&&e.win)return e.win;}else if(2===o.a){if(e&&e.mac)return e.mac;}else if(e&&e.linux)return e.linux;return e;},e.prototype.registerKeybindingRule=function(t,n){void 0===n&&(n=0);var i=e.bindToCurrentPlatform(t);i&&i.primary&&(a=nt(i.primary,o.a))&&this._registerDefaultKeybinding(a,t.id,t.weight,0,t.when,n);if(i&&Array.isArray(i.secondary))for(var r=0,s=i.secondary.length;r<s;r++){var a;(a=nt(i.secondary[r],o.a))&&this._registerDefaultKeybinding(a,t.id,t.weight,-r-1,t.when,n);}},e.prototype.registerCommandAndKeybindingRule=function(e,t){void 0===t&&(t=0),this.registerKeybindingRule(e,t),Go.registerCommand(e);},e._mightProduceChar=function(e){return e>=21&&e<=30||e>=31&&e<=56||80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e;},e.prototype._assertNoCtrlAlt=function(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n);},e.prototype._registerDefaultKeybinding=function(e,t,n,i,r,s){0===s&&1===o.a&&(2===e.type?this._assertNoCtrlAlt(e.firstPart,t):this._assertNoCtrlAlt(e,t)),this._keybindings.push({keybinding:e,command:t,commandArgs:void 0,when:r,weight1:n,weight2:i}),this._keybindingsSorted=!1;},e.prototype.getDefaultKeybindings=function(){return this._keybindingsSorted||(this._keybindings.sort(Xl),this._keybindingsSorted=!0),this._keybindings.slice(0);},e;}())();function Xl(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.command<t.command?-1:e.command>t.command?1:e.weight2-t.weight2;}Au.add("platform.keybindingsRegistry",Yl);var Zl=function(){return function(e,t,n,i,o){if(this.resolvedKeybinding=e,e){var r=e.getDispatchParts(),s=r[0],a=r[1];this.keypressFirstPart=s,this.keypressChordPart=a;}else this.keypressFirstPart=null,this.keypressChordPart=null;this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=o;};}(),Ql=function(){function e(e,t,n){void 0===n&&(n=t),this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n;}return e.prototype.toLabel=function(e,t,n,i,o){return null===e||null===t?null:function(e,t,n,i,o){var r=tc(e,t,o);null!==n&&null!==i&&(r+=" ",r+=tc(n,i,o));return r;}(e,t,n,i,this.modifierLabels[o]);},e;}(),Jl=new Ql({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:ie({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:ie({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:ie({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:ie({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:ie({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:ie({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:ie({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:ie({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),ec=new Ql({ctrlKey:ie({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:ie({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:ie({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:ie({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:ie({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:ie({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:ie({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:ie({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:ie({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:ie({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:ie({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:ie({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function tc(e,t,n){if(null===t)return"";var i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),i.push(t),i.join(n.separator);}var nc,ic,oc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),rc=function(e){function t(t,n){var i=e.call(this)||this;if(i._os=n,!t)throw new Error("Invalid USLayoutResolvedKeybinding");return 2===t.type?(i._firstPart=t.firstPart,i._chordPart=t.chordPart):(i._firstPart=t,i._chordPart=null),i;}return oc(t,e),t.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓";}return ze.toString(e);},t.prototype._getUILabelForKeybinding=function(e){return e?e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode):null;},t.prototype.getLabel=function(){var e=this._getUILabelForKeybinding(this._firstPart),t=this._getUILabelForKeybinding(this._chordPart);return Jl.toLabel(this._firstPart,e,this._chordPart,t,this._os);},t.prototype._getAriaLabelForKeybinding=function(e){return e?e.isDuplicateModifierCase()?"":ze.toString(e.keyCode):null;},t.prototype.getAriaLabel=function(){var e=this._getAriaLabelForKeybinding(this._firstPart),t=this._getAriaLabelForKeybinding(this._chordPart);return ec.toLabel(this._firstPart,e,this._chordPart,t,this._os);},t.prototype.isChord=function(){return!!this._chordPart;},t.prototype.getParts=function(){return[this._toResolvedKeybindingPart(this._firstPart),this._chordPart?this._toResolvedKeybindingPart(this._chordPart):null];},t.prototype._toResolvedKeybindingPart=function(e){return new at(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getUILabelForKeybinding(e),this._getAriaLabelForKeybinding(e));},t.prototype.getDispatchParts=function(){return[this._firstPart?t.getDispatchStr(this._firstPart):null,this._chordPart?t.getDispatchStr(this._chordPart):null];},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=ze.toString(e.keyCode);},t;}(ut),sc=dn("notificationService"),ac=function(){return function(){};}(),uc=dn("contextService");!function(e){e.isIWorkspace=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&Array.isArray(e.folders);};}(nc||(nc={})),function(e){(ic||(ic={})).isIWorkspaceFolder=function(e){return e&&"object"==typeof e&&_t.isUri(e.uri)&&"string"==typeof e.name&&"function"==typeof e.toResource;};}();!function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=null),this._id=e,this._configuration=n,this._foldersMap=Cr.forPaths(),this.folders=t;}Object.defineProperty(e.prototype,"folders",{get:function(){return this._folders;},set:function(e){this._folders=e,this.updateFoldersMap();},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configuration",{get:function(){return this._configuration;},set:function(e){this._configuration=e;},enumerable:!0,configurable:!0}),e.prototype.getFolder=function(e){return e?this._foldersMap.findSubstr(e.toString()):null;},e.prototype.updateFoldersMap=function(){this._foldersMap=Cr.forPaths();for(var e=0,t=this.folders;e<t.length;e++){var n=t[e];this._foldersMap.set(n.uri.toString(),n);}},e.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration};};}();var lc=function(){function e(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name;}return e.prototype.toResource=function(e){return t=this.uri,n=e,i=t.scheme===Hi.file?_t.file(Ho(Ko(t),n)).path:Ho(t.path,n),t.with({path:i});var t,n,i;},e.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index};},e;}(),cc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),dc=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},hc=function(e,t){return function(n,i){t(n,i,e);};},pc=function(){function e(e){this.model=e,this._onDispose=new N();}return Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model;},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire();},e;}();var fc=function(){function e(){}return e.prototype.setEditor=function(e){this.editor=e;},e.prototype.createModelReference=function(e){var t,n,o,r,s=this;return n=this.editor,o=function(t){return s.findModel(t,e);},r=function(t){return s.findModel(t.getOriginalEditor(),e)||s.findModel(t.getModifiedEditor(),e);},(t=Ru(n)?o(n):r(n))?i.b.as(new b(new pc(t))):i.b.as(new b(null));},e.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n;},e;}(),gc=function(){function e(){}return e.prototype.showWhile=function(e,t){return null;},e;}(),mc=function(){return function(){};}(),_c=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:Du.Info,message:e});},e.prototype.warn=function(e){return this.notify({severity:Du.Warning,message:e});},e.prototype.error=function(e){return this.notify({severity:Du.Error,message:e});},e.prototype.notify=function(t){switch(t.severity){case Du.Error:console.error(t.message);break;case Du.Warning:console.warn(t.message);break;default:console.log(t.message);}return e.NO_OP;},e.NO_OP=new ac(),e;}(),vc=function(){function e(e){this._onWillExecuteCommand=new N(),this._instantiationService=e,this._dynamicCommands=Object.create(null);}return e.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,m(function(){delete t._dynamicCommands[n];});},e.prototype.executeCommand=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Go.getCommand(e)||this._dynamicCommands[e];if(!i)return Promise.reject(new Error("command '"+e+"' not found"));try{this._onWillExecuteCommand.fire({commandId:e});var o=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler].concat(t));return Promise.resolve(o);}catch(e){return Promise.reject(e);}},e;}(),yc=function(e){function t(t,n,i,o,r){var s=e.call(this,t,n,i,o)||this;return s._cachedResolver=null,s._dynamicKeybindings=[],s._register(ni(r,Pi.KEY_DOWN,function(e){var t=new Rn(e);s._dispatch(t,t.target)&&t.preventDefault();})),s;}return cc(t,e),t.prototype.addDynamicKeybinding=function(e,t,n,i){var r=this,s=[];this._dynamicKeybindings.push({keybinding:nt(t,o.a),command:e,when:i,weight1:1e3,weight2:0}),s.push(m(function(){for(var t=0;t<r._dynamicKeybindings.length;t++){if(r._dynamicKeybindings[t].command===e)return r._dynamicKeybindings.splice(t,1),void r.updateResolver({source:1});}}));var a=this._commandService;if(!(a instanceof vc))throw new Error("Unknown command service!");return s.push(a.addCommand({id:e,handler:n})),this.updateResolver({source:1}),g(s);},t.prototype.updateResolver=function(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e);},t.prototype._getResolver=function(){if(!this._cachedResolver){var e=this._toNormalizedKeybindingItems(Yl.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new $l(e,t);}return this._cachedResolver;},t.prototype._documentHasFocus=function(){return document.hasFocus();},t.prototype._toNormalizedKeybindingItems=function(e,t){for(var n=[],i=0,o=0,r=e.length;o<r;o++){var s=e[o],a=s.when?s.when.normalize():null,u=s.keybinding;if(u)for(var l=this.resolveKeybinding(u),c=0;c<l.length;c++)n[i++]=new Zl(l[c],s.command,s.commandArgs,a,t);else n[i++]=new Zl(null,s.command,s.commandArgs,a,t);}return n;},t.prototype.resolveKeybinding=function(e){return[new rc(e,o.a)];},t.prototype.resolveKeyboardEvent=function(e){var t=new rt(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new rc(t,o.a);},t;}(Gl);function bc(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof _t);}var Cc=function(){function e(){this._onDidChangeConfiguration=new N(),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Kl(new zl(),new jl());}return e.prototype.configuration=function(){return this._configuration;},e.prototype.getValue=function(e,t){var n="string"==typeof e?e:void 0,i=bc(e)?e:bc(t)?t:{};return this.configuration().getValue(n,i,null);},e.prototype.updateValue=function(e,t,n,i){return this.configuration().updateValue(e,t),Promise.resolve();},e;}(),wc=function(){function e(e){var t=this;this.configurationService=e,this._onDidChangeConfigurationEmitter=new N(),this.configurationService.onDidChangeConfiguration(function(e){t._onDidChangeConfigurationEmitter.fire(e);});}return e.prototype.getValue=function(e,t,n){var i=(Qt.isIPosition(t)?t:null)?"string"==typeof n?n:void 0:"string"==typeof t?t:void 0;return this.configurationService.getValue(i);},e;}(),Sc=function(){function e(e){this.configurationService=e;}return e.prototype.getEOL=function(e){var t=this.configurationService.getValue("files");return t&&t.eol&&"auto"!==t.eol?t.eol:o.c||o.d?"\n":"\r\n";},e=dc([hc(0,Fl)],e);}(),xc=function(){function e(e){this._commandService=e;}return e.prototype.createMenu=function(e,t){return new Pl(e,i.b.as(!0),this._commandService,t);},e;}(),Ec=function(){function e(){}return e.prototype.publicLog=function(e,t){return i.b.wrap(null);},e;}(),Lc=function(){function e(){var t=_t.from({scheme:e.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new lc({uri:t,name:"",index:0})]};}return e.prototype.getWorkspace=function(){return this.workspace;},e.prototype.getWorkspaceFolder=function(t){return t&&t.scheme===e.SCHEME?this.workspace.folders[0]:void 0;},e.SCHEME="inmemory",e;}();function Tc(e,t,n){t&&e instanceof Cc&&Object.keys(t).forEach(function(i){(function(e){return ul()["editor."+e]||!1;})(i)&&e.updateValue("editor."+i,t[i]),n&&function(e){return ul()["diffEditor."+e]||!1;}(i)&&e.updateValue("diffEditor."+i,t[i]);});}var Ic,Nc,kc,Oc=function(){function e(e){this._modelService=e;}return e.prototype.apply=function(e,t){for(var n,i=new Map(),o=0,r=e.edits;o<r.length;o++){var s=r[o];if(!(_e(n=s)&&n.resource&&Array.isArray(n.edits)))return Promise.reject(new Error("bad edit - only text edits are supported"));var a=this._modelService.getModel(s.resource);if(!a)return Promise.reject(new Error("bad edit - model not found"));var u=i.get(a);u||(u=[]),i.set(a,u.concat(s.edits));}var l=0,c=0;return i.forEach(function(e,t){t.applyEdits(e.map(function(e){return ll.replaceMove(Jt.lift(e.range),e.text);})),c+=1,l+=e.length;}),Promise.resolve({selection:void 0,ariaSummary:ie("summary","Made {0} edits in {1} files",l,c)});},e;}(),Dc=function(){function e(){}return e.prototype.getUriLabel=function(e,t){return"file"===e.scheme?e.fsPath:e.path;},e;}();n("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.css");function Rc(e){Fc(Nc,e);}function Ac(e){o.d?Rc(e):Fc(kc,e);}var Mc=0,Pc=void 0;function Fc(e,t){if(Ic){switch(Pc===t?Mc++:(Pc=t,Mc=0),Mc){case 0:break;case 1:t=ie("repeated","{0} (occurred again)",t);break;default:t=ie("repeatedNtimes","{0} (occurred {1} times)",t,Mc);}zn(e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible";}}n("./node_modules/monaco-editor/esm/vs/editor/browser/widget/media/editor.css"),n("./node_modules/monaco-editor/esm/vs/editor/browser/widget/media/tokens.css");var Wc=function(){function e(e,t){this.chr=e,this.type=t,this.width=0;}return e.prototype.fulfill=function(e){this.width=e;},e;}(),Bc=function(){function e(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null;}return e.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null;},e.prototype._createDomElements=function(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight=this._bareFontInfo.fontWeight,n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(n);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight="bold",i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(i);var o=document.createElement("div");o.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),o.style.fontWeight=this._bareFontInfo.fontWeight,o.style.fontSize=this._bareFontInfo.fontSize+"px",o.style.lineHeight=this._bareFontInfo.lineHeight+"px",o.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",o.style.fontStyle="italic",t.appendChild(o);for(var r=[],s=0,a=this._requests.length;s<a;s++){var u=this._requests[s],l=void 0;0===u.type&&(l=n),2===u.type&&(l=i),1===u.type&&(l=o),l.appendChild(document.createElement("br"));var c=document.createElement("span");e._render(c,u),l.appendChild(c),r[s]=c;}this._container=t,this._testElements=r;},e._render=function(e,t){if(" "===t.chr){for(var n=" ",i=0;i<8;i++)n+=n;e.innerHTML=n;}else{var o=t.chr;for(i=0;i<8;i++)o+=o;e.textContent=o;}},e.prototype._readFromDomElements=function(){for(var e=0,t=this._requests.length;e<t;e++){var n=this._requests[e],i=this._testElements[e];n.fulfill(i.offsetWidth/256);}},e;}();var Vc,Hc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Uc=function(e){function t(t,n){var i=e.call(this)||this;return i.referenceDomElement=t,i.changeCallback=n,i.measureReferenceDomElementToken=-1,i.width=-1,i.height=-1,i.measureReferenceDomElement(!1),i;}return Hc(t,e),t.prototype.dispose=function(){this.stopObserving(),e.prototype.dispose.call(this);},t.prototype.getWidth=function(){return this.width;},t.prototype.getHeight=function(){return this.height;},t.prototype.startObserving=function(){var e=this;-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval(function(){return e.measureReferenceDomElement(!0);},100));},t.prototype.stopObserving=function(){-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1);},t.prototype.observe=function(e){this.measureReferenceDomElement(!0,e);},t.prototype.measureReferenceDomElement=function(e,t){var n=0,i=0;t?(n=t.width,i=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,i=this.referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this.width===n&&this.height===i||(this.width=n,this.height=i,e&&this.changeCallback());},t;}(y),jc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),zc=function(){function e(){this._keys=Object.create(null),this._values=Object.create(null);}return e.prototype.has=function(e){var t=e.getId();return!!this._values[t];},e.prototype.get=function(e){var t=e.getId();return this._values[t];},e.prototype.put=function(e,t){var n=e.getId();this._keys[n]=e,this._values[n]=t;},e.prototype.remove=function(e){var t=e.getId();delete this._keys[t],delete this._values[t];},e.prototype.getValues=function(){var e=this;return Object.keys(this._keys).map(function(t){return e._values[t];});},e;}(),Kc=function(e){function t(){var t=e.call(this)||this;return t._onDidChange=t._register(new N()),t.onDidChange=t._onDidChange.event,t._cache=new zc(),t._evictUntrustedReadingsTimeout=-1,t;}return jc(t,e),t.prototype.dispose=function(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),e.prototype.dispose.call(this);},t.prototype._writeToCache=function(e,t){var n=this;this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout(function(){n._evictUntrustedReadingsTimeout=-1,n._evictUntrustedReadings();},5e3));},t.prototype._evictUntrustedReadings=function(){for(var e=this._cache.getValues(),t=!1,n=0,i=e.length;n<i;n++){var o=e[n];o.isTrusted||(t=!0,this._cache.remove(o));}t&&this._onDidChange.fire();},t.prototype.readConfiguration=function(e){if(!this._cache.has(e)){var n=t._actualReadConfiguration(e);(n.typicalHalfwidthCharacterWidth<=2||n.typicalFullwidthCharacterWidth<=2||n.spaceWidth<=2||n.maxDigitWidth<=2)&&(n=new lr({zoomLevel:gn(),fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,isMonospace:n.isMonospace,typicalHalfwidthCharacterWidth:Math.max(n.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(n.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:n.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(n.spaceWidth,5),maxDigitWidth:Math.max(n.maxDigitWidth,5)},!1)),this._writeToCache(e,n);}return this._cache.get(e);},t.createRequest=function(e,t,n,i){var o=new Wc(e,t);return n.push(o),i&&i.push(o),o;},t._actualReadConfiguration=function(e){var t=[],n=[],i=this.createRequest("n",0,t,n),o=this.createRequest("m",0,t,null),r=this.createRequest(" ",0,t,n),s=this.createRequest("0",0,t,n),a=this.createRequest("1",0,t,n),u=this.createRequest("2",0,t,n),l=this.createRequest("3",0,t,n),c=this.createRequest("4",0,t,n),d=this.createRequest("5",0,t,n),h=this.createRequest("6",0,t,n),p=this.createRequest("7",0,t,n),f=this.createRequest("8",0,t,n),g=this.createRequest("9",0,t,n),m=this.createRequest("→",0,t,n),_=this.createRequest("→",0,t,null);this.createRequest("·",0,t,n),this.createRequest("|",0,t,n),this.createRequest("/",0,t,n),this.createRequest("-",0,t,n),this.createRequest("_",0,t,n),this.createRequest("i",0,t,n),this.createRequest("l",0,t,n),this.createRequest("m",0,t,n),this.createRequest("|",1,t,n),this.createRequest("_",1,t,n),this.createRequest("i",1,t,n),this.createRequest("l",1,t,n),this.createRequest("m",1,t,n),this.createRequest("n",1,t,n),this.createRequest("|",2,t,n),this.createRequest("_",2,t,n),this.createRequest("i",2,t,n),this.createRequest("l",2,t,n),this.createRequest("m",2,t,n),this.createRequest("n",2,t,n),function(e,t){new Bc(e,t).read();}(e,t);for(var v=Math.max(s.width,a.width,u.width,l.width,c.width,d.width,h.width,p.width,f.width,g.width),y=!0,b=n[0].width,C=1,w=n.length;C<w;C++){var S=b-n[C].width;if(S<-.001||S>.001){y=!1;break;}}var x=!0;y&&_.width!==b&&(x=!1),_.width>m.width&&(x=!1);var E=fn.INSTANCE.getTimeSinceLastZoomLevelChanged()>2e3;return new lr({zoomLevel:gn(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:y,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:x,spaceWidth:r.width,maxDigitWidth:v},E);},t.INSTANCE=new t(),t;}(y),qc=function(e){function t(t,n){void 0===n&&(n=null);var i,o=e.call(this,t)||this;return o._elementSizeObserver=o._register(new Uc(n,function(){return o._onReferenceDomElementSizeChanged();})),o._register(Kc.INSTANCE.onDidChange(function(){return o._onCSSBasedConfigurationChanged();})),o._validatedOptions.automaticLayout&&o._elementSizeObserver.startObserving(),o._register(mn(function(e){return o._recomputeOptions();})),o._register((i=function(){return o._recomputeOptions();},fn.INSTANCE.onDidChangeAccessibilitySupport(i))),o._recomputeOptions(),o;}return jc(t,e),t.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px";},t.applyFontInfo=function(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing);},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions();},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions();},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e);},t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype._getExtraEditorClassName=function(){var e="";return vn?e+="ie ":Cn?e+="ff ":yn?e+="edge ":xn&&(e+="safari "),o.d&&(e+="mac "),e;},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:wn||Cn,pixelRatio:fn.INSTANCE.getPixelRatio(),zoomLevel:gn(),accessibilitySupport:fn.INSTANCE.getAccessibilitySupport()};},t.prototype.readConfiguration=function(e){return Kc.INSTANCE.readConfiguration(e);},t;}(ol),Gc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),$c=function(){return($c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e;}).apply(this,arguments);},Yc=function(){function e(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menubarOpts=e.menubarOpts,this._description=e.description;}return e.prototype.register=function(){var e=this;if(this._menubarOpts&&kl.appendMenuItem(this._menubarOpts.menuId,{group:this._menubarOpts.group,command:{id:this.id,title:this._menubarOpts.title},when:this._menubarOpts.when,order:this._menubarOpts.order}),this._kbOpts){var t=this._kbOpts.kbExpr;this.precondition&&(t=t?dl.and(t,this.precondition):this.precondition),Yl.registerCommandAndKeybindingRule({id:this.id,handler:function(t,n){return e.runCommand(t,n);},weight:this._kbOpts.weight,when:t||null,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description});}else Go.registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n);},description:this._description});},e;}(),Xc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return Gc(t,e),t.bindToContribution=function(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._callback=e.handler,n;}return Gc(n,t),n.prototype.runEditorCommand=function(t,n,i){e(n)&&this._callback(e(n));},n;}(t);},t.prototype.runCommand=function(e,t){var n=this,i=e.get(pn),o=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(o)return o.invokeWithinContext(function(e){if(e.get(bl).contextMatchesRules(n.precondition))return n.runEditorCommand(e,o,t);});},t;}(Yc),Zc=function(e){function t(t){var n=e.call(this,t)||this;return n.label=t.label,n.alias=t.alias,n.menuOpts=t.menuOpts,n;}return Gc(t,e),t.prototype.register=function(){this.menuOpts&&kl.appendMenuItem(Il.EditorContext,{command:{id:this.id,title:this.label},when:dl.and(this.precondition,this.menuOpts.when),group:this.menuOpts.group,order:this.menuOpts.order}),e.prototype.register.call(this);},t.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{});},t.prototype.reportTelemetry=function(e,t){e.get($o).publicLog("editorActionInvoked",$c({name:this.label,id:this.id},t.getTelemetryData()));},t;}(Xc);function Qc(e,t){Go.registerCommand(e,function(e,n){return t(e,n||{});});}function Jc(e,t){Qc(e,function(e,n){var i=n.resource,o=n.position;if(!(i instanceof _t))throw p("resource");if(!Qt.isIPosition(o))throw p("position");var r=e.get(Gr).getModel(i);if(r){var s=Qt.lift(o);return t(r,s,n);}return e.get(Ds).createModelReference(i).then(function(e){return Y(new Promise(function(i,r){try{i(t(e.object.textEditorModel,Qt.lift(o),n));}catch(e){r(e);}}),function(){e.dispose();});});});}function ed(e){return id.INSTANCE.registerEditorCommand(e),e;}function td(e){id.INSTANCE.registerEditorAction(new e());}function nd(e){id.INSTANCE.registerEditorContribution(e);}!function(e){e.getEditorCommand=function(e){return id.INSTANCE.getEditorCommand(e);},e.getEditorActions=function(){return id.INSTANCE.getEditorActions();},e.getEditorContributions=function(){return id.INSTANCE.getEditorContributions();};}(Vc||(Vc={}));var id=function(){function e(){this.editorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null);}return e.prototype.registerEditorContribution=function(e){this.editorContributions.push(e);},e.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e);},e.prototype.getEditorContributions=function(){return this.editorContributions.slice(0);},e.prototype.getEditorActions=function(){return this.editorActions.slice(0);},e.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e;},e.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null;},e.INSTANCE=new e(),e;}();Au.add("editor.contributions",id.INSTANCE);var od=function(){function e(e){this.domNode=e,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._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._layerHint=!1;}return e.prototype.setMaxWidth=function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px");},e.prototype.setWidth=function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px");},e.prototype.setHeight=function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px");},e.prototype.setTop=function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px");},e.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="");},e.prototype.setLeft=function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px");},e.prototype.setBottom=function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px");},e.prototype.setRight=function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px");},e.prototype.setFontFamily=function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily);},e.prototype.setFontWeight=function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight);},e.prototype.setFontSize=function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px");},e.prototype.setLineHeight=function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px");},e.prototype.setLetterSpacing=function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px");},e.prototype.setClassName=function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className);},e.prototype.toggleClassName=function(e,t){ei(this.domNode,e,t),this._className=this.domNode.className;},e.prototype.setDisplay=function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display);},e.prototype.setPosition=function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position);},e.prototype.setVisibility=function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility);},e.prototype.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.willChange=this._layerHint?"transform":"auto");},e.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t);},e.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e);},e.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode);},e.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode);},e;}();function rd(e){return new od(e);}function sd(e,t,n){var i=null,o=null;if("function"==typeof n.value?(i="value",0!==(o=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(i="get",o=n.get),!o)throw new Error("not supported");var r="$memoize$"+t;n[i]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:o.apply(this,e)}),this[r];};}var ad,ud=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ld=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu";}(ad||(ad={}));var cd=function(e){function t(){var t=e.call(this)||this;return t.activeTouches={},t.handle=null,t.targets=[],t._register(ni(document,"touchstart",function(e){return t.onTouchStart(e);})),t._register(ni(document,"touchend",function(e){return t.onTouchEnd(e);})),t._register(ni(document,"touchmove",function(e){return t.onTouchMove(e);})),t;}return ud(t,e),t.addTarget=function(e){t.isTouchDevice()&&(t.INSTANCE||(t.INSTANCE=new t()),t.INSTANCE.targets.push(e));},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0;},t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this);},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,i=e.targetTouches.length;n<i;n++){var o=e.targetTouches.item(n);this.activeTouches[o.identifier]={id:o.identifier,initialTarget:o.target,initialTimeStamp:t,initialPageX:o.pageX,initialPageY:o.pageY,rollingTimestamps:[t],rollingPageX:[o.pageX],rollingPageY:[o.pageY]};var r=this.newGestureEvent(ad.Start,o.target);r.pageX=o.pageX,r.pageY=o.pageY,this.dispatchEvent(r);}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1);},t.prototype.onTouchEnd=function(e){for(var n=Date.now(),i=Object.keys(this.activeTouches).length,o=function(o,s){var a=e.changedTouches.item(o);if(!r.activeTouches.hasOwnProperty(String(a.identifier)))return console.warn("move of an UNKNOWN touch",a),"continue";var u=r.activeTouches[a.identifier],l=Date.now()-u.initialTimeStamp;if(l<t.HOLD_DELAY&&Math.abs(u.initialPageX-oe(u.rollingPageX))<30&&Math.abs(u.initialPageY-oe(u.rollingPageY))<30)(c=r.newGestureEvent(ad.Tap,u.initialTarget)).pageX=oe(u.rollingPageX),c.pageY=oe(u.rollingPageY),r.dispatchEvent(c);else if(l>=t.HOLD_DELAY&&Math.abs(u.initialPageX-oe(u.rollingPageX))<30&&Math.abs(u.initialPageY-oe(u.rollingPageY))<30){var c;(c=r.newGestureEvent(ad.Contextmenu,u.initialTarget)).pageX=oe(u.rollingPageX),c.pageY=oe(u.rollingPageY),r.dispatchEvent(c);}else if(1===i){var d=oe(u.rollingPageX),h=oe(u.rollingPageY),p=oe(u.rollingTimestamps)-u.rollingTimestamps[0],f=d-u.rollingPageX[0],g=h-u.rollingPageY[0],m=r.targets.filter(function(e){return u.initialTarget instanceof Node&&e.contains(u.initialTarget);});r.inertia(m,n,Math.abs(f)/p,f>0?1:-1,d,Math.abs(g)/p,g>0?1:-1,h);}r.dispatchEvent(r.newGestureEvent(ad.End,u.initialTarget)),delete r.activeTouches[a.identifier];},r=this,s=0,a=e.changedTouches.length;s<a;s++)o(s);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1);},t.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n;},t.prototype.dispatchEvent=function(e){var t=this;this.targets.forEach(function(n){e.initialTarget instanceof Node&&n.contains(e.initialTarget)&&(n.dispatchEvent(e),t.dispatched=!0);});},t.prototype.inertia=function(e,n,i,o,r,s,a,u){var l=this;this.handle=si(function(){var c=Date.now(),d=c-n,h=0,p=0,f=!0;i+=t.SCROLL_FRICTION*d,s+=t.SCROLL_FRICTION*d,i>0&&(f=!1,h=o*i*d),s>0&&(f=!1,p=a*s*d);var g=l.newGestureEvent(ad.Change);g.translationX=h,g.translationY=p,e.forEach(function(e){return e.dispatchEvent(g);}),f||l.inertia(e,c,i,o,r+h,s,a,u+p);});},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,i=e.changedTouches.length;n<i;n++){var o=e.changedTouches.item(n);if(this.activeTouches.hasOwnProperty(String(o.identifier))){var r=this.activeTouches[o.identifier],s=this.newGestureEvent(ad.Change,r.initialTarget);s.translationX=o.pageX-oe(r.rollingPageX),s.translationY=o.pageY-oe(r.rollingPageY),s.pageX=o.pageX,s.pageY=o.pageY,this.dispatchEvent(s),r.rollingPageX.length>3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t);}else console.warn("end of an UNKNOWN touch",o);}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1);},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,ld([sd],t,"isTouchDevice",null),t;}(y),dd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();function hd(e,t){var n=new Vn(t);return n.preventDefault(),{leftButton:n.leftButton,posx:n.posx,posy:n.posy};}var pd=function(e){function t(){var t=e.call(this)||this;return t.hooks=[],t.mouseMoveEventMerger=null,t.mouseMoveCallback=null,t.onStopCallback=null,t;}return dd(t,e),t.prototype.dispose=function(){this.stopMonitoring(!1),e.prototype.dispose.call(this);},t.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this.hooks=f(this.hooks),this.mouseMoveEventMerger=null,this.mouseMoveCallback=null;var t=this.onStopCallback;this.onStopCallback=null,e&&t&&t();}},t.prototype.isMonitoring=function(){return this.hooks.length>0;},t.prototype.startMonitoring=function(e,t,n){var i=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var o=Wn.getSameOriginWindowChain(),r=0;r<o.length;r++)this.hooks.push(_i(o[r].window.document,"mousemove",function(e){return i.mouseMoveCallback(e);},function(e,t){return i.mouseMoveEventMerger(e,t);})),this.hooks.push(ni(o[r].window.document,"mouseup",function(e){return i.stopMonitoring(!0);}));if(Wn.hasDifferentOriginAncestor()){var s=o[o.length-1];this.hooks.push(ni(s.window.document,"mouseout",function(e){"html"===new Vn(e).target.tagName.toLowerCase()&&i.stopMonitoring(!0);})),this.hooks.push(ni(s.window.document,"mouseover",function(e){"html"===new Vn(e).target.tagName.toLowerCase()&&i.stopMonitoring(!0);})),this.hooks.push(ni(s.window.document.body,"mouseleave",function(e){i.stopMonitoring(!0);}));}}},t;}(y),fd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),gd=function(){function e(e,t){this.x=e,this.y=t;}return e.prototype.toClientCoordinates=function(){return new md(this.x-Ei.scrollX,this.y-Ei.scrollY);},e;}(),md=function(){function e(e,t){this.clientX=e,this.clientY=t;}return e.prototype.toPageCoordinates=function(){return new gd(this.clientX+Ei.scrollX,this.clientY+Ei.scrollY);},e;}(),_d=function(){return function(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i;};}();function vd(e){var t=xi(e);return new _d(t.left,t.top,t.width,t.height);}var yd=function(e){function t(t,n){var i=e.call(this,t)||this;return i.pos=new gd(i.posx,i.posy),i.editorPos=vd(n),i;}return fd(t,e),t;}(Vn),bd=function(){function e(e){this._editorViewDomNode=e;}return e.prototype._create=function(e){return new yd(e,this._editorViewDomNode);},e.prototype.onContextMenu=function(e,t){var n=this;return ni(e,"contextmenu",function(e){t(n._create(e));});},e.prototype.onMouseUp=function(e,t){var n=this;return ni(e,"mouseup",function(e){t(n._create(e));});},e.prototype.onMouseDown=function(e,t){var n=this;return ni(e,"mousedown",function(e){t(n._create(e));});},e.prototype.onMouseLeave=function(e,t){var n=this;return oi(e,function(e){t(n._create(e));});},e.prototype.onMouseMoveThrottled=function(e,t,n,i){var o=this;return _i(e,"mousemove",t,function(e,t){return n(e,o._create(t));},i);},e;}(),Cd=function(e){function t(t){var n=e.call(this)||this;return n._editorViewDomNode=t,n._globalMouseMoveMonitor=n._register(new pd()),n._keydownListener=null,n;}return fd(t,e),t.prototype.startMonitoring=function(e,t,n){var i=this;this._keydownListener=ii(document,"keydown",function(e){e.toKeybinding().isModifierKey()||i._globalMouseMoveMonitor.stopMonitoring(!0);},!0);this._globalMouseMoveMonitor.startMonitoring(function(t,n){return e(t,new yd(n,i._editorViewDomNode));},t,function(){i._keydownListener.dispose(),n();});},t;}(y),wd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Sd=function(e){function t(){var t=e.call(this)||this;return t._shouldRender=!0,t;}return wd(t,e),t.prototype.shouldRender=function(){return this._shouldRender;},t.prototype.forceShouldRender=function(){this._shouldRender=!0;},t.prototype.setShouldRender=function(){this._shouldRender=!0;},t.prototype.onDidRender=function(){this._shouldRender=!1;},t.prototype.onConfigurationChanged=function(e){return!1;},t.prototype.onCursorStateChanged=function(e){return!1;},t.prototype.onDecorationsChanged=function(e){return!1;},t.prototype.onFlushed=function(e){return!1;},t.prototype.onFocusChanged=function(e){return!1;},t.prototype.onLanguageConfigurationChanged=function(e){return!1;},t.prototype.onLineMappingChanged=function(e){return!1;},t.prototype.onLinesChanged=function(e){return!1;},t.prototype.onLinesDeleted=function(e){return!1;},t.prototype.onLinesInserted=function(e){return!1;},t.prototype.onRevealRangeRequest=function(e){return!1;},t.prototype.onScrollChanged=function(e){return!1;},t.prototype.onTokensChanged=function(e){return!1;},t.prototype.onTokensColorsChanged=function(e){return!1;},t.prototype.onZonesChanged=function(e){return!1;},t.prototype.onThemeChanged=function(e){return!1;},t.prototype.handleEvents=function(e){for(var t=!1,n=0,i=e.length;n<i;n++){var o=e[n];switch(o.type){case 1:this.onConfigurationChanged(o)&&(t=!0);break;case 2:this.onCursorStateChanged(o)&&(t=!0);break;case 3:this.onDecorationsChanged(o)&&(t=!0);break;case 4:this.onFlushed(o)&&(t=!0);break;case 5:this.onFocusChanged(o)&&(t=!0);break;case 16:this.onLanguageConfigurationChanged(o)&&(t=!0);break;case 6:this.onLineMappingChanged(o)&&(t=!0);break;case 7:this.onLinesChanged(o)&&(t=!0);break;case 8:this.onLinesDeleted(o)&&(t=!0);break;case 9:this.onLinesInserted(o)&&(t=!0);break;case 10:this.onRevealRangeRequest(o)&&(t=!0);break;case 11:this.onScrollChanged(o)&&(t=!0);break;case 12:this.onTokensChanged(o)&&(t=!0);break;case 13:this.onTokensColorsChanged(o)&&(t=!0);break;case 14:this.onZonesChanged(o)&&(t=!0);break;case 15:this.onThemeChanged(o)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(o);}}t&&(this._shouldRender=!0);},t;}(y),xd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Ed=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._context.addEventHandler(n),n;}return xd(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this);},t;}(Sd),Ld=function(){function e(){}return e.write=function(e,t){e.setAttribute("data-mprt",String(t));},e.read=function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10);},e.collect=function(e,t){for(var n=[],i=0;e&&e!==document.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement;for(var o=new Uint8Array(i),r=0;r<i;r++)o[r]=n[i-r-1];return o;},e;}(),Td=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Id=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o._viewLines=i,o;}return Td(t,e),t.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t);},t.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e);},t;}(function(){function e(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height;}return e.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop;},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e);},e.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport();},e;}()),Nd=function(){return function(e,t){this.lineNumber=e,this.ranges=t;};}(),kd=function(){function e(e,t){this.left=Math.round(e),this.width=Math.round(t);}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]";},e;}(),Od=function(){function e(e,t){this.left=e,this.width=t;}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]";},e.compare=function(e,t){return e.left-t.left;},e;}(),Dd=function(){function e(){}return e._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange;},e._detachRange=function(e,t){e.selectNodeContents(t);},e._readClientRects=function(e,t,n,i,o){var r=this._createRange();try{return r.setStart(e,t),r.setEnd(n,i),r.getClientRects();}catch(e){return null;}finally{this._detachRange(r,o);}},e._mergeAdjacentRanges=function(e){if(1===e.length)return[new kd(e[0].left,e[0].width)];e.sort(Od.compare);for(var t=[],n=0,i=e[0].left,o=e[0].width,r=1,s=e.length;r<s;r++){var a=e[r],u=a.left,l=a.width;i+o+.9>=u?o=Math.max(o,u+l-i):(t[n++]=new kd(i,o),i=u,o=l);}return t[n++]=new kd(i,o),t;},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];n[i]=new Od(Math.max(0,r.left-t),r.width);}return this._mergeAdjacentRanges(n);},e.readHorizontalRanges=function(e,t,n,i,o,r,s){var a=e.children.length-1;if(0>a)return null;(t=Math.min(a,Math.max(0,t)))!==(i=Math.min(a,Math.max(0,i)))&&i>0&&0===o&&(i--,o=Number.MAX_VALUE);var u=e.children[t].firstChild,l=e.children[i].firstChild;if(u&&l||(!u&&0===n&&t>0&&(u=e.children[t-1].firstChild,n=1073741824),!l&&0===o&&i>0&&(l=e.children[i-1].firstChild,o=1073741824)),!u||!l)return null;n=Math.min(u.textContent.length,Math.max(0,n)),o=Math.min(l.textContent.length,Math.max(0,o));var c=this._readClientRects(u,n,l,o,s);return this._createHorizontalRangesFromClientRects(c,r);},e;}(),Rd=dn("themeService");function Ad(e){return{id:e};}var Md="dark",Pd="hc";function Fd(e){switch(e){case Md:return"vs-dark";case Pd:return"hc-black";default:return"vs";}}var Wd="base.contributions.theming",Bd=new(function(){function e(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new N();}return e.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),m(function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1);});},e.prototype.getThemingParticipants=function(){return this.themingParticipants;},e;}())();function Vd(e){return Bd.onThemeChange(e);}Au.add(Wd,Bd);var Hd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Ud=!!o.e||!(o.c||Cn||xn),jd=bn,zd=function(){function e(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t;}return Object.defineProperty(e.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft;},enumerable:!0,configurable:!0}),e;}(),Kd=function(){function e(e,t){this.themeType=t,this.renderWhitespace=e.editor.viewInfo.renderWhitespace,this.renderControlCharacters=e.editor.viewInfo.renderControlCharacters,this.spaceWidth=e.editor.fontInfo.spaceWidth,this.useMonospaceOptimizations=e.editor.fontInfo.isMonospace&&!e.editor.viewInfo.disableMonospaceOptimizations,this.canUseHalfwidthRightwardsArrow=e.editor.fontInfo.canUseHalfwidthRightwardsArrow,this.lineHeight=e.editor.lineHeight,this.stopRenderingLineAfter=e.editor.viewInfo.stopRenderingLineAfter,this.fontLigatures=e.editor.viewInfo.fontLigatures;}return e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures;},e;}(),qd=function(){function e(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null;}return e.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null;},e.prototype.setDomNode=function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=rd(e);},e.prototype.onContentChanged=function(){this._isMaybeInvalid=!0;},e.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0;},e.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0;},e.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e;},e.prototype.onSelectionChanged=function(){return!(!jd&&this._options.themeType!==Pd)&&(this._isMaybeInvalid=!0,!0);},e.prototype.renderLine=function(t,n,i,o){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var r=i.getViewLineRenderingData(t),s=this._options,a=lu.filter(r.inlineDecorations,t,r.minColumn,r.maxColumn);if(jd||s.themeType===Pd)for(var u=i.selections,l=0,c=u.length;l<c;l++){var d=u[l];if(!(d.endLineNumber<t||d.startLineNumber>t)){var h=d.startLineNumber===t?d.startColumn:r.minColumn,p=d.endLineNumber===t?d.endColumn:r.maxColumn;h<p&&a.push(new lu(h,p,"inline-selected-text",0));}}var f=new fu(s.useMonospaceOptimizations,s.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,s.spaceWidth,s.stopRenderingLineAfter,s.renderWhitespace,s.renderControlCharacters,s.fontLigatures);if(this._renderedViewLine&&this._renderedViewLine.input.equals(f))return!1;o.appendASCIIString('<div style="top:'),o.appendASCIIString(String(n)),o.appendASCIIString("px;height:"),o.appendASCIIString(String(this._options.lineHeight)),o.appendASCIIString('px;" class="'),o.appendASCIIString(e.CLASS_NAME),o.appendASCIIString('">');var g=_u(f,o);o.appendASCIIString("</div>");var m=null;return Ud&&r.isBasicASCII&&s.useMonospaceOptimizations&&0===g.containsForeignElements&&r.content.length<300&&f.lineTokens.getCount()<100&&(m=new Gd(this._renderedViewLine?this._renderedViewLine.domNode:null,f,g.characterMapping)),m||(m=Xd(this._renderedViewLine?this._renderedViewLine.domNode:null,f,g.characterMapping,g.containsRTL,g.containsForeignElements)),this._renderedViewLine=m,!0;},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight));},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0;},e.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast();},e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!==i&&e>i&&t>i?null:(-1!==i&&e>i&&(e=i),-1!==i&&t>i&&(t=i),this._renderedViewLine.getVisibleRangesForRange(e,t,n));},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1;},e.CLASS_NAME="view-line",e;}(),Gd=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth;}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length);},e.prototype.getWidthIsFast=function(){return!0;},e.prototype.getVisibleRangesForRange=function(e,t,n){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new kd(i,o-i)];},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1]);},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1;},e;}(),$d=function(){function e(e,t,n,i,o){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var r=0,s=this._characterMapping.length;r<=s;r++)this._pixelOffsetCache[r]=-1;}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild;},e.prototype.getWidth=function(){return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth;},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth;},e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var i=this._readPixelOffset(e,n);if(-1===i)return null;var o=this._readPixelOffset(t,n);return-1===o?null:[new kd(i,o-i)];}return this._readVisibleRangesForRange(e,t,n);},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var i=this._readPixelOffset(e,n);return-1===i?null:[new kd(i,0)];}return this._readRawVisibleRangesForRange(e,t,n);},e.prototype._readPixelOffset=function(e,t){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth();}if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(-1!==n)return n;var i=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=i,i;}return this._actualReadPixelOffset(e,t);},e.prototype._actualReadPixelOffset=function(e,t){if(0===this._characterMapping.length){var n=Dd.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return n&&0!==n.length?n[0].left:-1;}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var i=this._characterMapping.charOffsetToPartData(e-1),o=gu.getPartIndex(i),r=gu.getCharIndex(i),s=Dd.readHorizontalRanges(this._getReadingTarget(),o,r,o,r,t.clientRectDeltaLeft,t.endNode);return s&&0!==s.length?s[0].left:-1;},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new kd(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(e-1),o=gu.getPartIndex(i),r=gu.getCharIndex(i),s=this._characterMapping.charOffsetToPartData(t-1),a=gu.getPartIndex(s),u=gu.getCharIndex(s);return Dd.readHorizontalRanges(this._getReadingTarget(),o,r,a,u,n.clientRectDeltaLeft,n.endNode);},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1;},e;}(),Yd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return Hd(t,e),t.prototype._readVisibleRangesForRange=function(t,n,i){var o=e.prototype._readVisibleRangesForRange.call(this,t,n,i);if(!o||0===o.length||t===n||1===t&&n===this._characterMapping.length)return o;if(!this.input.containsRTL){var r=this._readPixelOffset(n,i);if(-1!==r){var s=o[o.length-1];s.left<r&&(s.width=r-s.left);}}return o;},t;}($d),Xd=wn?Zd:Qd;function Zd(e,t,n,i,o){return new Yd(e,t,n,i,o);}function Qd(e,t,n,i,o){return new $d(e,t,n,i,o);}var Jd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),eh=function(){function e(e,t,n,i,o,r){void 0===n&&(n=0),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),this.element=e,this.type=t,this.mouseColumn=n,this.position=i,!o&&i&&(o=new Jt(i.lineNumber,i.column,i.lineNumber,i.column)),this.range=o,this.detail=r;}return e._typeToString=function(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN";},e.toString=function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail;},e.prototype.toString=function(){return e.toString(this);},e;}(),th=function(){function e(){}return e.isTextArea=function(e){return 2===e.length&&3===e[0]&&6===e[1];},e.isChildOfViewLines=function(e){return e.length>=4&&3===e[0]&&7===e[3];},e.isStrictChildOfViewLines=function(e){return e.length>4&&3===e[0]&&7===e[3];},e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===e[1];},e.isChildOfMinimap=function(e){return e.length>=2&&3===e[0]&&8===e[1];},e.isChildOfContentWidgets=function(e){return e.length>=4&&3===e[0]&&1===e[3];},e.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&2===e[0];},e.isChildOfOverlayWidgets=function(e){return e.length>=2&&3===e[0]&&4===e[1];},e;}(),nh=function(){function e(e,t,n){this.model=e.model,this.layoutInfo=e.configuration.editor.layoutInfo,this.viewDomNode=t.viewDomNode,this.lineHeight=e.configuration.editor.lineHeight,this.typicalHalfwidthCharacterWidth=e.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this.lastViewCursorsRenderData=n,this._context=e,this._viewHelper=t;}return e.prototype.getZoneAtCoord=function(t){return e.getZoneAtCoord(this._context,t);},e.getZoneAtCoord=function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var i=n.verticalOffset+n.height/2,o=e.model.getLineCount(),r=null,s=void 0,a=null;return n.afterLineNumber!==o&&(a=new Qt(n.afterLineNumber+1,1)),n.afterLineNumber>0&&(r=new Qt(n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),s=null===a?r:null===r?a:t<i?r:a,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:r,positionAfter:a,position:s};}return null;},e.prototype.getFullLineRangeAtCoord=function(e){if(this._context.viewLayout.isAfterLines(e)){var t=this._context.model.getLineCount(),n=this._context.model.getLineMaxColumn(t);return{range:new Jt(t,n,t,n),isAfterLines:!0};}var i=this._context.viewLayout.getLineNumberAtVerticalOffset(e),o=this._context.model.getLineMaxColumn(i);return{range:new Jt(i,1,i,o),isAfterLines:!1};},e.prototype.getLineNumberAtVerticalOffset=function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e);},e.prototype.isAfterLines=function(e){return this._context.viewLayout.isAfterLines(e);},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e);},e.prototype.findAttribute=function(t,n){return e._findAttribute(t,n,this._viewHelper.viewDomNode);},e._findAttribute=function(e,t,n){for(;e&&e!==document.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode;}return null;},e.prototype.getLineWidth=function(e){return this._viewHelper.getLineWidth(e);},e.prototype.visibleRangeForPosition2=function(e,t){return this._viewHelper.visibleRangeForPosition2(e,t);},e.prototype.getPositionFromDOMInfo=function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t);},e.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop();},e.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft();},e;}(),ih=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r._ctx=t,o?(r.target=o,r.targetPath=Ld.collect(o,t.viewDomNode)):(r.target=null,r.targetPath=new Uint8Array(0)),r;}return Jd(t,e),t.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+"\n\ttarget: "+(this.target?this.target.outerHTML:null);},t.prototype.fulfill=function(e,t,n,i){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=null),new eh(this.target,e,this.mouseColumn,t,n,i);},t.prototype.withTarget=function(e){return new t(this._ctx,this.editorPos,this.pos,e);},t;}(function(){return function(e,t,n){this.editorPos=t,this.pos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+n.y-t.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+n.x-t.x-e.layoutInfo.contentLeft,this.isInMarginArea=n.x-t.x<e.layoutInfo.contentLeft&&n.x-t.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,sh._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth));};}()),oh={isAfterLines:!0};function rh(e){return{isAfterLines:!1,horizontalDistanceToText:e};}var sh=function(){function e(e,t){this._context=e,this._viewHelper=t;}return e.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=Ld.collect(t,this._viewHelper.viewDomNode);return!(!th.isChildOfContentWidgets(n)&&!th.isChildOfOverflowingContentWidgets(n))||!!th.isChildOfOverlayWidgets(n);},e.prototype.createMouseTarget=function(t,n,i,o){var r=new nh(this._context,this._viewHelper,t),s=new ih(r,n,i,o);try{return e._createMouseTarget(r,s,!1);}catch(e){return s.fulfill(0);}},e._createMouseTarget=function(t,n,i){if(null===n.target){if(i)return n.fulfill(0);var o=e._doHitTest(t,n);return o.position?e.createMouseTargetFromHitTestPosition(t,n,o.position.lineNumber,o.position.column):this._createMouseTarget(t,n.withTarget(o.hitTarget),!0);}var r=n,s=null;return(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=s||e._hitTestContentWidget(t,r))||e._hitTestOverlayWidget(t,r))||e._hitTestMinimap(t,r))||e._hitTestScrollbarSlider(t,r))||e._hitTestViewZone(t,r))||e._hitTestMargin(t,r))||e._hitTestViewCursor(t,r))||e._hitTestTextArea(t,r))||e._hitTestViewLines(t,r,i))||e._hitTestScrollbar(t,r))||n.fulfill(0);},e._hitTestContentWidget=function(e,t){if(th.isChildOfContentWidgets(t.targetPath)||th.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0);}return null;},e._hitTestOverlayWidget=function(e,t){if(th.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0);}return null;},e._hitTestViewCursor=function(e,t){if(t.target)for(var n=0,i=(r=e.lastViewCursorsRenderData).length;n<i;n++){var o=r[n];if(t.target===o.domNode)return t.fulfill(6,o.position);}if(t.isInContentArea){var r=e.lastViewCursorsRenderData,s=t.mouseContentHorizontalOffset,a=t.mouseVerticalOffset;for(n=0,i=r.length;n<i;n++){if(!(s<(o=r[n]).contentLeft)&&!(s>o.contentLeft+o.width)){var u=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(u<=a&&a<=u+o.height)return t.fulfill(6,o.position);}}}return null;},e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var i=t.isInContentArea?8:5;return t.fulfill(i,n.position,null,n);}return null;},e._hitTestTextArea=function(e,t){return th.isTextArea(t.targetPath)?t.fulfill(1):null;},e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),r={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return(o-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,i,n.range,r):(o-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,n.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,n.range,r));}return null;},e._hitTestViewLines=function(t,n,i){if(!th.isChildOfViewLines(n.targetPath))return null;if(t.isAfterLines(n.mouseVerticalOffset)){var o=t.model.getLineCount(),r=t.model.getLineMaxColumn(o);return n.fulfill(7,new Qt(o,r),void 0,oh);}if(i){if(th.isStrictChildOfViewLines(n.targetPath)){var s=t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===t.model.getLineLength(s)){var a=t.getLineWidth(s),u=rh(n.mouseContentHorizontalOffset-a);return n.fulfill(7,new Qt(s,1),void 0,u);}}return n.fulfill(0);}var l=e._doHitTest(t,n);return l.position?e.createMouseTargetFromHitTestPosition(t,n,l.position.lineNumber,l.position.column):this._createMouseTarget(t,n.withTarget(l.hitTarget),!0);},e._hitTestMinimap=function(e,t){if(th.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Qt(n,i));}return null;},e._hitTestScrollbarSlider=function(e,t){if(th.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(11,new Qt(i,o));}}return null;},e._hitTestScrollbar=function(e,t){if(th.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Qt(n,i));}return null;},e.prototype.getMouseColumn=function(t,n){var i=this._context.configuration.editor.layoutInfo,o=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-i.contentLeft;return e._getMouseColumn(o,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth);},e._getMouseColumn=function(e,t){return e<0?1:Math.round(e/t)+1;},e.createMouseTargetFromHitTestPosition=function(e,t,n,i){var o=new Qt(n,i),r=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>r){if(yn&&1===o.column){var s=rh(t.mouseContentHorizontalOffset-r);return t.fulfill(7,new Qt(n,e.model.getLineMaxColumn(n)),void 0,s);}var a=rh(t.mouseContentHorizontalOffset-r);return t.fulfill(7,o,void 0,a);}var u=e.visibleRangeForPosition2(n,i);if(!u)return t.fulfill(0,o);var l=u.left;if(t.mouseContentHorizontalOffset===l)return t.fulfill(6,o);var c=[];if(c.push({offset:u.left,column:i}),i>1){var d=e.visibleRangeForPosition2(n,i-1);d&&c.push({offset:d.left,column:i-1});}if(i<e.model.getLineMaxColumn(n)){var h=e.visibleRangeForPosition2(n,i+1);h&&c.push({offset:h.left,column:i+1});}c.sort(function(e,t){return e.offset-t.offset;});for(var p=1;p<c.length;p++){var f=c[p-1],g=c[p];if(f.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=g.offset){var m=new Jt(n,f.column,n,g.column);return t.fulfill(6,o,m);}}return t.fulfill(6,o);},e._doHitTestWithCaretRangeFromPoint=function(e,t){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.getVerticalOffsetForLineNumber(n)+Math.floor(e.lineHeight/2),o=t.pos.y+(i-t.mouseVerticalOffset);o<=t.editorPos.y&&(o=t.editorPos.y+1),o>=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);var r=new gd(t.pos.x,o),s=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates());return s.position?s:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates());},e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var i=n.startContainer,o=null;if(i.nodeType===i.TEXT_NODE){var r=(a=(s=i.parentNode)?s.parentNode:null)?a.parentNode:null;if((r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===qd.CLASS_NAME)return{position:e.getPositionFromDOMInfo(s,n.startOffset),hitTarget:null};o=i.parentNode;}else if(i.nodeType===i.ELEMENT_NODE){var s,a;if(((a=(s=i.parentNode)?s.parentNode:null)&&a.nodeType===a.ELEMENT_NODE?a.className:null)===qd.CLASS_NAME)return{position:e.getPositionFromDOMInfo(i,i.textContent.length),hitTarget:null};o=i;}return{position:null,hitTarget:o};},e._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){var i=n.offsetNode.parentNode,o=i?i.parentNode:null,r=o?o.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===qd.CLASS_NAME?{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}:{position:null,hitTarget:n.offsetNode.parentNode};}return{position:null,hitTarget:n.offsetNode};},e._doHitTestWithMoveToPoint=function(e,t){var n=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY);}catch(e){return{position:null,hitTarget:null};}o.collapse(!0);var r=o?o.parentElement():null,s=r?r.parentNode:null,a=s?s.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:"")===qd.CLASS_NAME){var u=o.duplicate();u.moveToElementText(r),u.setEndPoint("EndToStart",o),n=e.getPositionFromDOMInfo(r,u.text.length),u.moveToElementText(e.viewDomNode);}else i=r;return o.moveToElementText(e.viewDomNode),{position:n,hitTarget:i};},e._doHitTest=function(e,t){return document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null};},e;}(),ah=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();function uh(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n;};}var lh=function(e){function t(n,i,o){var r=e.call(this)||this;r._isFocused=!1,r._context=n,r.viewController=i,r.viewHelper=o,r.mouseTargetFactory=new sh(r._context,o),r._mouseDownOperation=r._register(new ch(r._context,r.viewController,r.viewHelper,function(e,t){return r._createMouseTarget(e,t);},function(e){return r._getMouseColumn(e);})),r._asyncFocus=r._register(new ee(function(){return r.viewHelper.focusTextArea();},0)),r.lastMouseLeaveTime=-1;var s=new bd(r.viewHelper.viewDomNode);r._register(s.onContextMenu(r.viewHelper.viewDomNode,function(e){return r._onContextMenu(e,!0);})),r._register(s.onMouseMoveThrottled(r.viewHelper.viewDomNode,function(e){return r._onMouseMove(e);},uh(r.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),r._register(s.onMouseUp(r.viewHelper.viewDomNode,function(e){return r._onMouseUp(e);})),r._register(s.onMouseLeave(r.viewHelper.viewDomNode,function(e){return r._onMouseLeave(e);})),r._register(s.onMouseDown(r.viewHelper.viewDomNode,function(e){return r._onMouseDown(e);}));var a=function(e){if(r._context.configuration.editor.viewInfo.mouseWheelZoom){var t=new Un(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=nr.getZoomLevel(),i=t.deltaY>0?1:-1;nr.setZoomLevel(n+i),t.preventDefault(),t.stopPropagation();}}};return r._register(ni(r.viewHelper.viewDomNode,"mousewheel",a,!0)),r._register(ni(r.viewHelper.viewDomNode,"DOMMouseScroll",a,!0)),r._context.addEventHandler(r),r;}return ah(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this);},t.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1;},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1;},t.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1;},t.prototype.getTargetAtClientPoint=function(e,t){var n=new md(e,t).toPageCoordinates(),i=vd(this.viewHelper.viewDomNode);if(n.y<i.y||n.y>i.y+i.height||n.x<i.x||n.x>i.x+i.width)return null;var o=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(o,i,n,null);},t.prototype._createMouseTarget=function(e,t){var n=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(n,e.editorPos,e.pos,t?e.target:null);},t.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos);},t.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)});},t.prototype._onMouseMove=function(e){this._mouseDownOperation.isActive()||e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)});},t.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:e,target:null});},t.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)});},t.prototype._onMouseDown=function(e){var t=this,n=this._createMouseTarget(e,!0),i=6===n.type||7===n.type,r=2===n.type||3===n.type||4===n.type,s=3===n.type,a=this._context.configuration.editor.viewInfo.selectOnLineNumbers,u=8===n.type||5===n.type,l=9===n.type,c=e.leftButton||e.middleButton;o.d&&e.leftButton&&e.ctrlKey&&(c=!1);var d=function(){vn&&!t._isFocused?t._asyncFocus.schedule():(e.preventDefault(),t.viewHelper.focusTextArea());};if(c&&(i||s&&a))d(),this._mouseDownOperation.start(n.type,e);else if(r)e.preventDefault();else if(u){var h=n.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(h.viewZoneId)&&(d(),this._mouseDownOperation.start(n.type,e),e.preventDefault());}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(n.detail)&&(d(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:n});},t.MOUSE_MOVE_MINIMUM_TIME=100,t;}(Sd),ch=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s._context=t,s._viewController=n,s._viewHelper=i,s._createMouseTarget=o,s._getMouseColumn=r,s._mouseMoveMonitor=s._register(new Cd(s._viewHelper.viewDomNode)),s._onScrollTimeout=s._register(new Q()),s._mouseState=new dh(),s._currentSelection=new tn(1,1,1,1),s._isActive=!1,s._lastMouseEvent=null,s;}return ah(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype.isActive=function(){return this._isActive;},t.prototype._onMouseDownThenMove=function(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);var t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0));},t.prototype.start=function(e,t){var n=this;this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);var i=this._findMousePosition(t,!0);if(i&&i.position){if(this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count,!this._context.configuration.editor.readOnly&&this._context.configuration.editor.dragAndDrop&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===i.type&&i.position&&this._currentSelection.containsPosition(i.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(uh(null),function(e){return n._onMouseDownThenMove(e);},function(){var e=n._findMousePosition(n._lastMouseEvent,!0);n._viewController.emitMouseDrop({event:n._lastMouseEvent,target:e?n._createMouseTarget(n._lastMouseEvent,!0):null}),n._stop();});this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(uh(null),function(e){return n._onMouseDownThenMove(e);},function(){return n._stop();}));}},t.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel();},t.prototype.onScrollChanged=function(){var e=this;this._isActive&&this._onScrollTimeout.setIfNotSet(function(){if(e._lastMouseEvent){var t=e._findMousePosition(e._lastMouseEvent,!1);t&&(e._mouseState.isDragAndDrop||e._dispatchMouse(t,!0));}},10);},t.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0];},t.prototype._getPositionOutsideEditor=function(e){var t=e.editorPos,n=this._context.model,i=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posy<t.y){var r=Math.max(i.getCurrentScrollTop()-(t.y-e.posy),0);if(a=nh.getZoneAtCoord(this._context,r))if(u=this._helpPositionJumpOverViewZone(a))return new eh(null,13,o,u);var s=i.getLineNumberAtVerticalOffset(r);return new eh(null,13,o,new Qt(s,1));}if(e.posy>t.y+t.height){var a,u;r=i.getCurrentScrollTop()+(e.posy-t.y);if(a=nh.getZoneAtCoord(this._context,r))if(u=this._helpPositionJumpOverViewZone(a))return new eh(null,13,o,u);var l=i.getLineNumberAtVerticalOffset(r);return new eh(null,13,o,new Qt(l,n.getLineMaxColumn(l)));}var c=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new eh(null,13,o,new Qt(c,1)):e.posx>t.x+t.width?new eh(null,13,o,new Qt(c,n.getLineMaxColumn(c))):null;},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t);if(!i.position)return null;if(8===i.type||5===i.type){var o=this._helpPositionJumpOverViewZone(i.detail);if(o)return new eh(i.element,i.type,i.mouseColumn,o,null,i.detail);}return i;},t.prototype._helpPositionJumpOverViewZone=function(e){var t=new Qt(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null;},t.prototype._dispatchMouse=function(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,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});},t;}(y),dh=function(){function e(){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(e.prototype,"altKey",{get:function(){return this._altKey;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metaKey",{get:function(){return this._metaKey;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftButton",{get:function(){return this._leftButton;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleButton",{get:function(){return this._middleButton;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._lastMouseDownCount;},enumerable:!0,configurable:!0}),e.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey;},e.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton;},e.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e;},e.prototype.trySetCount=function(t,n){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=i,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(n)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=n,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount);},e.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e;}(),hh=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();function ph(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n;}var fh=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.viewHelper.linesContentDomNode.style.msTouchAction="none",o.viewHelper.linesContentDomNode.style.msContentZooming="none",o._installGestureHandlerTimeout=window.setTimeout(function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture(),t=new MSGesture();e.target=o.viewHelper.linesContentDomNode,t.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(n){var i=n.pointerType;i!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?i===(n.MSPOINTER_TYPE_TOUCH||"touch")?(o._lastPointerType="touch",e.addPointer(n.pointerId)):(o._lastPointerType="pen",t.addPointer(n.pointerId)):o._lastPointerType="mouse";}),o._register(_i(o.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return o._onGestureChange(e);},ph)),o._register(ni(o.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return o._onCaptureGestureTap(e);},!0));}},100),o._lastPointerType="mouse",o;}return hh(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t);},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new yd(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea();});},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY);},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this);},t;}(lh),gh=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.viewHelper.linesContentDomNode.style.touchAction="none",o._installGestureHandlerTimeout=window.setTimeout(function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture(),t=new MSGesture();e.target=o.viewHelper.linesContentDomNode,t.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(n){var i=n.pointerType;"mouse"!==i?"touch"===i?(o._lastPointerType="touch",e.addPointer(n.pointerId)):(o._lastPointerType="pen",t.addPointer(n.pointerId)):o._lastPointerType="mouse";}),o._register(_i(o.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return o._onGestureChange(e);},ph)),o._register(ni(o.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return o._onCaptureGestureTap(e);},!0));}},100),o._lastPointerType="mouse",o;}return hh(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t);},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new yd(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea();});},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY);},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this);},t;}(lh),mh=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return cd.addTarget(o.viewHelper.linesContentDomNode),o._register(ni(o.viewHelper.linesContentDomNode,ad.Tap,function(e){return o.onTap(e);})),o._register(ni(o.viewHelper.linesContentDomNode,ad.Change,function(e){return o.onChange(e);})),o._register(ni(o.viewHelper.linesContentDomNode,ad.Contextmenu,function(e){return o._onContextMenu(new yd(e,o.viewHelper.viewDomNode),!1);})),o;}return hh(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new yd(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position);},t.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY);},t;}(lh),_h=function(){function e(e,t,n){window.navigator.msPointerEnabled?this.handler=new fh(e,t,n):window.TouchEvent?this.handler=new mh(e,t,n):window.navigator.pointerEnabled||window.PointerEvent?this.handler=new gh(e,t,n):this.handler=new lh(e,t,n);}return e.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t);},e.prototype.dispose=function(){this.handler.dispose();},e;}(),vh=(n("./node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaHandler.css"),function(){function e(e,t,n,i,o){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=o;}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]";},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null);},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null);},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd);},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1);}if(e>=this.selectionEnd){t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1);}var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1);},e.prototype._finishDeduceEditorPosition=function(e,t,n){for(var i=0,o=-1;-1!==(o=t.indexOf("\n",o+1));)i++;return[e,n*t.length,i];},e.selectedText=function(t){return new e(t,0,t.length,null,null);},e.deduceInput=function(e,t,n,i){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,r=e.selectionStart,s=e.selectionEnd,a=t.value,u=t.selectionStart,l=t.selectionEnd;i&&o.length>0&&r===s&&u===l&&!so(a,o)&&ao(a,o)&&(r=0,s=0);var c=function(e,t){var n,i=Math.min(e.length,t.length),o=e.length-1,r=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(o-n)!==t.charCodeAt(r-n))return n;return i;}(o.substring(s),a.substring(l));a=a.substring(0,a.length-c);var d,h=(o=o.substring(0,o.length-c)).substring(0,r),p=yo(h,a.substring(0,u));if(a=a.substring(p),o=o.substring(p),u-=p,r-=p,l-=p,s-=p,n&&u===l&&o.length>0){var f=null;if(u===a.length?so(a,o)&&(f=a.substring(o.length)):ao(a,o)&&(f=a.substring(0,a.length-o.length)),null!==f&&f.length>0&&(/\uFE0F/.test(f)||(d=f,xo.test(d))))return{text:f,replaceCharCnt:0};}return u===l?o===a&&0===r&&s===o.length&&u===a.length&&-1===a.indexOf("\n")&&function(e){for(var t=0,n=e.length;t<n;t++)if(To(e.charCodeAt(t)))return!0;return!1;}(a)?{text:"",replaceCharCnt:0}:{text:a,replaceCharCnt:h.length-p}:{text:a,replaceCharCnt:s-r};},e.EMPTY=new e("",0,0,null,null),e;}()),yh=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE);},e._getRangeForPage=function(t){var n=t*e._LINES_PER_PAGE,i=n+1,o=n+e._LINES_PER_PAGE;return new Jt(i,1,o+1,1);},e.fromEditorSelection=function(t,n,i,o){var r,s=e._getPageOfLine(i.startLineNumber),a=e._getRangeForPage(s),u=e._getPageOfLine(i.endLineNumber),l=e._getRangeForPage(u),c=a.intersectRanges(new Jt(1,1,i.startLineNumber,i.startColumn)),d=n.getValueInRange(c,1),h=n.getLineCount(),p=n.getLineMaxColumn(h),f=l.intersectRanges(new Jt(i.endLineNumber,i.endColumn,h,p)),g=n.getValueInRange(f,1);if(s===u||s+1===u)r=n.getValueInRange(i,1);else{var m=a.intersectRanges(i),_=l.intersectRanges(i);r=n.getValueInRange(m,1)+String.fromCharCode(8230)+n.getValueInRange(_,1);}if(o){d.length>500&&(d=d.substring(d.length-500,d.length)),g.length>500&&(g=g.substring(0,500)),r.length>1e3&&(r=r.substring(0,500)+String.fromCharCode(8230)+r.substring(r.length-500,r.length));}return new vh(d+r+g,d.length,d.length+r.length,new Qt(i.startLineNumber,i.startColumn),new Qt(i.endLineNumber,i.endColumn));},e._LINES_PER_PAGE=10,e;}(),bh=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Ch={forceCopyWithSyntaxHighlighting:!1},wh=function(e){function t(t,n){var i=e.call(this)||this;i._onFocus=i._register(new N()),i.onFocus=i._onFocus.event,i._onBlur=i._register(new N()),i.onBlur=i._onBlur.event,i._onKeyDown=i._register(new N()),i.onKeyDown=i._onKeyDown.event,i._onKeyUp=i._register(new N()),i.onKeyUp=i._onKeyUp.event,i._onCut=i._register(new N()),i.onCut=i._onCut.event,i._onPaste=i._register(new N()),i.onPaste=i._onPaste.event,i._onType=i._register(new N()),i.onType=i._onType.event,i._onCompositionStart=i._register(new N()),i.onCompositionStart=i._onCompositionStart.event,i._onCompositionUpdate=i._register(new N()),i.onCompositionUpdate=i._onCompositionUpdate.event,i._onCompositionEnd=i._register(new N()),i.onCompositionEnd=i._onCompositionEnd.event,i._onSelectionChangeRequest=i._register(new N()),i.onSelectionChangeRequest=i._onSelectionChangeRequest.event,i._host=t,i._textArea=i._register(new xh(n)),i._lastTextAreaEvent=0,i._asyncTriggerCut=i._register(new ee(function(){return i._onCut.fire();},0)),i._textAreaState=vh.EMPTY,i.writeScreenReaderContent("ctor"),i._hasFocus=!1,i._isDoingComposition=!1,i._nextCommand=0,i._register(ii(n.domNode,"keydown",function(e){!i._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),i._onKeyDown.fire(e);})),i._register(ii(n.domNode,"keyup",function(e){i._onKeyUp.fire(e);})),i._register(ni(n.domNode,"compositionstart",function(e){i._lastTextAreaEvent=1,i._isDoingComposition||(i._isDoingComposition=!0,bn||i._setAndWriteTextAreaState("compositionstart",vh.EMPTY),i._onCompositionStart.fire());}));var r=function(e,t){var n=i._textAreaState,o=vh.readFromTextArea(i._textArea);return[o,vh.deduceInput(n,o,e,t)];},s=function(e){var t=i._textAreaState,n=vh.selectedText(e);return[n,{text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart}];},a=function(e){return!(!bn||"ja"!==e)||!(!vn||0!==e.indexOf("zh-Han"));};i._register(ni(n.domNode,"compositionupdate",function(e){if(i._lastTextAreaEvent=2,a(e.locale)){var t=r(!1,!1),n=t[0],o=t[1];return i._textAreaState=n,i._onType.fire(o),void i._onCompositionUpdate.fire(e);}var u=s(e.data),l=u[0],c=u[1];i._textAreaState=l,i._onType.fire(c),i._onCompositionUpdate.fire(e);})),i._register(ni(n.domNode,"compositionend",function(e){if(i._lastTextAreaEvent=3,a(e.locale)){var t=r(!1,!1),n=t[0],o=t[1];i._textAreaState=n,i._onType.fire(o);}else{var u=s(e.data);n=u[0],o=u[1];i._textAreaState=n,i._onType.fire(o);}(bn||Sn)&&(i._textAreaState=vh.readFromTextArea(i._textArea)),i._isDoingComposition&&(i._isDoingComposition=!1,i._onCompositionEnd.fire());})),i._register(ni(n.domNode,"input",function(){var e=8===i._lastTextAreaEvent;if(i._lastTextAreaEvent=4,i._textArea.setIgnoreSelectionChangeTime("received input event"),!i._isDoingComposition){var t=r(o.d,e&&o.d),n=t[0],s=t[1];0===s.replaceCharCnt&&1===s.text.length&&bo(s.text.charCodeAt(0))||(i._textAreaState=n,0===i._nextCommand?""!==s.text&&i._onType.fire(s):(""!==s.text&&i._onPaste.fire({text:s.text}),i._nextCommand=0));}})),i._register(ni(n.domNode,"cut",function(e){i._lastTextAreaEvent=5,i._textArea.setIgnoreSelectionChangeTime("received cut event"),i._ensureClipboardGetsEditorSelection(e),i._asyncTriggerCut.schedule();})),i._register(ni(n.domNode,"copy",function(e){i._lastTextAreaEvent=6,i._ensureClipboardGetsEditorSelection(e);})),i._register(ni(n.domNode,"paste",function(e){if(i._lastTextAreaEvent=7,i._textArea.setIgnoreSelectionChangeTime("received paste event"),Sh.canUseTextData(e)){var t=Sh.getTextData(e);""!==t&&i._onPaste.fire({text:t});}else i._textArea.getSelectionStart()!==i._textArea.getSelectionEnd()&&i._setAndWriteTextAreaState("paste",vh.EMPTY),i._nextCommand=1;})),i._register(ni(n.domNode,"focus",function(){i._lastTextAreaEvent=8,i._setHasFocus(!0);})),i._register(ni(n.domNode,"blur",function(){i._lastTextAreaEvent=9,i._setHasFocus(!1);}));var u=0;return i._register(ni(document,"selectionchange",function(e){if(i._hasFocus&&!i._isDoingComposition&&Sn&&o.g){var t=Date.now(),n=t-u;if(u=t,!(n<5)){var r=t-i._textArea.getIgnoreSelectionChangeTime();if(i._textArea.resetSelectionChangeTime(),!(r<100)&&i._textAreaState.selectionStartPosition&&i._textAreaState.selectionEndPosition){var s=i._textArea.getValue();if(i._textAreaState.value===s){var a=i._textArea.getSelectionStart(),l=i._textArea.getSelectionEnd();if(i._textAreaState.selectionStart!==a||i._textAreaState.selectionEnd!==l){var c=i._textAreaState.deduceEditorPosition(a),d=i._host.deduceModelPosition(c[0],c[1],c[2]),h=i._textAreaState.deduceEditorPosition(l),p=i._host.deduceModelPosition(h[0],h[1],h[2]),f=new tn(d.lineNumber,d.column,p.lineNumber,p.column);i._onSelectionChangeRequest.fire(f);}}}}}})),i;}return bh(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype.focusTextArea=function(){this._setHasFocus(!0);},t.prototype.isFocused=function(){return this._hasFocus;},t.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._hasFocus&&(yn?this._setAndWriteTextAreaState("focusgain",vh.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire());},t.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t;},t.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState));},t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getPlainTextToCopy();if(Sh.canUseTextData(e)){var n=null;(function(){if(vn)return!1;if(yn){var e=_n.indexOf("Edge/"),t=parseInt(_n.substring(e+5,_n.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1;}return!0;})()&&(t.length<65536||Ch.forceCopyWithSyntaxHighlighting)&&(n=this._host.getHTMLToCopy()),Sh.setTextData(e,t,n);}else this._setAndWriteTextAreaState("copy or cut",vh.selectedText(t));},t;}(y),Sh=function(){function e(){}return e.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData;},e.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!");},e.setTextData=function(e,t,n){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),null!==n&&e.clipboardData.setData("text/html",n),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!");},e;}(),xh=function(e){function t(t){var n=e.call(this)||this;return n._actual=t,n._ignoreSelectionChangeTime=0,n;}return bh(t,e),t.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now();},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime;},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0;},t.prototype.getValue=function(){return this._actual.domNode.value;},t.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t);},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart;},t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd;},t.prototype.setSelectionRange=function(e,t,n){var i=this._actual.domNode,o=document.activeElement===i,r=i.selectionStart,s=i.selectionEnd;if(o&&r===t&&s===n)Cn&&window.parent!==window&&i.focus();else{if(o)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(Cn&&window.parent!==window&&i.focus());try{var a=function(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t;}(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),function(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode;}(i,a);}catch(e){}}},t;}(y),Eh=(n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),Lh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return Eh(t,e),t;}(Sd);function Th(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n;}var Ih=function(){function e(e,t,n,i){void 0===i&&(i=1),this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=Th(Math.max(Math.min(1,i),0),3);}return e.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a;},e;}(),Nh=function(){function e(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=Th(Math.max(Math.min(1,t),0),3),this.l=Th(Math.max(Math.min(1,n),0),3),this.a=Th(Math.max(Math.min(1,i),0),3);}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a;},e.fromRGBA=function(t){var n=t.r/255,i=t.g/255,o=t.b/255,r=t.a,s=Math.max(n,i,o),a=Math.min(n,i,o),u=0,l=0,c=(a+s)/2,d=s-a;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case n:u=(i-o)/d+(i<o?6:0);break;case i:u=(o-n)/d+2;break;case o:u=(n-i)/d+4;}u*=60,u=Math.round(u);}return new e(u,l,c,r);},e._hue2rgb=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e;},e.toRGBA=function(t){var n,i,o,r=t.h/360,s=t.s,a=t.l,u=t.a;if(0===s)n=i=o=a;else{var l=a<.5?a*(1+s):a+s-a*s,c=2*a-l;n=e._hue2rgb(c,l,r+1/3),i=e._hue2rgb(c,l,r),o=e._hue2rgb(c,l,r-1/3);}return new Ih(Math.round(255*n),Math.round(255*i),Math.round(255*o),u);},e;}(),kh=function(){function e(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=Th(Math.max(Math.min(1,t),0),3),this.v=Th(Math.max(Math.min(1,n),0),3),this.a=Th(Math.max(Math.min(1,i),0),3);}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a;},e.fromRGBA=function(t){var n,i=t.r/255,o=t.g/255,r=t.b/255,s=Math.max(i,o,r),a=s-Math.min(i,o,r),u=0===s?0:a/s;return n=0===a?0:s===i?((o-r)/a%6+6)%6:s===o?(r-i)/a+2:(i-o)/a+4,new e(Math.round(60*n),u,s,t.a);},e.toRGBA=function(e){var t=e.h,n=e.s,i=e.v,o=e.a,r=i*n,s=r*(1-Math.abs(t/60%2-1)),a=i-r,u=[0,0,0],l=u[0],c=u[1],d=u[2];return t<60?(l=r,c=s):t<120?(l=s,c=r):t<180?(c=r,d=s):t<240?(c=s,d=r):t<300?(l=s,d=r):t<360&&(l=r,d=s),l=Math.round(255*(l+a)),c=Math.round(255*(c+a)),d=Math.round(255*(d+a)),new Ih(l,c,d,o);},e;}(),Oh=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof Ih)this.rgba=e;else if(e instanceof Nh)this._hsla=e,this.rgba=Nh.toRGBA(e);else{if(!(e instanceof kh))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=kh.toRGBA(e);}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red;},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:Nh.fromRGBA(this.rgba);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:kh.fromRGBA(this.rgba);},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&Ih.equals(this.rgba,e.rgba)&&Nh.equals(this.hsla,e.hsla)&&kh.equals(this.hsva,e.hsva);},e.prototype.getRelativeLuminance=function(){return Th(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4);},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4);},e.prototype.isLighter=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128;},e.prototype.isLighterThan=function(e){return this.getRelativeLuminance()>e.getRelativeLuminance();},e.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()<e.getRelativeLuminance();},e.prototype.lighten=function(t){return new e(new Nh(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a));},e.prototype.darken=function(t){return new e(new Nh(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a));},e.prototype.transparent=function(t){var n=this.rgba,i=n.r,o=n.g,r=n.b,s=n.a;return new e(new Ih(i,o,r,s*t));},e.prototype.isTransparent=function(){return 0===this.rgba.a;},e.prototype.isOpaque=function(){return 1===this.rgba.a;},e.prototype.opposite=function(){return new e(new Ih(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a));},e.prototype.toString=function(){return""+e.Format.CSS.format(this);},e.getLighterColor=function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var i=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(o-i)/o,e.lighten(n);},e.getDarkerColor=function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n);},e.white=new e(new Ih(255,255,255,1)),e.black=new e(new Ih(0,0,0,1)),e.red=new e(new Ih(255,0,0,1)),e.blue=new e(new Ih(0,0,255,1)),e.cyan=new e(new Ih(0,255,255,1)),e.lightgrey=new e(new Ih(211,211,211,1)),e.transparent=new e(new Ih(0,0,0,0)),e;}();!function(e){!function(t){!function(t){function n(e){var t=e.toString(16);return 2!==t.length?"0"+t:t;}function i(e){switch(e){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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15;}return 0;}t.formatRGB=function(t){return 1===t.rgba.a?"rgb("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+")":e.Format.CSS.formatRGBA(t);},t.formatRGBA=function(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")";},t.formatHSL=function(t){return 1===t.hsla.a?"hsl("+t.hsla.h+", "+(100*t.hsla.s).toFixed(2)+"%, "+(100*t.hsla.l).toFixed(2)+"%)":e.Format.CSS.formatHSLA(t);},t.formatHSLA=function(e){return"hsla("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%, "+e.hsla.a.toFixed(2)+")";},t.formatHex=function(e){return"#"+n(e.rgba.r)+n(e.rgba.g)+n(e.rgba.b);},t.formatHexA=function(t,i){return void 0===i&&(i=!1),i&&1===t.rgba.a?e.Format.CSS.formatHex(t):"#"+n(t.rgba.r)+n(t.rgba.g)+n(t.rgba.b)+n(Math.round(255*t.rgba.a));},t.format=function(t){return t?t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t):null;},t.parseHex=function(t){if(!t)return null;var n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){var o=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),r=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),s=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new Ih(o,r,s,1));}if(9===n){o=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),r=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),s=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));var a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new Ih(o,r,s,a/255));}if(4===n)return o=i(t.charCodeAt(1)),r=i(t.charCodeAt(2)),s=i(t.charCodeAt(3)),new e(new Ih(16*o+o,16*r+r,16*s+s));if(5===n)return o=i(t.charCodeAt(1)),r=i(t.charCodeAt(2)),s=i(t.charCodeAt(3)),a=i(t.charCodeAt(4)),new e(new Ih(16*o+o,16*r+r,16*s+s,(16*a+a)/255));return null;};}(t.CSS||(t.CSS={}));}(e.Format||(e.Format={}));}(Oh||(Oh={}));var Dh="base.contributions.colors",Rh=new(function(){function e(){this.colorSchema={type:"object",description:ie("schema.colors","Colors used in the workbench."),properties:{},additionalProperties:!1},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={};}return e.prototype.registerColor=function(e,t,n,i,o){void 0===i&&(i=!1);var r={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:o};this.colorsById[e]=r;var s={type:"string",description:n,format:"color-hex",default:"#ff0000"};return o&&(s.deprecationMessage=o),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),e;},e.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];return n&&n.defaults?gf(n.defaults[t.type],t):null;},e.prototype.toString=function(){var e=this;return Object.keys(this.colorsById).sort(function(e,t){var n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t);}).map(function(t){return"- `"+t+"`: "+e.colorsById[t].description;}).join("\n");},e;}())();function Ah(e,t,n,i,o){return Rh.registerColor(e,t,n,i,o);}Au.add(Dh,Rh);var Mh=Ah("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},ie("foreground","Overall foreground color. This color is only used if not overridden by a component.")),Ph=Ah("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},ie("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),Fh=Ah("focusBorder",{dark:Oh.fromHex("#0E639C").transparent(.8),light:Oh.fromHex("#007ACC").transparent(.4),hc:"#F38518"},ie("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),Wh=Ah("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},ie("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),Bh=Ah("contrastActiveBorder",{light:null,dark:null,hc:Fh},ie("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),Vh=Ah("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},ie("textLinkForeground","Foreground color for links in text.")),Hh=Ah("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:Oh.black},ie("textCodeBlockBackground","Background color for code blocks in text.")),Uh=Ah("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},ie("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),jh=Ah("input.background",{dark:"#3C3C3C",light:Oh.white,hc:Oh.black},ie("inputBoxBackground","Input box background.")),zh=Ah("input.foreground",{dark:Mh,light:Mh,hc:Mh},ie("inputBoxForeground","Input box foreground.")),Kh=Ah("input.border",{dark:null,light:null,hc:Wh},ie("inputBoxBorder","Input box border.")),qh=Ah("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hc:Bh},ie("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),Gh=Ah("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:Oh.black},ie("inputValidationInfoBackground","Input validation background color for information severity.")),$h=Ah("inputValidation.infoForeground",{dark:null,light:null,hc:null},ie("inputValidationInfoForeground","Input validation foreground color for information severity.")),Yh=Ah("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:Wh},ie("inputValidationInfoBorder","Input validation border color for information severity.")),Xh=Ah("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:Oh.black},ie("inputValidationWarningBackground","Input validation background color for warning severity.")),Zh=Ah("inputValidation.warningForeground",{dark:null,light:null,hc:null},ie("inputValidationWarningForeground","Input validation foreground color for warning severity.")),Qh=Ah("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:Wh},ie("inputValidationWarningBorder","Input validation border color for warning severity.")),Jh=Ah("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:Oh.black},ie("inputValidationErrorBackground","Input validation background color for error severity.")),ep=Ah("inputValidation.errorForeground",{dark:null,light:null,hc:null},ie("inputValidationErrorForeground","Input validation foreground color for error severity.")),tp=Ah("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:Wh},ie("inputValidationErrorBorder","Input validation border color for error severity.")),np=Ah("dropdown.background",{dark:"#3C3C3C",light:Oh.white,hc:Oh.black},ie("dropdownBackground","Dropdown background.")),ip=Ah("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:Oh.white},ie("dropdownForeground","Dropdown foreground.")),op=Ah("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},ie("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.")),rp=Ah("list.focusForeground",{dark:null,light:null,hc:null},ie("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.")),sp=Ah("list.activeSelectionBackground",{dark:"#094771",light:"#2477CE",hc:null},ie("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.")),ap=Ah("list.activeSelectionForeground",{dark:Oh.white,light:Oh.white,hc:null},ie("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.")),up=Ah("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},ie("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.")),lp=Ah("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},ie("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.")),cp=Ah("list.inactiveFocusBackground",{dark:"#313135",light:"#d8dae6",hc:null},ie("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.")),dp=Ah("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},ie("listHoverBackground","List/Tree background when hovering over items using the mouse.")),hp=Ah("list.hoverForeground",{dark:null,light:null,hc:null},ie("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),pp=Ah("list.dropBackground",{dark:op,light:op,hc:null},ie("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),fp=Ah("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:Fh},ie("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),gp=Ah("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:Oh.white},ie("pickerGroupForeground","Quick picker color for grouping labels.")),mp=Ah("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:Oh.white},ie("pickerGroupBorder","Quick picker color for grouping borders.")),_p=Ah("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:Oh.black},ie("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),vp=Ah("badge.foreground",{dark:Oh.white,light:"#333",hc:Oh.white},ie("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),yp=Ah("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},ie("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),bp=Ah("scrollbarSlider.background",{dark:Oh.fromHex("#797979").transparent(.4),light:Oh.fromHex("#646464").transparent(.4),hc:hf(Wh,.6)},ie("scrollbarSliderBackground","Scrollbar slider background color.")),Cp=Ah("scrollbarSlider.hoverBackground",{dark:Oh.fromHex("#646464").transparent(.7),light:Oh.fromHex("#646464").transparent(.7),hc:hf(Wh,.8)},ie("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),wp=Ah("scrollbarSlider.activeBackground",{dark:Oh.fromHex("#BFBFBF").transparent(.4),light:Oh.fromHex("#000000").transparent(.6),hc:Wh},ie("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),Sp=Ah("progressBar.background",{dark:Oh.fromHex("#0E70C0"),light:Oh.fromHex("#0E70C0"),hc:Wh},ie("progressBarBackground","Background color of the progress bar that can show for long running operations.")),xp=Ah("menu.border",{dark:null,light:null,hc:Wh},ie("menuBorder","Border color of menus.")),Ep=Ah("menu.foreground",{dark:ip,light:ip,hc:ip},ie("menuForeground","Foreground color of menu items.")),Lp=Ah("menu.background",{dark:np,light:np,hc:np},ie("menuBackground","Background color of menu items.")),Tp=Ah("menu.selectionForeground",{dark:ap,light:ap,hc:ap},ie("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Ip=Ah("menu.selectionBackground",{dark:sp,light:sp,hc:sp},ie("menuSelectionBackground","Background color of the selected menu item in menus.")),Np=Ah("menu.selectionBorder",{dark:null,light:null,hc:Bh},ie("menuSelectionBorder","Border color of the selected menu item in menus.")),kp=Ah("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:Wh},ie("menuSeparatorBackground","Color of a separator menu item in menus.")),Op=Ah("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:Oh.black},ie("editorBackground","Editor background color.")),Dp=Ah("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:Oh.white},ie("editorForeground","Editor default foreground color.")),Rp=Ah("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},ie("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),Ap=Ah("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:Wh},ie("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.")),Mp=Ah("editorWidget.resizeBorder",{light:null,dark:null,hc:null},ie("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.")),Pp=Ah("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},ie("editorSelectionBackground","Color of the editor selection.")),Fp=Ah("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},ie("editorSelectionForeground","Color of the selected text for high contrast.")),Wp=Ah("editor.inactiveSelectionBackground",{light:hf(Pp,.5),dark:hf(Pp,.5),hc:hf(Pp,.5)},ie("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque to not hide underlying decorations."),!0),Bp=Ah("editor.selectionHighlightBackground",{light:ff(Pp,Op,.3,.6),dark:ff(Pp,Op,.3,.6),hc:null},ie("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque to not hide underlying decorations."),!0),Vp=Ah("editor.selectionHighlightBorder",{light:null,dark:null,hc:Bh},ie("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Hp=Ah("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},ie("editorFindMatch","Color of the current search match.")),Up=Ah("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},ie("findMatchHighlight","Color of the other search matches. The color must not be opaque to not hide underlying decorations."),!0),jp=Ah("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},ie("findRangeHighlight","Color of the range limiting the search. The color must not be opaque to not hide underlying decorations."),!0),zp=Ah("editor.findMatchBorder",{light:null,dark:null,hc:Bh},ie("editorFindMatchBorder","Border color of the current search match.")),Kp=Ah("editor.findMatchHighlightBorder",{light:null,dark:null,hc:Bh},ie("findMatchHighlightBorder","Border color of the other search matches.")),qp=Ah("editor.findRangeHighlightBorder",{dark:null,light:null,hc:hf(Bh,.4)},ie("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque to not hide underlying decorations."),!0),Gp=Ah("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},ie("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque to not hide underlying decorations."),!0),$p=Ah("editorHoverWidget.background",{light:Rp,dark:Rp,hc:Rp},ie("hoverBackground","Background color of the editor hover.")),Yp=Ah("editorHoverWidget.border",{light:Ap,dark:Ap,hc:Ap},ie("hoverBorder","Border color of the editor hover.")),Xp=Ah("editorLink.activeForeground",{dark:"#4E94CE",light:Oh.blue,hc:Oh.cyan},ie("activeLinkForeground","Color of active links.")),Zp=new Oh(new Ih(155,185,85,.2)),Qp=new Oh(new Ih(255,0,0,.2)),Jp=Ah("diffEditor.insertedTextBackground",{dark:Zp,light:Zp,hc:null},ie("diffEditorInserted","Background color for text that got inserted. The color must not be opaque to not hide underlying decorations."),!0),ef=Ah("diffEditor.removedTextBackground",{dark:Qp,light:Qp,hc:null},ie("diffEditorRemoved","Background color for text that got removed. The color must not be opaque to not hide underlying decorations."),!0),tf=Ah("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},ie("diffEditorInsertedOutline","Outline color for the text that got inserted.")),nf=Ah("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},ie("diffEditorRemovedOutline","Outline color for text that got removed.")),of=Ah("diffEditor.border",{dark:null,light:null,hc:Wh},ie("diffEditorBorder","Border color between the two text editors.")),rf=Ah("editor.snippetTabstopHighlightBackground",{dark:new Oh(new Ih(124,124,124,.3)),light:new Oh(new Ih(10,50,100,.2)),hc:new Oh(new Ih(124,124,124,.3))},ie("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),sf=Ah("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},ie("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),af=Ah("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},ie("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),uf=Ah("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new Oh(new Ih(10,50,100,.5)),hc:"#525252"},ie("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),lf=new Oh(new Ih(246,185,77,.7)),cf=Ah("editorOverviewRuler.findMatchForeground",{dark:lf,light:lf,hc:lf},ie("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque to not hide underlying decorations."),!0),df=Ah("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},ie("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque to not hide underlying decorations."),!0);function hf(e,t){return function(n){var i=gf(e,n);return i?i.transparent(t):null;};}function pf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0,i=e;n<i.length;n++){var o=gf(i[n],t);if(o)return o;}return null;};}function ff(e,t,n,i){return function(o){var r=gf(e,o);if(r){var s=gf(t,o);return s?r.isDarkerThan(s)?Oh.getLighterColor(r,s,n).transparent(i):Oh.getDarkerColor(r,s,n).transparent(i):r.transparent(n*i);}return null;};}function gf(e,t){return null===e?null:"string"==typeof e?"#"===e[0]?Oh.fromHex(e):t.getColor(e):e instanceof Oh?e:"function"==typeof e?e(t):null;}var mf=Ah("editor.lineHighlightBackground",{dark:null,light:null,hc:null},ie("lineHighlight","Background color for the highlight of line at the cursor position.")),_f=Ah("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},ie("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),vf=Ah("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},ie("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque to not hide underlying decorations."),!0),yf=Ah("editor.rangeHighlightBorder",{dark:null,light:null,hc:Bh},ie("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),bf=Ah("editorCursor.foreground",{dark:"#AEAFAD",light:Oh.black,hc:Oh.white},ie("caret","Color of the editor cursor.")),Cf=Ah("editorCursor.background",null,ie("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),wf=Ah("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},ie("editorWhitespaces","Color of whitespace characters in the editor.")),Sf=Ah("editorIndentGuide.background",{dark:wf,light:wf,hc:wf},ie("editorIndentGuides","Color of the editor indentation guides.")),xf=Ah("editorIndentGuide.activeBackground",{dark:wf,light:wf,hc:wf},ie("editorActiveIndentGuide","Color of the active editor indentation guides.")),Ef=Ah("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:Oh.white},ie("editorLineNumbers","Color of editor line numbers.")),Lf=Ah("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:Bh},ie("editorActiveLineNumber","Color of editor active line number"),!1,ie("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),Tf=Ah("editorLineNumber.activeForeground",{dark:Lf,light:Lf,hc:Lf},ie("editorActiveLineNumber","Color of editor active line number")),If=Ah("editorRuler.foreground",{dark:"#5A5A5A",light:Oh.lightgrey,hc:Oh.white},ie("editorRuler","Color of the editor rulers.")),Nf=Ah("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},ie("editorCodeLensForeground","Foreground color of editor code lenses")),kf=Ah("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},ie("editorBracketMatchBackground","Background color behind matching brackets")),Of=Ah("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:"#fff"},ie("editorBracketMatchBorder","Color for matching brackets boxes")),Df=Ah("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},ie("editorOverviewRulerBorder","Color of the overview ruler border.")),Rf=Ah("editorGutter.background",{dark:Op,light:Op,hc:Op},ie("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),Af=Ah("editorError.foreground",{dark:"#ea4646",light:"#d60a0a",hc:null},ie("errorForeground","Foreground color of error squigglies in the editor.")),Mf=Ah("editorError.border",{dark:null,light:null,hc:Oh.fromHex("#E47777").transparent(.8)},ie("errorBorder","Border color of error squigglies in the editor.")),Pf=Ah("editorWarning.foreground",{dark:"#4d9e4d",light:"#117711",hc:null},ie("warningForeground","Foreground color of warning squigglies in the editor.")),Ff=Ah("editorWarning.border",{dark:null,light:null,hc:Oh.fromHex("#71B771").transparent(.8)},ie("warningBorder","Border color of warning squigglies in the editor.")),Wf=Ah("editorInfo.foreground",{dark:"#008000",light:"#008000",hc:null},ie("infoForeground","Foreground color of info squigglies in the editor.")),Bf=Ah("editorInfo.border",{dark:null,light:null,hc:Oh.fromHex("#71B771").transparent(.8)},ie("infoBorder","Border color of info squigglies in the editor.")),Vf=Ah("editorHint.foreground",{dark:Oh.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},ie("hintForeground","Foreground color of hint squigglies in the editor.")),Hf=Ah("editorHint.border",{dark:null,light:null,hc:Oh.fromHex("#eeeeee").transparent(.8)},ie("hintBorder","Border color of hint squigglies in the editor.")),Uf=Ah("editorUnnecessaryCode.border",{dark:null,light:null,hc:Oh.fromHex("#fff").transparent(.8)},ie("unnecessaryCodeBorder","Border of unnecessary code in the editor.")),jf=Ah("editorUnnecessaryCode.opacity",{dark:Oh.fromHex("#000a"),light:Oh.fromHex("#0007"),hc:null},ie("unnecessaryCodeOpacity","Opacity of unnecessary code in the editor.")),zf=Ah("editorOverviewRuler.errorForeground",{dark:new Oh(new Ih(255,18,18,.7)),light:new Oh(new Ih(255,18,18,.7)),hc:new Oh(new Ih(255,50,50,1))},ie("overviewRuleError","Overview ruler marker color for errors.")),Kf=Ah("editorOverviewRuler.warningForeground",{dark:new Oh(new Ih(18,136,18,.7)),light:new Oh(new Ih(18,136,18,.7)),hc:new Oh(new Ih(50,255,50,1))},ie("overviewRuleWarning","Overview ruler marker color for warnings.")),qf=Ah("editorOverviewRuler.infoForeground",{dark:new Oh(new Ih(18,18,136,.7)),light:new Oh(new Ih(18,18,136,.7)),hc:new Oh(new Ih(50,50,255,1))},ie("overviewRuleInfo","Overview ruler marker color for infos."));Vd(function(e,t){var n=e.getColor(Op);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+n+"; }");var i=e.getColor(Dp);i&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+i+"; }");var o=e.getColor(Rf);o&&t.addRule(".monaco-editor .margin { background-color: "+o+"; }");var r=e.getColor(vf);r&&t.addRule(".monaco-editor .rangeHighlight { background-color: "+r+"; }");var s=e.getColor(yf);s&&t.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+s+"; }");var a=e.getColor(wf);a&&t.addRule(".vs-whitespace { color: "+a+" !important; }");});var Gf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),$f=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._readConfig(),n._lastCursorModelPosition=new Qt(1,1),n._renderResult=null,n._context.addEventHandler(n),n;}return Gf(t,e),t.prototype._readConfig=function(){var e=this._context.configuration.editor;this._lineHeight=e.lineHeight,this._renderLineNumbers=e.viewInfo.renderLineNumbers,this._renderCustomLineNumbers=e.viewInfo.renderCustomLineNumbers,this._lineNumbersLeft=e.layoutInfo.lineNumbersLeft,this._lineNumbersWidth=e.layoutInfo.lineNumbersWidth;},t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0;},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLinesChanged=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Qt(e,1));if(1!==t.column)return"";var n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){var i=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===i?'<span class="relative-current-line-number">'+n+"</span>":String(i);}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n?String(n):n%10==0?String(n):"":String(n);},t.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var n=o.c?this._lineHeight%2==0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,s='<div class="'+t.CLASS_NAME+n+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',a=[],u=i;u<=r;u++){var l=u-i,c=this._getLineRenderLineNumber(u);a[l]=c?s+c+"</div>":"";}this._renderResult=a;}else this._renderResult=null;},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n];},t.CLASS_NAME="line-numbers",t;}(Lh);Vd(function(e,t){var n=e.getColor(Ef);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var i=e.getColor(Tf);i&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }");});var Yf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Xf=function(e){function t(t){var n=e.call(this,t)||this;return n._canUseLayerHinting=n._context.configuration.editor.canUseLayerHinting,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._glyphMarginLeft=n._context.configuration.editor.layoutInfo.glyphMarginLeft,n._glyphMarginWidth=n._context.configuration.editor.layoutInfo.glyphMarginWidth,n._domNode=n._createDomNode(),n;}return Yf(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype.getDomNode=function(){return this._domNode;},t.prototype._createDomNode=function(){var e=rd(document.createElement("div"));return e.setClassName(t.OUTER_CLASS_NAME),e.setPosition("absolute"),e.setAttribute("role","presentation"),e.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=rd(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(t.CLASS_NAME),e.appendChild(this._glyphMarginBackgroundDomNode),e;},t.prototype.onConfigurationChanged=function(e){return e.canUseLayerHinting&&(this._canUseLayerHinting=this._context.configuration.editor.canUseLayerHinting),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0;},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged;},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting);var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n);},t.CLASS_NAME="glyph-margin",t.OUTER_CLASS_NAME="margin",t;}(Ed),Zf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Qf=function(e){function t(t){for(var n=e.call(this,0)||this,i=0,o=t.length;i<o;i++)n.set(t.charCodeAt(i),2);return n.set(32,1),n.set(9,1),n;}return Zf(t,e),t;}(Da);var Jf,eg,tg=(Jf=function(e){return new Qf(e);},eg={},function(e){return eg.hasOwnProperty(e)||(eg[e]=Jf(e)),eg[e];}),ng=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ig=function(){return function(e){this.type=1,this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo;};}(),og=function(){return function(e){this.type=2,this.selections=e;};}(),rg=function(){return function(){this.type=3;};}(),sg=function(){return function(){this.type=4;};}(),ag=function(){return function(e){this.type=5,this.isFocused=e;};}(),ug=function(){return function(){this.type=6;};}(),lg=function(){return function(e,t){this.type=7,this.fromLineNumber=e,this.toLineNumber=t;};}(),cg=function(){return function(e,t){this.type=8,this.fromLineNumber=e,this.toLineNumber=t;};}(),dg=function(){return function(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t;};}(),hg=function(){return function(e,t,n,i){this.type=10,this.range=e,this.verticalType=t,this.revealHorizontal=n,this.scrollType=i;};}(),pg=function(){return function(e){this.type=11,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged;};}(),fg=function(){return function(e){this.type=12,this.ranges=e;};}(),gg=function(){return function(){this.type=15;};}(),mg=function(){return function(){this.type=13;};}(),_g=function(){return function(){this.type=14;};}(),vg=function(){return function(){this.type=16;};}(),yg=function(e){function t(){var t=e.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t;}return ng(t,e),t.prototype.dispose=function(){this._listeners=[],e.prototype.dispose.call(this);},t.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new bg()),this._collector;},t.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.finalize();this._collector=null,e.length>0&&this._emit(e);}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,i=t.length;n<i;n++)Cg(t[n],e);},t.prototype.addEventListener=function(e){var t=this;return this._listeners.push(e),m(function(){for(var n=t._listeners,i=0,o=n.length;i<o;i++)if(n[i]===e){n.splice(i,1);break;}});},t;}(y),bg=function(){function e(){this._eventsLen=0,this._events=[],this._eventsLen=0;}return e.prototype.emit=function(e){this._events[this._eventsLen++]=e;},e.prototype.finalize=function(){var e=this._events;return this._events=[],e;},e;}();function Cg(e,t){try{e(t);}catch(e){a(e);}}var wg=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Sg=function(){function e(e,t,n){this.top=e,this.left=t,this.width=n;}return e.prototype.setWidth=function(t){return new e(this.top,this.left,t);},e;}(),xg=bn||Cn,Eg=function(){function e(){this._lastState=null;}return e.prototype.set=function(e){this._lastState=e;},e.prototype.get=function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState:(this._lastState=null,null);},e.INSTANCE=new e(),e;}(),Lg=function(e){function t(t,n,i){var r=e.call(this,t)||this;r._primaryCursorVisibleRange=null,r._viewController=n,r._viewHelper=i;var s=r._context.configuration.editor;r._accessibilitySupport=s.accessibilitySupport,r._contentLeft=s.layoutInfo.contentLeft,r._contentWidth=s.layoutInfo.contentWidth,r._contentHeight=s.layoutInfo.contentHeight,r._scrollLeft=0,r._scrollTop=0,r._fontInfo=s.fontInfo,r._lineHeight=s.lineHeight,r._emptySelectionClipboard=s.emptySelectionClipboard,r._copyWithSyntaxHighlighting=s.copyWithSyntaxHighlighting,r._visibleTextArea=null,r._selections=[new tn(1,1,1,1)],r.textArea=rd(document.createElement("textarea")),Ld.write(r.textArea,6),r.textArea.setClassName("inputarea"),r.textArea.setAttribute("wrap","off"),r.textArea.setAttribute("autocorrect","off"),r.textArea.setAttribute("autocapitalize","off"),r.textArea.setAttribute("autocomplete","off"),r.textArea.setAttribute("spellcheck","false"),r.textArea.setAttribute("aria-label",s.viewInfo.ariaLabel),r.textArea.setAttribute("role","textbox"),r.textArea.setAttribute("aria-multiline","true"),r.textArea.setAttribute("aria-haspopup","false"),r.textArea.setAttribute("aria-autocomplete","both"),r.textAreaCover=rd(document.createElement("div")),r.textAreaCover.setPosition("absolute");var a={getLineCount:function(){return r._context.model.getLineCount();},getLineMaxColumn:function(e){return r._context.model.getLineMaxColumn(e);},getValueInRange:function(e,t){return r._context.model.getValueInRange(e,t);}},u={getPlainTextToCopy:function(){var e=r._context.model.getPlainTextToCopy(r._selections,r._emptySelectionClipboard,o.g),t=r._context.model.getEOL(),n=r._emptySelectionClipboard&&1===r._selections.length&&r._selections[0].isEmpty(),i=Array.isArray(e)?e:null,s=Array.isArray(e)?e.join(t):e,a=null;(n||i)&&(a={lastCopiedValue:Cn?s.replace(/\r\n/g,"\n"):s,isFromEmptySelection:r._emptySelectionClipboard&&1===r._selections.length&&r._selections[0].isEmpty(),multicursorText:i});return Eg.INSTANCE.set(a),s;},getHTMLToCopy:function(){return r._copyWithSyntaxHighlighting||Ch.forceCopyWithSyntaxHighlighting?r._context.model.getHTMLToCopy(r._selections,r._emptySelectionClipboard):null;},getScreenReaderContent:function(e){if(En)return vh.EMPTY;if(1===r._accessibilitySupport){if(o.d){var t=r._selections[0];if(t.isEmpty()){var n=t.getStartPosition(),i=r._getWordBeforePosition(n);if(0===i.length&&(i=r._getCharacterBeforePosition(n)),i.length>0)return new vh(i,i.length,i.length,n,n);}}return vh.EMPTY;}return yh.fromEditorSelection(e,a,r._selections[0],0===r._accessibilitySupport);},deduceModelPosition:function(e,t,n){return r._context.model.deduceModelPositionRelativeToViewPosition(e,t,n);}};return r._textAreaInput=r._register(new wh(u,r.textArea)),r._register(r._textAreaInput.onKeyDown(function(e){r._viewController.emitKeyDown(e);})),r._register(r._textAreaInput.onKeyUp(function(e){r._viewController.emitKeyUp(e);})),r._register(r._textAreaInput.onPaste(function(e){var t=Eg.INSTANCE.get(e.text),n=!1,i=null;t&&(n=r._emptySelectionClipboard&&t.isFromEmptySelection,i=t.multicursorText),r._viewController.paste("keyboard",e.text,n,i);})),r._register(r._textAreaInput.onCut(function(){r._viewController.cut("keyboard");})),r._register(r._textAreaInput.onType(function(e){e.replaceCharCnt?r._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):r._viewController.type("keyboard",e.text);})),r._register(r._textAreaInput.onSelectionChangeRequest(function(e){r._viewController.setSelection("keyboard",e);})),r._register(r._textAreaInput.onCompositionStart(function(){var e=r._selections[0].startLineNumber,t=r._selections[0].startColumn;r._context.privateViewEventBus.emit(new hg(new Jt(e,t,e,t),0,!0,1));var n=r._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(r._visibleTextArea=new Sg(r._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,xg?0:1),r._render()),r.textArea.setClassName("inputarea ime-input"),r._viewController.compositionStart("keyboard");})),r._register(r._textAreaInput.onCompositionUpdate(function(e){r._visibleTextArea=bn?r._visibleTextArea.setWidth(0):r._visibleTextArea.setWidth(function(e,t){var n=document.createElement("canvas").getContext("2d");n.font=(i=t,o="normal",r=i.fontWeight,s=i.fontSize,a=i.lineHeight,u=i.fontFamily,o+" normal "+r+" "+s+"px / "+a+"px "+u);var i,o,r,s,a,u;var l=n.measureText(e);return Cn?l.width+2:l.width;}(e.data,r._fontInfo)),r._render();})),r._register(r._textAreaInput.onCompositionEnd(function(){r._visibleTextArea=null,r._render(),r.textArea.setClassName("inputarea"),r._viewController.compositionEnd("keyboard");})),r._register(r._textAreaInput.onFocus(function(){r._context.privateViewEventBus.emit(new ag(!0));})),r._register(r._textAreaInput.onBlur(function(){r._context.privateViewEventBus.emit(new ag(!1));})),r;}return wg(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype._getWordBeforePosition=function(e){for(var t=this._context.model.getLineContent(e.lineNumber),n=tg(this._context.configuration.editor.wordSeparators),i=e.column,o=0;i>1;){var r=t.charCodeAt(i-2);if(0!==n.get(r)||o>50)return t.substring(i-1,e.column-1);o++,i--;}return t.substring(0,e.column-1);},t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!bo(t.charCodeAt(0)))return t;}return"";},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.editor;return e.fontInfo&&(this._fontInfo=t.fontInfo),e.viewInfo&&this.textArea.setAttribute("aria-label",t.viewInfo.ariaLabel),e.layoutInfo&&(this._contentLeft=t.layoutInfo.contentLeft,this._contentWidth=t.layoutInfo.contentWidth,this._contentHeight=t.layoutInfo.contentHeight),e.lineHeight&&(this._lineHeight=t.lineHeight),e.accessibilitySupport&&(this._accessibilitySupport=t.accessibilitySupport,this._textAreaInput.writeScreenReaderContent("strategy changed")),e.emptySelectionClipboard&&(this._emptySelectionClipboard=t.emptySelectionClipboard),e.copyWithSyntaxHighlighting&&(this._copyWithSyntaxHighlighting=t.copyWithSyntaxHighlighting),!0;},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0;},t.prototype.onDecorationsChanged=function(e){return!0;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLinesChanged=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype.isFocused=function(){return this._textAreaInput.isFocused();},t.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea();},t.prototype.prepareRender=function(e){if(2===this._accessibilitySupport)this._primaryCursorVisibleRange=null;else{var t=new Qt(this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=e.visibleRangeForPosition(t);}},t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render();},t.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():this._renderInsideEditor(t,e,xg?0:1,xg?0:1,!1);}}else this._renderAtTopLeft();},t.prototype._renderInsideEditor=function(e,t,n,i,o){var r=this.textArea,s=this.textAreaCover;o?qc.applyFontInfo(r,this._fontInfo):(r.setFontSize(1),r.setLineHeight(this._fontInfo.lineHeight)),r.setTop(e),r.setLeft(t),r.setWidth(n),r.setHeight(i),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0);},t.prototype._renderAtTopLeft=function(){var e=this.textArea,t=this.textAreaCover;if(qc.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),xg)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1),this._context.configuration.editor.viewInfo.glyphMargin?t.setClassName("monaco-editor-background textAreaCover "+Xf.OUTER_CLASS_NAME):0!==this._context.configuration.editor.viewInfo.renderLineNumbers?t.setClassName("monaco-editor-background textAreaCover "+$f.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover");},t;}(Ed);var Tg=o.b.performance&&"function"==typeof o.b.performance.now,Ig=function(){function e(e){this._highResolution=Tg&&e,this._startTime=this._now(),this._stopTime=-1;}return e.create=function(t){return void 0===t&&(t=!0),new e(t);},e.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime;},e.prototype._now=function(){return this._highResolution?o.b.performance.now():new Date().getTime();},e;}(),Ng=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[];}return e.prototype.undo=function(e){for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)};},e.prototype.redo=function(e){for(var t=0;t<this.editOperations.length;t++)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)};},e;}();function kg(e){return"\n"===e.getEOL()?0:1;}var Og=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=t;}return e.prototype.undo=function(e){var t=kg(e);e.setEOL(this.eol),this.eol=t;},e.prototype.redo=function(e){var t=kg(e);e.setEOL(this.eol),this.eol=t;},e;}(),Dg=function(){function e(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[];}return e.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null);},e.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[];},e.prototype.pushEOL=function(e){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var t=kg(this.model),n=new Og(this.model.getAlternativeVersionId(),t);this.model.setEOL(e),n.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=n,this.pushStackElement();},e.prototype.pushEditOperation=function(t,n,i){this.future=[];var o=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof Ng?o=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(o=new Ng(this.model.getAlternativeVersionId(),t),this.currentOpenStackElement=o);var r={operations:this.model.applyEdits(n)};return o.editOperations.push(r),o.afterCursorState=e._computeCursorState(i,r.operations),o.afterVersionId=this.model.getVersionId(),o.afterCursorState;},e._computeCursorState=function(e,t){try{return e?e(t):null;}catch(e){return a(e),null;}},e.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var e=this.past.pop();try{e.undo(this.model);}catch(e){return a(e),this.clear(),null;}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId};}return null;},e.prototype.canUndo=function(){return this.past.length>0;},e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model);}catch(e){return a(e),this.clear(),null;}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId};}return null;},e.prototype.canRedo=function(){return this.future.length>0;},e;}(),Rg=function(){return function(){};}();function Ag(e,t,n,i,o){var r;for(o.spacesDiff=0,o.looksLikeAlignment=!1,r=0;r<t&&r<i;r++){if(e.charCodeAt(r)!==n.charCodeAt(r))break;}for(var s=0,a=0,u=r;u<t;u++){32===e.charCodeAt(u)?s++:a++;}var l=0,c=0;for(u=r;u<i;u++){32===n.charCodeAt(u)?l++:c++;}if(!(s>0&&a>0||l>0&&c>0)){var d=Math.abs(a-c),h=Math.abs(s-l);if(0===d)return o.spacesDiff=h,void(h>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&(o.looksLikeAlignment=!0));h%d!=0||(o.spacesDiff=h/d);}}function Mg(e,t,n){for(var i=Math.min(e.getLineCount(),1e4),o=0,r=0,s="",a=0,u=[0,0,0,0,0,0,0,0,0],l=new Rg(),c=1;c<=i;c++){for(var d=e.getLineLength(c),h=e.getLineContent(c),p=d<=65536,f=!1,g=0,m=0,_=0,v=0,y=d;v<y;v++){var b=p?h.charCodeAt(v):e.getLineCharCode(c,v);if(9===b)_++;else{if(32!==b){f=!0,g=v;break;}m++;}}if(f&&(_>0?o++:m>1&&r++,Ag(s,a,h,g,l),!l.looksLikeAlignment)){var C=l.spacesDiff;C<=8&&u[C]++,s=h,a=g;}}var w=n;o!==r&&(w=o<r);var S=t,x=w?0:.1*i;return[2,4,6,8,3,5,7].forEach(function(e){var t=u[e];t>x&&(x=t,S=e);}),{insertSpaces:w,tabSize:S};}function Pg(e){return(1&e.metadata)>>>0;}function Fg(e,t){e.metadata=254&e.metadata|t<<0;}function Wg(e){return(2&e.metadata)>>>1==1;}function Bg(e,t){e.metadata=253&e.metadata|(t?1:0)<<1;}function Vg(e){return(4&e.metadata)>>>2==1;}function Hg(e,t){e.metadata=251&e.metadata|(t?1:0)<<2;}function Ug(e){return(8&e.metadata)>>>3==1;}function jg(e,t){e.metadata=247&e.metadata|(t?1:0)<<3;}function zg(e,t){e.metadata=207&e.metadata|t<<4;}function Kg(e,t){e.metadata=191&e.metadata|(t?1:0)<<6;}var qg=function(){function e(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Fg(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,Hg(this,!1),zg(this,1),jg(this,!1),Kg(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,Bg(this,!1);}return e.prototype.reset=function(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i;},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;Hg(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),zg(this,this.options.stickiness),jg(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),Kg(this,this.options.collapseOnReplaceEdit);},e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t;},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null;},e;}(),Gg=new qg(null,0,0);Gg.parent=Gg,Gg.left=Gg,Gg.right=Gg,Fg(Gg,0);var $g=function(){function e(){this.root=Gg,this.requestNormalizeDelta=!1;}return e.prototype.intervalSearch=function(e,t,n,i,o){return this.root===Gg?[]:function(e,t,n,i,o,r){var s=e.root,a=0,u=0,l=0,c=[],d=0;for(;s!==Gg;)if(Wg(s))Bg(s.left,!1),Bg(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!Wg(s.left)){if(a+s.maxEnd<t){Bg(s,!0);continue;}if(s.left!==Gg){s=s.left;continue;}}if((u=a+s.start)>n)Bg(s,!0);else{if((l=a+s.end)>=t){s.setCachedOffsets(u,l,r);var h=!0;i&&s.ownerId&&s.ownerId!==i&&(h=!1),o&&Vg(s)&&(h=!1),h&&(c[d++]=s);}Bg(s,!0),s.right===Gg||Wg(s.right)||(a+=s.delta,s=s.right);}}return Bg(e.root,!1),c;}(this,e,t,n,i,o);},e.prototype.search=function(e,t,n){return this.root===Gg?[]:function(e,t,n,i){var o=e.root,r=0,s=0,a=0,u=[],l=0;for(;o!==Gg;)if(Wg(o))Bg(o.left,!1),Bg(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),o=o.parent;else if(o.left===Gg||Wg(o.left)){s=r+o.start,a=r+o.end,o.setCachedOffsets(s,a,i);var c=!0;t&&o.ownerId&&o.ownerId!==t&&(c=!1),n&&Vg(o)&&(c=!1),c&&(u[l++]=o),Bg(o,!0),o.right===Gg||Wg(o.right)||(r+=o.delta,o=o.right);}else o=o.left;return Bg(e.root,!1),u;}(this,e,t,n);},e.prototype.collectNodesFromOwner=function(e){return function(e,t){var n=e.root,i=[],o=0;for(;n!==Gg;)Wg(n)?(Bg(n.left,!1),Bg(n.right,!1),n=n.parent):n.left===Gg||Wg(n.left)?(n.ownerId===t&&(i[o++]=n),Bg(n,!0),n.right===Gg||Wg(n.right)||(n=n.right)):n=n.left;return Bg(e.root,!1),i;}(this,e);},e.prototype.collectNodesPostOrder=function(){return function(e){var t=e.root,n=[],i=0;for(;t!==Gg;)Wg(t)?(Bg(t.left,!1),Bg(t.right,!1),t=t.parent):t.left===Gg||Wg(t.left)?t.right===Gg||Wg(t.right)?(n[i++]=t,Bg(t,!0)):t=t.right:t=t.left;return Bg(e.root,!1),n;}(this);},e.prototype.insert=function(e){Zg(this,e),this._normalizeDeltaIfNecessary();},e.prototype.delete=function(e){Qg(this,e),this._normalizeDeltaIfNecessary();},e.prototype.resolveNode=function(e,t){for(var n=e,i=0;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;var o=n.start+i,r=n.end+i;n.setCachedOffsets(o,r,t);},e.prototype.acceptReplace=function(e,t,n,i){for(var o=function(e,t,n){var i=e.root,o=0,r=0,s=0,a=[],u=0;for(;i!==Gg;)if(Wg(i))Bg(i.left,!1),Bg(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;else{if(!Wg(i.left)){if(o+i.maxEnd<t){Bg(i,!0);continue;}if(i.left!==Gg){i=i.left;continue;}}(r=o+i.start)>n?Bg(i,!0):((s=o+i.end)>=t&&(i.setCachedOffsets(r,s,0),a[u++]=i),Bg(i,!0),i.right===Gg||Wg(i.right)||(o+=i.delta,i=i.right));}return Bg(e.root,!1),a;}(this,e,e+t),r=0,s=o.length;r<s;r++){Qg(this,a=o[r]);}this._normalizeDeltaIfNecessary(),function(e,t,n,i){var o=e.root,r=0,s=i-(n-t);for(;o!==Gg;)if(Wg(o))Bg(o.left,!1),Bg(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),im(o),o=o.parent;else{if(!Wg(o.left)){if(r+o.maxEnd<t){Bg(o,!0);continue;}if(o.left!==Gg){o=o.left;continue;}}r+o.start>n?(o.start+=s,o.end+=s,o.delta+=s,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),Bg(o,!0)):(Bg(o,!0),o.right===Gg||Wg(o.right)||(r+=o.delta,o=o.right));}Bg(e.root,!1);}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(r=0,s=o.length;r<s;r++){var a;(a=o[r]).start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,Xg(a,e,e+t,n,i),a.maxEnd=a.end,Zg(this,a);}this._normalizeDeltaIfNecessary();},e.prototype._normalizeDeltaIfNecessary=function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){var t=e.root,n=0;for(;t!==Gg;)t.left===Gg||Wg(t.left)?t.right===Gg||Wg(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,im(t),Bg(t,!0),Bg(t.left,!1),Bg(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;Bg(e.root,!1);}(this));},e;}();function Yg(e,t,n,i){return e<n||!(e>n)&&1!==i&&(2===i||t);}function Xg(e,t,n,i,o){var r=function(e){return(48&e.metadata)>>>4;}(e),s=0===r||2===r,a=1===r||2===r,u=n-t,l=i,c=Math.min(u,l),d=e.start,h=!1,p=e.end,f=!1;t<=d&&p<=n&&function(e){return(64&e.metadata)>>>6==1;}(e)&&(e.start=t,h=!0,e.end=t,f=!0);var g=o?1:u>0?2:0;if(!h&&Yg(d,s,t,g)&&(h=!0),!f&&Yg(p,a,t,g)&&(f=!0),c>0&&!o){g=u>l?2:0;!h&&Yg(d,s,t+c,g)&&(h=!0),!f&&Yg(p,a,t+c,g)&&(f=!0);}g=o?1:0;!h&&Yg(d,s,n,g)&&(e.start=t+l,h=!0),!f&&Yg(p,a,n,g)&&(e.end=t+l,f=!0);var m=l-u;h||(e.start=Math.max(0,d+m),h=!0),f||(e.end=Math.max(0,p+m),f=!0),e.start>e.end&&(e.end=e.start);}function Zg(e,t){if(e.root===Gg)return t.parent=Gg,t.left=Gg,t.right=Gg,Fg(t,0),e.root=t,e.root;!function(e,t){var n=0,i=e.root,o=t.start,r=t.end;for(;;){var s=rm(o,r,i.start+n,i.end+n);if(s<0){if(i.left===Gg){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break;}i=i.left;}else{if(i.right===Gg){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break;}n+=i.delta,i=i.right;}}t.parent=i,t.left=Gg,t.right=Gg,Fg(t,1);}(e,t),om(t.parent);for(var n=t;n!==e.root&&1===Pg(n.parent);){var i;if(n.parent===n.parent.parent.left)1===Pg(i=n.parent.parent.right)?(Fg(n.parent,0),Fg(i,0),Fg(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&em(e,n=n.parent),Fg(n.parent,0),Fg(n.parent.parent,1),tm(e,n.parent.parent));else 1===Pg(i=n.parent.parent.left)?(Fg(n.parent,0),Fg(i,0),Fg(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&tm(e,n=n.parent),Fg(n.parent,0),Fg(n.parent.parent,1),em(e,n.parent.parent));}return Fg(e.root,0),t;}function Qg(e,t){var n,i;if(t.left===Gg?(i=t,(n=t.right).delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===Gg?(n=t.left,i=t):((n=(i=function(e){for(;e.left!==Gg;)e=e.left;return e;}(t.right)).right).start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Fg(n,0),t.detach(),Jg(),im(n),void(e.root.parent=Gg);var o,r=1===Pg(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Fg(i,Pg(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Gg&&(i.left.parent=i),i.right!==Gg&&(i.right.parent=i)),t.detach(),r)return om(n.parent),i!==t&&(om(i),om(i.parent)),void Jg();for(om(n),om(n.parent),i!==t&&(om(i),om(i.parent));n!==e.root&&0===Pg(n);)n===n.parent.left?(1===Pg(o=n.parent.right)&&(Fg(o,0),Fg(n.parent,1),em(e,n.parent),o=n.parent.right),0===Pg(o.left)&&0===Pg(o.right)?(Fg(o,1),n=n.parent):(0===Pg(o.right)&&(Fg(o.left,0),Fg(o,1),tm(e,o),o=n.parent.right),Fg(o,Pg(n.parent)),Fg(n.parent,0),Fg(o.right,0),em(e,n.parent),n=e.root)):(1===Pg(o=n.parent.left)&&(Fg(o,0),Fg(n.parent,1),tm(e,n.parent),o=n.parent.left),0===Pg(o.left)&&0===Pg(o.right)?(Fg(o,1),n=n.parent):(0===Pg(o.left)&&(Fg(o.right,0),Fg(o,1),em(e,o),o=n.parent.left),Fg(o,Pg(n.parent)),Fg(n.parent,0),Fg(o.left,0),tm(e,n.parent),n=e.root));Fg(n,0),Jg();}function Jg(){Gg.parent=Gg,Gg.delta=0,Gg.start=0,Gg.end=0;}function em(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==Gg&&(n.left.parent=t),n.parent=t.parent,t.parent===Gg?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,im(t),im(n);}function tm(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==Gg&&(n.right.parent=t),n.parent=t.parent,t.parent===Gg?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,im(t),im(n);}function nm(e){var t=e.end;if(e.left!==Gg){var n=e.left.maxEnd;n>t&&(t=n);}if(e.right!==Gg){var i=e.right.maxEnd+e.delta;i>t&&(t=i);}return t;}function im(e){e.maxEnd=nm(e);}function om(e){for(;e!==Gg;){var t=nm(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent;}}function rm(e,t,n,i){return e===n?t-i:e-n;}var sm=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this;}return e.prototype.next=function(){if(this.right!==am)return um(this.right);for(var e=this;e.parent!==am&&e.parent.left!==e;)e=e.parent;return e.parent===am?am:e.parent;},e.prototype.prev=function(){if(this.left!==am)return lm(this.left);for(var e=this;e.parent!==am&&e.parent.right!==e;)e=e.parent;return e.parent===am?am:e.parent;},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null;},e;}(),am=new sm(null,0);function um(e){for(;e.left!==am;)e=e.left;return e;}function lm(e){for(;e.right!==am;)e=e.right;return e;}function cm(e){return e===am?0:e.size_left+e.piece.length+cm(e.right);}function dm(e){return e===am?0:e.lf_left+e.piece.lineFeedCnt+dm(e.right);}function hm(){am.parent=am;}function pm(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==am&&(n.left.parent=t),n.parent=t.parent,t.parent===am?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n;}function fm(e,t){var n=t.left;t.left=n.right,n.right!==am&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===am?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n;}function gm(e,t){var n,i;if(n=t.left===am?(i=t).right:t.right===am?(i=t).left:(i=um(t.right)).right,i===e.root)return e.root=n,n.color=0,t.detach(),hm(),void(e.root.parent=am);var o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,vm(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,vm(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==am&&(i.left.parent=i),i.right!==am&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,vm(e,i)),t.detach(),n.parent.left===n){var r=cm(n),s=dm(n);if(r!==n.parent.size_left||s!==n.parent.lf_left){var a=r-n.parent.size_left,u=s-n.parent.lf_left;n.parent.size_left=r,n.parent.lf_left=s,_m(e,n.parent,a,u);}}if(vm(e,n.parent),o)hm();else{for(var l;n!==e.root&&0===n.color;)n===n.parent.left?(1===(l=n.parent.right).color&&(l.color=0,n.parent.color=1,pm(e,n.parent),l=n.parent.right),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.right.color&&(l.left.color=0,l.color=1,fm(e,l),l=n.parent.right),l.color=n.parent.color,n.parent.color=0,l.right.color=0,pm(e,n.parent),n=e.root)):(1===(l=n.parent.left).color&&(l.color=0,n.parent.color=1,fm(e,n.parent),l=n.parent.left),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.left.color&&(l.right.color=0,l.color=1,pm(e,l),l=n.parent.left),l.color=n.parent.color,n.parent.color=0,l.left.color=0,fm(e,n.parent),n=e.root));n.color=0,hm();}}function mm(e,t){for(vm(e,t);t!==e.root&&1===t.parent.color;){var n;if(t.parent===t.parent.parent.left)1===(n=t.parent.parent.right).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&pm(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,fm(e,t.parent.parent));else 1===(n=t.parent.parent.left).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&fm(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,pm(e,t.parent.parent));}e.root.color=0;}function _m(e,t,n,i){for(;t!==e.root&&t!==am;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent;}function vm(e,t){var n=0,i=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=cm((t=t.parent).left)-t.size_left,i=dm(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;}for(;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent;}}am.parent=am,am.left=am,am.right=am,am.color=0;var ym=function(){function e(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i;}return e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(92===i){if(++t>=n)break;var o=e.charCodeAt(t);if(110===o||114===o||87===o)return!0;}}return!1;}(this.searchString):this.searchString.indexOf("\n")>=0;var t=null;try{t=uo(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0});}catch(e){return null;}if(!t)return null;var n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new bm(t,this.wordSeparators?tg(this.wordSeparators):null,n?this.searchString:null);},e;}();var bm=function(){return function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n;};}();function Cm(e,t,n){if(!n)return new fr(e,null);for(var i=[],o=0,r=t.length;o<r;o++)i[o]=t[o];return new fr(e,i);}var wm=function(){function e(e){for(var t=[],n=0,i=0,o=e.length;i<o;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t;}return e.prototype.findLineFeedCountBeforeOffset=function(e){var t=this._lineFeedsOffsets,n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){var o=n+((i-n)/2>>0);t[o]>=e?i=o-1:t[o+1]>=e?(n=o,i=o):n=o+1;}return n+1;},e;}(),Sm=function(){function e(){}return e.findMatches=function(e,t,n,i,o){var r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,n,new Em(r.wordSeparators,r.regex),i,o):this._doFindMatchesLineByLine(e,n,r,i,o):[];},e._getMultilineMatchRange=function(e,t,n,i,o,r){var s,a,u=0;if(s=i?t+o+(u=i.findLineFeedCountBeforeOffset(o)):t+o,i){var l=i.findLineFeedCountBeforeOffset(o+r.length)-u;a=s+r.length+l;}else a=s+r.length;var c=e.getPositionAt(s),d=e.getPositionAt(a);return new Jt(c.lineNumber,c.column,d.lineNumber,d.column);},e._doFindMatchesMultiline=function(e,t,n,i,o){var r,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),u="\r\n"===e.getEOL()?new wm(a):null,l=[],c=0;for(n.reset(0);r=n.next(a);)if(l[c++]=Cm(this._getMultilineMatchRange(e,s,a,u,r.index,r[0]),r,i),c>=o)return l;return l;},e._doFindMatchesLineByLine=function(e,t,n,i,o){var r=[],s=0;if(t.startLineNumber===t.endLineNumber){var a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,r,i,o),r;}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,s,r,i,o);for(var l=t.startLineNumber+1;l<t.endLineNumber&&s<o;l++)s=this._findMatchesInLine(n,e.getLineContent(l),l,0,s,r,i,o);if(s<o){var c=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(n,c,t.endLineNumber,0,s,r,i,o);}return r;},e._findMatchesInLine=function(e,t,n,i,o,r,s,a){var u=e.wordSeparators;if(!s&&e.simpleSearch){for(var l=e.simpleSearch,c=l.length,d=t.length,h=-c;-1!==(h=t.indexOf(l,h+c));)if((!u||xm(u,t,d,h,c))&&(r[o++]=new fr(new Jt(n,h+1+i,n,h+1+c+i),null),o>=a))return o;return o;}var p,f=new Em(e.wordSeparators,e.regex);f.reset(0);do{if((p=f.next(t))&&(r[o++]=Cm(new Jt(n,p.index+1+i,n,p.index+1+p[0].length+i),p,s),o>=a))return o;}while(p);return o;},e.findNextMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new Em(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,r,i):this._doFindNextMatchLineByLine(e,n,r,i);},e._doFindNextMatchMultiline=function(e,t,n,i){var o=new Qt(t.lineNumber,1),r=e.getOffsetAt(o),s=e.getLineCount(),a=e.getValueInRange(new Jt(o.lineNumber,o.column,s,e.getLineMaxColumn(s)),1),u="\r\n"===e.getEOL()?new wm(a):null;n.reset(t.column-1);var l=n.next(a);return l?Cm(this._getMultilineMatchRange(e,r,a,u,l.index,l[0]),l,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new Qt(1,1),n,i):null;},e._doFindNextMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r),a=this._findFirstMatchInLine(n,s,r,t.column,i);if(a)return a;for(var u=1;u<=o;u++){var l=(r+u-1)%o,c=e.getLineContent(l+1),d=this._findFirstMatchInLine(n,c,l+1,1,i);if(d)return d;}return null;},e._findFirstMatchInLine=function(e,t,n,i,o){e.reset(i-1);var r=e.next(t);return r?Cm(new Jt(n,r.index+1,n,r.index+1+r[0].length),r,o):null;},e.findPreviousMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new Em(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,r,i):this._doFindPreviousMatchLineByLine(e,n,r,i);},e._doFindPreviousMatchMultiline=function(e,t,n,i){var o=this._doFindMatchesMultiline(e,new Jt(1,1,t.lineNumber,t.column),n,i,9990);if(o.length>0)return o[o.length-1];var r=e.getLineCount();return t.lineNumber!==r||t.column!==e.getLineMaxColumn(r)?this._doFindPreviousMatchMultiline(e,new Qt(r,e.getLineMaxColumn(r)),n,i):null;},e._doFindPreviousMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,r,i);if(a)return a;for(var u=1;u<=o;u++){var l=(o+r-u-1)%o,c=e.getLineContent(l+1),d=this._findLastMatchInLine(n,c,l+1,i);if(d)return d;}return null;},e._findLastMatchInLine=function(e,t,n,i){var o,r=null;for(e.reset(0);o=e.next(t);)r=Cm(new Jt(n,o.index+1,n,o.index+1+o[0].length),o,i);return r;},e;}();function xm(e,t,n,i,o){return function(e,t,n,i,o){if(0===i)return!0;var r=t.charCodeAt(i-1);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i);if(0!==e.get(s))return!0;}return!1;}(e,t,0,i,o)&&function(e,t,n,i,o){if(i+o===n)return!0;var r=t.charCodeAt(i+o);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i+o-1);if(0!==e.get(s))return!0;}return!1;}(e,t,n,i,o);}var Em=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0;}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0;},e.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(!(t=this._searchRegex.exec(e)))return null;var i=t.index,o=t[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength)return null;if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||xm(this._wordSeparators,e,n,i,o))return t;}while(t);return null;},e;}();function Lm(e){var t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t;}var Tm=function(){return function(e,t,n,i,o){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=o;};}();function Im(e,t){void 0===t&&(t=!0);for(var n=[0],i=1,o=0,r=e.length;o<r;o++){var s=e.charCodeAt(o);13===s?o+1<r&&10===e.charCodeAt(o+1)?(n[i++]=o+2,o++):n[i++]=o+1:10===s&&(n[i++]=o+1);}return t?Lm(n):n;}var Nm=function(){return function(e,t,n,i,o){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=o;};}(),km=function(){return function(e,t){this.buffer=e,this.lineStarts=t;};}(),Om=function(){function e(e){this._limit=e,this._cache=[];}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n;}return null;},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n;}return null;},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e);},e.prototype.valdiate=function(e){for(var t=!1,n=this._cache,i=0;i<n.length;i++){var o=n[i];(null===o.node.parent||o.nodeStartOffset>=e)&&(n[i]=null,t=!0);}if(t){var r=[];for(i=0;i<n.length;i++){var s=n[i];null!==s&&r.push(s);}this._cache=r;}},e;}(),Dm=function(){function e(e,t,n){this.create(e,t,n);}return e.prototype.create=function(e,t,n){this._buffers=[new km("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=am,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;for(var i=null,o=0,r=e.length;o<r;o++)if(e[o].buffer.length>0){e[o].lineStarts||(e[o].lineStarts=Im(e[o].buffer));var s=new Nm(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),i=this.rbInsertRight(i,s);}this._searchCache=new Om(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata();},e.prototype.normalizeEOL=function(e){var t=this,n=65535-Math.floor(21845),i=2*n,o="",r=0,s=[];if(this.iterate(this.root,function(a){var u=t.getNodeContent(a),l=u.length;if(r<=n||r+l<i)return o+=u,r+=l,!0;var c=o.replace(/\r\n|\r|\n/g,e);return s.push(new km(c,Im(c))),o=u,r=l,!0;}),r>0){var a=o.replace(/\r\n|\r|\n/g,e);s.push(new km(a,Im(a)));}this.create(s,e,!0);},e.prototype.getEOL=function(){return this._EOL;},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e);},e.prototype.getOffsetAt=function(e,t){for(var n=0,i=this.root;i!==am;)if(i.left!==am&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e)return(n+=i.size_left)+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1);e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right;}return n;},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,i=e;t!==am;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var o=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+o.index,0===o.index){var r=this.getOffsetAt(n+1,1);return new Qt(n+1,i-r+1);}return new Qt(n+1,o.remainder+1);}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===am){r=this.getOffsetAt(n+1,1);return new Qt(n+1,i-e-r+1);}t=t.right;}return new Qt(1,1);},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o;},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(o+e.remainder,o+t.remainder);}var r=e.node,s=this._buffers[r.piece.bufferIndex].buffer,a=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start),u=s.substring(a+e.remainder,a+r.piece.length);for(r=r.next();r!==am;){var l=this._buffers[r.piece.bufferIndex].buffer,c=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===t.node){u+=l.substring(c,c+t.remainder);break;}u+=l.substr(c,r.piece.length),r=r.next();}return u;},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/);},e.prototype.getLength=function(){return this._length;},e.prototype.getLineCount=function(){return this._lineCnt;},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value);},e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var i=n.node.next();if(!i)return 0;var o=this._buffers[i.piece.bufferIndex],r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o.buffer.charCodeAt(r);}o=this._buffers[n.node.piece.bufferIndex];var s=(r=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start))+n.remainder;return o.buffer.charCodeAt(s);},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t;}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength;},e.prototype.findMatchesInNode=function(e,t,n,i,o,r,s,a,u,l,c){var d,h=this._buffers[e.piece.bufferIndex],p=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),f=this.offsetInBuffer(e.piece.bufferIndex,o),g=this.offsetInBuffer(e.piece.bufferIndex,r);t.reset(f);var m={line:0,column:0};do{if(d=t.next(h.buffer)){if(d.index>=g)return l;this.positionInBuffer(e,d.index-p,m);var _=this.getLineFeedCnt(e.piece.bufferIndex,o,m),v=m.line===o.line?m.column-o.column+i:m.column+1,y=v+d[0].length;if(c[l++]=Cm(new Jt(n+_,v,n+_,y),d,a),d.index+d[0].length>=g)return l;if(l>=u)return l;}}while(d);return l;},e.prototype.findMatchesLineByLine=function(e,t,n,i){var o=[],r=0,s=new Em(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var l=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,l,c,t,n,i,r,o),o;for(var d=e.startLineNumber,h=a.node;h!==u.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,l,h.piece.end);if(p>=1){var f=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),m=f[l.line+p],_=d===e.startLineNumber?e.startColumn:1;if((r=this.findMatchesInNode(h,s,d,_,l,this.positionInBuffer(h,m-g),t,n,i,r,o))>=i)return o;d+=p;}var v=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var y=this.getLineContent(d).substring(v,e.endColumn-1);return r=this._findMatchesInLine(t,s,y,e.endLineNumber,v,r,o,n,i),o;}if((r=this._findMatchesInLine(t,s,this.getLineContent(d).substr(v),d,v,r,o,n,i))>=i)return o;d++,h=(a=this.nodeAt2(d,1)).node,l=this.positionInBuffer(a.node,a.remainder);}if(d===e.endLineNumber){var b=d===e.startLineNumber?e.startColumn-1:0;y=this.getLineContent(d).substring(b,e.endColumn-1);return r=this._findMatchesInLine(t,s,y,e.endLineNumber,b,r,o,n,i),o;}var C=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(u.node,s,d,C,l,c,t,n,i,r,o),o;},e.prototype._findMatchesInLine=function(e,t,n,i,o,r,s,a,u){var l,c=e.wordSeparators;if(!a&&e.simpleSearch){for(var d=e.simpleSearch,h=d.length,p=n.length,f=-h;-1!==(f=n.indexOf(d,f+h));)if((!c||xm(c,n,p,f,h))&&(s[r++]=new fr(new Jt(i,f+1+o,i,f+1+h+o),null),r>=u))return r;return r;}t.reset(0);do{if((l=t.next(n))&&(s[r++]=Cm(new Jt(i,l.index+1+o,i,l.index+1+l[0].length+o),l,a),r>=u))return r;}while(l);return r;},e.prototype.insert=function(e,t,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==am){var i=this.nodeAt(e),o=i.node,r=i.remainder,s=i.nodeStartOffset,a=o.piece,u=a.bufferIndex,l=this.positionInBuffer(o,r);if(0===o.piece.bufferIndex&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&s+a.length===e&&t.length<65535)return this.appendToNode(o,t),void this.computeBufferMetadata();if(s===e)this.insertContentToNodeLeft(t,o),this._searchCache.valdiate(e);else if(s+o.piece.length>e){var c=[],d=new Nm(a.bufferIndex,l,a.end,this.getLineFeedCnt(a.bufferIndex,l,a.end),this.offsetInBuffer(u,a.end)-this.offsetInBuffer(u,l));if(this.shouldCheckCRLF()&&this.endWithCR(t))if(10===this.nodeCharCodeAt(o,r)){var h={line:d.start.line+1,column:0};d=new Nm(d.bufferIndex,h,d.end,this.getLineFeedCnt(d.bufferIndex,h,d.end),d.length-1),t+="\n";}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(o,r-1)){var p=this.positionInBuffer(o,r-1);this.deleteNodeTail(o,p),t="\r"+t,0===o.piece.length&&c.push(o);}else this.deleteNodeTail(o,l);}else this.deleteNodeTail(o,l);var f=this.createNewPieces(t);d.length>0&&this.rbInsertRight(o,d);for(var g=o,m=0;m<f.length;m++)g=this.rbInsertRight(g,f[m]);this.deleteNodes(c);}else this.insertContentToNodeRight(t,o);}else{var _=this.createNewPieces(t);for(o=this.rbInsertLeft(null,_[0]),m=1;m<_.length;m++)o=this.rbInsertRight(o,_[m]);}this.computeBufferMetadata();},e.prototype.delete=function(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(t<=0||this.root===am)){var n=this.nodeAt(e),i=this.nodeAt(e+t),o=n.node,r=i.node;if(o===r){var s=this.positionInBuffer(o,n.remainder),a=this.positionInBuffer(o,i.remainder);if(n.nodeStartOffset===e){if(t===o.piece.length){var u=o.next();return gm(this,o),this.validateCRLFWithPrevNode(u),void this.computeBufferMetadata();}return this.deleteNodeHead(o,a),this._searchCache.valdiate(e),this.validateCRLFWithPrevNode(o),void this.computeBufferMetadata();}return n.nodeStartOffset+o.piece.length===e+t?(this.deleteNodeTail(o,s),this.validateCRLFWithNextNode(o),void this.computeBufferMetadata()):(this.shrinkNode(o,s,a),void this.computeBufferMetadata());}var l=[],c=this.positionInBuffer(o,n.remainder);this.deleteNodeTail(o,c),this._searchCache.valdiate(e),0===o.piece.length&&l.push(o);var d=this.positionInBuffer(r,i.remainder);this.deleteNodeHead(r,d),0===r.piece.length&&l.push(r);for(var h=o.next();h!==am&&h!==r;h=h.next())l.push(h);var p=0===o.piece.length?o.prev():o;this.deleteNodes(l),this.validateCRLFWithNextNode(p),this.computeBufferMetadata();}},e.prototype.insertContentToNodeLeft=function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var i=t.piece,o={line:i.start.line+1,column:0},r=new Nm(i.bufferIndex,o,i.end,this.getLineFeedCnt(i.bufferIndex,o,i.end),i.length-1);t.piece=r,e+="\n",_m(this,t,-1,-1),0===t.piece.length&&n.push(t);}for(var s=this.createNewPieces(e),a=this.rbInsertLeft(t,s[s.length-1]),u=s.length-2;u>=0;u--)a=this.rbInsertLeft(a,s[u]);this.validateCRLFWithPrevNode(a),this.deleteNodes(n);},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),o=i,r=1;r<n.length;r++)o=this.rbInsertRight(o,n[r]);this.validateCRLFWithPrevNode(i);},e.prototype.positionInBuffer=function(e,t,n){for(var i=e.piece,o=e.piece.bufferIndex,r=this._buffers[o].lineStarts,s=r[i.start.line]+i.start.column+t,a=i.start.line,u=i.end.line,l=0,c=0,d=0;a<=u&&(d=r[l=a+(u-a)/2|0],l!==u);)if(c=r[l+1],s<d)u=l-1;else{if(!(s>=c))break;a=l+1;}return n?(n.line=l,n.column=s-d,null):{line:l,column:s-d};},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;var o=i[n.line+1],r=i[n.line]+n.column;if(o>r+1)return n.line-t.line;var s=r-1;return 13===this._buffers[e].buffer.charCodeAt(s)?n.line-t.line+1:n.line-t.line;},e.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column;},e.prototype.deleteNodes=function(e){for(var t=0;t<e.length;t++)gm(this,e[t]);},e.prototype.createNewPieces=function(e){if(e.length>65535){for(var t=[];e.length>65535;){var n=e.charCodeAt(65534),i=void 0;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,65535),e=e.substring(65535));var o=Im(i);t.push(new Nm(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new km(i,o));}var r=Im(e);return t.push(new Nm(this._buffers.length,{line:0,column:0},{line:r.length-1,column:e.length-r[r.length-1]},r.length-1,e.length)),this._buffers.push(new km(e,r)),t;}var s=this._buffers[0].buffer.length,a=Im(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&0!==s&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var l=0;l<a.length;l++)a[l]+=s+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+="_"+e,s+=1;}else{if(0!==s)for(l=0;l<a.length;l++)a[l]+=s;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+=e;}var c=this._buffers[0].buffer.length,d=this._buffers[0].lineStarts.length-1,h={line:d,column:c-this._buffers[0].lineStarts[d]},p=new Nm(0,u,h,this.getLineFeedCnt(0,u,h),c-s);return this._lastChangeBufferPos=h,[p];},e.prototype.getLineRawContent=function(e,t){void 0===t&&(t=0);var n=this.root,i="",o=this._searchCache.get2(e);if(o){n=o.node;var r=this.getAccumulatedValue(n,e-o.nodeStartLineNumber-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(o.nodeStartLineNumber+n.piece.lineFeedCnt!==e){var u=this.getAccumulatedValue(n,e-o.nodeStartLineNumber);return s.substring(a+r,a+u-t);}i=s.substring(a+r,a+n.piece.length);}else for(var l=0,c=e;n!==am;)if(n.left!==am&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),u=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return l+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:l,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+r,a+u-t);}if(n.lf_left+n.piece.lineFeedCnt===e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=s.substring(a+r,a+n.piece.length);break;}e-=n.lf_left+n.piece.lineFeedCnt,l+=n.size_left+n.piece.length,n=n.right;}for(n=n.next();n!==am;){s=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){u=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=s.substring(a,a+u-t);}a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=s.substr(a,n.piece.length),n=n.next();}return i;},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==am;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length);},e.prototype.getIndexOf=function(e,t){var n=e.piece,i=this.positionInBuffer(e,t),o=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var r=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(r!==o)return{index:r,remainder:0};}return{index:o,remainder:i.column};},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,o=n.start.line+t+1;return o>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[o]-i[n.start.line]-n.start.column;},e.prototype.deleteNodeTail=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),r=t,s=this.offsetInBuffer(n.bufferIndex,r),a=this.getLineFeedCnt(n.bufferIndex,n.start,r),u=a-i,l=s-o,c=n.length+l;e.piece=new Nm(n.bufferIndex,n.start,r,a,c),_m(this,e,l,u);},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),r=t,s=this.getLineFeedCnt(n.bufferIndex,r,n.end),a=s-i,u=o-this.offsetInBuffer(n.bufferIndex,r),l=n.length+u;e.piece=new Nm(n.bufferIndex,r,n.end,s,l),_m(this,e,u,a);},e.prototype.shrinkNode=function(e,t,n){var i=e.piece,o=i.start,r=i.end,s=i.length,a=i.lineFeedCnt,u=t,l=this.getLineFeedCnt(i.bufferIndex,i.start,u),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,o);e.piece=new Nm(i.bufferIndex,i.start,u,l,c),_m(this,e,c-s,l-a);var d=new Nm(i.bufferIndex,n,r,this.getLineFeedCnt(i.bufferIndex,n,r),this.offsetInBuffer(i.bufferIndex,r)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h);},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var o=Im(t,!1),r=0;r<o.length;r++)o[r]+=i;if(n){var s=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-s};}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));var a=this._buffers[0].lineStarts.length-1,u={line:a,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[a]},l=e.piece.length+t.length,c=e.piece.lineFeedCnt,d=this.getLineFeedCnt(0,e.piece.start,u),h=d-c;e.piece=new Nm(e.piece.bufferIndex,e.piece.start,u,d,l),this._lastChangeBufferPos=u,_m(this,e,t.length,h);},e.prototype.nodeAt=function(e){var t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};for(var i=0;t!==am;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;var o={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(o),o;}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right;}return null;},e.prototype.nodeAt2=function(e,t){for(var n=this.root,i=0;n!==am;)if(n.left!==am&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(n,e-n.lf_left-2),r=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(o+t-1,r),nodeStartOffset:i};}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((o=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:i};t-=n.piece.length-o;break;}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right;}for(n=n.next();n!==am;){if(n.piece.lineFeedCnt>0){r=this.getAccumulatedValue(n,0);var s=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,r),nodeStartOffset:s};}if(n.piece.length>=t-1)return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)};t-=n.piece.length,n=n.next();}return null;},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i);},e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t;},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL);},e.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===am||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,o=n[i]+t.start.column;return i!==n.length-1&&!(n[i+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o);},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==am&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1);},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e);}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t);}},e.prototype.fixCRLF=function(e,t){var n,i=[],o=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:o[e.piece.end.line]-o[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var r=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new Nm(e.piece.bufferIndex,e.piece.start,n,s,r),_m(this,e,-1,-1),0===e.piece.length&&i.push(e);var a={line:t.piece.start.line+1,column:0},u=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Nm(t.piece.bufferIndex,a,t.piece.end,l,u),_m(this,t,-1,-1),0===t.piece.length&&i.push(t);var c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(var d=0;d<i.length;d++)gm(this,i[d]);},e.prototype.adjustCarriageReturnFromNext=function(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)gm(this,n);else{var i=n.piece,o={line:i.start.line+1,column:0},r=i.length-1,s=this.getLineFeedCnt(i.bufferIndex,o,i.end);n.piece=new Nm(i.bufferIndex,o,i.end,s,r),_m(this,n,-1,-1);}return!0;}}return!1;},e.prototype.iterate=function(e,t){if(e===am)return t(am);var n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n;},e.prototype.getNodeContent=function(e){if(e===am)return"";var t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),o=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,o);},e.prototype.rbInsertRight=function(e,t){var n=new sm(t,1);if(n.left=am,n.right=am,n.parent=am,n.size_left=0,n.lf_left=0,this.root===am)this.root=n,n.color=0;else if(e.right===am)e.right=n,n.parent=e;else{var i=um(e.right);i.left=n,n.parent=i;}return mm(this,n),n;},e.prototype.rbInsertLeft=function(e,t){var n=new sm(t,1);if(n.left=am,n.right=am,n.parent=am,n.size_left=0,n.lf_left=0,this.root===am)this.root=n,n.color=0;else if(e.left===am)e.left=n,n.parent=e;else{var i=lm(e.left);i.right=n,n.parent=i;}return mm(this,n),n;},e.prototype.getContentOfSubTree=function(e){var t=this,n="";return this.iterate(e,function(e){return n+=t.getNodeContent(e),!0;}),n;},e;}(),Rm=function(){function e(e,t,n,i,o,r){this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=i,this._pieceTree=new Dm(e,n,r);}return e.prototype.mightContainRTL=function(){return this._mightContainRTL;},e.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII;},e.prototype.getBOM=function(){return this._BOM;},e.prototype.getEOL=function(){return this._pieceTree.getEOL();},e.prototype.getOffsetAt=function(e,t){return this._pieceTree.getOffsetAt(e,t);},e.prototype.getPositionAt=function(e){return this._pieceTree.getPositionAt(e);},e.prototype.getRangeAt=function(e,t){var n=e+t,i=this.getPositionAt(e),o=this.getPositionAt(n);return new Jt(i.lineNumber,i.column,o.lineNumber,o.column);},e.prototype.getValueInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return"";var n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n);},e.prototype.getValueLengthInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;var n=this.getOffsetAt(e.startLineNumber,e.startColumn);return this.getOffsetAt(e.endLineNumber,e.endColumn)-n;},e.prototype.getLength=function(){return this._pieceTree.getLength();},e.prototype.getLineCount=function(){return this._pieceTree.getLineCount();},e.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent();},e.prototype.getLineContent=function(e){return this._pieceTree.getLineContent(e);},e.prototype.getLineCharCode=function(e,t){return this._pieceTree.getLineCharCode(e,t);},e.prototype.getLineLength=function(e){return this._pieceTree.getLineLength(e);},e.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=lo(this.getLineContent(e));return-1===t?0:t+1;},e.prototype.getLineLastNonWhitespaceColumn=function(e){var t=ho(this.getLineContent(e));return-1===t?0:t+2;},e.prototype._getEndOfLine=function(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();}throw new Error("Unknown EOL preference");},e.prototype.setEOL=function(e){this._pieceTree.setEOL(e);},e.prototype.applyEdits=function(t,n){for(var i=this._mightContainRTL,o=this._mightContainNonBasicASCII,r=!0,s=[],a=0;a<t.length;a++){var u=t[a];r&&u._isTracked&&(r=!1);var l=u.range;!i&&u.text&&(i=So(u.text)),!o&&u.text&&(o=!Lo(u.text)),s[a]={sortIndex:a,identifier:u.identifier||null,range:l,rangeOffset:this.getOffsetAt(l.startLineNumber,l.startColumn),rangeLength:this.getValueLengthInRange(l),lines:u.text?u.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(u.forceMoveMarkers),isAutoWhitespaceEdit:u.isAutoWhitespaceEdit||!1};}s.sort(e._sortOpsAscending);for(var c=!1,d=(a=0,s.length-1);a<d;a++){var h=s[a].range.getEndPosition(),p=s[a+1].range.getStartPosition();if(p.isBeforeOrEqual(h)){if(p.isBefore(h))throw new Error("Overlapping ranges are not allowed!");c=!0;}}r&&(s=this._reduceOperations(s));var f=e._getInverseEditRanges(s),g=[];for(a=0;a<s.length;a++){u=s[a];var m=f[a];if(n&&u.isAutoWhitespaceEdit&&u.range.isEmpty())for(var _=m.startLineNumber;_<=m.endLineNumber;_++){var v="";_===m.startLineNumber&&-1!==lo(v=this.getLineContent(u.range.startLineNumber))||g.push({lineNumber:_,oldContent:v});}}var y=[];for(a=0;a<s.length;a++){u=s[a],m=f[a];y[a]={sortIndex:u.sortIndex,identifier:u.identifier,range:m,text:this.getValueInRange(u.range),forceMoveMarkers:u.forceMoveMarkers};}c||y.sort(function(e,t){return e.sortIndex-t.sortIndex;}),this._mightContainRTL=i,this._mightContainNonBasicASCII=o;var b=this._doApplyEdits(s),C=null;if(n&&g.length>0){g.sort(function(e,t){return t.lineNumber-e.lineNumber;}),C=[];a=0;for(var w=g.length;a<w;a++){_=g[a].lineNumber;if(!(a>0&&g[a-1].lineNumber===_)){var S=g[a].oldContent,x=this.getLineContent(_);0!==x.length&&x!==S&&-1===lo(x)&&C.push(_);}}}return new gr(y,b,C);},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)];},e.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,i=e[e.length-1].range,o=new Jt(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn),r=n.startLineNumber,s=n.startColumn,a=[],u=0,l=e.length;u<l;u++){var c=e[u],d=c.range;t=t||c.forceMoveMarkers;for(var h=r;h<d.startLineNumber;h++)h===r?a.push(this.getLineContent(h).substring(s-1)):(a.push("\n"),a.push(this.getLineContent(h)));if(d.startLineNumber===r?a.push(this.getLineContent(d.startLineNumber).substring(s-1,d.startColumn-1)):(a.push("\n"),a.push(this.getLineContent(d.startLineNumber).substring(0,d.startColumn-1))),c.lines)for(var p=0,f=c.lines.length;p<f;p++)0!==p&&a.push("\n"),a.push(c.lines[p]);r=c.range.endLineNumber,s=c.range.endColumn;}return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),lines:a.join("").split("\n"),forceMoveMarkers:t,isAutoWhitespaceEdit:!1};},e.prototype._doApplyEdits=function(t){t.sort(e._sortOpsDescending);for(var n=[],i=0;i<t.length;i++){var o=t[i],r=o.range.startLineNumber,s=o.range.startColumn,a=o.range.endLineNumber,u=o.range.endColumn;if(r!==a||s!==u||o.lines&&0!==o.lines.length){var l=a-r,c=o.lines?o.lines.length-1:0,d=Math.min(l,c),h=o.lines?o.lines.join(this.getEOL()):"";if(h?(this._pieceTree.delete(o.rangeOffset,o.rangeLength),this._pieceTree.insert(o.rangeOffset,h,!0)):this._pieceTree.delete(o.rangeOffset,o.rangeLength),d<c){for(var p=[],f=d+1;f<=c;f++)p.push(o.lines[f]);p[p.length-1]=this.getLineContent(r+c-1);}var g=new Jt(r,s,a,u);n.push({range:g,rangeLength:o.rangeLength,text:h,rangeOffset:o.rangeOffset,forceMoveMarkers:o.forceMoveMarkers});}}return n;},e.prototype.findMatchesLineByLine=function(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i);},e._getInverseEditRanges=function(e){for(var t=[],n=0,i=0,o=null,r=0,s=e.length;r<s;r++){var a=e[r],u=void 0,l=void 0;o?o.range.endLineNumber===a.range.startLineNumber?(u=n,l=i+(a.range.startColumn-o.range.endColumn)):(u=n+(a.range.startLineNumber-o.range.endLineNumber),l=a.range.startColumn):(u=a.range.startLineNumber,l=a.range.startColumn);var c=void 0;if(a.lines&&a.lines.length>0){var d=a.lines.length,h=a.lines[0],p=a.lines[d-1];c=1===d?new Jt(u,l,u,l+h.length):new Jt(u,l,u+d-1,p.length+1);}else c=new Jt(u,l,u,l);n=c.endLineNumber,i=c.endColumn,t.push(c),o=a;}return t;},e._sortOpsAscending=function(e,t){var n=Jt.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n;},e._sortOpsDescending=function(e,t){var n=Jt.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n;},e;}(),Am=function(){function e(e,t,n,i,o,r,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=o,this._containsRTL=r,this._isBasicASCII=s,this._normalizeEOL=a;}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n";},e.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var i=0,o=n.length;i<o;i++){var r=n[i].buffer.replace(/\r\n|\r|\n/g,t),s=Im(r);n[i]=new km(r,s);}return new Rm(n,this._bom,t,this._containsRTL,this._isBasicASCII,this._normalizeEOL);},e;}(),Mm=function(){function e(){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 e.prototype.acceptChunk=function(e){if(0!==e.length){0===this.chunks.length&&No(e)&&(this.BOM=Io,e=e.substr(1));var t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t);}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e));},e.prototype._acceptChunk2=function(e){var t=function(e,t){e.length=0,e[0]=0;for(var n=1,i=0,o=0,r=0,s=!0,a=0,u=t.length;a<u;a++){var l=t.charCodeAt(a);13===l?a+1<u&&10===t.charCodeAt(a+1)?(r++,e[n++]=a+2,a++):(i++,e[n++]=a+1):10===l?(o++,e[n++]=a+1):s&&9!==l&&(l<32||l>126)&&(s=!1);}var c=new Tm(Lm(e),i,o,r,s);return e.length=0,c;}(this._tmpLineStarts,e);this.chunks.push(new km(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=So(e));},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new Am(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e);},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=Im(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++;}},e;}(),Pm=function(){return function(){this.changeType=1;};}(),Fm=function(){return function(e,t){this.changeType=2,this.lineNumber=e,this.detail=t;};}(),Wm=function(){return function(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t;};}(),Bm=function(){return function(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n;};}(),Vm=function(){return function(){this.changeType=5;};}(),Hm=function(){function e(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i;}return e.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0;}return!1;},e.merge=function(t,n){return new e([].concat(t.changes).concat(n.changes),n.versionId,t.isUndoing||n.isUndoing,t.isRedoing||n.isRedoing);},e;}(),Um=function(){function e(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t;}return e.prototype.merge=function(t){var n=Hm.merge(this.rawContentChangedEvent,t.rawContentChangedEvent),i=e._mergeChangeEvents(this.contentChangedEvent,t.contentChangedEvent);return new e(n,i);},e._mergeChangeEvents=function(e,t){return{changes:[].concat(e.changes).concat(t.changes),eol:t.eol,versionId:t.versionId,isUndoing:e.isUndoing||t.isUndoing,isRedoing:e.isRedoing||t.isRedoing,isFlush:e.isFlush||t.isFlush};},e;}();function jm(e){return(16384|e<<0|2<<23)>>>0;}var zm=new Uint32Array(0).buffer,Km=function(){function e(e){this._state=e,this._lineTokens=null,this._invalid=!0;}return e.prototype.deleteBeginning=function(e){null!==this._lineTokens&&this._lineTokens!==zm&&this.delete(0,e);},e.prototype.deleteEnding=function(e){if(null!==this._lineTokens&&this._lineTokens!==zm){var t=new Uint32Array(this._lineTokens),n=t[t.length-2];this.delete(e,n);}},e.prototype.delete=function(e,t){if(null!==this._lineTokens&&this._lineTokens!==zm&&e!==t){var n=new Uint32Array(this._lineTokens),i=n.length>>>1;if(0!==e||n[n.length-2]!==t){var o=ru.findIndexInTokensArray(n,e),r=o>0?n[o-1<<1]:0;if(t<n[o<<1])for(var s=t-e,a=o;a<i;a++)n[a<<1]-=s;else{var u,l;r!==e?(n[o<<1]=e,u=o+1<<1,l=e):(u=o<<1,l=r);for(var c=t-e,d=o+1;d<i;d++){var h=n[d<<1]-c;h>l&&(n[u++]=h,n[u++]=n[1+(d<<1)],l=h);}if(u!==n.length){var p=new Uint32Array(u);p.set(n.subarray(0,u),0),this._lineTokens=p.buffer;}}}else this._lineTokens=zm;}},e.prototype.append=function(e){if(e!==zm)if(this._lineTokens!==zm){if(null!==this._lineTokens)if(null!==e){var t=new Uint32Array(this._lineTokens),n=new Uint32Array(e),i=n.length>>>1,o=new Uint32Array(t.length+n.length);o.set(t,0);for(var r=t.length,s=t[t.length-2],a=0;a<i;a++)o[r++]=n[a<<1]+s,o[r++]=n[1+(a<<1)];this._lineTokens=o.buffer;}else this._lineTokens=null;}else this._lineTokens=e;},e.prototype.insert=function(e,t){if(this._lineTokens){var n=new Uint32Array(this._lineTokens),i=n.length>>>1,o=ru.findIndexInTokensArray(n,e);if(o>0)(o>0?n[o-1<<1]:0)===e&&o--;for(var r=o;r<i;r++)n[r<<1]+=t;}},e;}(),qm=function(){function e(e,t){if(this.languageIdentifier=e,this.tokenizationSupport=t,this._tokens=[],this.tokenizationSupport){var n=null;try{n=this.tokenizationSupport.getInitialState();}catch(e){a(e),this.tokenizationSupport=null;}n&&(this._tokens[0]=new Km(n));}this._invalidLineStartIndex=0,this._lastState=null;}return Object.defineProperty(e.prototype,"inValidLineStartIndex",{get:function(){return this._invalidLineStartIndex;},enumerable:!0,configurable:!0}),e.prototype.getTokens=function(e,t,n){var i=null;if(t<this._tokens.length&&this._tokens[t]&&(i=this._tokens[t]._lineTokens),null!==i&&i!==zm)return new ru(new Uint32Array(i),n);var o=new Uint32Array(2);return o[0]=n.length,o[1]=jm(e),new ru(o,n);},e.prototype.isCheapToTokenize=function(e){return this._invalidLineStartIndex+1>=e;},e.prototype.hasLinesToTokenize=function(e){return this._invalidLineStartIndex<e.getLineCount();},e.prototype.invalidateLine=function(e){this._setIsInvalid(e,!0),e<this._invalidLineStartIndex&&(this._setIsInvalid(this._invalidLineStartIndex,!0),this._invalidLineStartIndex=e);},e.prototype._setIsInvalid=function(e,t){e<this._tokens.length&&this._tokens[e]&&(this._tokens[e]._invalid=t);},e.prototype._isInvalid=function(e){return!(e<this._tokens.length&&this._tokens[e])||this._tokens[e]._invalid;},e.prototype._getState=function(e){return e<this._tokens.length&&this._tokens[e]?this._tokens[e]._state:null;},e.prototype._setTokens=function(e,t,n,i){var o;t<this._tokens.length&&this._tokens[t]?o=this._tokens[t]:(o=new Km(null),this._tokens[t]=o),0!==n?(i&&0!==i.length||((i=new Uint32Array(2))[0]=0,i[1]=jm(e)),ru.convertToEndOffset(i,n),o._lineTokens=i.buffer):o._lineTokens=zm;},e.prototype._setState=function(e,t){if(e<this._tokens.length&&this._tokens[e])this._tokens[e]._state=t;else{var n=new Km(t);this._tokens[e]=n;}},e.prototype.applyEdits=function(e,t,n){for(var i=e.endLineNumber-e.startLineNumber,o=t,r=Math.min(i,o);r>=0;r--)this.invalidateLine(e.startLineNumber+r-1);this._acceptDeleteRange(e),this._acceptInsertText(new Qt(e.startLineNumber,e.startColumn),t,n);},e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._tokens.length))if(e.startLineNumber!==e.endLineNumber){var n=this._tokens[t];n.deleteEnding(e.startColumn-1);var i=e.endLineNumber-1,o=null;if(i<this._tokens.length){var r=this._tokens[i];r.deleteBeginning(e.endColumn-1),o=r._lineTokens;}n.append(o),this._tokens.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber);}else{if(e.startColumn===e.endColumn)return;this._tokens[t].delete(e.startColumn-1,e.endColumn-1);}},e.prototype._acceptInsertText=function(e,t,n){if(0!==t||0!==n){var i=e.lineNumber-1;if(!(i>=this._tokens.length))if(0!==t){var o=this._tokens[i];o.deleteEnding(e.column-1),o.insert(e.column-1,n);for(var r,s,a,u,l,c=new Array(t),d=t-1;d>=0;d--)c[d]=new Km(null);this._tokens=(r=this._tokens,s=e.lineNumber,a=c,u=r.slice(0,s),l=r.slice(s),u.concat(a,l));}else this._tokens[i].insert(e.column-1,n);}},e.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var n=this._invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t,n),n;},e.prototype._tokenizeText=function(e,t,n){var i=null;if(this.tokenizationSupport)try{i=this.tokenizationSupport.tokenize2(t,n,0);}catch(e){a(e);}return i||(i=ks(this.languageIdentifier.id,0,n,0)),i;},e.prototype._updateTokensUntilLine=function(e,t,n){if(this.tokenizationSupport){for(var i=e.getLineCount(),o=n-1,r=this._invalidLineStartIndex;r<=o;r++){var s=r+1,u=e.getLineContent(r+1),l=this._getState(r),c=null;try{var d=l.clone();c=this.tokenizationSupport.tokenize2(u,d,0);}catch(e){a(e);}if(c||(c=ks(this.languageIdentifier.id,0,l,0)),this._setTokens(this.languageIdentifier.id,r,u.length,c.tokens),t.registerChangedTokens(r+1),this._setIsInvalid(r,!1),s<i){var h=this._getState(s);if(null!==h&&c.endState.equals(h)){for(var p=r+1;p<i&&!this._isInvalid(p);){if(p+1<i){if(null===this._getState(p+1))break;}else if(null===this._lastState)break;p++;}this._invalidLineStartIndex=Math.max(this._invalidLineStartIndex,p),r=p-1;}else this._setState(s,c.endState);}else this._lastState=c.endState;}this._invalidLineStartIndex=Math.max(this._invalidLineStartIndex,o+1);}else this._invalidLineStartIndex=e.getLineCount();},e;}(),Gm=function(){function e(){this._ranges=[];}return e.prototype.registerChangedTokens=function(e){var t=this._ranges,n=t.length,i=n>0?t[n-1]:null;i&&i.toLineNumber===e-1?i.toLineNumber++:t[n]={fromLineNumber:e,toLineNumber:e};},e.prototype.build=function(){return 0===this._ranges.length?null:{ranges:this._ranges};},e;}(),$m=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();function Ym(e){var t=new Mm();return t.acceptChunk(e),t.finish();}function Xm(e,t){return("string"==typeof e?Ym(e):e).create(t);}var Zm=0;var Qm=function(){throw new Error("Invalid change accessor");},Jm=function(e){function t(n,i,o,r){void 0===r&&(r=null);var s=e.call(this)||this;s._onWillDispose=s._register(new N()),s.onWillDispose=s._onWillDispose.event,s._onDidChangeDecorations=s._register(new s_()),s.onDidChangeDecorations=s._onDidChangeDecorations.event,s._onDidChangeLanguage=s._register(new N()),s.onDidChangeLanguage=s._onDidChangeLanguage.event,s._onDidChangeLanguageConfiguration=s._register(new N()),s.onDidChangeLanguageConfiguration=s._onDidChangeLanguageConfiguration.event,s._onDidChangeTokens=s._register(new N()),s.onDidChangeTokens=s._onDidChangeTokens.event,s._onDidChangeOptions=s._register(new N()),s.onDidChangeOptions=s._onDidChangeOptions.event,s._eventEmitter=s._register(new a_()),Zm++,s.id="$model"+Zm,s.isForSimpleWidget=i.isForSimpleWidget,s._associatedResource=null==r?_t.parse("inmemory://model/"+Zm):r,s._attachedEditorCount=0,s._buffer=Xm(n,i.defaultEOL),s._options=t.resolveOptions(s._buffer,i);var a,u=s._buffer.getLineCount(),l=s._buffer.getValueLengthInRange(new Jt(1,1,u,s._buffer.getLineLength(u)+1),0);return i.largeFileOptimizations?s._isTooLargeForTokenization=l>t.LARGE_FILE_SIZE_THRESHOLD||u>t.LARGE_FILE_LINE_COUNT_THRESHOLD:s._isTooLargeForTokenization=!1,s._isTooLargeForSyncing=l>t.MODEL_SYNC_LIMIT,s._setVersionId(1),s._isDisposed=!1,s._isDisposing=!1,s._languageIdentifier=o||Is,s._tokenizationListener=Ls.onDidChange(function(e){-1!==e.changedLanguages.indexOf(s._languageIdentifier.language)&&(s._resetTokenizationState(),s.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:s.getLineCount()}]}),s._shouldAutoTokenize()&&s._warmUpTokens());}),s._revalidateTokensTimeout=-1,s._languageRegistryListener=la.onDidChange(function(e){e.languageIdentifier.id===s._languageIdentifier.id&&s._onDidChangeLanguageConfiguration.fire({});}),s._resetTokenizationState(),s._instanceId=(a=Zm,(a%=52)<26?String.fromCharCode(97+a):String.fromCharCode(65+a-26)),s._lastDecorationId=0,s._decorations=Object.create(null),s._decorationsTree=new e_(),s._commandManager=new Dg(s),s._isUndoing=!1,s._isRedoing=!1,s._trimAutoWhitespaceLines=null,s;}return $m(t,e),t.createFromString=function(e,n,i,o){return void 0===n&&(n=t.DEFAULT_CREATION_OPTIONS),void 0===i&&(i=null),void 0===o&&(o=null),new t(e,n,i,o);},t.resolveOptions=function(e,t){if(t.detectIndentation){var n=Mg(e,t.tabSize,t.insertSpaces);return new pr({tabSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL});}return new pr({tabSize:t.tabSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL});},t.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent(function(t){return e(t.rawContentChangedEvent);});},t.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.rawContentChangedEvent);});},t.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.contentChangedEvent);});},t.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._tokenizationListener.dispose(),this._languageRegistryListener.dispose(),this._clearTimers(),this._isDisposed=!0,e.prototype.dispose.call(this),this._isDisposing=!1;},t.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!");},t.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new Um(e,t));},t.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=Xm(e,this._options.defaultEOL);this.setValueFromTextBuffer(t);}},t.prototype._createContentChanged2=function(e,t,n,i,o,r,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:r,isFlush:s};},t.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._resetTokenizationState(),this._decorations=Object.create(null),this._decorationsTree=new e_(),this._commandManager=new Dg(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Hm([new Pm()],this._versionId,!1,!1),this._createContentChanged2(new Jt(1,1,i,o),0,n,this.getValue(),!1,!1,!0));}},t.prototype.setEOL=function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Hm([new Vm()],this._versionId,!1,!1),this._createContentChanged2(new Jt(1,1,o,r),0,i,this.getValue(),!1,!1,!1));}},t.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t);},t.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;n<i;n++){var o=t[n],r=o.cachedAbsoluteStart-o.start,s=this._buffer.getOffsetAt(o.range.startLineNumber,o.range.startColumn),a=this._buffer.getOffsetAt(o.range.endLineNumber,o.range.endColumn);o.cachedAbsoluteStart=s,o.cachedAbsoluteEnd=a,o.cachedVersionId=e,o.start=s-r,o.end=a-r,im(o);}},t.prototype._resetTokenizationState=function(){this._clearTimers();var e=this._isTooLargeForTokenization?null:Ls.get(this._languageIdentifier.language);this._tokens=new qm(this._languageIdentifier,e),this._beginBackgroundTokenization();},t.prototype._clearTimers=function(){-1!==this._revalidateTokensTimeout&&(clearTimeout(this._revalidateTokensTimeout),this._revalidateTokensTimeout=-1);},t.prototype.onBeforeAttached=function(){this._attachedEditorCount++,this._warmUpTokens();},t.prototype.onBeforeDetached=function(){this._attachedEditorCount--;},t.prototype._shouldAutoTokenize=function(){return this.isAttachedToEditor();},t.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0;},t.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount;},t.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing;},t.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization;},t.prototype.isDisposed=function(){return this._isDisposed;},t.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),i=1;i<=n;i++){var o=this._buffer.getLineLength(i);o>=1e4?t+=o:e+=o;}return t>e;},Object.defineProperty(t.prototype,"uri",{get:function(){return this._associatedResource;},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(){return this._assertNotDisposed(),this._options;},t.prototype.updateOptions=function(e){this._assertNotDisposed();var t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=new pr({tabSize:t,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i});if(!this._options.equals(o)){var r=this._options.createChangeEvent(o);this._options=o,this._onDidChangeOptions.fire(r);}},t.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=Mg(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize});},t._normalizeIndentationFromWhitespace=function(e,t,n){for(var i=0,o=0;o<e.length;o++)"\t"===e.charAt(o)?i+=t:i++;var r="";if(!n){var s=Math.floor(i/t);i%=t;for(o=0;o<s;o++)r+="\t";}for(o=0;o<i;o++)r+=" ";return r;},t.normalizeIndentation=function(e,n,i){var o=lo(e);return-1===o&&(o=e.length),t._normalizeIndentationFromWhitespace(e.substring(0,o),n,i)+e.substring(o);},t.prototype.normalizeIndentation=function(e){return this._assertNotDisposed(),t.normalizeIndentation(e,this._options.tabSize,this._options.insertSpaces);},t.prototype.getOneIndent=function(){this._assertNotDisposed();var e=this._options.tabSize;if(this._options.insertSpaces){for(var t="",n=0;n<e;n++)t+=" ";return t;}return"\t";},t.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId;},t.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL();},t.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII();},t.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId;},t.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,!1);return this._buffer.getOffsetAt(t.lineNumber,t.column);},t.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t);},t.prototype._increaseVersionId=function(){this._setVersionId(this._versionId+1);},t.prototype._setVersionId=function(e){this._versionId=e,this._alternativeVersionId=this._versionId;},t.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e;},t.prototype.getValue=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i;},t.prototype.getValueLength=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i;},t.prototype.getValueInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t);},t.prototype.getValueLengthInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t);},t.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount();},t.prototype.getLineContent=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e);},t.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e);},t.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent();},t.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL();},t.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1;},t.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1;},t.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e);},t.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e);},t.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),o=e.startLineNumber,r=e.startColumn;if(o<1)t=1,n=1;else if(o>i)t=i,n=this.getLineMaxColumn(t);else{if(t=0|o,r<=1)n=1;else n=r>=(c=this.getLineMaxColumn(t))?c:0|r;}var s,a,u=e.endLineNumber,l=e.endColumn;if(u<1)s=1,a=1;else if(u>i)s=i,a=this.getLineMaxColumn(s);else{var c;if(s=0|u,l<=1)a=1;else a=l>=(c=this.getLineMaxColumn(s))?c:0|l;}return o===t&&r===n&&u===s&&l===a&&e instanceof Jt&&!(e instanceof tn)?e:new Jt(t,n,s,a);},t.prototype._isValidPosition=function(e,t,n){if(isNaN(e))return!1;if(e<1)return!1;if(e>this._buffer.getLineCount())return!1;if(isNaN(t))return!1;if(t<1)return!1;if(t>this.getLineMaxColumn(e))return!1;if(n&&t>1&&bo(this._buffer.getLineCharCode(e,t-2)))return!1;return!0;},t.prototype._validatePosition=function(e,t,n){var i=Math.floor("number"!=typeof e||isNaN(e)?1:e),o=Math.floor("number"!=typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(i<1)return new Qt(1,1);if(i>r)return new Qt(r,this.getLineMaxColumn(r));if(o<=1)return new Qt(i,1);var s=this.getLineMaxColumn(i);if(o>=s)return new Qt(i,s);if(n&&bo(this._buffer.getLineCharCode(i,o-2)))return new Qt(i,o-1);return new Qt(i,o);},t.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof Qt&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0);},t.prototype._isValidRange=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(n,i,!1))return!1;if(!this._isValidPosition(o,r,!1))return!1;if(t){var s=i>1?this._buffer.getLineCharCode(n,i-2):0,a=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,u=bo(s),l=bo(a);return!u&&!l;}return!0;},t.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof Jt&&!(e instanceof tn)&&this._isValidRange(e,!0))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),i=t.lineNumber,o=t.column,r=n.lineNumber,s=n.column,a=o>1?this._buffer.getLineCharCode(i,o-2):0,u=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,l=bo(a),c=bo(u);return l||c?i===r&&o===s?new Jt(i,o-1,r,s-1):l&&c?new Jt(i,o-1,r,s+1):l?new Jt(i,o-1,r,s):new Jt(i,o,r,s+1):new Jt(i,o,r,s);},t.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)));},t.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new Jt(1,1,e,this.getLineMaxColumn(e));},t.prototype.findMatchesLineByLine=function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i);},t.prototype.findMatches=function(e,t,n,i,o,r,s){var a;if(void 0===s&&(s=999),this._assertNotDisposed(),a=Jt.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new ym(e,n,i,o).parseSearchRequest();return u?this.findMatchesLineByLine(a,u,r,s):[];}return Sm.findMatches(this,new ym(e,n,i,o),a,r,s);},t.prototype.findNextMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new ym(e,n,i,o).parseSearchRequest();if(!a)return null;var u=this.getLineCount(),l=new Jt(s.lineNumber,s.column,u,this.getLineMaxColumn(u)),c=this.findMatchesLineByLine(l,a,r,1);return Sm.findNextMatch(this,new ym(e,n,i,o),s,r),c.length>0?c[0]:(l=new Jt(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),(c=this.findMatchesLineByLine(l,a,r,1)).length>0?c[0]:null);}return Sm.findNextMatch(this,new ym(e,n,i,o),s,r);},t.prototype.findPreviousMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);return Sm.findPreviousMatch(this,new ym(e,n,i,o),s,r);},t.prototype.pushStackElement=function(){this._commandManager.pushStackElement();},t.prototype.pushEOL=function(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e);}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit();}},t.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n);}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit();}},t.prototype._pushEditOperations=function(e,t,n){var i=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var o=t.map(function(e){return{range:i.validateRange(e.range),text:e.text};}),r=!0,s=0,a=e.length;s<a;s++){for(var u=e[s],l=!1,c=0,d=o.length;c<d;c++){var h=(_=o[c].range).startLineNumber>u.endLineNumber,p=u.startLineNumber>_.endLineNumber;if(!h&&!p){l=!0;break;}}if(!l){r=!1;break;}}if(r)for(s=0,a=this._trimAutoWhitespaceLines.length;s<a;s++){var f=this._trimAutoWhitespaceLines[s],g=this.getLineMaxColumn(f),m=!0;for(c=0,d=o.length;c<d;c++){var _=o[c].range,v=o[c].text;if(!(f<_.startLineNumber||f>_.endLineNumber)&&!(f===_.startLineNumber&&_.startColumn===g&&_.isEmpty()&&v&&v.length>0&&"\n"===v.charAt(0)||f===_.startLineNumber&&1===_.startColumn&&_.isEmpty()&&v&&v.length>0&&"\n"===v.charAt(v.length-1))){m=!1;break;}}m&&t.push({range:new Jt(f,1,f,g),text:null});}this._trimAutoWhitespaceLines=null;}return this._commandManager.pushEditOperation(e,t,n);},t.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e);}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit();}},t._eolCount=function(e){for(var t=0,n=0,i=0,o=e.length;i<o;i++){var r=e.charCodeAt(i);13===r?(0===t&&(n=i),t++,i+1<o&&10===e.charCodeAt(i+1)&&i++):10===r&&(0===t&&(n=i),t++);}return 0===t&&(n=e.length),[t,n];},t.prototype._applyEdits=function(e){for(var n=0,i=e.length;n<i;n++)e[n].range=this.validateRange(e[n].range);var o=this._buffer.getLineCount(),r=this._buffer.applyEdits(e,this._options.trimAutoWhitespace),s=this._buffer.getLineCount(),a=r.changes;if(this._trimAutoWhitespaceLines=r.trimAutoWhitespaceLineNumbers,0!==a.length){var u=[],l=o;for(n=0,i=a.length;n<i;n++){var c=a[n],d=t._eolCount(c.text),h=d[0],p=d[1];try{this._tokens.applyEdits(c.range,h,p);}catch(e){this._tokens=new qm(this._tokens.languageIdentifier,this._tokens.tokenizationSupport);}this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(c.rangeOffset,c.rangeLength,c.text.length,c.forceMoveMarkers);for(var f=c.range.startLineNumber,g=c.range.endLineNumber,m=g-f,_=h,v=Math.min(m,_),y=_-m,b=v;b>=0;b--){var C=f+b,w=s-l-y+C;u.push(new Fm(C,this.getLineContent(w)));}if(v<m){var S=f+v;u.push(new Wm(S+1,g));}if(v<_){for(var x=f+v,E=_-v,L=s-l-E+x+1,T=[],I=0;I<E;I++){var N=L+I;T[N-L]=this.getLineContent(N);}u.push(new Bm(x+1,f+_,T));}l+=y;}this._increaseVersionId(),this._emitContentChangedEvent(new Hm(u,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:a,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1});}return this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization(),r.reverseEdits;},t.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();return this._isUndoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null;},t.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo();}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit();}},t.prototype.canUndo=function(){return this._commandManager.canUndo();},t.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();return this._isRedoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null;},t.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo();}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit();}},t.prototype.canRedo=function(){return this._commandManager.canRedo();},t.prototype.changeDecorations=function(e,t){void 0===t&&(t=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e);}finally{this._onDidChangeDecorations.endDeferredEmit();}},t.prototype._changeDecorations=function(e,t){var n=this,i={addDecoration:function(t,i){return n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0];},changeDecoration:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationImpl(e,t);},changeDecorationOptions:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationOptionsImpl(e,r_(t));},removeDecoration:function(t){n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[t],[]);},deltaDecorations:function(t,i){return 0===t.length&&0===i.length?[]:(n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,t,i));}},o=null;try{o=t(i);}catch(e){a(e);}return i.addDecoration=Qm,i.changeDecoration=Qm,i.changeDecorationOptions=Qm,i.removeDecoration=Qm,i.deltaDecorations=Qm,o;},t.prototype.deltaDecorations=function(e,t,n){if(void 0===n&&(n=0),this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(n,e,t);}finally{this._onDidChangeDecorations.endDeferredEmit();}},t.prototype._getTrackedRange=function(e){return this.getDecorationRange(e);},t.prototype._setTrackedRange=function(e,t,n){var i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:o_[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;var o=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),s=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),r,s,o),i.setOptions(o_[n]),this._decorationsTree.insert(i),i.id;},t.prototype.removeAllDecorationsWithOwnerId=function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,i=t.length;n<i;n++){var o=t[n];this._decorationsTree.delete(o),delete this._decorations[o.id];}},t.prototype.getDecorationOptions=function(e){var t=this._decorations[e];return t?t.options:null;},t.prototype.getDecorationRange=function(e){var t=this._decorations[e];if(!t)return null;var n=this.getVersionId();return t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n),null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range;},t.prototype.getLineDecorations=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=!1),e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n);},t.prototype.getLinesDecorations=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),s=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new Jt(r,1,s,a),n,i);},t.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var i=this.validateRange(e);return this._getDecorationsInRange(i,t,n);},t.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i);},t.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i);},t.prototype._getDecorationsInRange=function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),r=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,o,t,n,r);return this._ensureNodesHaveRanges(s);},t.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];null===i.range&&(i.range=this._getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));}return e;},t.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e);},t.prototype._changeDecorationImpl=function(e,t){var n=this._decorations[e];if(n){var i=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),r=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,r,i),this._decorationsTree.insert(n);}},t.prototype._changeDecorationOptionsImpl=function(e,t){var n=this._decorations[e];n&&(!(!n.options.overviewRuler||!n.options.overviewRuler.color)!==!(!t.overviewRuler||!t.overviewRuler.color)?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t));},t.prototype._deltaDecorationsImpl=function(e,t,n){for(var i=this.getVersionId(),o=t.length,r=0,s=n.length,a=0,u=new Array(s);r<o||a<s;){var l=null;if(r<o){do{l=this._decorations[t[r++]];}while(!l&&r<o);l&&this._decorationsTree.delete(l);}if(a<s){if(!l){var c=++this._lastDecorationId,d=this._instanceId+";"+c;l=new qg(d,0,0),this._decorations[d]=l;}var h=n[a],p=this._validateRangeRelaxedNoAllocations(h.range),f=r_(h.options),g=this._buffer.getOffsetAt(p.startLineNumber,p.startColumn),m=this._buffer.getOffsetAt(p.endLineNumber,p.endColumn);l.ownerId=e,l.reset(i,g,m,p),l.setOptions(f),this._decorationsTree.insert(l),u[a]=l.id,a++;}else l&&delete this._decorations[l.id];}return u;},t.prototype.tokenizeViewport=function(e,t){if(this._tokens.tokenizationSupport){var n=Math.floor(.3*this._tokens.inValidLineStartIndex);if((e=Math.max(1,e-n))<=this._tokens.inValidLineStartIndex)this.forceTokenization(t);else{var i=new Gm(),o=this.getLineFirstNonWhitespaceColumn(e),r=[],s=e-1,a=null;if(o>0)for(;o>0&&s>=1;){var u=this.getLineFirstNonWhitespaceColumn(s);if(0!==u){if(u<o){if(a=this._tokens._getState(s-1))break;r.push(this.getLineContent(s)),o=u;}s--;}else s--;}a||(a=this._tokens.tokenizationSupport.getInitialState());for(var l=a.clone(),c=r.length-1;c>=0;c--){l=(p=this._tokens._tokenizeText(this._buffer,r[c],l))?p.endState.clone():a.clone();}var d=Math.floor(.4*this._tokens.inValidLineStartIndex);t=Math.min(this.getLineCount(),t+d);for(var h=e;h<=t;h++){var p,f=this.getLineContent(h);(p=this._tokens._tokenizeText(this._buffer,f,l))?(this._tokens._setTokens(this._tokens.languageIdentifier.id,h-1,f.length,p.tokens),this._tokens._setIsInvalid(h-1,!1),this._tokens._setState(h-1,l),l=p.endState.clone(),i.registerChangedTokens(h)):l=a.clone();}var g=i.build();g&&this._onDidChangeTokens.fire(g);}}},t.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");var t=new Gm();this._tokens._updateTokensUntilLine(this._buffer,t,e);var n=t.build();n&&this._onDidChangeTokens.fire(n);},t.prototype.isCheapToTokenize=function(e){return!!this._tokens.isCheapToTokenize(e)&&(e<this._tokens.inValidLineStartIndex+1||this.getLineLength(e)<2048);},t.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e);},t.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e);},t.prototype._getLineTokens=function(e){var t=this._buffer.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t);},t.prototype.getLanguageIdentifier=function(){return this._languageIdentifier;},t.prototype.getModeId=function(){return this._languageIdentifier.language;},t.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._resetTokenizationState(),this.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({});}},t.prototype.getLanguageIdAtPosition=function(e,t){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var n=this.validatePosition({lineNumber:e,column:t}),i=n.lineNumber,o=n.column,r=this._getLineTokens(i);return r.getLanguageId(r.findTokenIndexAtOffset(o-1));},t.prototype._beginBackgroundTokenization=function(){var e=this;this._shouldAutoTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout(function(){e._revalidateTokensTimeout=-1,e._revalidateTokensNow();},0));},t.prototype._warmUpTokens=function(){var e=Math.min(100,this.getLineCount());this._revalidateTokensNow(e),this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();},t.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._buffer.getLineCount());for(var t=new Gm(),n=Ig.create(!1);this._tokens.hasLinesToTokenize(this._buffer)&&!(n.elapsed()>20);){if(this._tokens._tokenizeOneLine(this._buffer,t)>=e)break;}this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();var i=t.build();i&&this._onDidChangeTokens.fire(i);},t.prototype.emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e);},t.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var n=this.validatePosition(e),i=this.getLineContent(n.lineNumber),o=this._getLineTokens(n.lineNumber),r=o.findTokenIndexAtOffset(n.column-1),s=t._findLanguageBoundaries(o,r),a=s[0],u=s[1],l=Me(n.column,la.getWordDefinition(o.getLanguageId(r)),i.substring(a,u),a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(r>0&&a===n.column-1){var c=t._findLanguageBoundaries(o,r-1),d=c[0],h=c[1],p=Me(n.column,la.getWordDefinition(o.getLanguageId(r-1)),i.substring(d,h),d);if(p&&p.startColumn<=e.column&&e.column<=p.endColumn)return p;}return null;},t._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),i=0,o=t;o>=0&&e.getLanguageId(o)===n;o--)i=e.getStartOffset(o);for(var r=e.getLineContent().length,s=(o=t,e.getCount());o<s&&e.getLanguageId(o)===n;o++)r=e.getEndOffset(o);return[i,r];},t.prototype.getWordUntilPosition=function(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column};},t.prototype.findMatchingBracketUp=function(e,t){var n=e.toLowerCase(),i=this.validatePosition(t),o=this._getLineTokens(i.lineNumber),r=o.getLanguageId(o.findTokenIndexAtOffset(i.column-1)),s=la.getBracketsSupport(r);if(!s)return null;var a=s.textIsBracket[n];return a?this._findMatchingBracketUp(a,i):null;},t.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e));},t.prototype._matchBracket=function(e){var t=e.lineNumber,n=this._getLineTokens(t),i=this._buffer.getLineContent(t),o=n.findTokenIndexAtOffset(e.column-1);if(o<0)return null;var r=la.getBracketsSupport(n.getLanguageId(o));if(r&&!qs(n.getStandardTokenType(o))){for(var s=Math.max(n.getStartOffset(o),e.column-1-r.maxBracketLength),a=Math.min(n.getEndOffset(o),e.column-1+r.maxBracketLength),u=null;;){if(!(c=oa.findNextBracketInToken(r.forwardRegex,t,i,s,a)))break;if(c.startColumn<=e.column&&e.column<=c.endColumn)d=(d=i.substring(c.startColumn-1,c.endColumn-1)).toLowerCase(),(h=this._matchFoundBracket(c,r.textIsBracket[d],r.textIsOpenBracket[d]))&&(u=h);s=c.endColumn-1;}if(u)return u;}if(o>0&&n.getStartOffset(o)===e.column-1){a=n.getStartOffset(o);o--;var l=la.getBracketsSupport(n.getLanguageId(o));if(l&&!qs(n.getStandardTokenType(o))){var c,d,h;s=Math.max(n.getStartOffset(o),e.column-1-l.maxBracketLength);if((c=oa.findPrevBracketInToken(l.reversedRegex,t,i,s,a))&&c.startColumn<=e.column&&e.column<=c.endColumn)if(d=(d=i.substring(c.startColumn-1,c.endColumn-1)).toLowerCase(),h=this._matchFoundBracket(c,l.textIsBracket[d],l.textIsOpenBracket[d]))return h;}}return null;},t.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;var i;if(n){if(i=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,i];}else if(i=this._findMatchingBracketUp(t,e.getStartPosition()))return[e,i];return null;},t.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,o=-1,r=t.lineNumber;r>=1;r--){var s=this._getLineTokens(r),a=s.getCount(),u=this._buffer.getLineContent(r),l=a-1,c=-1;for(r===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);l>=0;l--){var d=s.getLanguageId(l),h=s.getStandardTokenType(l),p=s.getStartOffset(l),f=s.getEndOffset(l);if(-1===c&&(c=f),d===n&&!qs(h))for(;;){var g=oa.findPrevBracketInToken(i,r,u,p,c);if(!g)break;var m=u.substring(g.startColumn-1,g.endColumn-1);if((m=m.toLowerCase())===e.open?o++:m===e.close&&o--,0===o)return g;c=g.startColumn-1;}c=-1;}}return null;},t.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,i=e.forwardRegex,o=1,r=t.lineNumber,s=this.getLineCount();r<=s;r++){var a=this._getLineTokens(r),u=a.getCount(),l=this._buffer.getLineContent(r),c=0,d=0;for(r===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1);c<u;c++){var h=a.getLanguageId(c),p=a.getStandardTokenType(c),f=a.getStartOffset(c),g=a.getEndOffset(c);if(0===d&&(d=f),h===n&&!qs(p))for(;;){var m=oa.findNextBracketInToken(i,r,l,d,g);if(!m)break;var _=l.substring(m.startColumn-1,m.endColumn-1);if((_=_.toLowerCase())===e.open?o++:_===e.close&&o--,0===o)return m;d=m.endColumn-1;}d=0;}}return null;},t.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,o=t.lineNumber,r=this.getLineCount();o<=r;o++){var s=this._getLineTokens(o),a=s.getCount(),u=this._buffer.getLineContent(o),l=0,c=0;for(o===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);l<a;l++){var d=s.getLanguageId(l),h=s.getStandardTokenType(l),p=s.getStartOffset(l),f=s.getEndOffset(l);if(0===c&&(c=p),n!==d&&(n=d,i=la.getBracketsSupport(n)),i&&!qs(h)){var g=oa.findNextBracketInToken(i.forwardRegex,o,u,c,f);if(g)return this._toFoundBracket(i,g);}c=0;}}return null;},t.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var i=e.textIsBracket[n];return i?{range:t,open:i.open,close:i.close,isOpen:e.textIsOpenBracket[n]}:null;},t.computeIndentLevel=function(e,t){for(var n=0,i=0,o=e.length;i<o;){var r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t;}i++;}return i===o?-1:n;},t.prototype._computeIndentLevel=function(e){return t.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize);},t.prototype.getActiveIndentGuide=function(e,t,n){var i=this;this._assertNotDisposed();var o=this.getLineCount();if(e<1||e>o)throw new Error("Illegal value for lineNumber");for(var r=la.getFoldingRules(this._languageIdentifier.id),s=Boolean(r&&r.offSide),a=-2,u=-1,l=-2,c=-1,d=function(e){if(-1!==a&&(-2===a||a>e-1)){a=-1,u=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){a=t,u=n;break;}}}if(-2===l){l=-1,c=-1;for(t=e;t<o;t++){var r=i._computeIndentLevel(t);if(r>=0){l=t,c=r;break;}}}},h=-2,p=-1,f=-2,g=-1,m=function(e){if(-2===h){h=-1,p=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){h=t,p=n;break;}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,g=-1;for(t=e;t<o;t++){var r=i._computeIndentLevel(t);if(r>=0){f=t,g=r;break;}}}},_=0,v=!0,y=0,b=!0,C=0,w=0;v||b;w++){var S=e-w,x=e+w;if(0!==w&&(S<1||S<t)&&(v=!1),0!==w&&(x>o||x>n)&&(b=!1),w>5e4&&(v=!1,b=!1),v){var E=void 0;if((L=this._computeIndentLevel(S-1))>=0?(l=S-1,c=L,E=Math.ceil(L/this._options.tabSize)):(d(S),E=this._getIndentLevelForWhitespaceLine(s,u,c)),0===w){if(_=S,y=x,0===(C=E))return{startLineNumber:_,endLineNumber:y,indent:C};continue;}E>=C?_=S:v=!1;}if(b){var L,T=void 0;(L=this._computeIndentLevel(x-1))>=0?(h=x-1,p=L,T=Math.ceil(L/this._options.tabSize)):(m(x),T=this._getIndentLevelForWhitespaceLine(s,p,g)),T>=C?y=x:b=!1;}}return{startLineNumber:_,endLineNumber:y,indent:C};},t.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var i=la.getFoldingRules(this._languageIdentifier.id),o=Boolean(i&&i.offSide),r=new Array(t-e+1),s=-2,a=-1,u=-2,l=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(h>=0)s=c-1,a=h,r[d]=Math.ceil(h/this._options.tabSize);else{if(-2===s){s=-1,a=-1;for(var p=c-2;p>=0;p--){if((f=this._computeIndentLevel(p))>=0){s=p,a=f;break;}}}if(-1!==u&&(-2===u||u<c-1)){u=-1,l=-1;for(p=c;p<n;p++){var f;if((f=this._computeIndentLevel(p))>=0){u=p,l=f;break;}}}r[d]=this._getIndentLevelForWhitespaceLine(o,a,l);}}return r;},t.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.tabSize):t===n?Math.ceil(n/this._options.tabSize):e?Math.ceil(n/this._options.tabSize):1+Math.floor(n/this._options.tabSize);},t.MODEL_SYNC_LIMIT=52428800,t.LARGE_FILE_SIZE_THRESHOLD=20971520,t.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,t.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:Ye.tabSize,insertSpaces:Ye.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:Ye.trimAutoWhitespace,largeFileOptimizations:Ye.largeFileOptimizations},t;}(y),e_=function(){function e(){this._decorationsTree0=new $g(),this._decorationsTree1=new $g();}return e.prototype.intervalSearch=function(e,t,n,i,o){var r=this._decorationsTree0.intervalSearch(e,t,n,i,o),s=this._decorationsTree1.intervalSearch(e,t,n,i,o);return r.concat(s);},e.prototype.search=function(e,t,n,i){if(n)return this._decorationsTree1.search(e,t,i);var o=this._decorationsTree0.search(e,t,i),r=this._decorationsTree1.search(e,t,i);return o.concat(r);},e.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n);},e.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t);},e.prototype.insert=function(e){Ug(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e);},e.prototype.delete=function(e){Ug(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e);},e.prototype.resolveNode=function(e,t){Ug(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t);},e.prototype.acceptReplace=function(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i);},e;}();function t_(e){return e.replace(/[^a-z0-9\-_]/gi," ");}var n_=function(){function e(e){this.color=e.color||Zi,this.darkColor=e.darkColor||Zi,this.position="number"==typeof e.position?e.position:cr.Center,this._resolvedColor=null;}return e.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor;},e.prototype.invalidateCachedColor=function(){this._resolvedColor=null;},e.prototype._resolveColor=function(e,t){if("string"==typeof e)return e;var n=e?t.getColor(e.id):null;return n?n.toString():Zi;},e;}(),i_=function(){function e(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?t_(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new n_(e.overviewRuler):null,this.glyphMarginClassName=e.glyphMarginClassName?t_(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?t_(e.linesDecorationsClassName):null,this.marginClassName=e.marginClassName?t_(e.marginClassName):null,this.inlineClassName=e.inlineClassName?t_(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?t_(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?t_(e.afterContentClassName):null;}return e.register=function(t){return new e(t);},e.createDynamic=function(t){return new e(t);},e;}();i_.EMPTY=i_.register({});var o_=[i_.register({stickiness:0}),i_.register({stickiness:1}),i_.register({stickiness:2}),i_.register({stickiness:3})];function r_(e){return e instanceof i_?e:i_.createDynamic(e);}var s_=function(e){function t(){var t=e.call(this)||this;return t._actual=t._register(new N()),t.event=t._actual.event,t._deferredCnt=0,t._shouldFire=!1,t;}return $m(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++;},t.prototype.endDeferredEmit=function(){this._deferredCnt--,0===this._deferredCnt&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}));},t.prototype.fire=function(){this._shouldFire=!0;},t;}(y),a_=function(e){function t(){var t=e.call(this)||this;return t._fastEmitter=t._register(new N()),t.fastEvent=t._fastEmitter.event,t._slowEmitter=t._register(new N()),t.slowEvent=t._slowEmitter.event,t._deferredCnt=0,t._deferredEvent=null,t;}return $m(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++;},t.prototype.endDeferredEmit=function(){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){var e=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(e),this._slowEmitter.fire(e);}},t.prototype.fire=function(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e));},t;}(y),u_=function(e){return!0;},l_=function(e){return!1;},c_=function(e){return" "===e||"\t"===e;},d_=function(){function e(t,n,i,o){this._languageIdentifier=t;var r=o.editor;this.readOnly=r.readOnly,this.tabSize=i.tabSize,this.insertSpaces=i.insertSpaces,this.oneIndent=n,this.pageSize=Math.max(1,Math.floor(r.layoutInfo.height/r.fontInfo.lineHeight)-2),this.lineHeight=r.lineHeight,this.useTabStops=r.useTabStops,this.wordSeparators=r.wordSeparators,this.emptySelectionClipboard=r.emptySelectionClipboard,this.copyWithSyntaxHighlighting=r.copyWithSyntaxHighlighting,this.multiCursorMergeOverlapping=r.multiCursorMergeOverlapping,this.autoClosingBrackets=r.autoClosingBrackets,this.autoClosingQuotes=r.autoClosingQuotes,this.autoSurround=r.autoSurround,this.autoIndent=r.autoIndent,this.autoClosingPairsOpen={},this.autoClosingPairsClose={},this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:e._getShouldAutoClose(t,this.autoClosingQuotes),bracket:e._getShouldAutoClose(t,this.autoClosingBrackets)};var s=e._getAutoClosingPairs(t);if(s)for(var a=0;a<s.length;a++)this.autoClosingPairsOpen[s[a].open]=s[a].close,this.autoClosingPairsClose[s[a].close]=s[a].open;var u=e._getSurroundingPairs(t);if(u)for(a=0;a<u.length;a++)this.surroundingPairs[u[a].open]=u[a].close;}return e.shouldRecreate=function(e){return e.layoutInfo||e.wordSeparators||e.emptySelectionClipboard||e.multiCursorMergeOverlapping||e.autoClosingBrackets||e.autoClosingQuotes||e.autoSurround||e.useTabStops||e.lineHeight||e.readOnly;},Object.defineProperty(e.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var t=e._getElectricCharacters(this._languageIdentifier);if(t)for(var n=0;n<t.length;n++)this._electricChars[t[n]]=!0;}return this._electricChars;},enumerable:!0,configurable:!0}),e.prototype.normalizeIndentation=function(e){return Jm.normalizeIndentation(e,this.tabSize,this.insertSpaces);},e._getElectricCharacters=function(e){try{return la.getElectricCharacters(e.id);}catch(e){return a(e),null;}},e._getAutoClosingPairs=function(e){try{return la.getAutoClosingPairs(e.id);}catch(e){return a(e),null;}},e._getShouldAutoClose=function(t,n){switch(n){case"beforeWhitespace":return c_;case"languageDefined":return e._getLanguageDefinedShouldAutoClose(t);case"always":return u_;case"never":return l_;}},e._getLanguageDefinedShouldAutoClose=function(e){try{var t=la.getAutoCloseBeforeSet(e.id);return function(e){return-1!==t.indexOf(e);};}catch(e){return a(e),l_;}},e._getSurroundingPairs=function(e){try{return la.getSurroundingPairs(e.id);}catch(e){return a(e),null;}},e;}(),h_=function(){function e(t,n,i,o){this.selectionStart=t,this.selectionStartLeftoverVisibleColumns=n,this.position=i,this.leftoverVisibleColumns=o,this.selection=e._computeSelection(this.selectionStart,this.position);}return e.prototype.equals=function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart);},e.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty();},e.prototype.move=function(t,n,i,o){return t?new e(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new Qt(n,i),o):new e(new Jt(n,i,n,i),o,new Qt(n,i),o);},e._computeSelection=function(e,t){var n,i,o,r;return e.isEmpty()?(n=e.startLineNumber,i=e.startColumn,o=t.lineNumber,r=t.column):t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,i=e.endColumn,o=t.lineNumber,r=t.column):(n=e.startLineNumber,i=e.startColumn,o=t.lineNumber,r=t.column),new tn(n,i,o,r);},e;}(),p_=function(){function e(e,t,n){this.model=t,this.viewModel=n,this.config=new d_(this.model.getLanguageIdentifier(),this.model.getOneIndent(),this.model.getOptions(),e);}return e.prototype.validateViewPosition=function(e,t){return this.viewModel.coordinatesConverter.validateViewPosition(e,t);},e.prototype.validateViewRange=function(e,t){return this.viewModel.coordinatesConverter.validateViewRange(e,t);},e.prototype.convertViewRangeToModelRange=function(e){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e);},e.prototype.convertViewPositionToModelPosition=function(e,t){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Qt(e,t));},e.prototype.convertModelPositionToViewPosition=function(e){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(e);},e.prototype.convertModelRangeToViewRange=function(e){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(e);},e.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop();},e.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange();},e.prototype.getCompletelyVisibleModelRange=function(){var e=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e);},e.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(e);},e.prototype.getVerticalOffsetForViewLine=function(e){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(e);},e;}(),f_=function(){return function(e){this.modelState=e,this.viewState=null;};}(),g_=function(){return function(e){this.modelState=null,this.viewState=e;};}(),m_=function(){function e(e,t){this.modelState=e,this.viewState=t;}return e.fromModelState=function(e){return new f_(e);},e.fromViewState=function(e){return new g_(e);},e.fromModelSelection=function(t){var n=t.selectionStartLineNumber,i=t.selectionStartColumn,o=t.positionLineNumber,r=t.positionColumn,s=new h_(new Jt(n,i,n,i),0,new Qt(o,r),0);return e.fromModelState(s);},e.fromModelSelections=function(e){for(var t=[],n=0,i=e.length;n<i;n++)t[n]=this.fromModelSelection(e[n]);return t;},e.prototype.equals=function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState);},e;}(),__=function(){return function(e,t,n){this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter;};}(),v_=function(){function e(){}return e.isLowSurrogate=function(e,t,n){var i=e.getLineContent(t);return!(n<0||n>=i.length)&&Co(i.charCodeAt(n));},e.isHighSurrogate=function(e,t,n){var i=e.getLineContent(t);return!(n<0||n>=i.length)&&bo(i.charCodeAt(n));},e.isInsideSurrogatePair=function(e,t,n){return this.isHighSurrogate(e,t,n-2);},e.visibleColumnFromColumn=function(e,t,n){var i=e.length;i>t-1&&(i=t-1);for(var o=0,r=0;r<i;r++){var s=e.charCodeAt(r);9===s?o=this.nextTabStop(o,n):To(s)?o+=2:o+=1;}return o;},e.visibleColumnFromColumn2=function(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize);},e.columnFromVisibleColumn=function(e,t,n){if(t<=0)return 1;for(var i=e.length,o=0,r=0;r<i;r++){var s=e.charCodeAt(r),a=void 0;if((a=9===s?this.nextTabStop(o,n):To(s)?o+2:o+1)>=t)return a-t<t-o?r+2:r+1;o=a;}return i+1;},e.columnFromVisibleColumn2=function(e,t,n,i){var o=this.columnFromVisibleColumn(t.getLineContent(n),i,e.tabSize),r=t.getLineMinColumn(n);if(o<r)return r;var s=t.getLineMaxColumn(n);return o>s?s:o;},e.nextTabStop=function(e,t){return e+t-e%t;},e.prevTabStop=function(e,t){return e-1-(e-1)%t;},e;}();function y_(e){return"'"===e||'"'===e||"`"===e;}var b_=function(){function e(){}return e._columnSelect=function(e,t,n,i,o,r){for(var s=Math.abs(o-n)+1,a=n>o,u=i>r,l=i<r,c=[],d=0;d<s;d++){var h=n+(a?-d:d),p=v_.columnFromVisibleColumn2(e,t,h,i),f=v_.columnFromVisibleColumn2(e,t,h,r),g=v_.visibleColumnFromColumn2(e,t,new Qt(h,p)),m=v_.visibleColumnFromColumn2(e,t,new Qt(h,f));if(l){if(g>r)continue;if(m<i)continue;}if(u){if(m>i)continue;if(g<r)continue;}c.push(new h_(new Jt(h,p,h,p),0,new Qt(h,f),0));}return{viewStates:c,reversed:a,toLineNumber:o,toVisualColumn:r};},e.columnSelect=function(t,n,i,o,r){var s=new Qt(i.selectionStartLineNumber,i.selectionStartColumn),a=v_.visibleColumnFromColumn2(t,n,s);return e._columnSelect(t,n,s.lineNumber,a,o,r);},e.columnSelectLeft=function(e,t,n,i,o){return o>1&&o--,this.columnSelect(e,t,n.selection,i,o);},e.columnSelectRight=function(e,t,n,i,o){for(var r=0,s=Math.min(n.position.lineNumber,i),a=Math.max(n.position.lineNumber,i),u=s;u<=a;u++){var l=t.getLineMaxColumn(u),c=v_.visibleColumnFromColumn2(e,t,new Qt(u,l));r=Math.max(r,c);}return o<r&&o++,this.columnSelect(e,t,n.selection,i,o);},e.columnSelectUp=function(e,t,n,i,o,r){return(o-=i?e.pageSize:1)<1&&(o=1),this.columnSelect(e,t,n.selection,o,r);},e.columnSelectDown=function(e,t,n,i,o,r){return(o+=i?e.pageSize:1)>t.getLineCount()&&(o=t.getLineCount()),this.columnSelect(e,t,n.selection,o,r);},e;}(),C_=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n;}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text);},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new tn(n.endLineNumber,n.endColumn,n.endLineNumber,n.endColumn);},e;}(),w_=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n;}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text);},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new tn(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn);},e;}(),S_=function(){function e(e,t,n,i,o){void 0===o&&(o=!1),this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=o;}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text);},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new tn(n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset,n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset);},e;}(),x_=function(){function e(e,t,n){this._range=e,this._text=t,this._initialSelection=n;}return e.prototype.getEditOperations=function(e,t){t.addEditOperation(this._range,this._text),this._selectionId=t.trackSelection(this._initialSelection);},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId);},e;}(),E_=function(){return function(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n;};}(),L_=function(){function e(){}return e.left=function(e,t,n,i){return i>t.getLineMinColumn(n)?v_.isLowSurrogate(t,n,i-2)?i-=2:i-=1:n>1&&(n-=1,i=t.getLineMaxColumn(n)),new E_(n,i,0);},e.moveLeft=function(t,n,i,o,r){var s,a;if(i.hasSelection()&&!o)s=i.selection.startLineNumber,a=i.selection.startColumn;else{var u=e.left(t,n,i.position.lineNumber,i.position.column-(r-1));s=u.lineNumber,a=u.column;}return i.move(o,s,a,0);},e.right=function(e,t,n,i){return i<t.getLineMaxColumn(n)?v_.isHighSurrogate(t,n,i-1)?i+=2:i+=1:n<t.getLineCount()&&(n+=1,i=t.getLineMinColumn(n)),new E_(n,i,0);},e.moveRight=function(t,n,i,o,r){var s,a;if(i.hasSelection()&&!o)s=i.selection.endLineNumber,a=i.selection.endColumn;else{var u=e.right(t,n,i.position.lineNumber,i.position.column+(r-1));s=u.lineNumber,a=u.column;}return i.move(o,s,a,0);},e.down=function(e,t,n,i,o,r,s){var a=v_.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+o;n+=r;var u=t.getLineCount();return n>u?(n=u,s?i=t.getLineMaxColumn(n):(i=Math.min(t.getLineMaxColumn(n),i),v_.isInsideSurrogatePair(t,n,i)&&(i-=1))):(i=v_.columnFromVisibleColumn2(e,t,n,a),v_.isInsideSurrogatePair(t,n,i)&&(i-=1)),o=a-v_.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new E_(n,i,o);},e.moveDown=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.endLineNumber,a=i.selection.endColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.down(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,u.lineNumber,u.column,u.leftoverVisibleColumns);},e.translateDown=function(t,n,i){var o=i.selection,r=e.down(t,n,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),s=e.down(t,n,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new h_(new Jt(r.lineNumber,r.column,r.lineNumber,r.column),r.leftoverVisibleColumns,new Qt(s.lineNumber,s.column),s.leftoverVisibleColumns);},e.up=function(e,t,n,i,o,r,s){var a=v_.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+o;return(n-=r)<1?(n=1,s?i=t.getLineMinColumn(n):(i=Math.min(t.getLineMaxColumn(n),i),v_.isInsideSurrogatePair(t,n,i)&&(i-=1))):(i=v_.columnFromVisibleColumn2(e,t,n,a),v_.isInsideSurrogatePair(t,n,i)&&(i-=1)),o=a-v_.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new E_(n,i,o);},e.moveUp=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.startLineNumber,a=i.selection.startColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.up(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,u.lineNumber,u.column,u.leftoverVisibleColumns);},e.translateUp=function(t,n,i){var o=i.selection,r=e.up(t,n,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),s=e.up(t,n,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new h_(new Jt(r.lineNumber,r.column,r.lineNumber,r.column),r.leftoverVisibleColumns,new Qt(s.lineNumber,s.column),s.leftoverVisibleColumns);},e.moveToBeginningOfLine=function(e,t,n,i){var o,r=n.position.lineNumber,s=t.getLineMinColumn(r),a=t.getLineFirstNonWhitespaceColumn(r)||s;return o=n.position.column===a?s:a,n.move(i,r,o,0);},e.moveToEndOfLine=function(e,t,n,i){var o=n.position.lineNumber,r=t.getLineMaxColumn(o);return n.move(i,o,r,0);},e.moveToBeginningOfBuffer=function(e,t,n,i){return n.move(i,1,1,0);},e.moveToEndOfBuffer=function(e,t,n,i){var o=t.getLineCount(),r=t.getLineMaxColumn(o);return n.move(i,o,r,0);},e;}(),T_=function(){function e(){}return e.deleteRight=function(e,t,n,i){for(var o=[],r=3!==e,s=0,a=i.length;s<a;s++){var u=i[s],l=u;if(l.isEmpty()){var c=u.getPosition(),d=L_.right(t,n,c.lineNumber,c.column);l=new Jt(d.lineNumber,d.column,c.lineNumber,c.column);}l.isEmpty()?o[s]=null:(l.startLineNumber!==l.endLineNumber&&(r=!0),o[s]=new C_(l,""));}return[r,o];},e._isAutoClosingPairDelete=function(e,t,n){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(var i=0,o=n.length;i<o;i++){var r=n[i],s=r.getPosition();if(!r.isEmpty())return!1;var a=t.getLineContent(s.lineNumber),u=a[s.column-2];if(!e.autoClosingPairsOpen.hasOwnProperty(u))return!1;if(y_(u)){if("never"===e.autoClosingQuotes)return!1;}else if("never"===e.autoClosingBrackets)return!1;if(a[s.column-1]!==e.autoClosingPairsOpen[u])return!1;}return!0;},e._runAutoClosingPairDelete=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o].getPosition(),a=new Jt(s.lineNumber,s.column-1,s.lineNumber,s.column+1);i[o]=new C_(a,"");}return[!0,i];},e.deleteLeft=function(e,t,n,i){if(this._isAutoClosingPairDelete(t,n,i))return this._runAutoClosingPairDelete(t,n,i);for(var o=[],r=2!==e,s=0,a=i.length;s<a;s++){var u=i[s],l=u;if(l.isEmpty()){var c=u.getPosition();if(t.useTabStops&&c.column>1){var d=n.getLineContent(c.lineNumber),h=lo(d),p=-1===h?d.length+1:h+1;if(c.column<=p){var f=v_.visibleColumnFromColumn2(t,n,c),g=v_.prevTabStop(f,t.tabSize),m=v_.columnFromVisibleColumn2(t,n,c.lineNumber,g);l=new Jt(c.lineNumber,m,c.lineNumber,c.column);}else l=new Jt(c.lineNumber,c.column-1,c.lineNumber,c.column);}else{var _=L_.left(t,n,c.lineNumber,c.column);l=new Jt(_.lineNumber,_.column,c.lineNumber,c.column);}}l.isEmpty()?o[s]=null:(l.startLineNumber!==l.endLineNumber&&(r=!0),o[s]=new C_(l,""));}return[r,o];},e.cut=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o];if(s.isEmpty()){if(e.emptySelectionClipboard){var a=s.getPosition(),u=void 0,l=void 0,c=void 0,d=void 0;a.lineNumber<t.getLineCount()?(u=a.lineNumber,l=1,c=a.lineNumber+1,d=1):a.lineNumber>1?(u=a.lineNumber-1,l=t.getLineMaxColumn(a.lineNumber-1),c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber)):(u=a.lineNumber,l=1,c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber));var h=new Jt(u,l,c,d);h.isEmpty()?i[o]=null:i[o]=new C_(h,"");}else i[o]=null;}else i[o]=new C_(s,"");}return new __(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0});},e;}(),I_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),N_=function(){function e(){}return e._createWord=function(e,t,n,i,o){return{start:i,end:o,wordType:t,nextCharClass:n};},e._findPreviousWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n);},e._doFindPreviousWordOnLine=function(e,t,n){for(var i=0,o=n.column-2;o>=0;o--){var r=e.charCodeAt(o),s=t.get(r);if(0===s){if(2===i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=1;}else if(2===s){if(1===i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=2;}else if(1===s&&0!==i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null;},e._findEndOfWord=function(e,t,n,i){for(var o=e.length,r=i;r<o;r++){var s=e.charCodeAt(r),a=t.get(s);if(1===a)return r;if(1===n&&2===a)return r;if(2===n&&0===a)return r;}return o;},e._findNextWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(i,e,n);},e._doFindNextWordOnLine=function(e,t,n){for(var i=0,o=e.length,r=n.column-1;r<o;r++){var s=e.charCodeAt(r),a=t.get(s);if(0===a){if(2===i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r);i=1;}else if(2===a){if(1===i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r);i=2;}else if(1===a&&0!==i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r);}return 0!==i?this._createWord(e,i,1,this._findStartOfWord(e,t,i,o-1),o):null;},e._findStartOfWord=function(e,t,n,i){for(var o=i;o>=0;o--){var r=e.charCodeAt(o),s=t.get(r);if(1===s)return o+1;if(1===n&&2===s)return o+1;if(2===n&&0===s)return o+1;}return 0;},e.moveWordLeft=function(t,n,i,o){var r=i.lineNumber,s=i.column,a=!1;1===s&&r>1&&(a=!0,r-=1,s=n.getLineMaxColumn(r));var u=e._findPreviousWordOnLine(t,n,new Qt(r,s));if(0===o){if(u&&!a)if(n.getLineLastNonWhitespaceColumn(r)<s)return new Qt(r,u.end+1);return new Qt(r,u?u.start+1:1);}return 1===o?(u&&2===u.wordType&&u.end-u.start==1&&0===u.nextCharClass&&(u=e._findPreviousWordOnLine(t,n,new Qt(r,u.start+1))),new Qt(r,u?u.start+1:1)):(u&&s<=u.end+1&&(u=e._findPreviousWordOnLine(t,n,new Qt(r,u.start+1))),new Qt(r,u?u.end+1:1));},e._moveWordPartLeft=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(1===t.column)return n>1?new Qt(n-1,e.getLineMaxColumn(n-1)):t;for(var o=e.getLineContent(n),r=t.column-1;r>1;r--){var s=o.charCodeAt(r-2),a=o.charCodeAt(r-1);if(95!==s&&95===a)return new Qt(n,r);if(po(s)&&fo(a))return new Qt(n,r);if(fo(s)&&fo(a))if(r+1<i)if(po(o.charCodeAt(r)))return new Qt(n,r);}return new Qt(n,1);},e.moveWordRight=function(t,n,i,o){var r=i.lineNumber,s=i.column;s===n.getLineMaxColumn(r)&&r<n.getLineCount()&&(r+=1,s=1);var a=e._findNextWordOnLine(t,n,new Qt(r,s));return 2===o?(a&&2===a.wordType&&a.end-a.start==1&&0===a.nextCharClass&&(a=e._findNextWordOnLine(t,n,new Qt(r,a.end+1))),s=a?a.end+1:n.getLineMaxColumn(r)):(a&&s>=a.start+1&&(a=e._findNextWordOnLine(t,n,new Qt(r,a.end+1))),s=a?a.start+1:n.getLineMaxColumn(r)),new Qt(r,s);},e._moveWordPartRight=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(t.column===i)return n<e.getLineCount()?new Qt(n+1,1):t;for(var o=e.getLineContent(n),r=t.column+1;r<i;r++){var s=o.charCodeAt(r-2),a=o.charCodeAt(r-1);if(95===s&&95!==a)return new Qt(n,r);if(po(s)&&fo(a))return new Qt(n,r);if(fo(s)&&fo(a))if(r+1<i)if(po(o.charCodeAt(r)))return new Qt(n,r);}return new Qt(n,i);},e._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-2,o=ho(n,i);return o+1<i?new Jt(t.lineNumber,o+2,t.lineNumber,t.column):null;},e.deleteWordLeft=function(t,n,i,o,r){if(!i.isEmpty())return i;var s=new Qt(i.positionLineNumber,i.positionColumn),a=s.lineNumber,u=s.column;if(1===a&&1===u)return null;if(o){var l=this._deleteWordLeftWhitespace(n,s);if(l)return l;}var c=e._findPreviousWordOnLine(t,n,s);return 0===r?c?u=c.start+1:u>1?u=1:(a--,u=n.getLineMaxColumn(a)):(c&&u<=c.end+1&&(c=e._findPreviousWordOnLine(t,n,new Qt(a,c.start+1))),c?u=c.end+1:u>1?u=1:(a--,u=n.getLineMaxColumn(a))),new Jt(a,u,s.lineNumber,s.column);},e._deleteWordPartLeft=function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),o=e._moveWordPartLeft(t,i);return new Jt(i.lineNumber,i.column,o.lineNumber,o.column);},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,i=t;i<n;i++){var o=e.charAt(i);if(" "!==o&&"\t"!==o)return i;}return n;},e._deleteWordRightWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-1,o=this._findFirstNonWhitespaceChar(n,i);return i+1<o?new Jt(t.lineNumber,t.column,t.lineNumber,o+1):null;},e.deleteWordRight=function(t,n,i,o,r){if(!i.isEmpty())return i;var s=new Qt(i.positionLineNumber,i.positionColumn),a=s.lineNumber,u=s.column,l=n.getLineCount(),c=n.getLineMaxColumn(a);if(a===l&&u===c)return null;if(o){var d=this._deleteWordRightWhitespace(n,s);if(d)return d;}var h=e._findNextWordOnLine(t,n,s);return 2===r?h?u=h.end+1:u<c||a===l?u=c:(a++,u=(h=e._findNextWordOnLine(t,n,new Qt(a,1)))?h.start+1:n.getLineMaxColumn(a)):(h&&u>=h.start+1&&(h=e._findNextWordOnLine(t,n,new Qt(a,h.end+1))),h?u=h.start+1:u<c||a===l?u=c:(a++,u=(h=e._findNextWordOnLine(t,n,new Qt(a,1)))?h.start+1:n.getLineMaxColumn(a))),new Jt(a,u,s.lineNumber,s.column);},e._deleteWordPartRight=function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),o=e._moveWordPartRight(t,i);return new Jt(i.lineNumber,i.column,o.lineNumber,o.column);},e.word=function(t,n,i,o,r){var s,a,u,l,c=tg(t.wordSeparators),d=e._findPreviousWordOnLine(c,n,r),h=e._findNextWordOnLine(c,n,r);if(!o)return d&&1===d.wordType&&d.start<=r.column-1&&r.column-1<=d.end?(s=d.start+1,a=d.end+1):h&&1===h.wordType&&h.start<=r.column-1&&r.column-1<=h.end?(s=h.start+1,a=h.end+1):(s=d?d.end+1:1,a=h?h.start+1:n.getLineMaxColumn(r.lineNumber)),new h_(new Jt(r.lineNumber,s,r.lineNumber,a),0,new Qt(r.lineNumber,a),0);d&&1===d.wordType&&d.start<r.column-1&&r.column-1<d.end?(u=d.start+1,l=d.end+1):h&&1===h.wordType&&h.start<r.column-1&&r.column-1<h.end?(u=h.start+1,l=h.end+1):(u=r.column,l=r.column);var p,f=r.lineNumber;if(i.selectionStart.containsPosition(r))p=i.selectionStart.endColumn;else if(r.isBeforeOrEqual(i.selectionStart.getStartPosition())){var g=new Qt(f,p=u);i.selectionStart.containsPosition(g)&&(p=i.selectionStart.endColumn);}else{g=new Qt(f,p=l);i.selectionStart.containsPosition(g)&&(p=i.selectionStart.startColumn);}return i.move(!0,f,p,0);},e;}(),k_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return I_(t,e),t.deleteWordPartLeft=function(e,t,n,i){var o=O_([N_.deleteWordLeft(e,t,n,i,0),N_.deleteWordLeft(e,t,n,i,2),N_._deleteWordPartLeft(t,n)]);return o.sort(Jt.compareRangesUsingEnds),o[2];},t.deleteWordPartRight=function(e,t,n,i){var o=O_([N_.deleteWordRight(e,t,n,i,0),N_.deleteWordRight(e,t,n,i,2),N_._deleteWordPartRight(t,n)]);return o.sort(Jt.compareRangesUsingStarts),o[0];},t.moveWordPartLeft=function(e,t,n){var i=O_([N_.moveWordLeft(e,t,n,0),N_.moveWordLeft(e,t,n,2),N_._moveWordPartLeft(t,n)]);return i.sort(Qt.compare),i[2];},t.moveWordPartRight=function(e,t,n){var i=O_([N_.moveWordRight(e,t,n,0),N_.moveWordRight(e,t,n,2),N_._moveWordPartRight(t,n)]);return i.sort(Qt.compare),i[0];},t;}(N_);function O_(e){return e.filter(function(e){return Boolean(e);});}var D_,R_=function(){function e(){}return e.addCursorDown=function(e,t,n){for(var i=[],o=0,r=0,s=t.length;r<s;r++){var a=t[r];i[o++]=new m_(a.modelState,a.viewState),i[o++]=n?m_.fromModelState(L_.translateDown(e.config,e.model,a.modelState)):m_.fromViewState(L_.translateDown(e.config,e.viewModel,a.viewState));}return i;},e.addCursorUp=function(e,t,n){for(var i=[],o=0,r=0,s=t.length;r<s;r++){var a=t[r];i[o++]=new m_(a.modelState,a.viewState),i[o++]=n?m_.fromModelState(L_.translateUp(e.config,e.model,a.modelState)):m_.fromViewState(L_.translateUp(e.config,e.viewModel,a.viewState));}return i;},e.moveToBeginningOfLine=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=this._moveToLineStart(e,s,n);}return i;},e._moveToLineStart=function(e,t,n){var i=t.viewState.position.column,o=i===t.modelState.position.column,r=t.viewState.position.lineNumber,s=e.viewModel.getLineFirstNonWhitespaceColumn(r);return o||i===s?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n);},e._moveToLineStartByView=function(e,t,n){return m_.fromViewState(L_.moveToBeginningOfLine(e.config,e.viewModel,t.viewState,n));},e._moveToLineStartByModel=function(e,t,n){return m_.fromModelState(L_.moveToBeginningOfLine(e.config,e.model,t.modelState,n));},e.moveToEndOfLine=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=this._moveToLineEnd(e,s,n);}return i;},e._moveToLineEnd=function(e,t,n){var i=t.viewState.position,o=e.viewModel.getLineMaxColumn(i.lineNumber),r=i.column===o,s=t.modelState.position,a=e.model.getLineMaxColumn(s.lineNumber),u=o-i.column==a-s.column;return r||u?this._moveToLineEndByModel(e,t,n):this._moveToLineEndByView(e,t,n);},e._moveToLineEndByView=function(e,t,n){return m_.fromViewState(L_.moveToEndOfLine(e.config,e.viewModel,t.viewState,n));},e._moveToLineEndByModel=function(e,t,n){return m_.fromModelState(L_.moveToEndOfLine(e.config,e.model,t.modelState,n));},e.expandLineSelection=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i].viewState.selection,s=r.startLineNumber,a=e.viewModel.getLineCount(),u=r.endLineNumber,l=void 0;u===a?l=e.viewModel.getLineMaxColumn(a):(u++,l=1),n[i]=m_.fromViewState(new h_(new Jt(s,1,s,1),0,new Qt(u,l),0));}return n;},e.moveToBeginningOfBuffer=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=m_.fromModelState(L_.moveToBeginningOfBuffer(e.config,e.model,s.modelState,n));}return i;},e.moveToEndOfBuffer=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=m_.fromModelState(L_.moveToEndOfBuffer(e.config,e.model,s.modelState,n));}return i;},e.selectAll=function(e,t){var n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return m_.fromModelState(new h_(new Jt(1,1,1,1),0,new Qt(n,i),0));},e.line=function(e,t,n,i,o){var r=e.model.validatePosition(i),s=o?e.validateViewPosition(new Qt(o.lineNumber,o.column),r):e.convertModelPositionToViewPosition(r);if(!n||!t.modelState.hasSelection()){var a=e.model.getLineCount(),u=r.lineNumber+1,l=1;return u>a&&(u=a,l=e.model.getLineMaxColumn(u)),m_.fromModelState(new h_(new Jt(r.lineNumber,1,u,l),0,new Qt(u,l),0));}var c=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumber<c)return m_.fromViewState(t.viewState.move(t.modelState.hasSelection(),s.lineNumber,1,0));if(r.lineNumber>c){a=e.viewModel.getLineCount();var d=s.lineNumber+1,h=1;return d>a&&(d=a,h=e.viewModel.getLineMaxColumn(d)),m_.fromViewState(t.viewState.move(t.modelState.hasSelection(),d,h,0));}var p=t.modelState.selectionStart.getEndPosition();return m_.fromModelState(t.modelState.move(t.modelState.hasSelection(),p.lineNumber,p.column,0));},e.word=function(e,t,n,i){var o=e.model.validatePosition(i);return m_.fromModelState(N_.word(e.config,e.model,t.modelState,n,o));},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new m_(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,i=t.viewState.position.column;return m_.fromViewState(new h_(new Jt(n,i,n,i),0,new Qt(n,i),0));},e.moveTo=function(e,t,n,i,o){var r=e.model.validatePosition(i),s=o?e.validateViewPosition(new Qt(o.lineNumber,o.column),r):e.convertModelPositionToViewPosition(r);return m_.fromViewState(t.viewState.move(n,s.lineNumber,s.column,0));},e.move=function(e,t,n){var i=n.select,o=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,o);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,o);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,i,o):this._moveUpByModelLines(e,t,i,o);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,i,o):this._moveDownByModelLines(e,t,i,o);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);case 9:var r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._firstLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 11:r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 10:r=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 12:for(var l=e.getCompletelyVisibleViewRange(),c=[],d=0,h=t.length;d<h;d++){r=t[d];c[d]=this.findPositionInViewportIfOutside(e,r,l,i);}return c;}return null;},e.findPositionInViewportIfOutside=function(e,t,n,i){var o=t.viewState.position.lineNumber;if(n.startLineNumber<=o&&o<=n.endLineNumber-1)return new m_(t.modelState,t.viewState);o>n.endLineNumber-1&&(o=n.endLineNumber-1),o<n.startLineNumber&&(o=n.startLineNumber);var r=e.viewModel.getLineFirstNonWhitespaceColumn(o);return this._moveToViewPosition(e,t,i,o,r);},e._firstLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1);},e._lastLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1);},e._moveLeft=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r],u=L_.moveLeft(e.config,e.viewModel,a.viewState,n,i);if(1===i&&u.position.lineNumber!==a.viewState.position.lineNumber)e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position).lineNumber===a.modelState.position.lineNumber&&(u=L_.moveLeft(e.config,e.viewModel,u,n,1));o[r]=m_.fromViewState(u);}return o;},e._moveHalfLineLeft=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=Math.round(e.viewModel.getLineContent(a).length/2);i[o]=m_.fromViewState(L_.moveLeft(e.config,e.viewModel,s.viewState,n,u));}return i;},e._moveRight=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r],u=L_.moveRight(e.config,e.viewModel,a.viewState,n,i);if(1===i&&u.position.lineNumber!==a.viewState.position.lineNumber)e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position).lineNumber===a.modelState.position.lineNumber&&(u=L_.moveRight(e.config,e.viewModel,u,n,1));o[r]=m_.fromViewState(u);}return o;},e._moveHalfLineRight=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=Math.round(e.viewModel.getLineContent(a).length/2);i[o]=m_.fromViewState(L_.moveRight(e.config,e.viewModel,s.viewState,n,u));}return i;},e._moveDownByViewLines=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r];o[r]=m_.fromViewState(L_.moveDown(e.config,e.viewModel,a.viewState,n,i));}return o;},e._moveDownByModelLines=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r];o[r]=m_.fromModelState(L_.moveDown(e.config,e.model,a.modelState,n,i));}return o;},e._moveUpByViewLines=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r];o[r]=m_.fromViewState(L_.moveUp(e.config,e.viewModel,a.viewState,n,i));}return o;},e._moveUpByModelLines=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r];o[r]=m_.fromModelState(L_.moveUp(e.config,e.model,a.modelState,n,i));}return o;},e._moveToViewPosition=function(e,t,n,i,o){return m_.fromViewState(t.viewState.move(n,i,o,0));},e._moveToModelPosition=function(e,t,n,i,o){return m_.fromModelState(t.modelState.move(n,i,o,0));},e._moveToViewMinColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineMinColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u);}return i;},e._moveToViewFirstNonWhitespaceColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineFirstNonWhitespaceColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u);}return i;},e._moveToViewCenterColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=Math.round((e.viewModel.getLineMaxColumn(a)+e.viewModel.getLineMinColumn(a))/2);i[o]=this._moveToViewPosition(e,s,n,a,u);}return i;},e._moveToViewMaxColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineMaxColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u);}return i;},e._moveToViewLastNonWhitespaceColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineLastNonWhitespaceColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u);}return i;},e;}();!function(e){e.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:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down'\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!_e(e))return!1;var t=e;return!(!me(t.to)||!be(t.select)&&!ye(t.select)||!be(t.by)&&!me(t.by)||!be(t.value)&&!ve(t.value));}}]},e.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"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;var n;switch(t.to){case e.RawDirection.Left:n=0;break;case e.RawDirection.Right:n=1;break;case e.RawDirection.Up:n=2;break;case e.RawDirection.Down:n=3;break;case e.RawDirection.WrappedLineStart:n=4;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:n=5;break;case e.RawDirection.WrappedLineColumnCenter:n=6;break;case e.RawDirection.WrappedLineEnd:n=7;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:n=8;break;case e.RawDirection.ViewPortTop:n=9;break;case e.RawDirection.ViewPortBottom:n=11;break;case e.RawDirection.ViewPortCenter:n=10;break;case e.RawDirection.ViewPortIfOutside:n=12;break;default:return null;}var i=0;switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Character:i=3;break;case e.RawUnit.HalfLine:i=4;}return{direction:n,unit:i,select:!!t.select,value:t.value||1};};}(D_||(D_={}));var A_,M_,P_=function(){function e(e,t){this._opts=t,this._selection=e,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1;}return e.unshiftIndentCount=function(e,t,n){var i=v_.visibleColumnFromColumn(e,t,n);return v_.prevTabStop(i,n)/n;},e.shiftIndentCount=function(e,t,n){var i=v_.visibleColumnFromColumn(e,t,n);return v_.nextTabStop(i,n)/n;},e.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n);},e.prototype.getEditOperations=function(t,n){var i=this._selection.startLineNumber,o=this._selection.endLineNumber;1===this._selection.endColumn&&i!==o&&(o-=1);var r=this._opts.tabSize,s=this._opts.oneIndent,a=i===o;if(this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var u=["",s],l=0,c=0,d=i;d<=o;d++,l=c){c=0;var h=lo(_=t.getLineContent(d));if((!this._opts.isUnshift||0!==_.length&&0!==h)&&(a||this._opts.isUnshift||0!==_.length)){if(-1===h&&(h=_.length),d>1)if(v_.visibleColumnFromColumn(_,h+1,r)%r!=0&&t.isCheapToTokenize(d-1)){var p=la.getRawEnterActionAtPosition(t,d-1,t.getLineMaxColumn(d-1));if(p){if(c=l,p.appendText)for(var f=0,g=p.appendText.length;f<g&&c<r&&32===p.appendText.charCodeAt(f);f++)c++;p.removeText&&(c=Math.max(0,c-p.removeText));for(f=0;f<c&&0!==h&&32===_.charCodeAt(h-1);f++)h--;}}if(!this._opts.isUnshift||0!==h){var m=void 0;m=this._opts.isUnshift?e.unshiftIndentCount(_,h+1,r):e.shiftIndentCount(_,h+1,r);for(f=u.length;f<=m;f++)u[f]=u[f-1]+s;this._addEditOperation(n,new Jt(d,1,d,h+1),u[m]),d===i&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=h+1);}}}else for(d=i;d<=o;d++){var _;h=lo(_=t.getLineContent(d));if((!this._opts.isUnshift||0!==_.length&&0!==h)&&(a||this._opts.isUnshift||0!==_.length)&&(-1===h&&(h=_.length),!this._opts.isUnshift||0!==h))if(this._opts.isUnshift){h=Math.min(h,r);for(var v=0;v<h;v++){if(9===_.charCodeAt(v)){h=v+1;break;}}this._addEditOperation(n,new Jt(d,1,d,h+1),"");}else this._addEditOperation(n,new Jt(d,1,d,1),s),d===i&&(this._selectionStartColumnStaysPut=1===this._selection.startColumn);}this._selectionId=n.trackSelection(this._selection);},e.prototype.computeCursorState=function(e,t){if(this._useLastEditRangeForCursorEndPosition){var n=t.getInverseEditOperations()[0];return new tn(n.range.endLineNumber,n.range.endColumn,n.range.endLineNumber,n.range.endColumn);}var i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var o=this._selection.startColumn;return i.startColumn<=o?i:0===i.getDirection()?new tn(i.startLineNumber,o,i.endLineNumber,i.endColumn):new tn(i.endLineNumber,i.endColumn,i.startLineNumber,o);}return i;},e;}(),F_=function(){function e(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n;}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(new Jt(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new Jt(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection);},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range,o=n[1].range;return new tn(i.endLineNumber,i.endColumn,o.endLineNumber,o.endColumn-this._charAfterSelection.length);},e;}(),W_=function(){function e(){}return e.indent=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++)i[o]=new P_(n[o],{isUnshift:!1,tabSize:e.tabSize,oneIndent:e.oneIndent,useTabStops:e.useTabStops});return i;},e.outdent=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++)i[o]=new P_(n[o],{isUnshift:!0,tabSize:e.tabSize,oneIndent:e.oneIndent,useTabStops:e.useTabStops});return i;},e.shiftIndent=function(e,t,n){n=n||1;for(var i=P_.shiftIndentCount(t,t.length+n,e.tabSize),o="",r=0;r<i;r++)o+="\t";return o;},e.unshiftIndent=function(e,t,n){n=n||1;for(var i=P_.unshiftIndentCount(t,t.length+n,e.tabSize),o="",r=0;r<i;r++)o+="\t";return o;},e._distributedPaste=function(e,t,n,i){for(var o=[],r=0,s=n.length;r<s;r++)o[r]=new C_(n[r],i[r]);return new __(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0});},e._simplePaste=function(e,t,n,i,o){for(var r=[],s=0,a=n.length;s<a;s++){var u=n[s],l=u.getPosition();if(o&&i.indexOf("\n")!==i.length-1&&(o=!1),o&&u.startLineNumber!==u.endLineNumber&&(o=!1),o&&u.startColumn===t.getLineMinColumn(u.startLineNumber)&&u.endColumn===t.getLineMaxColumn(u.startLineNumber)&&(o=!1),o){var c=new Jt(l.lineNumber,1,l.lineNumber,1);r[s]=new C_(c,i);}else r[s]=new C_(u,i);}return new __(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0});},e._distributePasteToCursors=function(e,t,n,i){if(n)return null;if(1===e.length)return null;if(i&&i.length===e.length)return i;10===t.charCodeAt(t.length-1)&&(t=t.substr(0,t.length-1));var o=t.split(/\r\n|\r|\n/);return o.length===e.length?o:null;},e.paste=function(e,t,n,i,o,r){var s=this._distributePasteToCursors(n,i,o,r);return s?(n=n.sort(Jt.compareRangesUsingStarts),this._distributedPaste(e,t,n,s)):this._simplePaste(e,t,n,i,o);},e._goodIndentForLine=function(t,n,i){var o=null,r="",s=t.autoIndent?la.getInheritIndentForLine(n,i,!1):null;if(s)o=s.action,r=s.indentation;else if(i>1){var a=i-1;for(a=i-1;a>=1;a--){if(ho(n.getLineContent(a))>=0)break;}if(a<1)return null;var u=n.getLineMaxColumn(a),l=la.getEnterAction(n,new Jt(a,u,a,u));l&&(r=l.indentation,(o=l.enterAction)&&(r+=o.appendText));}return o&&(o===Vs.Indent&&(r=e.shiftIndent(t,r)),o===Vs.Outdent&&(r=e.unshiftIndent(t,r)),r=t.normalizeIndentation(r)),r||null;},e._replaceJumpToNextIndent=function(e,t,n,i){var o="",r=n.getStartPosition();if(e.insertSpaces)for(var s=v_.visibleColumnFromColumn2(e,t,r),a=e.tabSize,u=a-s%a,l=0;l<u;l++)o+=" ";else o="\t";return new C_(n,o,i);},e.tab=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o];if(s.isEmpty()){var a=t.getLineContent(s.startLineNumber);if(/^\s*$/.test(a)&&t.isCheapToTokenize(s.startLineNumber)){var u=this._goodIndentForLine(e,t,s.startLineNumber);u=u||"\t";var l=e.normalizeIndentation(u);if(!so(a,l)){i[o]=new C_(new Jt(s.startLineNumber,1,s.startLineNumber,a.length+1),l,!0);continue;}}i[o]=this._replaceJumpToNextIndent(e,t,s,!0);}else{if(s.startLineNumber===s.endLineNumber){var c=t.getLineMaxColumn(s.startLineNumber);if(1!==s.startColumn||s.endColumn!==c){i[o]=this._replaceJumpToNextIndent(e,t,s,!1);continue;}}i[o]=new P_(s,{isUnshift:!1,tabSize:e.tabSize,oneIndent:e.oneIndent,useTabStops:e.useTabStops});}}return i;},e.replacePreviousChar=function(e,t,n,i,o,r){for(var s=[],a=0,u=i.length;a<u;a++){var l=i[a];if(l.isEmpty()){var c=l.getPosition(),d=Math.max(1,c.column-r),h=new Jt(c.lineNumber,d,c.lineNumber,c.column);s[a]=new C_(h,o);}else s[a]=null;}return new __(1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1});},e._typeCommand=function(e,t,n){return n?new w_(e,t,!0):new C_(e,t,!0);},e._enter=function(t,n,i,o){if(!n.isCheapToTokenize(o.getStartPosition().lineNumber)){var r=co(n.getLineContent(o.startLineNumber)).substring(0,o.startColumn-1);return e._typeCommand(o,"\n"+t.normalizeIndentation(r),i);}var s=la.getEnterAction(n,o);if(s){var a=s.enterAction,u=s.indentation;if(a.indentAction===Vs.None)return e._typeCommand(o,"\n"+t.normalizeIndentation(u+a.appendText),i);if(a.indentAction===Vs.Indent)return e._typeCommand(o,"\n"+t.normalizeIndentation(u+a.appendText),i);if(a.indentAction===Vs.IndentOutdent){var l=t.normalizeIndentation(u),c=t.normalizeIndentation(u+a.appendText),d="\n"+c+"\n"+l;return i?new w_(o,d,!0):new S_(o,d,-1,c.length-l.length,!0);}if(a.indentAction===Vs.Outdent){var h=e.unshiftIndent(t,u);return e._typeCommand(o,"\n"+t.normalizeIndentation(h+a.appendText),i);}}if(!t.autoIndent){var p=co(n.getLineContent(o.startLineNumber)).substring(0,o.startColumn-1);return e._typeCommand(o,"\n"+t.normalizeIndentation(p),i);}var f=la.getIndentForEnter(n,o,{unshiftIndent:function(n){return e.unshiftIndent(t,n);},shiftIndent:function(n){return e.shiftIndent(t,n);},normalizeIndentation:function(e){return t.normalizeIndentation(e);}},t.autoIndent),g=n.getLineContent(o.startLineNumber),m=co(g).substring(0,o.startColumn-1);if(f){var _=v_.visibleColumnFromColumn2(t,n,o.getEndPosition()),v=o.endColumn,y="\n";m!==t.normalizeIndentation(f.beforeEnter)&&(y=t.normalizeIndentation(f.beforeEnter)+g.substring(m.length,o.startColumn-1)+"\n",o=new Jt(o.startLineNumber,1,o.endLineNumber,o.endColumn));var b=lo(n.getLineContent(o.endLineNumber));if(o=b>=0?o.setEndPosition(o.endLineNumber,Math.max(o.endColumn,b+1)):o.setEndPosition(o.endLineNumber,n.getLineMaxColumn(o.endLineNumber)),i)return new w_(o,y+t.normalizeIndentation(f.afterEnter),!0);var C=0;return v<=b+1&&(t.insertSpaces||(_=Math.ceil(_/t.tabSize)),C=Math.min(_+1-t.normalizeIndentation(f.afterEnter).length-1,0)),new S_(o,y+t.normalizeIndentation(f.afterEnter),0,C,!0);}return e._typeCommand(o,"\n"+t.normalizeIndentation(m),i);},e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var i=0,o=n.length;i<o;i++)if(!t.isCheapToTokenize(n[i].getEndPosition().lineNumber))return!1;return!0;},e._runAutoIndentType=function(t,n,i,o){var r=la.getIndentationAtPosition(n,i.startLineNumber,i.startColumn),s=la.getIndentActionForType(n,i,o,{shiftIndent:function(n){return e.shiftIndent(t,n);},unshiftIndent:function(n){return e.unshiftIndent(t,n);}});if(null===s)return null;if(s!==t.normalizeIndentation(r)){var a=n.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===a?e._typeCommand(new Jt(i.startLineNumber,0,i.endLineNumber,i.endColumn),t.normalizeIndentation(s)+o,!1):e._typeCommand(new Jt(i.startLineNumber,0,i.endLineNumber,i.endColumn),t.normalizeIndentation(s)+n.getLineContent(i.startLineNumber).substring(a-1,i.startColumn-1)+o,!1);}return null;},e._isAutoClosingCloseCharType=function(e,t,n,i){if("never"===(y_(i)?e.autoClosingQuotes:e.autoClosingBrackets)||!e.autoClosingPairsClose.hasOwnProperty(i))return!1;for(var o=i===e.autoClosingPairsClose[i],r=0,s=n.length;r<s;r++){var a=n[r];if(!a.isEmpty())return!1;var u=a.getPosition(),l=t.getLineContent(u.lineNumber);if(l.charAt(u.column-1)!==i)return!1;if(o){var c=l.substr(0,u.column-1);if(this._countNeedlesInHaystack(c,i)%2==0)return!1;}}return!0;},e._countNeedlesInHaystack=function(e,t){for(var n=0,i=-1;-1!==(i=e.indexOf(t,i+1));)n++;return n;},e._runAutoClosingCloseCharType=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s<a;s++){var u=i[s].getPosition(),l=new Jt(u.lineNumber,u.column,u.lineNumber,u.column+1);r[s]=new C_(l,o);}return new __(1,r,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1});},e._isBeforeClosingBrace=function(e,t,n){var i=e.autoClosingPairsOpen[t]===t,o=!1;for(var r in e.autoClosingPairsClose){var s=e.autoClosingPairsOpen[r]===r;if((i||!s)&&n===r){o=!0;break;}}return o;},e._isAutoClosingOpenCharType=function(t,n,i,o){var r=y_(o);if("never"===(r?t.autoClosingQuotes:t.autoClosingBrackets)||!t.autoClosingPairsOpen.hasOwnProperty(o))return!1;for(var s=r?t.shouldAutoCloseBefore.quote:t.shouldAutoCloseBefore.bracket,u=0,l=i.length;u<l;u++){var c=i[u];if(!c.isEmpty())return!1;var d=c.getPosition(),h=n.getLineContent(d.lineNumber);if(r&&d.column>1){var p=tg(t.wordSeparators),f=h.charCodeAt(d.column-2);if(0===p.get(f))return!1;}var g=h.charAt(d.column-1);if(g)if(!e._isBeforeClosingBrace(t,o,g)&&!s(g))return!1;if(!n.isCheapToTokenize(d.lineNumber))return!1;n.forceTokenization(d.lineNumber);var m=n.getLineTokens(d.lineNumber),_=!1;try{_=la.shouldAutoClosePair(o,m,d.column);}catch(e){a(e);}if(!_)return!1;}return!0;},e._runAutoClosingOpenCharType=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s<a;s++){var u=i[s],l=t.autoClosingPairsOpen[o];r[s]=new S_(u,o+l,0,-l.length);}return new __(1,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1});},e._shouldSurroundChar=function(e,t){return y_(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround;},e._isSurroundSelectionType=function(t,n,i,o){if(!e._shouldSurroundChar(t,o)||!t.surroundingPairs.hasOwnProperty(o))return!1;for(var r=y_(o),s=0,a=i.length;s<a;s++){var u=i[s];if(u.isEmpty())return!1;for(var l=!0,c=u.startLineNumber;c<=u.endLineNumber;c++){var d=n.getLineContent(c),h=c===u.startLineNumber?u.startColumn-1:0,p=c===u.endLineNumber?u.endColumn-1:d.length,f=d.substring(h,p);if(/[^ \t]/.test(f)){l=!1;break;}}if(l)return!1;if(r&&u.startLineNumber===u.endLineNumber&&u.startColumn+1===u.endColumn)if(y_(n.getValueInRange(u)))return!1;}return!0;},e._runSurroundSelectionType=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s<a;s++){var u=i[s],l=t.surroundingPairs[o];r[s]=new F_(u,o,l);}return new __(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0});},e._isTypeInterceptorElectricChar=function(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber));},e._typeInterceptorElectricChar=function(e,t,n,i,o){if(!t.electricChars.hasOwnProperty(o)||!i.isEmpty())return null;var r=i.getPosition();n.forceTokenization(r.lineNumber);var s,u=n.getLineTokens(r.lineNumber);try{s=la.onElectricCharacter(o,u,r.column);}catch(e){return a(e),null;}if(!s)return null;if(s.appendText){var l=new S_(i,o+s.appendText,0,-s.appendText.length);return new __(1,[l],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0});}if(s.matchOpenBracket){var c=(u.getLineContent()+o).lastIndexOf(s.matchOpenBracket)+1,d=n.findMatchingBracketUp(s.matchOpenBracket,{lineNumber:r.lineNumber,column:c});if(d){if(d.startLineNumber===r.lineNumber)return null;var h=co(n.getLineContent(d.startLineNumber)),p=t.normalizeIndentation(h),f=n.getLineContent(r.lineNumber),g=n.getLineFirstNonWhitespaceColumn(r.lineNumber)||r.column,m=p+f.substring(g-1,r.column-1)+o,_=new Jt(r.lineNumber,1,r.lineNumber,r.column);l=new C_(_,m);return new __(1,[l],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0});}}return null;},e.compositionEndWithInterceptors=function(t,n,i,o){if("never"===n.autoClosingQuotes)return null;for(var r=[],s=0;s<o.length;s++)if(o[s].isEmpty()){var u=o[s].getPosition(),l=i.getLineContent(u.lineNumber),c=l.charAt(u.column-2);if(n.autoClosingPairsClose.hasOwnProperty(c)&&c===n.autoClosingPairsClose[c]){var d=l.substr(0,u.column-2);if(this._countNeedlesInHaystack(d,c)%2==1)continue;}if(n.autoClosingPairsOpen.hasOwnProperty(c)){if(y_(c)&&u.column>2){var h=tg(n.wordSeparators),p=l.charCodeAt(u.column-3);if(0===h.get(p))continue;}var f=l.charAt(u.column-1);if(f){var g=e._isBeforeClosingBrace(n,c,f),m=y_(c)?n.shouldAutoCloseBefore.quote:n.shouldAutoCloseBefore.bracket;if(g)continue;if(!m(f))continue;}if(!i.isCheapToTokenize(u.lineNumber))continue;i.forceTokenization(u.lineNumber);var _=i.getLineTokens(u.lineNumber),v=!1;try{v=la.shouldAutoClosePair(c,_,u.column-1);}catch(e){a(e);}if(v){var y=n.autoClosingPairsOpen[c];r[s]=new S_(o[s],y,0,-y.length);}}}return new __(1,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1});},e.typeWithInterceptors=function(t,n,i,o,r){if("\n"===r){for(var s=[],a=0,u=o.length;a<u;a++)s[a]=e._enter(n,i,!1,o[a]);return new __(1,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1});}if(this._isAutoIndentType(n,i,o)){var l=[],c=!1;for(a=0,u=o.length;a<u;a++)if(l[a]=this._runAutoIndentType(n,i,o[a],r),!l[a]){c=!0;break;}if(!c)return new __(1,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1});}if(this._isAutoClosingCloseCharType(n,i,o,r))return this._runAutoClosingCloseCharType(t,n,i,o,r);if(this._isAutoClosingOpenCharType(n,i,o,r))return this._runAutoClosingOpenCharType(t,n,i,o,r);if(this._isSurroundSelectionType(n,i,o,r))return this._runSurroundSelectionType(t,n,i,o,r);if(this._isTypeInterceptorElectricChar(n,i,o)){var d=this._typeInterceptorElectricChar(t,n,i,o[0],r);if(d)return d;}var h=[];for(a=0,u=o.length;a<u;a++)h[a]=new C_(o[a],r);var p=1!==t;return" "===r&&(p=!0),new __(1,h,{shouldPushStackElementBefore:p,shouldPushStackElementAfter:!1});},e.typeWithoutInterceptors=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s<a;s++)r[s]=new C_(i[s],o);return new __(1,r,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1});},e.lineInsertBefore=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o].positionLineNumber;if(1===s)i[o]=new w_(new Jt(1,1,1,1),"\n");else{s--;var a=t.getLineMaxColumn(s);i[o]=this._enter(e,t,!1,new Jt(s,a,s,a));}}return i;},e.lineInsertAfter=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o].positionLineNumber,a=t.getLineMaxColumn(s);i[o]=this._enter(e,t,!1,new Jt(s,a,s,a));}return i;},e.lineBreakInsert=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++)i[o]=this._enter(e,t,!0,n[o]);return i;},e;}();(M_=A_||(A_={})).editorTextFocus=new yl("editorTextFocus",!1),M_.focus=new yl("editorFocus",!1),M_.textInputFocus=new yl("textInputFocus",!1),M_.readOnly=new yl("editorReadonly",!1),M_.writable=M_.readOnly.toNegated(),M_.hasNonEmptySelection=new yl("editorHasSelection",!1),M_.hasOnlyEmptySelection=M_.hasNonEmptySelection.toNegated(),M_.hasMultipleSelections=new yl("editorHasMultipleSelections",!1),M_.hasSingleSelection=M_.hasMultipleSelections.toNegated(),M_.tabMovesFocus=new yl("editorTabMovesFocus",!1),M_.tabDoesNotMoveFocus=M_.tabMovesFocus.toNegated(),M_.isInEmbeddedEditor=new yl("isInEmbeddedEditor",!1),M_.canUndo=new yl("canUndo",!1),M_.canRedo=new yl("canRedo",!1),M_.languageId=new yl("editorLangId",""),M_.hasCompletionItemProvider=new yl("editorHasCompletionItemProvider",!1),M_.hasCodeActionsProvider=new yl("editorHasCodeActionsProvider",!1),M_.hasCodeLensProvider=new yl("editorHasCodeLensProvider",!1),M_.hasDefinitionProvider=new yl("editorHasDefinitionProvider",!1),M_.hasImplementationProvider=new yl("editorHasImplementationProvider",!1),M_.hasTypeDefinitionProvider=new yl("editorHasTypeDefinitionProvider",!1),M_.hasHoverProvider=new yl("editorHasHoverProvider",!1),M_.hasDocumentHighlightProvider=new yl("editorHasDocumentHighlightProvider",!1),M_.hasDocumentSymbolProvider=new yl("editorHasDocumentSymbolProvider",!1),M_.hasReferenceProvider=new yl("editorHasReferenceProvider",!1),M_.hasRenameProvider=new yl("editorHasRenameProvider",!1),M_.hasDocumentFormattingProvider=new yl("editorHasDocumentFormattingProvider",!1),M_.hasDocumentSelectionFormattingProvider=new yl("editorHasDocumentSelectionFormattingProvider",!1),M_.hasSignatureHelpProvider=new yl("editorHasSignatureHelpProvider",!1);var B_,V_,H_,U_,j_,z_,K_,q_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),G_=0,$_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return q_(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditorCommand(i,n||{});},t;}(Xc);function Y_(e){e.register();}!function(e){e.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\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!_e(e))return!1;var t=e;return!(!me(t.to)||!be(t.by)&&!me(t.by)||!be(t.value)&&!ve(t.value)||!be(t.revealCursor)&&!ye(t.revealCursor));}}]},e.RawDirection={Up:"up",Down:"down"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},e.parse=function(t){var n,i;switch(t.to){case e.RawDirection.Up:n=1;break;case e.RawDirection.Down:n=2;break;default:return null;}switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Page:i=3;break;case e.RawUnit.HalfPage:i=4;break;default:i=2;}return{direction:n,unit:i,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select};};}(B_||(B_={})),(H_=V_||(V_={})).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\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!_e(e))return!1;var t=e;return!(!ve(t.lineNumber)||!be(t.at)&&!me(t.at));}}]},H_.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"},function(e){var t=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[R_.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!0,0,0);},t;}($_);e.MoveTo=ed(new t({id:"_moveTo",inSelectionMode:!1,precondition:null})),e.MoveToSelect=ed(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:null}));var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,n.viewStates.map(function(e){return m_.fromViewState(e);})),e.setColumnSelectData({toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(!0,n.reversed?1:2,0);},t;}($_);e.ColumnSelect=ed(new(function(e){function t(){return e.call(this,{id:"columnSelect",precondition:null})||this;}return q_(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){var o,r=e.model.validatePosition(i.position);return o=i.viewPosition?e.validateViewPosition(new Qt(i.viewPosition.lineNumber,i.viewPosition.column),r):e.convertModelPositionToViewPosition(r),b_.columnSelect(e.config,e.viewModel,t.viewState.selection,o.lineNumber,i.mouseColumn-1);},t;}(n))()),e.CursorColumnSelectLeft=ed(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:3599,linux:{primary:0}}})||this;}return q_(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return b_.columnSelectLeft(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn);},t;}(n))()),e.CursorColumnSelectRight=ed(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:3601,linux:{primary:0}}})||this;}return q_(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return b_.columnSelectRight(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn);},t;}(n))());var i=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n;}return q_(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return b_.columnSelectUp(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn);},t;}(n);e.CursorColumnSelectUp=ed(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=ed(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:3595,linux:{primary:0}}}));var o=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n;}return q_(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return b_.columnSelectDown(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn);},t;}(n);e.CursorColumnSelectDown=ed(new o({isPaged:!1,id:"cursorColumnSelectDown",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=ed(new o({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:3596,linux:{primary:0}}}));var r=function(e){function t(){return e.call(this,{id:"cursorMove",precondition:null,description:D_.description})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=D_.parse(t);n&&this._runCursorMove(e,t.source,n);},t.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,R_.move(e.context,e.getAll(),n)),e.reveal(!0,0,0);},t;}($_);e.CursorMoveImpl=r,e.CursorMove=ed(new r());var s=function(t){function n(e){var n=t.call(this,e)||this;return n._staticArgs=e.args,n;}return q_(n,t),n.prototype.runCoreEditorCommand=function(t,n){var i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,i);},n;}($_);e.CursorLeft=ed(new s({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=ed(new s({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:1039}})),e.CursorRight=ed(new s({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=ed(new s({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:1041}})),e.CursorUp=ed(new s({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=ed(new s({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=ed(new s({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:11}})),e.CursorPageUpSelect=ed(new s({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:1035}})),e.CursorDown=ed(new s({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=ed(new s({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=ed(new s({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:12}})),e.CursorPageDownSelect=ed(new s({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:1036}})),e.CreateCursor=ed(new(function(e){function t(){return e.call(this,{id:"createCursor",precondition:null})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n,i=e.context;n=t.wholeLine?R_.line(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition):R_.moveTo(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var o=e.getAll();if(o.length>1)for(var r=n.modelState?n.modelState.position:null,s=n.viewState?n.viewState.position:null,a=0,u=o.length;a<u;a++){var l=o[a];if((!r||l.modelState.selection.containsPosition(r))&&(!s||l.viewState.selection.containsPosition(s)))return o.splice(a,1),e.context.model.pushStackElement(),void e.setStates(t.source,3,o);}o.push(n),e.context.model.pushStackElement(),e.setStates(t.source,3,o);},t;}($_))()),e.LastCursorMoveToSelect=ed(new(function(e){function t(){return e.call(this,{id:"_lastCursorMoveToSelect",precondition:null})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),o=e.getAll(),r=o.slice(0);r[i]=R_.moveTo(n,o[i],!0,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,r);},t;}($_))());var a=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,R_.moveToBeginningOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0);},t;}($_);e.CursorHome=ed(new a({inSelectionMode:!1,id:"cursorHome",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=ed(new a({inSelectionMode:!0,id:"cursorHomeSelect",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}})),e.CursorLineStart=ed(new(function(e){function t(){return e.call(this,{id:"cursorLineStart",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:0,mac:{primary:287}}})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(!0,0,0);},t.prototype._exec=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i],s=r.modelState.position.lineNumber;n[i]=m_.fromModelState(r.modelState.move(!1,s,1,0));}return n;},t;}($_))());var u=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,R_.moveToEndOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0);},t;}($_);e.CursorEnd=ed(new u({inSelectionMode:!1,id:"cursorEnd",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}}})),e.CursorEndSelect=ed(new u({inSelectionMode:!0,id:"cursorEndSelect",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}}})),e.CursorLineEnd=ed(new(function(e){function t(){return e.call(this,{id:"cursorLineEnd",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:0,mac:{primary:291}}})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(!0,0,0);},t.prototype._exec=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i],s=r.modelState.position.lineNumber,a=e.model.getLineMaxColumn(s);n[i]=m_.fromModelState(r.modelState.move(!1,s,a,0));}return n;},t;}($_))());var l=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,R_.moveToBeginningOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0);},t;}($_);e.CursorTop=ed(new l({inSelectionMode:!1,id:"cursorTop",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=ed(new l({inSelectionMode:!0,id:"cursorTopSelect",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:3086,mac:{primary:3088}}}));var c=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,R_.moveToEndOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0);},t;}($_);e.CursorBottom=ed(new c({inSelectionMode:!1,id:"cursorBottom",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=ed(new c({inSelectionMode:!0,id:"cursorBottomSelect",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:3085,mac:{primary:3090}}}));var d=function(e){function t(){return e.call(this,{id:"editorScroll",precondition:null,description:B_.description})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=B_.parse(t);n&&this._runEditorScroll(e,t.source,n);},t.prototype._runEditorScroll=function(e,t,n){var i=this._computeDesiredScrollTop(e.context,n);if(n.revealCursor){var o=e.context.getCompletelyVisibleViewRangeAtScrollTop(i);e.setStates(t,3,[R_.findPositionInViewportIfOutside(e.context,e.getPrimaryCursor(),o,n.select)]);}e.scrollTo(i);},t.prototype._computeDesiredScrollTop=function(e,t){if(1===t.unit){var n=e.getCompletelyVisibleModelRange(),i=void 0;i=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);var o=e.convertModelPositionToViewPosition(new Qt(i,1));return e.getVerticalOffsetForViewLine(o.lineNumber);}var r;r=3===t.unit?e.config.pageSize*t.value:4===t.unit?Math.round(e.config.pageSize/2)*t.value:t.value;var s=(1===t.direction?-1:1)*r;return e.getCurrentScrollTop()+s*e.config.lineHeight;},t;}($_);e.EditorScrollImpl=d,e.EditorScroll=ed(new d()),e.ScrollLineUp=ed(new(function(t){function n(){return t.call(this,{id:"scrollLineUp",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:2064,mac:{primary:267}}})||this;}return q_(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1});},n;}($_))()),e.ScrollPageUp=ed(new(function(t){function n(){return t.call(this,{id:"scrollPageUp",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})||this;}return q_(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1});},n;}($_))()),e.ScrollLineDown=ed(new(function(t){function n(){return t.call(this,{id:"scrollLineDown",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:2066,mac:{primary:268}}})||this;}return q_(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1});},n;}($_))()),e.ScrollPageDown=ed(new(function(t){function n(){return t.call(this,{id:"scrollPageDown",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})||this;}return q_(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1});},n;}($_))());var h=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[R_.word(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position)]),e.reveal(!0,0,0);},t;}($_);e.WordSelect=ed(new h({inSelectionMode:!1,id:"_wordSelect",precondition:null})),e.WordSelectDrag=ed(new h({inSelectionMode:!0,id:"_wordSelectDrag",precondition:null})),e.LastCursorWordSelect=ed(new(function(e){function t(){return e.call(this,{id:"lastCursorWordSelect",precondition:null})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),o=e.getAll(),r=o.slice(0),s=o[i];r[i]=R_.word(n,s,s.modelState.hasSelection(),t.position),n.model.pushStackElement(),e.setStates(t.source,3,r);},t;}($_))());var p=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[R_.line(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!1,0,0);},t;}($_);e.LineSelect=ed(new p({inSelectionMode:!1,id:"_lineSelect",precondition:null})),e.LineSelectDrag=ed(new p({inSelectionMode:!0,id:"_lineSelectDrag",precondition:null}));var f=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.getLastAddedCursorIndex(),i=e.getAll(),o=i.slice(0);o[n]=R_.line(e.context,i[n],this._inSelectionMode,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,o);},t;}($_);e.LastCursorLineSelect=ed(new f({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:null})),e.LastCursorLineSelectDrag=ed(new f({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:null})),e.ExpandLineSelection=ed(new(function(e){function t(){return e.call(this,{id:"expandLineSelection",precondition:null,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:2087}})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,R_.expandLineSelection(e.context,e.getAll())),e.reveal(!0,0,0);},t;}($_))()),e.CancelSelection=ed(new(function(e){function t(){return e.call(this,{id:"cancelSelection",precondition:A_.hasNonEmptySelection,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:9,secondary:[1033]}})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[R_.cancelSelection(e.context,e.getPrimaryCursor())]),e.reveal(!0,0,0);},t;}($_))()),e.RemoveSecondaryCursors=ed(new(function(e){function t(){return e.call(this,{id:"removeSecondaryCursors",precondition:A_.hasMultipleSelections,kbOpts:{weight:G_+1,kbExpr:A_.textInputFocus,primary:9,secondary:[1033]}})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[e.getPrimaryCursor()]),e.reveal(!0,0,0);},t;}($_))()),e.RevealLine=ed(new(function(e){function t(){return e.call(this,{id:"revealLine",precondition:null,description:V_.description})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=t,i=(n.lineNumber||0)+1;i<1&&(i=1);var o=e.context.model.getLineCount();i>o&&(i=o);var r=new Jt(i,1,i,e.context.model.getLineMaxColumn(i)),s=0;if(n.at)switch(n.at){case V_.RawAtArgument.Top:s=3;break;case V_.RawAtArgument.Center:s=1;break;case V_.RawAtArgument.Bottom:s=4;}var a=e.context.convertModelRangeToViewRange(r);e.revealRange(!1,a,s,0);},t;}($_))()),e.SelectAll=ed(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:null})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[R_.selectAll(e.context,e.getPrimaryCursor())]);},t;}($_))()),e.SetSelection=ed(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:null})||this;}return q_(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[m_.fromModelSelection(t.selection)]);},t;}($_))());}(U_||(U_={})),z_=j_||(j_={}),K_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return q_(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditingCommand(t,i,n||{});},t;}(Xc),z_.CoreEditingCommand=K_,z_.LineBreakInsert=ed(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:A_.writable,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:0,mac:{primary:301}}})||this;}return q_(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,W_.lineBreakInsert(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection;})));},t;}(K_))()),z_.Outdent=ed(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:A_.writable,kbOpts:{weight:G_,kbExpr:dl.and(A_.editorTextFocus,A_.tabDoesNotMoveFocus),primary:1026}})||this;}return q_(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,W_.outdent(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection;}))),e.pushUndoStop();},t;}(K_))()),z_.Tab=ed(new(function(e){function t(){return e.call(this,{id:"tab",precondition:A_.writable,kbOpts:{weight:G_,kbExpr:dl.and(A_.editorTextFocus,A_.tabDoesNotMoveFocus),primary:2}})||this;}return q_(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,W_.tab(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection;}))),e.pushUndoStop();},t;}(K_))()),z_.DeleteLeft=ed(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:A_.writable,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this;}return q_(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var i=T_.deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection;})),o=i[0],r=i[1];o&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(2);},t;}(K_))()),z_.DeleteRight=ed(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:A_.writable,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this;}return q_(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var i=T_.deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection;})),o=i[0],r=i[1];o&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(3);},t;}(K_))());var X_=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n;}return q_(t,e),t.prototype.runCommand=function(e,t){var n=e.get(pn).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var i=document.activeElement;if(!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)){var o=e.get(pn).getActiveCodeEditor();return o?(o.focus(),this._runEditorHandler(e,o,t)):void 0;}document.execCommand(this._inputHandler);},t.prototype._runEditorHandler=function(e,t,n){var i=this._editorHandler;"string"==typeof i?t.trigger("keyboard",i,n):((n=n||{}).source="keyboard",i.runEditorCommand(e,t,n));},t;}(Yc),Z_=function(e){function t(t,n){var i=e.call(this,{id:t,precondition:null})||this;return i._handlerId=n,i;}return q_(t,e),t.prototype.runCommand=function(e,t){var n=e.get(pn).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t);},t;}(Yc);function Q_(e){Y_(new Z_("default:"+e,e)),Y_(new Z_(e,e));}Y_(new X_({editorHandler:U_.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:A_.textInputFocus,kbOpts:{weight:G_,kbExpr:null,primary:2079},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"1_basic",title:ie({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),Y_(new X_({editorHandler:hr.Undo,inputHandler:"undo",id:hr.Undo,precondition:A_.writable,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:2104},menubarOpts:{menuId:Il.MenubarEditMenu,group:"1_do",title:ie({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),Y_(new Z_("default:"+hr.Undo,hr.Undo)),Y_(new X_({editorHandler:hr.Redo,inputHandler:"redo",id:hr.Redo,precondition:A_.writable,kbOpts:{weight:G_,kbExpr:A_.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{menuId:Il.MenubarEditMenu,group:"1_do",title:ie({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),Y_(new Z_("default:"+hr.Redo,hr.Redo)),Q_(hr.Type),Q_(hr.ReplacePreviousChar),Q_(hr.CompositionStart),Q_(hr.CompositionEnd),Q_(hr.Paste),Q_(hr.Cut);var J_=function(){function e(e,t,n,i){this.configuration=e,this.viewModel=t,this.outgoingEvents=n,this.commandDelegate=i;}return e.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t);},e.prototype.paste=function(e,t,n,i){this.commandDelegate.paste(e,t,n,i);},e.prototype.type=function(e,t){this.commandDelegate.type(e,t);},e.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n);},e.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e);},e.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e);},e.prototype.cut=function(e){this.commandDelegate.cut(e);},e.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(U_.SetSelection,{source:e,selection:t});},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Qt(e.lineNumber,t):e;},e.prototype._hasMulticursorModifier=function(e){switch(this.configuration.editor.multiCursorModifier){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;}return!1;},e.prototype._hasNonMulticursorModifier=function(e){switch(this.configuration.editor.multiCursorModifier){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;}return!1;},e.prototype.dispatchMouse=function(e){e.middleButton?e.inSelectionMode?this.columnSelect(e.position,e.mouseColumn):this.moveTo(e.position):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this.lastCursorLineSelect(e.position):this.createCursor(e.position,!0):e.inSelectionMode?this.lineSelectDrag(e.position):this.lineSelect(e.position):e.mouseDownCount>=4?this.selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this.lastCursorLineSelectDrag(e.position):this.lastCursorLineSelect(e.position):e.inSelectionMode?this.lineSelectDrag(e.position):this.lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this.lastCursorWordSelect(e.position):e.inSelectionMode?this.wordSelectDrag(e.position):this.wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this.columnSelect(e.position,e.mouseColumn):e.inSelectionMode?this.lastCursorMoveToSelect(e.position):this.createCursor(e.position,!1)):e.inSelectionMode?this.moveToSelect(e.position):this.moveTo(e.position);},e.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this.convertViewToModelPosition(e),viewPosition:e};},e.prototype.moveTo=function(e){this._execMouseCommand(U_.MoveTo,this._usualArgs(e));},e.prototype.moveToSelect=function(e){this._execMouseCommand(U_.MoveToSelect,this._usualArgs(e));},e.prototype.columnSelect=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(U_.ColumnSelect,{position:this.convertViewToModelPosition(e),viewPosition:e,mouseColumn:t});},e.prototype.createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(U_.CreateCursor,{position:this.convertViewToModelPosition(e),viewPosition:e,wholeLine:t});},e.prototype.lastCursorMoveToSelect=function(e){this._execMouseCommand(U_.LastCursorMoveToSelect,this._usualArgs(e));},e.prototype.wordSelect=function(e){this._execMouseCommand(U_.WordSelect,this._usualArgs(e));},e.prototype.wordSelectDrag=function(e){this._execMouseCommand(U_.WordSelectDrag,this._usualArgs(e));},e.prototype.lastCursorWordSelect=function(e){this._execMouseCommand(U_.LastCursorWordSelect,this._usualArgs(e));},e.prototype.lineSelect=function(e){this._execMouseCommand(U_.LineSelect,this._usualArgs(e));},e.prototype.lineSelectDrag=function(e){this._execMouseCommand(U_.LineSelectDrag,this._usualArgs(e));},e.prototype.lastCursorLineSelect=function(e){this._execMouseCommand(U_.LastCursorLineSelect,this._usualArgs(e));},e.prototype.lastCursorLineSelectDrag=function(e){this._execMouseCommand(U_.LastCursorLineSelectDrag,this._usualArgs(e));},e.prototype.selectAll=function(){this._execMouseCommand(U_.SelectAll,{});},e.prototype.convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e);},e.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e);},e.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e);},e.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e);},e.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e);},e.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e);},e.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e);},e.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e);},e.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e);},e.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e);},e;}(),ev=function(){function e(e){this._createLine=e,this._set(1,[]);}return e.prototype.flush=function(){this._set(1,[]);},e.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e;},e.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines};},e.prototype.getStartLineNumber=function(){return this._rendLineNumberStart;},e.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1;},e.prototype.getCount=function(){return this._lines.length;},e.prototype.getLine=function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t];},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(t<n){var o=t-e+1;return this._rendLineNumberStart-=o,null;}if(e>i)return null;for(var r=0,s=0,a=n;a<=i;a++){var u=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(r=u,s=1):s++);}if(e<n){var l=0;l=t<n?t-e+1:n-e,this._rendLineNumberStart-=l;}return this._lines.splice(r,s);},e.prototype.onLinesChanged=function(e,t){if(0===this.getCount())return!1;for(var n=this.getStartLineNumber(),i=this.getEndLineNumber(),o=!1,r=e;r<=t;r++)r>=n&&r<=i&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o;},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>o)return null;if(n+e>o)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);for(var r=[],s=0;s<n;s++)r[s]=this._createLine();var a=e-this._rendLineNumberStart,u=this._lines.slice(0,a),l=this._lines.slice(a,this._lines.length-n),c=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=u.concat(r).concat(l),c;},e.prototype.onTokensChanged=function(e){if(0===this.getCount())return!1;for(var t=this.getStartLineNumber(),n=this.getEndLineNumber(),i=!1,o=0,r=e.length;o<r;o++){var s=e[o];if(!(s.toLineNumber<t||s.fromLineNumber>n))for(var a=Math.max(t,s.fromLineNumber),u=Math.min(n,s.toLineNumber),l=a;l<=u;l++){var c=l-this._rendLineNumberStart;this._lines[c].onTokensChanged(),i=!0;}}return i;},e;}(),tv=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new ev(function(){return t._host.createVisibleLine();});}return e.prototype._createDomNode=function(){var e=rd(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e;},e.prototype.onConfigurationChanged=function(e){return e.layoutInfo;},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0;},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber);},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var o=t[n].getDomNode();o&&this.domNode.domNode.removeChild(o);}return!0;},e.prototype.onLinesInserted=function(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var o=t[n].getDomNode();o&&this.domNode.domNode.removeChild(o);}return!0;},e.prototype.onScrollChanged=function(e){return e.scrollTopChanged;},e.prototype.onTokensChanged=function(e){return this._linesCollection.onTokensChanged(e.ranges);},e.prototype.onZonesChanged=function(e){return!0;},e.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber();},e.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber();},e.prototype.getVisibleLine=function(e){return this._linesCollection.getLine(e);},e.prototype.renderLines=function(e){var t=this._linesCollection._get(),n=new nv(this.domNode.domNode,this._host,e),i={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},o=n.render(i,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(o.rendLineNumberStart,o.lines);},e;}(),nv=function(){function e(e,t,n){this.domNode=e,this.host=t,this.viewportData=n;}return e.prototype.render=function(e,t,n,i){var o={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(o.rendLineNumberStart+o.linesLength-1<t||n<o.rendLineNumberStart){o.rendLineNumberStart=t,o.linesLength=n-t+1,o.lines=[];for(var r=t;r<=n;r++)o.lines[r-t]=this.host.createVisibleLine();return this._finishRendering(o,!0,i),o;}if(this._renderUntouchedLines(o,Math.max(t-o.rendLineNumberStart,0),Math.min(n-o.rendLineNumberStart,o.linesLength-1),i,t),o.rendLineNumberStart>t)(u=t)<=(s=Math.min(n,o.rendLineNumberStart-1))&&(this._insertLinesBefore(o,u,s,i,t),o.linesLength+=s-u+1);else if(o.rendLineNumberStart<t){(a=Math.min(o.linesLength,t-o.rendLineNumberStart))>0&&(this._removeLinesBefore(o,a),o.linesLength-=a);}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1<n)(u=o.rendLineNumberStart+o.linesLength)<=(s=n)&&(this._insertLinesAfter(o,u,s,i,t),o.linesLength+=s-u+1);else if(o.rendLineNumberStart+o.linesLength-1>n){var s,a,u=Math.max(0,n-o.rendLineNumberStart+1);(a=(s=o.linesLength-1)-u+1)>0&&(this._removeLinesAfter(o,a),o.linesLength-=a);}return this._finishRendering(o,!1,i),o;},e.prototype._renderUntouchedLines=function(e,t,n,i,o){for(var r=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var u=r+a;s[a].layoutLine(u,i[u-o]);}},e.prototype._insertLinesBefore=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=r.concat(e.lines);},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n<t;n++){var i=e.lines[n].getDomNode();i&&this.domNode.removeChild(i);}e.lines.splice(0,t);},e.prototype._insertLinesAfter=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=e.lines.concat(r);},e.prototype._removeLinesAfter=function(e,t){for(var n=e.linesLength-t,i=0;i<t;i++){var o=e.lines[n+i].getDomNode();o&&this.domNode.removeChild(o);}e.lines.splice(n,t);},e.prototype._finishRenderingNewLines=function(e,t,n,i){var o=this.domNode.lastChild;t||!o?this.domNode.innerHTML=n:o.insertAdjacentHTML("afterend",n);for(var r=this.domNode.lastChild,s=e.linesLength-1;s>=0;s--){var a=e.lines[s];i[s]&&(a.setDomNode(r),r=r.previousSibling);}},e.prototype._finishRenderingInvalidLines=function(e,t,n){var i=document.createElement("div");i.innerHTML=t;for(var o=0;o<e.linesLength;o++){var r=e.lines[o];if(n[o]){var s=i.firstChild,a=r.getDomNode();a.parentNode.replaceChild(s,a),r.setDomNode(s);}}},e.prototype._finishRendering=function(t,n,i){var o=e._sb,r=t.linesLength,s=t.lines,a=t.rendLineNumberStart,u=[];o.reset();for(var l=!1,c=0;c<r;c++){var d=s[c];if(u[c]=!1,!d.getDomNode())d.renderLine(c+a,i[c],this.viewportData,o)&&(u[c]=!0,l=!0);}l&&this._finishRenderingNewLines(t,n,o.build(),u),o.reset();var h=!1,p=[];for(c=0;c<r;c++){d=s[c];if(p[c]=!1,!u[c])d.renderLine(c+a,i[c],this.viewportData,o)&&(p[c]=!0,h=!0);}h&&this._finishRenderingInvalidLines(t,o.build(),p);},e._sb=iu(1e5),e;}(),iv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ov=function(e){function t(t){var n=e.call(this,t)||this;return n._visibleLines=new tv(n),n.domNode=n._visibleLines.domNode,n._dynamicOverlays=[],n._isFocused=!1,n.domNode.setClassName("view-overlays"),n;}return iv(t,e),t.prototype.shouldRender=function(){if(e.prototype.shouldRender.call(this))return!0;for(var t=0,n=this._dynamicOverlays.length;t<n;t++){if(this._dynamicOverlays[t].shouldRender())return!0;}return!1;},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0,n=this._dynamicOverlays.length;t<n;t++){this._dynamicOverlays[t].dispose();}this._dynamicOverlays=[];},t.prototype.getDomNode=function(){return this.domNode;},t.prototype.createVisibleLine=function(){return new rv(this._context.configuration,this._dynamicOverlays);},t.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e);},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++){this._visibleLines.getVisibleLine(i).onConfigurationChanged(e);}return!0;},t.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e);},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0;},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e);},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e);},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e);},t.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0;},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e);},t.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e);},t.prototype.prepareRender=function(e){for(var t=this._dynamicOverlays.filter(function(e){return e.shouldRender();}),n=0,i=t.length;n<i;n++){var o=t[n];o.prepareRender(e),o.onDidRender();}},t.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused);},t.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData);},t;}(Ed),rv=function(){function e(e,t){this._configuration=e,this._lineHeight=this._configuration.editor.lineHeight,this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null;}return e.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null;},e.prototype.setDomNode=function(e){this._domNode=rd(e);},e.prototype.onContentChanged=function(){},e.prototype.onTokensChanged=function(){},e.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._configuration.editor.lineHeight);},e.prototype.renderLine=function(e,t,n,i){for(var o="",r=0,s=this._dynamicOverlays.length;r<s;r++){o+=this._dynamicOverlays[r].render(n.startLineNumber,e);}return this._renderedContent!==o&&(this._renderedContent=o,i.appendASCIIString('<div style="position:absolute;top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;width:100%;height:"),i.appendASCIIString(String(this._lineHeight)),i.appendASCIIString('px;">'),i.appendASCIIString(o),i.appendASCIIString("</div>"),!0);},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight));},e;}(),sv=function(e){function t(t){var n=e.call(this,t)||this;return n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n.domNode.setHeight(0),n;}return iv(t,e),t.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),e.prototype.onConfigurationChanged.call(this,t);},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged;},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth));},t;}(ov),av=function(e){function t(t){var n=e.call(this,t)||this;return n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),qc.applyFontInfo(n.domNode,n._context.configuration.editor.fontInfo),n;}return iv(t,e),t.prototype.onConfigurationChanged=function(t){var n=!1;return t.fontInfo&&(qc.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),n=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,n=!0),e.prototype.onConfigurationChanged.call(this,t)||n;},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged;},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft);},t;}(ov),uv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),lv=function(){return function(e,t){this.top=e,this.left=t;};}(),cv=function(e){function t(t,n){var i=e.call(this,t)||this;return i._viewDomNode=n,i._widgets={},i.domNode=rd(document.createElement("div")),Ld.write(i.domNode,1),i.domNode.setClassName("contentWidgets"),i.domNode.setPosition("absolute"),i.domNode.setTop(0),i.overflowingContentWidgetsDomNode=rd(document.createElement("div")),Ld.write(i.overflowingContentWidgetsDomNode,2),i.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),i;}return uv(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={};},t.prototype.onConfigurationChanged=function(e){for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var o=t[n];this._widgets[o].onConfigurationChanged(e);}return!0;},t.prototype.onDecorationsChanged=function(e){return!0;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLineMappingChanged=function(e){for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var o=t[n];this._widgets[o].onLineMappingChanged(e);}return!0;},t.prototype.onLinesChanged=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return!0;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype.addWidget=function(e){var t=new dv(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender();},t.prototype.setWidgetPosition=function(e,t,n,i){this._widgets[e.getId()].setPosition(t,n,i),this.setShouldRender();},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t];delete this._widgets[t];var i=n.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender();}},t.prototype.shouldSuppressMouseDownOnWidget=function(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown;},t.prototype.onBeforeRender=function(e){for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var o=t[n];this._widgets[o].onBeforeRender(e);}},t.prototype.prepareRender=function(e){for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var o=t[n];this._widgets[o].prepareRender(e);}},t.prototype.render=function(e){for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var o=t[n];this._widgets[o].render(e);}},t;}(Ed),dv=function(){function e(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=rd(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1,this._fixedOverflowWidgets=this._context.configuration.editor.viewInfo.fixedOverflowWidgets,this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._lineHeight=this._context.configuration.editor.lineHeight,this._setPosition(null,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 e.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._maxWidth=this._getMaxWidth());},e.prototype.onLineMappingChanged=function(e){this._setPosition(this._position,this._range);},e.prototype._setPosition=function(e,t){if(this._position=e||null,this._range=t||null,this._viewPosition=null,this._viewRange=null,this._position){var n=this._context.model.validateModelPosition(this._position);this._context.model.coordinatesConverter.modelPositionIsVisible(n)&&(this._viewPosition=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n));}if(this._range){var i=this._context.model.validateModelRange(this._range);this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(i);}},e.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth;},e.prototype.setPosition=function(e,t,n){this._setPosition(e,t),this._preference=n||null,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1;},e.prototype._layoutBoxInViewport=function(e,t,n,i,o){var r=e.top,s=r,a=t.top+this._lineHeight,u=r-i,l=s>=i,c=a,d=o.viewportHeight-a>=i,h=e.left,p=t.left;return h+n>o.scrollLeft+o.viewportWidth&&(h=o.scrollLeft+o.viewportWidth-n),p+n>o.scrollLeft+o.viewportWidth&&(p=o.scrollLeft+o.viewportWidth-n),h<o.scrollLeft&&(h=o.scrollLeft),p<o.scrollLeft&&(p=o.scrollLeft),{fitsAbove:l,aboveTop:u,aboveLeft:h,fitsBelow:d,belowTop:c,belowLeft:p};},e.prototype._layoutBoxInPage=function(e,t,n,i,o){var r=e.left-o.scrollLeft,s=t.left-o.scrollLeft;if(r<0||r>this._contentWidth)return null;var a,u=e.top-i,l=t.top+this._lineHeight,c=r+this._contentLeft,d=s+this._contentLeft,h=xi(this._viewDomNode.domNode),p=h.top+u-Ei.scrollY,f=h.top+l-Ei.scrollY,g=h.left+c-Ei.scrollX,m=h.left+d-Ei.scrollX,_=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,v=p>=22,y=f+i<=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-22;g+n+20>_&&(g-=a=g-(_-n-20),c-=a);m+n+20>_&&(m-=a=m-(_-n-20),d-=a);g<0&&(g-=a=g,c-=a);m<0&&(m-=a=m,d-=a);return this._fixedOverflowWidgets&&(u=p,l=f,c=g,d=m),{fitsAbove:v,aboveTop:u,aboveLeft:c,fitsBelow:y,belowTop:l,belowLeft:d};},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new lv(e.top,e.left+this._contentLeft);},e.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var n=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop,i=new lv(n,t.left),o=this._viewPosition.lineNumber,r=t.left;if(this._viewRange){var s=e.linesVisibleRangesForRange(this._viewRange,!1);if(s&&s.length>0)for(var a=s.length-1;a>=0;a--){var u=s[a];if(u.lineNumber>=o){u.lineNumber>o&&(o=u.lineNumber,r=1073741824);for(var l=0,c=u.ranges.length;l<c;l++){var d=u.ranges[l];d.left<r&&(r=d.left);}}}}var h=e.getVerticalOffsetForLineNumber(o)-e.scrollTop;return[i,new lv(h,r)];},e.prototype._prepareRenderWidget=function(e){var t,n=this._getTopAndBottomLeft(e),i=n[0],o=n[1];if(!i||!o)return null;if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){var r=this.domNode.domNode;this._cachedDomNodeClientWidth=r.clientWidth,this._cachedDomNodeClientHeight=r.clientHeight;}if(t=this.allowEditorOverflow?this._layoutBoxInPage(i,o,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(i,o,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(var s=1;s<=2;s++)for(var a=0;a<this._preference.length;a++){var u=this._preference[a];if(1===u){if(!t)return null;if(2===s||t.fitsAbove)return new lv(t.aboveTop,t.aboveLeft);}else{if(2!==u)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i;if(!t)return null;if(2===s||t.fitsBelow)return new lv(t.belowTop,t.belowLeft);}}return null;},e.prototype.onBeforeRender=function(e){this._viewPosition&&this._preference&&(this._viewPosition.lineNumber<e.startLineNumber||this._viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth));},e.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e);},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"));},e;}(),hv=(n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),pv=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._scrollWidth=0,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._context.addEventHandler(n),n;}return hv(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0;},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,t=!0,!0):t;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype.prepareRender=function(e){this._scrollWidth=e.scrollWidth;},t.prototype.render=function(e,t){return t===this._primaryCursorLineNumber&&this._shouldShowCurrentLine()?'<div class="'+("current-line"+(this._willRenderMarginCurrentLine()?" current-line-both":""))+'" style="width:'+String(Math.max(this._scrollWidth,this._contentWidth))+"px; height:"+String(this._lineHeight)+'px;"></div>':"";},t.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty;},t.prototype._willRenderMarginCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight;},t;}(Lh);Vd(function(e,t){var n=e.getColor(mf);if(n&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),!n||n.isTransparent()||e.defines(_f)){var i=e.getColor(_f);i&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"));}});n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight.css");var fv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),gv=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._context.addEventHandler(n),n;}return fv(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0;},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,t=!0,!0):t;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype.prepareRender=function(e){},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){var n="current-line";if(this._shouldShowCurrentLine())n="current-line current-line-margin"+(this._willRenderContentCurrentLine()?" current-line-margin-both":"");return'<div class="'+n+'" style="width:'+String(this._contentLeft)+"px; height:"+String(this._lineHeight)+'px;"></div>';}return"";},t.prototype._shouldShowCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight;},t.prototype._willRenderContentCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty;},t;}(Lh);Vd(function(e,t){var n=e.getColor(mf);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var i=e.getColor(_f);i&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }");}});n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/decorations/decorations.css");var mv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),_v=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n;}return mv(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0;},t.prototype.onDecorationsChanged=function(e){return!0;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLinesChanged=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o];s.options.className&&(n[i++]=s);}n=n.sort(function(e,t){if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;var n=e.options.className,i=t.options.className;return n<i?-1:n>i?1:Jt.compareRangesUsingStarts(e.range,t.range);});for(var a=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,l=[],c=a;c<=u;c++){l[c-a]="";}this._renderWholeLineDecorations(e,n,l),this._renderNormalDecorations(e,n,l),this._renderResult=l;},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,s=0,a=t.length;s<a;s++){var u=t[s];if(u.options.isWholeLine)for(var l='<div class="cdr '+u.options.className+'" style="left:0;width:100%;height:'+i+'px;"></div>',c=Math.max(u.range.startLineNumber,o),d=Math.min(u.range.endLineNumber,r),h=c;h<=d;h++){n[h-o]+=l;}}},t.prototype._renderNormalDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=null,s=!1,a=null,u=0,l=t.length;u<l;u++){var c=t[u];if(!c.options.isWholeLine){var d=c.options.className,h=Boolean(c.options.showIfCollapsed),p=c.range;h&&1===p.endColumn&&p.endLineNumber!==p.startLineNumber&&(p=new Jt(p.startLineNumber,p.startColumn,p.endLineNumber-1,this._context.model.getLineMaxColumn(p.endLineNumber-1))),r===d&&s===h&&Jt.areIntersectingOrTouching(a,p)?a=Jt.plusRange(a,p):(null!==r&&this._renderNormalDecoration(e,a,r,s,i,o,n),r=d,s=h,a=p);}}null!==r&&this._renderNormalDecoration(e,a,r,s,i,o,n);},t.prototype._renderNormalDecoration=function(e,t,n,i,o,r,s){var a=e.linesVisibleRangesForRange(t,"findMatch"===n);if(a)for(var u=0,l=a.length;u<l;u++){var c=a[u],d=c.lineNumber-r;if(i&&1===c.ranges.length){var h=c.ranges[0];0===h.width&&(c.ranges[0]=new kd(h.left,this._typicalHalfwidthCharacterWidth));}for(var p=0,f=c.ranges.length;p<f;p++){var g=c.ranges[p],m='<div class="cdr '+n+'" style="left:'+String(g.left)+"px;width:"+String(g.width)+"px;height:"+o+'px;"></div>';s[d]+=m;}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n];},t;}(Lh),vv=(n("./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/media/scrollbars.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),yv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return vv(t,e),t.prototype.onclick=function(e,t){this._register(ni(e,Pi.CLICK,function(e){return t(new Vn(e));}));},t.prototype.onmousedown=function(e,t){this._register(ni(e,Pi.MOUSE_DOWN,function(e){return t(new Vn(e));}));},t.prototype.onmouseover=function(e,t){this._register(ni(e,Pi.MOUSE_OVER,function(e){return t(new Vn(e));}));},t.prototype.onnonbubblingmouseout=function(e,t){this._register(oi(e,function(e){return t(new Vn(e));}));},t.prototype.onkeydown=function(e,t){this._register(ni(e,Pi.KEY_DOWN,function(e){return t(new Rn(e));}));},t.prototype.onkeyup=function(e,t){this._register(ni(e,Pi.KEY_UP,function(e){return t(new Rn(e));}));},t.prototype.oninput=function(e,t){this._register(ni(e,Pi.INPUT,t));},t.prototype.onblur=function(e,t){this._register(ni(e,Pi.BLUR,t));},t.prototype.onfocus=function(e,t){this._register(ni(e,Pi.FOCUS,t));},t.prototype.onchange=function(e,t){this._register(ni(e,Pi.CHANGE,t));},t;}(y),bv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Cv=11,wv=function(e){function t(t){var n=e.call(this)||this;return n._onActivate=t.onActivate,n.bgDomNode=document.createElement("div"),n.bgDomNode.className="arrow-background",n.bgDomNode.style.position="absolute",n.bgDomNode.style.width=t.bgWidth+"px",n.bgDomNode.style.height=t.bgHeight+"px",void 0!==t.top&&(n.bgDomNode.style.top="0px"),void 0!==t.left&&(n.bgDomNode.style.left="0px"),void 0!==t.bottom&&(n.bgDomNode.style.bottom="0px"),void 0!==t.right&&(n.bgDomNode.style.right="0px"),n.domNode=document.createElement("div"),n.domNode.className=t.className,n.domNode.style.position="absolute",n.domNode.style.width=Cv+"px",n.domNode.style.height=Cv+"px",void 0!==t.top&&(n.domNode.style.top=t.top+"px"),void 0!==t.left&&(n.domNode.style.left=t.left+"px"),void 0!==t.bottom&&(n.domNode.style.bottom=t.bottom+"px"),void 0!==t.right&&(n.domNode.style.right=t.right+"px"),n._mouseMoveMonitor=n._register(new pd()),n.onmousedown(n.bgDomNode,function(e){return n._arrowMouseDown(e);}),n.onmousedown(n.domNode,function(e){return n._arrowMouseDown(e);}),n._mousedownRepeatTimer=n._register(new J()),n._mousedownScheduleRepeatTimer=n._register(new Q()),n;}return bv(t,e),t.prototype._arrowMouseDown=function(e){var t=this;this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(function(){t._mousedownRepeatTimer.cancelAndSet(function(){return t._onActivate();},1e3/24);},200),this._mouseMoveMonitor.startMonitoring(hd,function(e){},function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel();}),e.preventDefault();},t;}(yv),Sv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),xv=function(e){function t(t,n,i){var o=e.call(this)||this;return o._visibility=t,o._visibleClassName=n,o._invisibleClassName=i,o._domNode=null,o._isVisible=!1,o._isNeeded=!1,o._shouldBeVisible=!1,o._revealTimer=o._register(new Q()),o;}return Sv(t,e),t.prototype.applyVisibilitySetting=function(e){return 2!==this._visibility&&(3===this._visibility||e);},t.prototype.setShouldBeVisible=function(e){var t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility());},t.prototype.setIsNeeded=function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility());},t.prototype.setDomNode=function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1);},t.prototype.ensureVisibility=function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1);},t.prototype._reveal=function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(function(){e._domNode&&e._domNode.setClassName(e._visibleClassName);},0));},t.prototype._hide=function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")));},t;}(y),Ev=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Lv=function(e){function t(t){var n=e.call(this)||this;return n._lazyRender=t.lazyRender,n._host=t.host,n._scrollable=t.scrollable,n._scrollbarState=t.scrollbarState,n._visibilityController=n._register(new xv(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),n._mouseMoveMonitor=n._register(new pd()),n._shouldRender=!0,n.domNode=rd(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n._visibilityController.setDomNode(n.domNode),n.domNode.setPosition("absolute"),n.onmousedown(n.domNode.domNode,function(e){return n._domNodeMouseDown(e);}),n;}return Ev(t,e),t.prototype._createArrow=function(e){var t=this._register(new wv(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode);},t.prototype._createSlider=function(e,t,n,i){var o=this;this.slider=rd(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof n&&this.slider.setWidth(n),"number"==typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(e){e.leftButton&&(e.preventDefault(),o._sliderMouseDown(e,function(){}));});},t.prototype._onElementSize=function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender;},t.prototype._onElementScrollSize=function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender;},t.prototype._onElementScrollPosition=function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender;},t.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0);},t.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1);},t.prototype.render=function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()));},t.prototype._domNodeMouseDown=function(e){e.target===this.domNode.domNode&&this._onMouseDown(e);},t.prototype.delegateMouseDown=function(e){var t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderMousePosition(e);n<=o&&o<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,function(){})):this._onMouseDown(e);},t.prototype._onMouseDown=function(e){var t,n;if(e.target===this.domNode.domNode&&"number"==typeof e.browserEvent.offsetX&&"number"==typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{var i=xi(this.domNode.domNode);t=e.posx-i.left,n=e.posy-i.top;}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,function(){}));},t.prototype._sliderMouseDown=function(e,t){var n=this,i=this._sliderMousePosition(e),r=this._sliderOrthogonalMousePosition(e),s=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(hd,function(e){var t=n._sliderOrthogonalMousePosition(e),a=Math.abs(t-r);if(o.g&&a>140)n._setDesiredScrollPositionNow(s.getScrollPosition());else{var u=n._sliderMousePosition(e)-i;n._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(u));}},function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t();}),this._host.onDragStart();},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t);},t;}(yv),Tv=function(){function e(e,t,n){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues();}return e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return t.setVisibleSize(this._visibleSize),t.setScrollSize(this._scrollSize),t.setScrollPosition(this._scrollPosition),t;},e.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0);},e.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0);},e.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0);},e._computeValues=function(e,t,n,i,o){var r=Math.max(0,n-e),s=Math.max(0,r-2*t),a=i>0&&i>n;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(20,Math.floor(n*s/i))),l=(s-u)/(i-n),c=o*l;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(u),computedSliderRatio:l,computedSliderPosition:Math.round(c)};},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition;},e.prototype.getArrowSize=function(){return this._arrowSize;},e.prototype.getScrollPosition=function(){return this._scrollPosition;},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize;},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize;},e.prototype.isNeeded=function(){return this._computedIsNeeded;},e.prototype.getSliderSize=function(){return this._computedSliderSize;},e.prototype.getSliderPosition=function(){return this._computedSliderPosition;},e.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio);},e.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio);},e;}(),Iv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Nv=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new Tv(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var r=(n.arrowSize-Cv)/2,s=(n.horizontalScrollbarSize-Cv)/2;o._createArrow({className:"left-arrow",top:s,left:r,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new Un(null,1,0));}}),o._createArrow({className:"right-arrow",top:s,left:void 0,bottom:void 0,right:r,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new Un(null,-1,0));}});}return o._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),o;}return Iv(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t);},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0);},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender;},t.prototype._mouseDownRelativePosition=function(e,t){return e;},t.prototype._sliderMousePosition=function(e){return e.posx;},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy;},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t;},t;}(Lv),kv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Ov=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new Tv(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var r=(n.arrowSize-Cv)/2,s=(n.verticalScrollbarSize-Cv)/2;o._createArrow({className:"up-arrow",top:r,left:s,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new Un(null,0,1));}}),o._createArrow({className:"down-arrow",top:void 0,left:s,bottom:r,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new Un(null,0,-1));}});}return o._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),o;}return kv(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t);},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0);},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender;},t.prototype._mouseDownRelativePosition=function(e,t){return t;},t.prototype._sliderMousePosition=function(e){return e.posy;},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx;},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t;},t;}(Lv),Dv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Rv=function(){function e(e,t,n,i,o,r){(e|=0)<0&&(e=0),(n|=0)+e>(t|=0)&&(n=t-e),n<0&&(n=0),(i|=0)<0&&(i=0),(r|=0)+i>(o|=0)&&(r=o-i),r<0&&(r=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=o,this.scrollTop=r;}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop;},e.prototype.withScrollDimensions=function(t){return new e(void 0!==t.width?t.width:this.width,void 0!==t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==t.height?t.height:this.height,void 0!==t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop);},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,void 0!==t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==t.scrollTop?t.scrollTop:this.scrollTop);},e.prototype.createScrollEvent=function(e){var t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:i,heightChanged:o,scrollHeightChanged:r,scrollTopChanged:s};},e;}(),Av=function(e){function t(t,n){var i=e.call(this)||this;return i._onScroll=i._register(new N()),i.onScroll=i._onScroll.event,i._smoothScrollDuration=t,i._scheduleAtNextAnimationFrame=n,i._state=new Rv(0,0,0,0,0,0),i._smoothScrolling=null,i;}return Dv(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this);},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e;},t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e);},t.prototype.getScrollDimensions=function(){return this._state;},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state);},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state;},t.prototype.getCurrentScrollPosition=function(){return this._state;},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t);},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;var i=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=i;}else{n=this._state.withScrollPosition(e);this._smoothScrolling=Fv.start(this._state,n,this._smoothScrollDuration);}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling());});},t.prototype._performSmoothScrolling=function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling());});}},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)));},t;}(y),Mv=function(){return function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n;};}();function Pv(e,t){var n=t-e;return function(t){return e+n*(1-function(e){return Math.pow(e,3);}(1-t));};}var Fv=function(){function e(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations();}return e.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);},e.prototype._initAnimation=function(e,t,n){var i,o,r;if(Math.abs(e-t)>2.5*n){var s=void 0,a=void 0;return e<t?(s=e+.75*n,a=t-.75*n):(s=e-.75*n,a=t+.75*n),i=Pv(e,s),o=Pv(a,t),r=.33,function(e){return e<r?i(e/r):o((e-r)/(1-r));};}return Pv(e,t);},e.prototype.dispose=function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null);},e.prototype.acceptScrollDimensions=function(e){this.to=e.withScrollPosition(this.to),this._initAnimations();},e.prototype.tick=function(){return this._tick(Date.now());},e.prototype._tick=function(e){var t=(e-this._startTime)/this.duration;if(t<1){var n=this.scrollLeft(t),i=this.scrollTop(t);return new Mv(n,i,!1);}return new Mv(this.to.scrollLeft,this.to.scrollTop,!0);},e.prototype.combine=function(t,n,i){return e.start(t,n,i);},e.start=function(t,n,i){return i+=10,new e(t,n,Date.now()-10,i);},e;}();var Wv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Bv=function(){return function(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0;};}(),Vv=function(){function e(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1;}return e.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;for(var e=1,t=0,n=1,i=this._rear;;){var o=i===this._front?e:Math.pow(2,-n);if(e-=o,t+=this._memory[i].score*o,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++;}return t<=.5;},e.prototype.accept=function(e,t,n){var i=new Bv(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,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]=i);},e.prototype._computeScore=function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1);},e.INSTANCE=new e(),e;}(),Hv=function(e){function t(t,n,i){var o=e.call(this)||this;o._onScroll=o._register(new N()),o.onScroll=o._onScroll.event,t.style.overflow="hidden",o._options=Kv(n),o._scrollable=i,o._register(o._scrollable.onScroll(function(e){o._onDidScroll(e),o._onScroll.fire(e);}));var r={onMouseWheel:function(e){return o._onMouseWheel(e);},onDragStart:function(){return o._onDragStart();},onDragEnd:function(){return o._onDragEnd();}};return o._verticalScrollbar=o._register(new Ov(o._scrollable,o._options,r)),o._horizontalScrollbar=o._register(new Nv(o._scrollable,o._options,r)),o._domNode=document.createElement("div"),o._domNode.className="monaco-scrollable-element "+o._options.className,o._domNode.setAttribute("role","presentation"),o._domNode.style.position="relative",o._domNode.style.overflow="hidden",o._domNode.appendChild(t),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows&&(o._leftShadowDomNode=rd(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=rd(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=rd(document.createElement("div")),o._topLeftShadowDomNode.setClassName("shadow top-left-corner"),o._domNode.appendChild(o._topLeftShadowDomNode.domNode)),o._listenOnDomNode=o._options.listenOnDomNode||o._domNode,o._mouseWheelToDispose=[],o._setListeningToMouseWheel(o._options.handleMouseWheel),o.onmouseover(o._listenOnDomNode,function(e){return o._onMouseOver(e);}),o.onnonbubblingmouseout(o._listenOnDomNode,function(e){return o._onMouseOut(e);}),o._hideTimeout=o._register(new Q()),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o._revealOnScroll=!0,o;}return Wv(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=f(this._mouseWheelToDispose),e.prototype.dispose.call(this);},t.prototype.getDomNode=function(){return this._domNode;},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode};},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e);},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions();},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e);},t.prototype.updateClassName=function(e){this._options.className=e,o.d&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className;},t.prototype.updateOptions=function(e){var t=Kv(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render();},t.prototype._setListeningToMouseWheel=function(e){var t=this;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=f(this._mouseWheelToDispose),e)){var n=function(e){var n=new Un(e);t._onMouseWheel(n);};this._mouseWheelToDispose.push(ni(this._listenOnDomNode,"mousewheel",n)),this._mouseWheelToDispose.push(ni(this._listenOnDomNode,"DOMMouseScroll",n));}},t.prototype._onMouseWheel=function(e){var t,n=Vv.INSTANCE;if(n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var i=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(i=(t=[r,i])[0],r=t[1]);var s=!o.d&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!s||r||(r=i,i=0);var a=this._scrollable.getFutureScrollPosition(),u={};if(i){var l=a.scrollTop-50*i;this._verticalScrollbar.writeScrollPosition(u,l);}if(r){var c=a.scrollLeft-50*r;this._horizontalScrollbar.writeScrollPosition(u,c);}if(u=this._scrollable.validateScrollPosition(u),a.scrollLeft!==u.scrollLeft||a.scrollTop!==u.scrollTop)this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(u):this._scrollable.setScrollPositionNow(u),this._shouldRender=!0;}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation());},t.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render();},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render();},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""));}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal();},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide();},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide();},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal();},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide();},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide());},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide();},500);},t;}(yv),Uv=function(e){function t(t,n){var i=this;(n=n||{}).mouseWheelSmoothScroll=!1;var o=new Av(0,function(e){return si(e);});return(i=e.call(this,t,n,o)||this)._register(o),i;}return Wv(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e);},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition();},t;}(Hv),jv=function(e){function t(t,n,i){return e.call(this,t,n,i)||this;}return Wv(t,e),t;}(Hv),zv=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._element=t,i.onScroll(function(e){e.scrollTopChanged&&(i._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(i._element.scrollLeft=e.scrollLeft);}),i.scanDomNode(),i;}return Wv(t,e),t.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});},t;}(Uv);function Kv(e){var t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,o.d&&(t.className+=" mac"),t;}var qv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Gv=function(e){function t(t,n,i,o){var r=e.call(this,t)||this,s=r._context.configuration.editor.viewInfo.scrollbar,a={listenOnDomNode:i.domNode,className:"editor-scrollable "+Fd(t.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity};r.scrollbar=r._register(new jv(n.domNode,a,r._context.viewLayout.scrollable)),Ld.write(r.scrollbar.getDomNode(),5),r.scrollbarDomNode=rd(r.scrollbar.getDomNode()),r.scrollbarDomNode.setPosition("absolute"),r._setLayout();var u=function(e,t,n){var i={};if(t){var o=e.scrollTop;o&&(i.scrollTop=r._context.viewLayout.getCurrentScrollTop()+o,e.scrollTop=0);}if(n){var s=e.scrollLeft;s&&(i.scrollLeft=r._context.viewLayout.getCurrentScrollLeft()+s,e.scrollLeft=0);}r._context.viewLayout.setScrollPositionNow(i);};return r._register(ni(i.domNode,"scroll",function(e){return u(i.domNode,!0,!0);})),r._register(ni(n.domNode,"scroll",function(e){return u(n.domNode,!0,!1);})),r._register(ni(o.domNode,"scroll",function(e){return u(o.domNode,!0,!1);})),r._register(ni(r.scrollbarDomNode.domNode,"scroll",function(e){return u(r.scrollbarDomNode.domNode,!0,!1);})),r;}return qv(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(e.contentLeft),"right"===this._context.configuration.editor.viewInfo.minimap.side?this.scrollbarDomNode.setWidth(e.contentWidth+e.minimapWidth):this.scrollbarDomNode.setWidth(e.contentWidth),this.scrollbarDomNode.setHeight(e.contentHeight);},t.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo();},t.prototype.getDomNode=function(){return this.scrollbarDomNode;},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e);},t.prototype.onConfigurationChanged=function(e){if(e.viewInfo){var t=this._context.configuration.editor,n={handleMouseWheel:t.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:t.viewInfo.scrollbar.mouseWheelScrollSensitivity};this.scrollbar.updateOptions(n);}return e.layoutInfo&&this._setLayout(),!0;},t.prototype.onScrollChanged=function(e){return!0;},t.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Fd(this._context.theme.type)),!0;},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this.scrollbar.renderNow();},t;}(Ed),$v=(n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),Yv=function(){return function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n);};}(),Xv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return $v(t,e),t.prototype._render=function(e,t,n){for(var i=[],o=e;o<=t;o++){i[o-e]=[];}if(0===n.length)return i;n.sort(function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1;});for(var r=null,s=0,a=0,u=n.length;a<u;a++){var l=n[a],c=l.className,d=Math.max(l.startLineNumber,e)-e,h=Math.min(l.endLineNumber,t)-e;r===c?(d=Math.max(s+1,d),s=Math.max(s,h)):(r=c,s=h);for(var p=d;p<=s;p++)i[p].push(r);}return i;},t;}(Lh),Zv=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._glyphMargin=n._context.configuration.editor.viewInfo.glyphMargin,n._glyphMarginLeft=n._context.configuration.editor.layoutInfo.glyphMarginLeft,n._glyphMarginWidth=n._context.configuration.editor.layoutInfo.glyphMarginWidth,n._renderResult=null,n._context.addEventHandler(n),n;}return $v(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._glyphMargin=this._context.configuration.editor.viewInfo.glyphMargin),e.layoutInfo&&(this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0;},t.prototype.onDecorationsChanged=function(e){return!0;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLinesChanged=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.glyphMarginClassName;a&&(n[i++]=new Yv(s.range.startLineNumber,s.range.endLineNumber,a));}return n;},t.prototype.prepareRender=function(e){if(this._glyphMargin){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o=this._lineHeight.toString(),r='" style="left:'+this._glyphMarginLeft.toString()+"px;width:"+this._glyphMarginWidth.toString()+"px;height:"+o+'px;"></div>',s=[],a=t;a<=n;a++){var u=a-t,l=i[u];0===l.length?s[u]="":s[u]='<div class="cgmr '+l.join(" ")+r;}this._renderResult=s;}else this._renderResult=null;},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n];},t;}(Xv),Qv=(n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),Jv=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._primaryLineNumber=0,n._lineHeight=n._context.configuration.editor.lineHeight,n._spaceWidth=n._context.configuration.editor.fontInfo.spaceWidth,n._enabled=n._context.configuration.editor.viewInfo.renderIndentGuides,n._activeIndentEnabled=n._context.configuration.editor.viewInfo.highlightActiveIndentGuide,n._renderResult=null,n._context.addEventHandler(n),n;}return Qv(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides,this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide),!0;},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0);},t.prototype.onDecorationsChanged=function(e){return!0;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLinesChanged=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype.onLanguageConfigurationChanged=function(e){return!0;},t.prototype.prepareRender=function(e){if(this._enabled){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getTabSize()*this._spaceWidth,o=e.scrollWidth,r=this._lineHeight,s=i,a=this._context.model.getLinesIndentGuides(t,n),u=0,l=0,c=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var d=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);u=d.startLineNumber,l=d.endLineNumber,c=d.indent;}for(var h=[],p=t;p<=n;p++){for(var f=u<=p&&p<=l,g=p-t,m=a[g],_="",v=e.visibleRangeForPosition(new Qt(p,1)),y=v?v.left:0,b=1;b<=m;b++){if(_+='<div class="'+(f&&b===c?"cigra":"cigr")+'" style="left:'+y+"px;height:"+r+"px;width:"+s+'px"></div>',(y+=i)>o)break;}h[g]=_;}this._renderResult=h;}else this._renderResult=null;},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n];},t;}(Lh);Vd(function(e,t){var n=e.getColor(Sf);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var i=e.getColor(xf)||n;i&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }");});n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLines.css");var ey=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ty=function(){function e(){this._currentVisibleRange=new Jt(1,1,1,1);}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange;},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e;},e;}(),ny=function(){return function(e,t,n,i,o,r){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=o,this.scrollType=r;};}(),iy=function(e){function t(t,n){var i=e.call(this,t)||this;i._linesContent=n,i._textRangeRestingSpot=document.createElement("div"),i._visibleLines=new tv(i),i.domNode=i._visibleLines.domNode;var o=i._context.configuration;return i._lineHeight=o.editor.lineHeight,i._typicalHalfwidthCharacterWidth=o.editor.fontInfo.typicalHalfwidthCharacterWidth,i._isViewportWrapping=o.editor.wrappingInfo.isViewportWrapping,i._revealHorizontalRightPadding=o.editor.viewInfo.revealHorizontalRightPadding,i._canUseLayerHinting=o.editor.canUseLayerHinting,i._viewLineOptions=new Kd(o,i._context.theme.type),Ld.write(i.domNode,7),i.domNode.setClassName("view-lines"),qc.applyFontInfo(i.domNode,o.editor.fontInfo),i._maxLineWidth=0,i._asyncUpdateLineWidths=new ee(function(){i._updateLineWidthsSlow();},200),i._lastRenderedData=new ty(),i._horizontalRevealRequest=null,i;}return ey(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),e.prototype.dispose.call(this);},t.prototype.getDomNode=function(){return this.domNode;},t.prototype.createVisibleLine=function(){return new qd(this._viewLineOptions);},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;return e.lineHeight&&(this._lineHeight=t.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=t.editor.fontInfo.typicalHalfwidthCharacterWidth),e.wrappingInfo&&(this._isViewportWrapping=t.editor.wrappingInfo.isViewportWrapping),e.viewInfo&&(this._revealHorizontalRightPadding=t.editor.viewInfo.revealHorizontalRightPadding),e.canUseLayerHinting&&(this._canUseLayerHinting=t.editor.canUseLayerHinting),e.fontInfo&&qc.applyFontInfo(this.domNode,t.editor.fontInfo),this._onOptionsMaybeChanged(),e.layoutInfo&&(this._maxLineWidth=0),!0;},t.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new Kd(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=n;o<=i;o++){this._visibleLines.getVisibleLine(o).onOptionsChanged(this._viewLineOptions);}return!0;}return!1;},t.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=!1,o=t;o<=n;o++)i=this._visibleLines.getVisibleLine(o).onSelectionChanged()||i;return i;},t.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0;},t.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t;},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e);},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e);},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e);},t.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new ny(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&i>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0;},t.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null);}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0;},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e);},t.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e);},t.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged();},t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new Qt(i,1);var o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(i<o||i>r)return null;var s=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),a=this._context.model.getLineMinColumn(i);return s<a&&(s=a),new Qt(i,s);},t.prototype._getViewLineDomNode=function(e){for(;e&&1===e.nodeType;){if(e.className===qd.CLASS_NAME)return e;e=e.parentElement;}return null;},t.prototype._getLineNumberFor=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++){if(e===this._visibleLines.getVisibleLine(i).getDomNode())return i;}return-1;},t.prototype.getLineWidth=function(e){var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||e>n?-1:this._visibleLines.getVisibleLine(e).getWidth();},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,i=Jt.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;var o=[],r=0,s=new zd(this.domNode.domNode,this._textRangeRestingSpot),a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Qt(i.startLineNumber,1)).lineNumber);for(var u=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=i.startLineNumber;c<=i.endLineNumber;c++)if(!(c<u||c>l)){var d=c===i.startLineNumber?i.startColumn:1,h=c===i.endLineNumber?i.endColumn:this._context.model.getLineMaxColumn(c),p=this._visibleLines.getVisibleLine(c).getVisibleRangesForRange(d,h,s);if(p&&0!==p.length){if(t&&c<n)a!==(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Qt(c+1,1)).lineNumber)&&(p[p.length-1].width+=this._typicalHalfwidthCharacterWidth);o[r++]=new Nd(c,p);}}return 0===r?null:o;},t.prototype.visibleRangesForRange2=function(e){if(this.shouldRender())return null;var t=Jt.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!t)return null;for(var n=[],i=new zd(this.domNode.domNode,this._textRangeRestingSpot),o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber(),s=t.startLineNumber;s<=t.endLineNumber;s++)if(!(s<o||s>r)){var a=s===t.startLineNumber?t.startColumn:1,u=s===t.endLineNumber?t.endColumn:this._context.model.getLineMaxColumn(s),l=this._visibleLines.getVisibleLine(s).getVisibleRangesForRange(a,u,i);l&&0!==l.length&&(n=n.concat(l));}return 0===n.length?null:n;},t.prototype.visibleRangeForPosition=function(e){var t=this.visibleRangesForRange2(new Jt(e.lineNumber,e.column,e.lineNumber,e.column));return t?t[0]:null;},t.prototype.updateLineWidths=function(){this._updateLineWidths(!1);},t.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0);},t.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1);},t.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=1,o=!0,r=t;r<=n;r++){var s=this._visibleLines.getVisibleLine(r);!e||s.getWidthIsFast()?i=Math.max(i,s.getWidth()):o=!1;}return o&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),o;},t.prototype.prepareRender=function(){throw new Error("Not supported");},t.prototype.render=function(){throw new Error("Not supported");},t.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest.lineNumber,n=this._horizontalRevealRequest.startColumn,i=this._horizontalRevealRequest.endColumn,o=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var r=this._computeScrollLeftToRevealRange(t,n,i);this._isViewportWrapping||this._ensureMaxLineWidth(r.maxHorizontalOffset),0===o?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:r.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:r.scrollLeft});}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);var s=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-s),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft());},t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth));},t.prototype._computeScrollTopToRevealRange=function(e,t,n){var i,o,r,s=e.top,a=e.height,u=s+a;if(i=this._context.viewLayout.getVerticalOffsetForLineNumber(t.startLineNumber),o=this._context.viewLayout.getVerticalOffsetForLineNumber(t.endLineNumber)+this._lineHeight,0!==n&&4!==n||(o+=this._lineHeight),1===n||2===n){if(2===n&&s<=i&&o<=u)r=s;else{var l=(i+o)/2;r=Math.max(0,l-a/2);}}else r=this._computeMinimumScrolling(s,u,i,o,3===n,4===n);return r;},t.prototype._computeScrollLeftToRevealRange=function(e,n,i){var o=0,r=this._context.viewLayout.getCurrentViewport(),s=r.left,a=s+r.width,u=this.visibleRangesForRange2(new Jt(e,n,e,i)),l=Number.MAX_VALUE,c=0;if(!u)return{scrollLeft:s,maxHorizontalOffset:o};for(var d=0;d<u.length;d++){var h=u[d];h.left<l&&(l=h.left),h.left+h.width>c&&(c=h.left+h.width);}return o=c,l=Math.max(0,l-t.HORIZONTAL_EXTRA_PX),c+=this._revealHorizontalRightPadding,{scrollLeft:this._computeMinimumScrolling(s,a,l,c),maxHorizontalOffset:o};},t.prototype._computeMinimumScrolling=function(e,t,n,i,o,r){o=!!o,r=!!r;var s=(t|=0)-(e|=0);return(i|=0)-(n|=0)<s?o?n:r?Math.max(0,i-s):n<e?n:i>t?Math.max(0,i-s):e:n;},t.HORIZONTAL_EXTRA_PX=30,t;}(Ed),oy=(n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),ry=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._decorationsLeft=n._context.configuration.editor.layoutInfo.decorationsLeft,n._decorationsWidth=n._context.configuration.editor.layoutInfo.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n;}return oy(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0;},t.prototype.onDecorationsChanged=function(e){return!0;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLinesChanged=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.linesDecorationsClassName;a&&(n[i++]=new Yv(s.range.startLineNumber,s.range.endLineNumber,a));}return n;},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[],s=t;s<=n;s++){for(var a=s-t,u=i[a],l="",c=0,d=u.length;c<d;c++)l+='<div class="cldr '+u[c]+o;r[a]=l;}this._renderResult=r;},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:"";},t;}(Xv),sy=(n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/marginDecorations/marginDecorations.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),ay=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._renderResult=null,n._context.addEventHandler(n),n;}return sy(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return!0;},t.prototype.onDecorationsChanged=function(e){return!0;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLinesChanged=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.marginClassName;a&&(n[i++]=new Yv(s.range.startLineNumber,s.range.endLineNumber,a));}return n;},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o=[],r=t;r<=n;r++){for(var s=r-t,a=i[s],u="",l=0,c=a.length;l<c;l++)u+='<div class="cmdr '+a[l]+'" style=""></div>';o[s]=u;}this._renderResult=o;},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:"";},t;}(Xv),uy=(n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimap.css"),function(){function e(t,n,i,o){this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(i),this.a=e._clamp(o);}return e._clamp=function(e){return e<0?0:e>255?255:0|e;},e.Empty=new e(0,0,0,0),e;}()),ly=function(){function e(){var e=this;this._onDidChange=new N(),this.onDidChange=this._onDidChange.event,this._updateColorMap(),Ls.onDidChange(function(t){t.changedColorMap&&e._updateColorMap();});}return e.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new e()),this._INSTANCE;},e.prototype._updateColorMap=function(){var e=Ls.getColorMap();if(!e)return this._colors=[uy.Empty],void(this._backgroundIsLight=!0);this._colors=[uy.Empty];for(var t=1;t<e.length;t++){var n=e[t].rgba;this._colors[t]=new uy(n.r,n.g,n.b,Math.round(255*n.a));}var i=e[2].getRelativeLuminance();this._backgroundIsLight=i>=.5,this._onDidChange.fire(void 0);},e.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e];},e.prototype.backgroundIsLight=function(){return this._backgroundIsLight;},e._INSTANCE=null,e;}(),cy=function(){function e(t,n){if(760!==t.length)throw new Error("Invalid x2CharData");if(190!==n.length)throw new Error("Invalid x1CharData");this.x2charData=t,this.x1charData=n,this.x2charDataLight=e.soften(t,.8),this.x1charDataLight=e.soften(n,50/60);}return e.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),i=0,o=e.length;i<o;i++)n[i]=e[i]*t;return n;},e._getChIndex=function(e){return(e-=32)<0&&(e+=95),e%95;},e.prototype.x2RenderChar=function(t,n,i,o,r,s,a){if(n+2>t.width||i+4>t.height)console.warn("bad render request outside image data");else{var u=a?this.x2charDataLight:this.x2charData,l=e._getChIndex(o),c=4*t.width,d=s.r,h=s.g,p=s.b,f=r.r-d,g=r.g-h,m=r.b-p,_=t.data,v=4*l*2,y=i*c+4*n,b=u[v]/255;_[y+0]=d+f*b,_[y+1]=h+g*b,_[y+2]=p+m*b;b=u[v+1]/255;_[y+4]=d+f*b,_[y+5]=h+g*b,_[y+6]=p+m*b,y+=c;b=u[v+2]/255;_[y+0]=d+f*b,_[y+1]=h+g*b,_[y+2]=p+m*b;b=u[v+3]/255;_[y+4]=d+f*b,_[y+5]=h+g*b,_[y+6]=p+m*b,y+=c;b=u[v+4]/255;_[y+0]=d+f*b,_[y+1]=h+g*b,_[y+2]=p+m*b;b=u[v+5]/255;_[y+4]=d+f*b,_[y+5]=h+g*b,_[y+6]=p+m*b,y+=c;b=u[v+6]/255;_[y+0]=d+f*b,_[y+1]=h+g*b,_[y+2]=p+m*b;b=u[v+7]/255;_[y+4]=d+f*b,_[y+5]=h+g*b,_[y+6]=p+m*b;}},e.prototype.x1RenderChar=function(t,n,i,o,r,s,a){if(n+1>t.width||i+2>t.height)console.warn("bad render request outside image data");else{var u=a?this.x1charDataLight:this.x1charData,l=e._getChIndex(o),c=4*t.width,d=s.r,h=s.g,p=s.b,f=r.r-d,g=r.g-h,m=r.b-p,_=t.data,v=2*l*1,y=i*c+4*n,b=u[v]/255;_[y+0]=d+f*b,_[y+1]=h+g*b,_[y+2]=p+m*b,y+=c;b=u[v+1]/255;_[y+0]=d+f*b,_[y+1]=h+g*b,_[y+2]=p+m*b;}},e.prototype.x2BlockRenderChar=function(e,t,n,i,o,r){if(t+2>e.width||n+4>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=o.r,u=o.g,l=o.b,c=a+.5*(i.r-a),d=u+.5*(i.g-u),h=l+.5*(i.b-l),p=e.data,f=n*s+4*t;p[f+0]=c,p[f+1]=d,p[f+2]=h,p[f+4]=c,p[f+5]=d,p[f+6]=h,p[(f+=s)+0]=c,p[f+1]=d,p[f+2]=h,p[f+4]=c,p[f+5]=d,p[f+6]=h,p[(f+=s)+0]=c,p[f+1]=d,p[f+2]=h,p[f+4]=c,p[f+5]=d,p[f+6]=h,p[(f+=s)+0]=c,p[f+1]=d,p[f+2]=h,p[f+4]=c,p[f+5]=d,p[f+6]=h;}},e.prototype.x1BlockRenderChar=function(e,t,n,i,o,r){if(t+1>e.width||n+2>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=o.r,u=o.g,l=o.b,c=a+.5*(i.r-a),d=u+.5*(i.g-u),h=l+.5*(i.b-l),p=e.data,f=n*s+4*t;p[f+0]=c,p[f+1]=d,p[f+2]=h,p[(f+=s)+0]=c,p[f+1]=d,p[f+2]=h;}},e;}();function dy(e){for(var t=new Uint8ClampedArray(e.length),n=0,i=e.length;n<i;n++)t[n]=e[n];return t;}var hy=null;function py(){if(!hy){var e=dy(gy);gy=null;var t=dy(fy);fy=null,hy=new cy(t,e);}return hy;}var fy=[0,0,0,0,0,0,0,0,39,14,39,14,14,5,29,10,96,96,29,29,0,0,0,0,49,113,195,214,227,166,135,42,40,29,194,38,75,148,197,187,145,0,160,61,75,143,2,183,138,58,163,6,177,223,197,227,38,13,11,4,0,0,0,0,10,54,52,8,62,4,71,122,73,2,19,40,10,50,155,36,79,70,145,121,7,5,0,0,2,1,36,12,204,166,16,5,0,0,0,0,1,0,154,34,0,0,0,0,96,83,0,0,0,0,0,0,0,0,46,34,0,82,2,56,53,3,146,0,146,119,152,132,152,131,145,119,170,42,15,42,15,42,172,194,131,132,0,139,80,28,227,143,159,135,15,118,11,126,171,144,20,124,88,106,217,196,0,106,189,92,168,43,5,130,164,133,130,115,183,65,134,120,141,141,170,196,2,106,31,32,105,2,145,130,116,114,132,135,138,140,138,113,147,137,81,183,129,94,0,0,21,16,4,3,46,34,0,0,45,34,1,0,160,49,0,0,43,143,203,23,1,76,0,0,38,28,131,96,38,28,0,0,168,31,29,191,98,0,118,139,5,113,45,13,37,6,97,115,161,179,204,105,223,224,83,52,111,100,184,186,120,132,212,145,180,139,174,161,212,182,104,162,131,0,131,0,104,161,219,120,110,116,110,116,219,120,207,154,163,40,147,22,207,154,202,159,161,47,145,23,111,0,139,154,144,30,144,135,139,187,110,110,168,161,150,145,110,110,185,162,43,16,43,16,185,162,73,129,0,110,0,110,191,87,149,149,236,48,195,91,146,149,146,0,146,0,146,0,187,173,200,201,222,215,172,147,95,95,193,97,224,129,159,206,97,192,155,139,153,115,153,115,156,140,189,158,123,136,190,64,111,0,155,139,153,115,153,114,156,241,197,148,150,152,170,116,110,157,156,128,169,14,13,159,158,149,212,189,43,16,43,16,43,16,148,110,148,110,147,109,182,151,133,121,106,118,114,103,89,66,94,94,211,188,205,207,139,168,151,152,87,76,101,79,151,152,130,156,125,116,47,29,43,16,169,228,11,103,120,6,230,176,55,49,55,6,55,6,193,102,92,0,71,0,13,30,0,147,63,43,12,43,12,43,142,152,71,53,61,61,0,0,0,0,0,0,0,0,0,0,158,146,25,2,0,0,0,0,0,0,0,0,107,130,170,194,176,188,109,0,203,159,113,111,202,158,0,0,135,135,114,0,136,135,0,109,187,190,148,126,177,187,0,0,149,130,218,105,169,135,37,113,146,113,49,13,49,13,0,0,178,195,147,114,255,255,109,0,193,149,110,109,109,109,12,15,125,41,33,41,144,188,1,6,75,53,10,53,210,161,110,0,152,148,210,60,110,156,213,5,63,5,63,5,45,111,0,0,232,172,190,168,190,169,0,0,190,144,109,109,109,109,0,0,168,140,148,111,168,140,0,0,200,151,113,110,255,158,0,0,184,188,147,139,186,255,0,0,122,130,111,0,109,0,0,0,132,69,109,93,110,136,51,5,205,103,61,6,47,106,0,0,110,109,110,122,155,179,0,0,132,120,113,114,84,63,0,0,124,108,202,189,160,174,0,0,144,142,79,57,159,146,0,0,138,138,119,117,255,69,0,0,97,198,47,38,208,84,23,112,41,14,157,7,121,192,35,11,35,11,35,11,160,61,129,9,40,19,20,139,236,44,0,0,15,3,97,93,0,0],gy=[0,0,23,12,53,0,130,127,58,149,67,77,72,198,13,0,25,51,25,49,94,2,8,64,0,24,0,21,0,9,19,27,126,126,51,80,72,105,87,98,73,93,106,85,111,123,87,30,116,126,123,110,4,16,9,28,21,53,8,62,23,52,73,21,132,183,78,142,168,175,70,70,128,128,123,110,125,43,100,139,125,119,78,78,54,77,139,139,33,87,201,117,162,149,130,130,138,60,130,172,149,127,95,98,95,25,118,135,110,85,147,175,105,110,121,30,101,113,34,68,20,26,34,68,56,0,0,44,3,0,27,175,80,133,31,66,85,147,32,150,90,25,45,230,77,101,36,83,22,84,71,118,44,44,52,172,38,101,35,130,40,197,43,197,29,26,23,103,67,44,25,129,29,85,27,177,33,97,32,145,33,77,38,96,20,55,36,95,2,22],my=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();function _y(e){return 2===e?4:4===e?6:1===e?2:3;}function vy(e){return 2===e?2:4===e?2:1;}var yy=140,by=function(){function e(e){var t=e.editor.pixelRatio,n=e.editor.layoutInfo,i=e.editor.viewInfo,o=e.editor.fontInfo;this.renderMinimap=0|n.renderMinimap,this.scrollBeyondLastLine=i.scrollBeyondLastLine,this.showSlider=i.minimap.showSlider,this.pixelRatio=t,this.typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this.lineHeight=e.editor.lineHeight,this.minimapLeft=n.minimapLeft,this.minimapWidth=n.minimapWidth,this.minimapHeight=n.height,this.canvasInnerWidth=Math.max(1,Math.floor(t*this.minimapWidth)),this.canvasInnerHeight=Math.max(1,Math.floor(t*this.minimapHeight)),this.canvasOuterWidth=this.canvasInnerWidth/t,this.canvasOuterHeight=this.canvasInnerHeight/t;}return e.prototype.equals=function(e){return this.renderMinimap===e.renderMinimap&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight;},e;}(),Cy=function(){function e(e,t,n,i,o,r,s){this.scrollTop=e,this.scrollHeight=t,this._computedSliderRatio=n,this.sliderTop=i,this.sliderHeight=o,this.startLineNumber=r,this.endLineNumber=s;}return e.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio);},e.create=function(t,n,i,o,r,s,a,u,l){var c,d,h=t.pixelRatio,p=_y(t.renderMinimap),f=Math.floor(t.canvasInnerHeight/p),g=t.lineHeight;if(r&&i!==s){var m=i-n+1;c=Math.floor(m*p/h);}else{var _=o/g;c=Math.floor(_*p/h);}d=t.scrollBeyondLastLine?(s-1)*p/h:Math.max(0,s*p/h-c);var v=(d=Math.min(t.minimapHeight-c,d))/(u-o),y=a*v;if(f>=s)return new e(a,u,v,y,c,b=1,s);var b=Math.max(1,Math.floor(n-y*h/p));return l&&l.scrollHeight===u&&(l.scrollTop>a&&(b=Math.min(b,l.startLineNumber)),l.scrollTop<a&&(b=Math.max(b,l.startLineNumber))),new e(a,u,v,y,c,b,Math.min(s,b+f-1));},e;}(),wy=function(){function e(e){this.dy=e;}return e.prototype.onContentChanged=function(){this.dy=-1;},e.prototype.onTokensChanged=function(){this.dy=-1;},e.INVALID=new e(-1),e;}(),Sy=function(){function e(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new ev(function(){return wy.INVALID;}),this._renderedLines._set(e.startLineNumber,n);}return e.prototype.linesEquals=function(e){if(this.renderedLayout.startLineNumber!==e.startLineNumber)return!1;if(this.renderedLayout.endLineNumber!==e.endLineNumber)return!1;for(var t=this._renderedLines._get().lines,n=0,i=t.length;n<i;n++)if(-1===t[n].dy)return!1;return!0;},e.prototype._get=function(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines};},e.prototype.onLinesChanged=function(e){return this._renderedLines.onLinesChanged(e.fromLineNumber,e.toLineNumber);},e.prototype.onLinesDeleted=function(e){this._renderedLines.onLinesDeleted(e.fromLineNumber,e.toLineNumber);},e.prototype.onLinesInserted=function(e){this._renderedLines.onLinesInserted(e.fromLineNumber,e.toLineNumber);},e.prototype.onTokensChanged=function(e){return this._renderedLines.onTokensChanged(e.ranges);},e;}(),xy=function(){function e(t,n,i,o){this._backgroundFillData=e._createBackgroundFillData(n,i,o),this._buffers=[t.createImageData(n,i),t.createImageData(n,i)],this._lastUsedBuffer=0;}return e.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e;},e._createBackgroundFillData=function(e,t,n){for(var i=n.r,o=n.g,r=n.b,s=new Uint8ClampedArray(e*t*4),a=0,u=0;u<t;u++)for(var l=0;l<e;l++)s[a]=i,s[a+1]=o,s[a+2]=r,s[a+3]=255,a+=4;return s;},e;}(),Ey=function(e){function t(t){var n=e.call(this,t)||this;return n._options=new by(n._context.configuration),n._lastRenderData=null,n._buffers=null,n._domNode=rd(document.createElement("div")),Ld.write(n._domNode,8),n._domNode.setClassName(n._getMinimapDomNodeClassName()),n._domNode.setPosition("absolute"),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._shadow=rd(document.createElement("div")),n._shadow.setClassName("minimap-shadow-hidden"),n._domNode.appendChild(n._shadow),n._canvas=rd(document.createElement("canvas")),n._canvas.setPosition("absolute"),n._canvas.setLeft(0),n._domNode.appendChild(n._canvas),n._slider=rd(document.createElement("div")),n._slider.setPosition("absolute"),n._slider.setClassName("minimap-slider"),n._slider.setLayerHinting(!0),n._domNode.appendChild(n._slider),n._sliderHorizontal=rd(document.createElement("div")),n._sliderHorizontal.setPosition("absolute"),n._sliderHorizontal.setClassName("minimap-slider-horizontal"),n._slider.appendChild(n._sliderHorizontal),n._tokensColorTracker=ly.getInstance(),n._applyLayout(),n._mouseDownListener=ii(n._canvas.domNode,"mousedown",function(e){e.preventDefault();var t=n._options.renderMinimap;if(0!==t&&n._lastRenderData){var i=_y(t),o=n._options.pixelRatio*e.browserEvent.offsetY,r=Math.floor(o/i)+n._lastRenderData.renderedLayout.startLineNumber;r=Math.min(r,n._context.model.getLineCount()),n._context.privateViewEventBus.emit(new hg(new Jt(r,1,r,1),1,!1,0));}}),n._sliderMouseMoveMonitor=new pd(),n._sliderMouseDownListener=ii(n._slider.domNode,"mousedown",function(e){if(e.preventDefault(),e.leftButton&&n._lastRenderData){var t=e.posy,i=e.posx,r=n._lastRenderData.renderedLayout;n._slider.toggleClassName("active",!0),n._sliderMouseMoveMonitor.startMonitoring(hd,function(e){var s=Math.abs(e.posx-i);if(o.g&&s>yy)n._context.viewLayout.setScrollPositionNow({scrollTop:r.scrollTop});else{var a=e.posy-t;n._context.viewLayout.setScrollPositionNow({scrollTop:r.getDesiredScrollTopFromDelta(a)});}},function(){n._slider.toggleClassName("active",!1);});}}),n;}return my(t,e),t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),e.prototype.dispose.call(this);},t.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover";},t.prototype.getDomNode=function(){return this._domNode;},t.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._slider.setWidth(this._options.minimapWidth);},t.prototype._getBuffer=function(){return this._buffers||(this._buffers=new xy(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer();},t.prototype._onOptionsMaybeChanged=function(){var e=new by(this._context.configuration);return!this._options.equals(e)&&(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0);},t.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged();},t.prototype.onFlushed=function(e){return this._lastRenderData=null,!0;},t.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e);},t.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0;},t.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0;},t.prototype.onScrollChanged=function(e){return!0;},t.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e);},t.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0;},t.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0;},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){if(0===this._options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var t=Cy.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight);var n=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,i=Math.min(this._options.minimapWidth,Math.round(n*vy(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(i),this._sliderHorizontal.setWidth(this._options.minimapWidth-i),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this._lastRenderData=this.renderLines(t);},t.prototype.renderLines=function(e){var n=this._options.renderMinimap,i=e.startLineNumber,o=e.endLineNumber,r=_y(n);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var s=this._lastRenderData._get();return new Sy(e,s.imageData,s.lines);}for(var a=this._getBuffer(),u=t._renderUntouchedLines(a,i,o,r,this._lastRenderData),l=u[0],c=u[1],d=u[2],h=this._context.model.getMinimapLinesRenderingData(i,o,d),p=h.tabSize,f=this._tokensColorTracker.getColor(2),g=this._tokensColorTracker.backgroundIsLight(),m=0,_=[],v=0,y=o-i+1;v<y;v++)d[v]&&t._renderLine(a,f,g,n,this._tokensColorTracker,py(),m,p,h.data[v]),_[v]=new wy(m),m+=r;var b=-1===l?0:l,C=(-1===c?a.height:c)-b;return this._canvas.domNode.getContext("2d").putImageData(a,0,0,0,b,a.width,C),new Sy(e,a,_);},t._renderUntouchedLines=function(e,t,n,i,o){var r=[];if(!o){for(var s=0,a=n-t+1;s<a;s++)r[s]=!0;return[-1,-1,r];}for(var u=o._get(),l=u.imageData.data,c=u.rendLineNumberStart,d=u.lines,h=d.length,p=e.width,f=e.data,g=(n-t+1)*i*p*4,m=-1,_=-1,v=-1,y=-1,b=-1,C=-1,w=0,S=t;S<=n;S++){var x=S-t,E=S-c,L=E>=0&&E<h?d[E].dy:-1;if(-1!==L){var T=L*p*4,I=(L+i)*p*4,N=w*p*4,k=(w+i)*p*4;y===T&&C===N?(y=I,C=k):(-1!==v&&(f.set(l.subarray(v,y),b),-1===m&&0===v&&v===b&&(m=y),-1===_&&y===g&&v===b&&(_=v)),v=T,y=I,b=N,C=k),r[x]=!1,w+=i;}else r[x]=!0,w+=i;}return-1!==v&&(f.set(l.subarray(v,y),b),-1===m&&0===v&&v===b&&(m=y),-1===_&&y===g&&v===b&&(_=v)),[-1===m?-1:m/(4*p),-1===_?-1:_/(4*p),r];},t._renderLine=function(e,t,n,i,o,r,s,a,u){for(var l=u.content,c=u.tokens,d=vy(i),h=e.width-d,p=0,f=0,g=0,m=0,_=c.getCount();m<_;m++)for(var v=c.getEndOffset(m),y=c.getForeground(m),b=o.getColor(y);f<v;f++){if(p>h)return;var C=l.charCodeAt(f);if(9===C){var w=a-(f+g)%a;g+=w-1,p+=w*d;}else if(32===C)p+=d;else for(var S=To(C)?2:1,x=0;x<S;x++)if(2===i?r.x2RenderChar(e,p,s,C,b,t,n):1===i?r.x1RenderChar(e,p,s,C,b,t,n):4===i?r.x2BlockRenderChar(e,p,s,b,t,n):r.x1BlockRenderChar(e,p,s,b,t,n),(p+=d)>h)return;}},t;}(Ed);Vd(function(e,t){var n=e.getColor(bp);if(n){var i=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }");}var o=e.getColor(Cp);if(o){var r=o.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+r+"; }");}var s=e.getColor(wp);if(s){var a=s.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+a+"; }");}var u=e.getColor(yp);u&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+u+" -6px 0 6px -6px inset; }");});n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.css");var Ly=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Ty=function(e){function t(t){var n=e.call(this,t)||this;return n._widgets={},n._verticalScrollbarWidth=n._context.configuration.editor.layoutInfo.verticalScrollbarWidth,n._minimapWidth=n._context.configuration.editor.layoutInfo.minimapWidth,n._horizontalScrollbarHeight=n._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,n._editorHeight=n._context.configuration.editor.layoutInfo.height,n._editorWidth=n._context.configuration.editor.layoutInfo.width,n._domNode=rd(document.createElement("div")),Ld.write(n._domNode,4),n._domNode.setClassName("overlayWidgets"),n;}return Ly(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={};},t.prototype.getDomNode=function(){return this._domNode;},t.prototype.onConfigurationChanged=function(e){return!!e.layoutInfo&&(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0);},t.prototype.addWidget=function(e){var t=rd(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender();},t.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0);},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender();}},t.prototype._renderWidget=function(e){var t=e.domNode;if(null!==e.preference){if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");}else t.unsetTop();},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var o=t[n];this._renderWidget(this._widgets[o]);}},t;}(Ed),Iy=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Ny=function(){function e(e,t){this.lineHeight=e.editor.lineHeight,this.pixelRatio=e.editor.pixelRatio,this.overviewRulerLanes=e.editor.viewInfo.overviewRulerLanes,this.renderBorder=e.editor.viewInfo.overviewRulerBorder;var n=t.getColor(Df);this.borderColor=n?n.toString():null,this.hideCursor=e.editor.viewInfo.hideCursorInOverviewRuler;var i=t.getColor(bf);this.cursorColor=i?i.transparent(.7).toString():null,this.themeType=t.type;var o=e.editor.viewInfo.minimap.enabled,r=e.editor.viewInfo.minimap.side,s=o?Ls.getDefaultBackground():null;this.backgroundColor=null===s||"left"===r?null:Oh.Format.CSS.formatHex(s);var a=e.editor.layoutInfo.overviewRuler;this.top=a.top,this.right=a.right,this.domWidth=a.width,this.domHeight=a.height,this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0;var u=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),l=u[0],c=u[1];this.x=l,this.w=c;}return e.prototype._initLanes=function(e,t,n){var i=t-e;if(n>=3){var o,r,s,a=i-(o=Math.floor(i/3))-(r=Math.floor(i/3)),u=(s=e)+o;return[[0,s,u,s,s+o+a,s,u,s],[0,o,a,o+a,r,o+a+r,a+r,o+a+r]];}if(2===n)return[[0,s=e,s,s,s+(o=Math.floor(i/2)),s,s,s],[0,o,o,o,r=i-o,o+r,o+r,o+r]];return[[0,e,e,e,e,e,e,e],[0,i,i,i,i,i,i,i]];},e.prototype.equals=function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight;},e;}(),ky=function(e){function t(t){var n=e.call(this,t)||this;return n._domNode=rd(document.createElement("canvas")),n._domNode.setClassName("decorationsOverviewRuler"),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setAttribute("aria-hidden","true"),n._updateSettings(!1),n._tokensColorTrackerListener=Ls.onDidChange(function(e){e.changedColorMap&&n._updateSettings(!0);}),n._cursorPositions=[],n;}return Iy(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose();},t.prototype._updateSettings=function(e){var t=new Ny(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,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,e&&this._render(),!0);},t.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1);},t.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(Qt.compare),!0;},t.prototype.onDecorationsChanged=function(e){return!0;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype.onThemeChanged=function(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1);},t.prototype.getDomNode=function(){return this._domNode.domNode;},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._render();},t.prototype._render=function(){var e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,i=this._context.viewLayout,o=t/this._context.viewLayout.getScrollHeight(),r=this._context.model.getAllOverviewRulerDecorations(this._context.theme),s=6*this._settings.pixelRatio|0,a=s/2|0,u=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?u.clearRect(0,0,e,t):(u.fillStyle=this._settings.backgroundColor,u.fillRect(0,0,e,t));var l=this._settings.x,c=this._settings.w,d=Object.keys(r);d.sort();for(var h=0,p=d.length;h<p;h++){var f=d[h],g=r[f];u.fillStyle=f;for(var m=0,_=0,v=0,y=0,b=g.length;y<b;y++){var C=g[3*y],w=g[3*y+1],S=g[3*y+2],x=i.getVerticalOffsetForLineNumber(w)*o|0;if((O=(i.getVerticalOffsetForLineNumber(S)+n)*o|0)-x<s)(N=(x+O)/2|0)<a?N=a:N+a>t&&(N=t-a),x=N-a,O=N+a;x>v+1||C!==m?(0!==y&&u.fillRect(l[m],_,c[m],v-_),m=C,_=x,v=O):O>v&&(v=O);}u.fillRect(l[m],_,c[m],v-_);}if(!this._settings.hideCursor&&this._settings.cursorColor){var E=2*this._settings.pixelRatio|0,L=E/2|0,T=this._settings.x[7],I=this._settings.w[7];u.fillStyle=this._settings.cursorColor;for(_=-100,v=-100,y=0,b=this._cursorPositions.length;y<b;y++){var N,k=this._cursorPositions[y];(N=i.getVerticalOffsetForLineNumber(k.lineNumber)*o|0)<L?N=L:N+L>t&&(N=t-L);var O=(x=N-L)+E;x>v+1?(0!==y&&u.fillRect(T,_,I,v-_),_=x,v=O):O>v&&(v=O);}u.fillRect(T,_,I,v-_);}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(u.beginPath(),u.lineWidth=1,u.strokeStyle=this._settings.borderColor,u.moveTo(0,0),u.lineTo(0,t),u.stroke(),u.moveTo(0,0),u.lineTo(e,0),u.stroke());},t;}(Ed),Oy=function(){function e(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n;}return e.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId;},e;}(),Dy=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null;}return e.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1;},e.prototype.setColorZone=function(e){this._colorZone=e;},e.prototype.getColorZones=function(){return this._colorZone;},e;}(),Ry=function(){function e(e){this._getVerticalOffsetForLine=e,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 e.prototype.getId2Color=function(){return this._id2Color;},e.prototype.setZones=function(e){this._zones=e,this._zones.sort(Dy.compare);},e.prototype.setLineHeight=function(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0);},e.prototype.setPixelRatio=function(e){this._pixelRatio=e,this._colorZonesInvalid=!0;},e.prototype.getDOMWidth=function(){return this._domWidth;},e.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio;},e.prototype.setDOMWidth=function(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0);},e.prototype.getDOMHeight=function(){return this._domHeight;},e.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio;},e.prototype.setDOMHeight=function(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0);},e.prototype.getOuterHeight=function(){return this._outerHeight;},e.prototype.setOuterHeight=function(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0);},e.prototype.resolveColorZones=function(){for(var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),i=n/Math.floor(this._outerHeight),o=Math.floor(4*this._pixelRatio/2),r=[],s=0,a=this._zones.length;s<a;s++){var u=this._zones[s];if(!e){var l=u.getColorZones();if(l){r.push(l);continue;}}var c=Math.floor(i*this._getVerticalOffsetForLine(u.startLineNumber)),d=Math.floor(i*(this._getVerticalOffsetForLine(u.endLineNumber)+t)),h=Math.floor((c+d)/2),p=d-h;p<o&&(p=o),h-p<0&&(h=p),h+p>n&&(h=n-p);var f=u.color,g=this._color2Id[f];g||(g=++this._lastAssignedId,this._color2Id[f]=g,this._id2Color[g]=f);var m=new Oy(h-p,h+p,g);u.setColorZone(m),r.push(m);}return this._colorZonesInvalid=!1,r.sort(Oy.compare),r;},e;}(),Ay=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),My=function(e){function t(t,n){var i=e.call(this)||this;return i._context=t,i._domNode=rd(document.createElement("canvas")),i._domNode.setClassName(n),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._zoneManager=new Ry(function(e){return i._context.viewLayout.getVerticalOffsetForLineNumber(e);}),i._zoneManager.setDOMWidth(0),i._zoneManager.setDOMHeight(0),i._zoneManager.setOuterHeight(i._context.viewLayout.getScrollHeight()),i._zoneManager.setLineHeight(i._context.configuration.editor.lineHeight),i._zoneManager.setPixelRatio(i._context.configuration.editor.pixelRatio),i._context.addEventHandler(i),i;}return Ay(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight),this._render()),e.pixelRatio&&(this._zoneManager.setPixelRatio(this._context.configuration.editor.pixelRatio),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;},t.prototype.onFlushed=function(e){return this._render(),!0;},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0;},t.prototype.onZonesChanged=function(e){return this._render(),!0;},t.prototype.getDomNode=function(){return this._domNode.domNode;},t.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(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());},t.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render();},t.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(o,n,i,e),!0;},t.prototype._renderOneLane=function(e,t,n,i){for(var o=0,r=0,s=0,a=0,u=t.length;a<u;a++){var l=t[a],c=l.colorId,d=l.from,h=l.to;c!==o?(e.fillRect(0,r,i,s-r),o=c,e.fillStyle=n[o],r=d,s=h):s>=d?s=Math.max(s,h):(e.fillRect(0,r,i,s-r),r=d,s=h);}e.fillRect(0,r,i,s-r);},t;}(Sd),Py=(n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/rulers/rulers.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),Fy=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=rd(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.domNode.setClassName("view-rulers"),n._renderedRulers=[],n._rulers=n._context.configuration.editor.viewInfo.rulers,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n;}return Py(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return!!(e.viewInfo||e.layoutInfo||e.fontInfo)&&(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,!0);},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged;},t.prototype.prepareRender=function(e){},t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e<t)for(var n=this._context.model.getTabSize(),i=t-e;i>0;){(r=rd(document.createElement("div"))).setClassName("view-ruler"),r.setWidth(n),this.domNode.appendChild(r),this._renderedRulers.push(r),i--;}else for(var o=e-t;o>0;){var r=this._renderedRulers.pop();this.domNode.removeChild(r),o--;}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t<n;t++){var i=this._renderedRulers[t];i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(this._rulers[t]*this._typicalHalfwidthCharacterWidth);}},t;}(Ed);Vd(function(e,t){var n=e.getColor(If);n&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+n+" inset; }");});n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.css");var Wy=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),By=function(e){function t(t){var n=e.call(this,t)||this;return n._scrollTop=0,n._width=0,n._updateWidth(),n._shouldShow=!1,n._useShadows=n._context.configuration.editor.viewInfo.scrollbar.useShadows,n._domNode=rd(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n;}return Wy(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype._updateShouldShow=function(){var e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0);},t.prototype.getDomNode=function(){return this._domNode;},t.prototype._updateWidth=function(){var e=this._context.configuration.editor.layoutInfo,t=0;return t=0===e.renderMinimap||e.minimapWidth>0&&0===e.minimapLeft?e.width:e.width-e.minimapWidth-e.verticalScrollbarWidth,this._width!==t&&(this._width=t,!0);},t.prototype.onConfigurationChanged=function(e){var t=!1;return e.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),e.layoutInfo&&(t=this._updateWidth()),this._updateShouldShow()||t;},t.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow();},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"");},t;}(Ed);Vd(function(e,t){var n=e.getColor(yp);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }");});n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/selections/selections.css");var Vy=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Hy=function(){return function(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null;};}(),Uy=function(){return function(e,t){this.lineNumber=e,this.ranges=t;};}();function jy(e){return new Hy(e);}function zy(e){return new Uy(e.lineNumber,e.ranges.map(jy));}var Ky=bn,qy=function(e){function t(t){var n=e.call(this)||this;return n._previousFrameVisibleRangesWithStyle=[],n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._roundedSelection=n._context.configuration.editor.viewInfo.roundedSelection,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._selections=[],n._renderResult=null,n._context.addEventHandler(n),n;}return Vy(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this);},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0;},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0;},t.prototype.onDecorationsChanged=function(e){return!0;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onLinesChanged=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t<n;t++){if(e[t].ranges.length>1)return!0;}return!1;},t.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var i=this._typicalHalfwidthCharacterWidth/4,o=null,r=null;if(n&&n.length>0&&t.length>0){var s=t[0].lineNumber;if(s===e.startLineNumber)for(var a=0;!o&&a<n.length;a++)n[a].lineNumber===s&&(o=n[a].ranges[0]);var u=t[t.length-1].lineNumber;if(u===e.endLineNumber)for(a=n.length-1;!r&&a>=0;a--)n[a].lineNumber===u&&(r=n[a].ranges[0]);o&&!o.startStyle&&(o=null),r&&!r.startStyle&&(r=null);}a=0;for(var l=t.length;a<l;a++){var c=t[a].ranges[0],d=c.left,h=c.left+c.width,p={top:0,bottom:0},f={top:0,bottom:0};if(a>0){var g=t[a-1].ranges[0].left,m=t[a-1].ranges[0].left+t[a-1].ranges[0].width;Gy(d-g)<i?p.top=2:d>g&&(p.top=1),Gy(h-m)<i?f.top=2:g<h&&h<m&&(f.top=1);}else o&&(p.top=o.startStyle.top,f.top=o.endStyle.top);if(a+1<l){var _=t[a+1].ranges[0].left,v=t[a+1].ranges[0].left+t[a+1].ranges[0].width;Gy(d-_)<i?p.bottom=2:_<d&&d<v&&(p.bottom=1),Gy(h-v)<i?f.bottom=2:h<v&&(f.bottom=1);}else r&&(p.bottom=r.startStyle.bottom,f.bottom=r.endStyle.bottom);c.startStyle=p,c.endStyle=f;}},t.prototype._getVisibleRangesWithStyle=function(e,t,n){var i=(t.linesVisibleRangesForRange(e,!0)||[]).map(zy),o=this._visibleRangesHaveGaps(i);return Ky||o||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,i,n),i;},t.prototype._createSelectionPiece=function(e,t,n,i,o){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+i.toString()+"px;width:"+o.toString()+"px;height:"+t+'px;"></div>';},t.prototype._actualRenderOneSelection=function(e,n,i,o){for(var r=o.length>0&&o[0].ranges[0].startStyle,s=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),u=o.length>0?o[0].lineNumber:0,l=o.length>0?o[o.length-1].lineNumber:0,c=0,d=o.length;c<d;c++){for(var h=o[c],p=h.lineNumber,f=p-n,g=i&&(p===l||p===u)?a:s,m=i&&p===u?1:0,_="",v=0,y=h.ranges.length;v<y;v++){var b=h.ranges[v];if(r){var C=b.startStyle,w=b.endStyle;if(1===C.top||1===C.bottom){_+=this._createSelectionPiece(m,g,t.SELECTION_CLASS_NAME,b.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH);var S=t.EDITOR_BACKGROUND_CLASS_NAME;1===C.top&&(S+=" "+t.SELECTION_TOP_RIGHT),1===C.bottom&&(S+=" "+t.SELECTION_BOTTOM_RIGHT),_+=this._createSelectionPiece(m,g,S,b.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH);}if(1===w.top||1===w.bottom){_+=this._createSelectionPiece(m,g,t.SELECTION_CLASS_NAME,b.left+b.width,t.ROUNDED_PIECE_WIDTH);var x=t.EDITOR_BACKGROUND_CLASS_NAME;1===w.top&&(x+=" "+t.SELECTION_TOP_LEFT),1===w.bottom&&(x+=" "+t.SELECTION_BOTTOM_LEFT),_+=this._createSelectionPiece(m,g,x,b.left+b.width,t.ROUNDED_PIECE_WIDTH);}}var E=t.SELECTION_CLASS_NAME;if(r){C=b.startStyle,w=b.endStyle;0===C.top&&(E+=" "+t.SELECTION_TOP_LEFT),0===C.bottom&&(E+=" "+t.SELECTION_BOTTOM_LEFT),0===w.top&&(E+=" "+t.SELECTION_TOP_RIGHT),0===w.bottom&&(E+=" "+t.SELECTION_BOTTOM_RIGHT);}_+=this._createSelectionPiece(m,g,E,b.left,b.width);}e[f]+=_;}},t.prototype.prepareRender=function(e){for(var t=[],n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o=n;o<=i;o++){t[o-n]="";}for(var r=[],s=0,a=this._selections.length;s<a;s++){var u=this._selections[s];if(u.isEmpty())r[s]=null;else{var l=this._getVisibleRangesWithStyle(u,e,this._previousFrameVisibleRangesWithStyle[s]);r[s]=l,this._actualRenderOneSelection(t,n,this._selections.length>1,l);}}this._previousFrameVisibleRangesWithStyle=r,this._renderResult=t;},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n];},t.SELECTION_CLASS_NAME="selected-text",t.SELECTION_TOP_LEFT="top-left-radius",t.SELECTION_BOTTOM_LEFT="bottom-left-radius",t.SELECTION_TOP_RIGHT="top-right-radius",t.SELECTION_BOTTOM_RIGHT="bottom-right-radius",t.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",t.ROUNDED_PIECE_WIDTH=10,t;}(Lh);function Gy(e){return e<0?-e:e;}Vd(function(e,t){var n=e.getColor(Pp);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var i=e.getColor(Wp);i&&t.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var o=e.getColor(Fp);o&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+o+"; }");});n("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.css");var $y=function(){return function(e,t,n,i,o,r){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=o,this.textContentClassName=r;};}(),Yy=function(){function e(e){this._context=e,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=rd(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),qc.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this.updatePosition(new Qt(1,1)),this._lastRenderedContent="",this._renderData=null;}return e.prototype.getDomNode=function(){return this._domNode;},e.prototype.getPosition=function(){return this._position;},e.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0);},e.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1);},e.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(qc.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0;},e.prototype.onCursorPositionChanged=function(e){return this.updatePosition(e),!0;},e.prototype._prepareRender=function(e){var t="",n="";if(this._cursorStyle===Pe.Line||this._cursorStyle===Pe.LineThin){var i,o=e.visibleRangeForPosition(this._position);if(!o)return null;if(this._cursorStyle===Pe.Line){if((i=$i(this._lineCursorWidth>0?this._lineCursorWidth:2))>2)t=this._context.model.getLineContent(this._position.lineNumber).charAt(this._position.column-1);}else i=$i(1);var r=o.left;i>=2&&r>=1&&(r-=1);var s=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new $y(s,r,i,this._lineHeight,t,n);}var a=e.linesVisibleRangesForRange(new Jt(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!a||0===a.length||0===a[0].ranges.length)return null;var u=a[0].ranges[0],l=u.width<1?this._typicalHalfwidthCharacterWidth:u.width;if(this._cursorStyle===Pe.Block){var c=this._context.model.getViewLineData(this._position.lineNumber);t=c.content.charAt(this._position.column-1),bo(c.content.charCodeAt(this._position.column-1))&&(t+=c.content.charAt(this._position.column));var d=c.tokens.findTokenIndexAtOffset(this._position.column-1);n=c.tokens.getClassName(d);}var h=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,p=this._lineHeight;return this._cursorStyle!==Pe.Underline&&this._cursorStyle!==Pe.UnderlineThin||(h+=this._lineHeight-2,p=2),new $y(h,u.left,l,p,t,n);},e.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e);},e.prototype.render=function(e){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);},e.prototype.updatePosition=function(e){this._position=e;},e;}(),Xy=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Zy=function(e){function t(t){var n=e.call(this,t)||this;return n._readOnly=n._context.configuration.editor.readOnly,n._cursorBlinking=n._context.configuration.editor.viewInfo.cursorBlinking,n._cursorStyle=n._context.configuration.editor.viewInfo.cursorStyle,n._selectionIsEmpty=!0,n._primaryCursor=new Yy(n._context),n._secondaryCursors=[],n._renderData=[],n._domNode=rd(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._updateDomClassName(),n._domNode.appendChild(n._primaryCursor.getDomNode()),n._startCursorBlinkAnimation=new Q(),n._cursorFlatBlinkInterval=new J(),n._blinkingEnabled=!1,n._editorHasFocus=!1,n._updateBlinking(),n;}return Xy(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose();},t.prototype.getDomNode=function(){return this._domNode;},t.prototype.onConfigurationChanged=function(e){e.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly),e.viewInfo&&(this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle),this._primaryCursor.onConfigurationChanged(e),this._updateBlinking(),e.viewInfo&&this._updateDomClassName();for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].onConfigurationChanged(e);return!0;},t.prototype._onCursorPositionChanged=function(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length)for(var n=t.length-this._secondaryCursors.length,i=0;i<n;i++){var o=new Yy(this._context);this._domNode.domNode.insertBefore(o.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(o);}else if(this._secondaryCursors.length>t.length){var r=this._secondaryCursors.length-t.length;for(i=0;i<r;i++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1);}for(i=0;i<t.length;i++)this._secondaryCursors[i].onCursorPositionChanged(t[i]);},t.prototype.onCursorStateChanged=function(e){for(var t=[],n=0,i=e.selections.length;n<i;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));var o=e.selections[0].isEmpty();return this._selectionIsEmpty!==o&&(this._selectionIsEmpty=o,this._updateDomClassName()),!0;},t.prototype.onDecorationsChanged=function(e){return!0;},t.prototype.onFlushed=function(e){return!0;},t.prototype.onFocusChanged=function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1;},t.prototype.onLinesChanged=function(e){return!0;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return!0;},t.prototype.onTokensChanged=function(e){var t=function(t){for(var n=0,i=e.ranges.length;n<i;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return!0;return!1;};if(t(this._primaryCursor.getPosition()))return!0;for(var n=0;n<this._secondaryCursors.length;n++)if(t(this._secondaryCursors[n].getPosition()))return!0;return!1;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0;},t.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var n=this._getCursorBlinking(),i=0===n,o=5===n;i?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),i||o||(1===n?this._cursorFlatBlinkInterval.cancelAndSet(function(){e._isVisible?e._hide():e._show();},t.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(function(){e._blinkingEnabled=!0,e._updateDomClassName();},t.BLINK_INTERVAL));},t.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName());},t.prototype._getClassName=function(){var e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case Pe.Line:e+=" cursor-line-style";break;case Pe.Block:e+=" cursor-block-style";break;case Pe.Underline:e+=" cursor-underline-style";break;case Pe.LineThin:e+=" cursor-line-thin-style";break;case Pe.BlockOutline:e+=" cursor-block-outline-style";break;case Pe.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style";}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid";}else e+=" cursor-solid";return e;},t.prototype._show=function(){this._primaryCursor.show();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0;},t.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1;},t.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e);},t.prototype.render=function(e){var t=[],n=0,i=this._primaryCursor.render(e);i&&(t[n++]=i);for(var o=0,r=this._secondaryCursors.length;o<r;o++){var s=this._secondaryCursors[o].render(e);s&&(t[n++]=s);}this._renderData=t;},t.prototype.getLastRenderData=function(){return this._renderData;},t.BLINK_INTERVAL=500,t;}(Ed);Vd(function(e,t){var n=e.getColor(bf);if(n){var i=e.getColor(Cf);i||(i=n.opposite()),t.addRule(".monaco-editor .cursor { background-color: "+n+"; border-color: "+n+"; color: "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }");}});var Qy=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Jy=function(e){function t(t){var n=e.call(this,t)||this;return n._lineHeight=n._context.configuration.editor.lineHeight,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode=rd(document.createElement("div")),n.domNode.setClassName("view-zones"),n.domNode.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.marginDomNode=rd(document.createElement("div")),n.marginDomNode.setClassName("margin-view-zones"),n.marginDomNode.setPosition("absolute"),n.marginDomNode.setAttribute("role","presentation"),n.marginDomNode.setAttribute("aria-hidden","true"),n._zones={},n;}return Qy(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._zones={};},t.prototype._recomputeWhitespacesProps=function(){for(var e=!1,t=Object.keys(this._zones),n=0,i=t.length;n<i;n++){var o=t[n],r=this._zones[o],s=this._computeWhitespaceProps(r.delegate);this._context.viewLayout.changeWhitespace(parseInt(o,10),s.afterViewLineNumber,s.heightInPx)&&(this._safeCallOnComputedHeight(r.delegate,s.heightInPx),e=!0);}return e;},t.prototype.onConfigurationChanged=function(e){return e.lineHeight?(this._lineHeight=this._context.configuration.editor.lineHeight,this._recomputeWhitespacesProps()):(e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0);},t.prototype.onLineMappingChanged=function(e){var t=this._recomputeWhitespacesProps();return t&&this._context.viewLayout.onHeightMaybeChanged(),t;},t.prototype.onLinesDeleted=function(e){return!0;},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged;},t.prototype.onZonesChanged=function(e){return!0;},t.prototype.onLinesInserted=function(e){return!0;},t.prototype._getZoneOrdinal=function(e){return void 0!==e.afterColumn?e.afterColumn:1e4;},t.prototype._computeWhitespaceProps=function(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var t,n;if(void 0!==e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var i=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new Qt(i,this._context.model.getModelLineMaxColumn(i));}n=t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?this._context.model.validateModelPosition({lineNumber:t.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:t.lineNumber,column:t.column+1});var o=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),r=this._context.model.coordinatesConverter.modelPositionIsVisible(n);return{afterViewLineNumber:o.lineNumber,heightInPx:r?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)};},t.prototype.addZone=function(e){var t=this._computeWhitespaceProps(e),n={whitespaceId:this._context.viewLayout.addWhitespace(t.afterViewLineNumber,this._getZoneOrdinal(e),t.heightInPx,t.minWidthInPx),delegate:e,isVisible:!1,domNode:rd(e.domNode),marginDomNode:e.marginDomNode?rd(e.marginDomNode):null};return this._safeCallOnComputedHeight(n.delegate,t.heightInPx),n.domNode.setPosition("absolute"),n.domNode.domNode.style.width="100%",n.domNode.setDisplay("none"),n.domNode.setAttribute("monaco-view-zone",n.whitespaceId.toString()),this.domNode.appendChild(n.domNode),n.marginDomNode&&(n.marginDomNode.setPosition("absolute"),n.marginDomNode.domNode.style.width="100%",n.marginDomNode.setDisplay("none"),n.marginDomNode.setAttribute("monaco-view-zone",n.whitespaceId.toString()),this.marginDomNode.appendChild(n.marginDomNode)),this._zones[n.whitespaceId.toString()]=n,this.setShouldRender(),n.whitespaceId;},t.prototype.removeZone=function(e){if(this._zones.hasOwnProperty(e.toString())){var t=this._zones[e.toString()];return delete this._zones[e.toString()],this._context.viewLayout.removeWhitespace(t.whitespaceId),t.domNode.removeAttribute("monaco-visible-view-zone"),t.domNode.removeAttribute("monaco-view-zone"),t.domNode.domNode.parentNode.removeChild(t.domNode.domNode),t.marginDomNode&&(t.marginDomNode.removeAttribute("monaco-visible-view-zone"),t.marginDomNode.removeAttribute("monaco-view-zone"),t.marginDomNode.domNode.parentNode.removeChild(t.marginDomNode.domNode)),this.setShouldRender(),!0;}return!1;},t.prototype.layoutZone=function(e){var t=!1;if(this._zones.hasOwnProperty(e.toString())){var n=this._zones[e.toString()],i=this._computeWhitespaceProps(n.delegate);(t=this._context.viewLayout.changeWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx)||t)&&(this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender());}return t;},t.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e.toString())){var t=this._zones[e.toString()];return Boolean(t.delegate.suppressMouseDown);}return!1;},t.prototype._heightInPixels=function(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight;},t.prototype._minWidthInPixels=function(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0;},t.prototype._safeCallOnComputedHeight=function(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t);}catch(e){a(e);}},t.prototype._safeCallOnDomNodeTop=function(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t);}catch(e){a(e);}},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){for(var t=e.viewportData.whitespaceViewportData,n={},i=!1,o=0,r=t.length;o<r;o++)n[t[o].id.toString()]=t[o],i=!0;var s=Object.keys(this._zones);for(o=0,r=s.length;o<r;o++){var a=s[o],u=this._zones[a],l=0,c=0,d="none";n.hasOwnProperty(a)?(l=n[a].verticalOffset-e.bigNumbersDelta,c=n[a].height,d="block",u.isVisible||(u.domNode.setAttribute("monaco-visible-view-zone","true"),u.isVisible=!0),this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(n[a].verticalOffset))):(u.isVisible&&(u.domNode.removeAttribute("monaco-visible-view-zone"),u.isVisible=!1),this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),u.domNode.setTop(l),u.domNode.setHeight(c),u.domNode.setDisplay(d),u.marginDomNode&&(u.marginDomNode.setTop(l),u.marginDomNode.setHeight(c),u.marginDomNode.setDisplay(d));}i&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft));},t;}(Ed),eb=function(){function e(e,t,n,i){this.configuration=e,this.theme=t,this.model=n,this.viewLayout=n.viewLayout,this.privateViewEventBus=i;}return e.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e);},e.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e);},e;}(),tb=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1;}return e.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e);},e.prototype.removeEventHandler=function(e){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break;}},e.prototype.emit=function(e){this._eventQueue?this._eventQueue.push(e):this._eventQueue=[e],this._isConsumingQueue||this.consumeQueue();},e.prototype.emitMany=function(e){this._eventQueue?this._eventQueue=this._eventQueue.concat(e):this._eventQueue=e,this._isConsumingQueue||this.consumeQueue();},e.prototype.consumeQueue=function(){var e=this;this._eventHandlerGateKeeper(function(){try{e._isConsumingQueue=!0,e._doConsumeQueue();}finally{e._isConsumingQueue=!1;}});},e.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var e=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),n=0,i=t.length;n<i;n++)t[n].handleEvents(e);}},e;}(),nb=function(){function e(e,t,n,i){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=i,this.visibleRange=new Jt(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber));}return e.prototype.getViewLineRenderingData=function(e){return this._model.getViewLineRenderingData(this.visibleRange,e);},e.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange);},e;}(),ib=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ob=function(){throw new Error("Invalid change accessor");},rb=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;a._cursor=r,a._renderAnimationFrame=null,a.outgoingEvents=s;var u=new J_(n,o,a.outgoingEvents,t);return a.eventDispatcher=new tb(function(e){return a._renderOnce(e);}),a.eventDispatcher.addEventHandler(a),a._context=new eb(n,i.getTheme(),o,a.eventDispatcher),a._register(i.onThemeChange(function(e){a._context.theme=e,a.eventDispatcher.emit(new gg()),a.render(!0,!1);})),a.viewParts=[],a._textAreaHandler=new Lg(a._context,u,a.createTextAreaHandlerHelper()),a.viewParts.push(a._textAreaHandler),a.createViewParts(),a._setLayout(),a.pointerHandler=new _h(a._context,u,a.createPointerHandlerHelper()),a._register(o.addEventListener(function(e){a.eventDispatcher.emitMany(e);})),a._register(a._cursor.addEventListener(function(e){a.eventDispatcher.emitMany(e);})),a;}return ib(t,e),t.prototype.createViewParts=function(){this.linesContent=rd(document.createElement("div")),this.linesContent.setClassName("lines-content monaco-editor-background"),this.linesContent.setPosition("absolute"),this.domNode=rd(document.createElement("div")),this.domNode.setClassName(this.getEditorClassName()),this.overflowGuardContainer=rd(document.createElement("div")),Ld.write(this.overflowGuardContainer,3),this.overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new Gv(this._context,this.linesContent,this.domNode,this.overflowGuardContainer),this.viewParts.push(this._scrollbar),this.viewLines=new iy(this._context,this.linesContent),this.viewZones=new Jy(this._context),this.viewParts.push(this.viewZones);var e=new ky(this._context);this.viewParts.push(e);var t=new By(this._context);this.viewParts.push(t);var n=new sv(this._context);this.viewParts.push(n),n.addDynamicOverlay(new pv(this._context)),n.addDynamicOverlay(new qy(this._context)),n.addDynamicOverlay(new Jv(this._context)),n.addDynamicOverlay(new _v(this._context));var i=new av(this._context);this.viewParts.push(i),i.addDynamicOverlay(new gv(this._context)),i.addDynamicOverlay(new Zv(this._context)),i.addDynamicOverlay(new ay(this._context)),i.addDynamicOverlay(new ry(this._context)),i.addDynamicOverlay(new $f(this._context));var o=new Xf(this._context);o.getDomNode().appendChild(this.viewZones.marginDomNode),o.getDomNode().appendChild(i.getDomNode()),this.viewParts.push(o),this.contentWidgets=new cv(this._context,this.domNode),this.viewParts.push(this.contentWidgets),this.viewCursors=new Zy(this._context),this.viewParts.push(this.viewCursors),this.overlayWidgets=new Ty(this._context),this.viewParts.push(this.overlayWidgets);var r=new Fy(this._context);this.viewParts.push(r);var s=new Ey(this._context);if(this.viewParts.push(s),e){var a=this._scrollbar.getOverviewRulerLayoutInfo();a.parent.insertBefore(e.getDomNode(),a.insertBefore);}this.linesContent.appendChild(n.getDomNode()),this.linesContent.appendChild(r.domNode),this.linesContent.appendChild(this.viewZones.domNode),this.linesContent.appendChild(this.viewLines.getDomNode()),this.linesContent.appendChild(this.contentWidgets.domNode),this.linesContent.appendChild(this.viewCursors.getDomNode()),this.overflowGuardContainer.appendChild(o.getDomNode()),this.overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this.overflowGuardContainer.appendChild(t.getDomNode()),this.overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this.overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this.overflowGuardContainer.appendChild(this.overlayWidgets.getDomNode()),this.overflowGuardContainer.appendChild(s.getDomNode()),this.domNode.appendChild(this.overflowGuardContainer),this.domNode.appendChild(this.contentWidgets.overflowingContentWidgetsDomNode);},t.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow();},t.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus();},getLastViewCursorsRenderData:function(){return e.viewCursors.getLastRenderData()||[];},shouldSuppressMouseDownOnViewZone:function(t){return e.viewZones.shouldSuppressMouseDownOnViewZone(t);},shouldSuppressMouseDownOnWidget:function(t){return e.contentWidgets.shouldSuppressMouseDownOnWidget(t);},getPositionFromDOMInfo:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(t,n);},visibleRangeForPosition2:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new Qt(t,n));},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t);}};},t.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new Qt(t,n));}};},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this.overflowGuardContainer.setWidth(e.width),this.overflowGuardContainer.setHeight(e.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6);},t.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.editor.editorClassName+" "+Fd(this._context.theme.type)+e;},t.prototype.onConfigurationChanged=function(e){return e.editorClassName&&this.domNode.setClassName(this.getEditorClassName()),e.layoutInfo&&this._setLayout(),!1;},t.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1;},t.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1;},t.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1;},t.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.pointerHandler.dispose(),this.viewLines.dispose();for(var t=0,n=this.viewParts.length;t<n;t++)this.viewParts[t].dispose();this.viewParts=[],e.prototype.dispose.call(this);},t.prototype._renderOnce=function(e){var t=sb(e);return this._scheduleRender(),t;},t.prototype._scheduleRender=function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=ri(this._onRenderScheduled.bind(this),100));},t.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow();},t.prototype._renderNow=function(){var e=this;sb(function(){return e._actualRender();});},t.prototype._getViewPartsToRender=function(){for(var e=[],t=0,n=0,i=this.viewParts.length;n<i;n++){var o=this.viewParts[n];o.shouldRender()&&(e[t++]=o);}return e;},t.prototype._actualRender=function(){if(function(e){for(;e;){if(e===document.body)return!0;e=e.parentNode;}return!1;}(this.domNode.domNode)){var e=this._getViewPartsToRender();if(this.viewLines.shouldRender()||0!==e.length){var t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);var n=new nb(this._cursor.getViewSelections(),t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(n),this.viewLines.shouldRender()&&(this.viewLines.renderText(n),this.viewLines.onDidRender(),e=this._getViewPartsToRender());for(var i=new Id(this._context.viewLayout,n,this.viewLines),o=0,r=e.length;o<r;o++){(s=e[o]).prepareRender(i);}for(o=0,r=e.length;o<r;o++){var s;(s=e[o]).render(i),s.onDidRender();}}}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e);},t.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop}),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft});},t.prototype.getOffsetForColumn=function(e,t){var n=this._context.model.validateModelPosition({lineNumber:e,column:t}),i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();var o=this.viewLines.visibleRangeForPosition(new Qt(i.lineNumber,i.column));return o?o.left:-1;},t.prototype.getTargetAtClientPoint=function(e,t){return this.pointerHandler.getTargetAtClientPoint(e,t);},t.prototype.createOverviewRuler=function(e){return new My(this._context,e);},t.prototype.change=function(e){var t=this,n=!1;return this._renderOnce(function(){var i={addZone:function(e){return n=!0,t.viewZones.addZone(e);},removeZone:function(e){e&&(n=t.viewZones.removeZone(e)||n);},layoutZone:function(e){e&&(n=t.viewZones.layoutZone(e)||n);}};!function(e,t){try{e(t);}catch(e){a(e);}}(e,i),i.addZone=ob,i.removeZone=ob,i.layoutZone=ob,n&&(t._context.viewLayout.onHeightMaybeChanged(),t._context.privateViewEventBus.emit(new _g()));}),n;},t.prototype.render=function(e,t){if(t){this.viewLines.forceShouldRender();for(var n=0,i=this.viewParts.length;n<i;n++){this.viewParts[n].forceShouldRender();}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender();},t.prototype.focus=function(){this._textAreaHandler.focusTextArea();},t.prototype.isFocused=function(){return this._textAreaHandler.isFocused();},t.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender();},t.prototype.layoutContentWidget=function(e){var t=e.position?e.position.position:null,n=e.position?e.position.range:null,i=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,t,n,i),this._scheduleRender();},t.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender();},t.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender();},t.prototype.layoutOverlayWidget=function(e){var t=e.position?e.position.preference:null;this.overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender();},t.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender();},t;}(Sd);function sb(e){try{return e();}catch(e){a(e);}}var ab=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ub=function(e){function t(t){var n=e.call(this)||this;return n.onDidScroll=null,n.onDidGainFocus=null,n.onDidLoseFocus=null,n.onKeyDown=null,n.onKeyUp=null,n.onContextMenu=null,n.onMouseMove=null,n.onMouseLeave=null,n.onMouseUp=null,n.onMouseDown=null,n.onMouseDrag=null,n.onMouseDrop=null,n._viewModel=t,n;}return ab(t,e),t.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e);},t.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0);},t.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0);},t.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e);},t.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e);},t.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e));},t.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e));},t.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e));},t.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e));},t.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e));},t.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e));},t.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e));},t.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e;},t.prototype._convertViewToModelMouseTarget=function(e){return new lb(e.element,e.type,e.mouseColumn,e.position?this._convertViewToModelPosition(e.position):null,e.range?this._convertViewToModelRange(e.range):null,e.detail);},t.prototype._convertViewToModelPosition=function(e){return this._viewModel.coordinatesConverter.convertViewPositionToModelPosition(e);},t.prototype._convertViewToModelRange=function(e){return this._viewModel.coordinatesConverter.convertViewRangeToModelRange(e);},t;}(y),lb=function(){function e(e,t,n,i,o,r){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,this.range=o,this.detail=r;}return e.prototype.toString=function(){return eh.toString(this);},e;}(),cb=function(){function e(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new h_(new Jt(1,1,1,1),0,new Qt(1,1),0),new h_(new Jt(1,1,1,1),0,new Qt(1,1),0));}return e.prototype.dispose=function(e){this._removeTrackedRange(e);},e.prototype.startTrackingSelection=function(e){this._trackSelection=!0,this._updateTrackedRange(e);},e.prototype.stopTrackingSelection=function(e){this._trackSelection=!1,this._removeTrackedRange(e);},e.prototype._updateTrackedRange=function(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0));},e.prototype._removeTrackedRange=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0);},e.prototype.asCursorState=function(){return new m_(this.modelState,this.viewState);},e.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new tn(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new tn(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn);},e.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState);},e.prototype.setState=function(e,t,n){this._setState(e,t,n);},e.prototype._setState=function(e,t,n){if(t){r=e.model.validateRange(t.selectionStart);var i=t.selectionStart.equalsRange(r)?t.selectionStartLeftoverVisibleColumns:0,o=(s=e.model.validatePosition(t.position),t.position.equals(s)?t.leftoverVisibleColumns:0);t=new h_(r,i,s,o);}else{if(!n)return;var r=e.model.validateRange(e.convertViewRangeToModelRange(n.selectionStart)),s=e.model.validatePosition(e.convertViewPositionToModelPosition(n.position.lineNumber,n.position.column));t=new h_(r,n.selectionStartLeftoverVisibleColumns,s,n.leftoverVisibleColumns);}if(n){l=e.validateViewRange(n.selectionStart,t.selectionStart),c=e.validateViewPosition(n.position,t.position);n=new h_(l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns);}else{var a=e.convertModelPositionToViewPosition(new Qt(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),u=e.convertModelPositionToViewPosition(new Qt(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),l=new Jt(a.lineNumber,a.column,u.lineNumber,u.column),c=e.convertModelPositionToViewPosition(t.position);n=new h_(l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns);}this.modelState=t,this.viewState=n,this._updateTrackedRange(e);},e;}(),db=function(){function e(e){this.context=e,this.primaryCursor=new cb(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0;}return e.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors();},e.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context);},e.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context);},e.prototype.updateContext=function(e){this.context=e;},e.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context);},e.prototype.readSelectionFromMarkers=function(){var e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e;},e.prototype.getAll=function(){var e=[];e[0]=this.primaryCursor.asCursorState();for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e;},e.prototype.getViewPositions=function(){var e=[];e[0]=this.primaryCursor.viewState.position;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e;},e.prototype.getSelections=function(){var e=[];e[0]=this.primaryCursor.modelState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e;},e.prototype.getViewSelections=function(){var e=[];e[0]=this.primaryCursor.viewState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e;},e.prototype.setSelections=function(e){this.setStates(m_.fromModelSelections(e));},e.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState();},e.prototype.setStates=function(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)));},e.prototype._setSecondaryStates=function(e){var t=this.secondaryCursors.length,n=e.length;if(t<n)for(var i=n-t,o=0;o<i;o++)this._addSecondaryCursor();else if(t>n){var r=t-n;for(o=0;o<r;o++)this._removeSecondaryCursor(this.secondaryCursors.length-1);}for(o=0;o<n;o++)this.secondaryCursors[o].setState(this.context,e[o].modelState,e[o].viewState);},e.prototype.killSecondaryCursors=function(){this._setSecondaryStates([]);},e.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new cb(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length;},e.prototype.getLastAddedCursorIndex=function(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex;},e.prototype._removeSecondaryCursor=function(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1);},e.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t];return e;},e.prototype.normalize=function(){if(0!==this.secondaryCursors.length){for(var e=this._getAll(),t=[],n=0,i=e.length;n<i;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort(function(e,t){return e.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber;});for(var o=0;o<t.length-1;o++){var r=t[o],s=t[o+1],a=r.selection,u=s.selection;if(this.context.config.multiCursorMergeOverlapping){if(u.isEmpty()||a.isEmpty()?u.getStartPosition().isBeforeOrEqual(a.getEndPosition()):u.getStartPosition().isBefore(a.getEndPosition())){var l=r.index<s.index?o:o+1,c=r.index<s.index?o+1:o,d=t[c].index,h=t[l].index,p=t[c].selection,f=t[l].selection;if(!p.equalsSelection(f)){var g=p.plusRange(f),m=p.selectionStartLineNumber===p.startLineNumber&&p.selectionStartColumn===p.startColumn,_=f.selectionStartLineNumber===f.startLineNumber&&f.selectionStartColumn===f.startColumn,v=void 0;d===this.lastAddedCursorIndex?(v=m,this.lastAddedCursorIndex=h):v=_;var y=void 0;y=v?new tn(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new tn(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn),t[l].selection=y;var b=m_.fromModelSelection(y);e[h].setState(this.context,b.modelState,b.viewState);}for(var C=0;C<t.length;C++)t[C].index>d&&t[C].index--;e.splice(d,1),t.splice(c,1),this._removeSecondaryCursor(d-1),o--;}}}}},e;}(),hb=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();var pb=function(){return function(e,t,n){this.selections=e,this.source=t,this.reason=n;};}(),fb=function(){function e(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll();}return e.prototype.equals=function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0;},e;}(),gb=function(e){function t(t,n,i){var o=e.call(this)||this;o._onDidReachMaxCursorCount=o._register(new N()),o.onDidReachMaxCursorCount=o._onDidReachMaxCursorCount.event,o._onDidAttemptReadOnlyEdit=o._register(new N()),o.onDidAttemptReadOnlyEdit=o._onDidAttemptReadOnlyEdit.event,o._onDidChange=o._register(new N()),o.onDidChange=o._onDidChange.event,o._configuration=t,o._model=n,o._knownModelVersionId=o._model.getVersionId(),o._viewModel=i,o.context=new p_(o._configuration,o._model,o._viewModel),o._cursors=new db(o.context),o._isHandling=!1,o._isDoingComposition=!1,o._columnSelectData=null,o._prevEditOperationType=0,o._register(o._model.onDidChangeRawContent(function(e){if(o._knownModelVersionId=e.versionId,!o._isHandling){var t=e.containsEvent(1);o._onModelContentChanged(t);}})),o._register(i.addEventListener(function(e){(function(e){for(var t=0,n=e.length;t<n;t++)if(6===e[t].type)return!0;return!1;})(e)&&o._knownModelVersionId===o._model.getVersionId()&&o.setStates("viewModel",0,o.getAll());}));var r=function(){o.context=new p_(o._configuration,o._model,o._viewModel),o._cursors.updateContext(o.context);};return o._register(o._model.onDidChangeLanguage(function(e){r();})),o._register(o._model.onDidChangeLanguageConfiguration(function(){r();})),o._register(o._model.onDidChangeOptions(function(){r();})),o._register(o._configuration.onDidChange(function(e){d_.shouldRecreate(e)&&r();})),o;}return hb(t,e),t.prototype.dispose=function(){this._cursors.dispose(),e.prototype.dispose.call(this);},t.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor();},t.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex();},t.prototype.getAll=function(){return this._cursors.getAll();},t.prototype.setStates=function(e,n,i){null!==i&&i.length>t.MAX_CURSOR_COUNT&&(i=i.slice(0,t.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var o=new fb(this._model,this);this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._emitStateChangedIfNecessary(e,n,o);},t.prototype.setColumnSelectData=function(e){this._columnSelectData=e;},t.prototype.reveal=function(e,t,n){this._revealRange(t,0,e,n);},t.prototype.revealRange=function(e,t,n,i){this.emitCursorRevealRange(t,n,e,i);},t.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e});},t.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),n=0,i=t.length;n<i;n++){var o=t[n];e.push({inSelectionMode:!o.isEmpty(),selectionStart:{lineNumber:o.selectionStartLineNumber,column:o.selectionStartColumn},position:{lineNumber:o.positionLineNumber,column:o.positionColumn}});}return e;},t.prototype.restoreState=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n],r=1,s=1;o.position&&o.position.lineNumber&&(r=o.position.lineNumber),o.position&&o.position.column&&(s=o.position.column);var a=r,u=s;o.selectionStart&&o.selectionStart.lineNumber&&(a=o.selectionStart.lineNumber),o.selectionStart&&o.selectionStart.column&&(u=o.selectionStart.column),t.push({selectionStartLineNumber:a,selectionStartColumn:u,positionLineNumber:r,positionColumn:s});}this.setStates("restoreState",0,m_.fromModelSelections(t)),this.reveal(!0,0,1);},t.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new db(this.context),this._emitStateChangedIfNecessary("model",1,null);else{var t=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,m_.fromModelSelections(t));}},t.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection;},t.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor().viewState.position;return{toViewLineNumber:e.lineNumber,toViewVisualColumn:v_.visibleColumnFromColumn2(this.context.config,this.context.viewModel,e)};},t.prototype.getSelections=function(){return this._cursors.getSelections();},t.prototype.getViewSelections=function(){return this._cursors.getViewSelections();},t.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position;},t.prototype.setSelections=function(e,t){this.setStates(e,0,m_.fromModelSelections(t));},t.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType;},t.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e;},t.prototype._executeEditOperation=function(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=mb.executeCommands(this._model,this._cursors.getSelections(),e.commands);t&&(this._interpretCommandResult(t),this._prevEditOperationType=e.type),e.shouldPushStackElementAfter&&this._model.pushStackElement();}},t.prototype._interpretCommandResult=function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize();},t.prototype._emitStateChangedIfNecessary=function(e,t,n){var i=new fb(this._model,this);if(i.equals(n))return!1;var o=this._cursors.getSelections(),r=this._cursors.getViewSelections();try{this._beginEmit().emit(new og(r));}finally{this._endEmit();}return n&&n.cursorState.length===i.cursorState.length&&!i.cursorState.some(function(e,t){return!e.modelState.equals(n.cursorState[t].modelState);})||this._onDidChange.fire(new pb(o,e||"keyboard",t)),!0;},t.prototype._revealRange=function(e,t,n,i){var o=this._cursors.getViewPositions(),r=o[0];if(1===e)for(var s=1;s<o.length;s++)o[s].isBefore(r)&&(r=o[s]);else if(2===e)for(s=1;s<o.length;s++)r.isBeforeOrEqual(o[s])&&(r=o[s]);else if(o.length>1)return;var a=new Jt(r.lineNumber,r.column,r.lineNumber,r.column);this.emitCursorRevealRange(a,t,n,i);},t.prototype.emitCursorRevealRange=function(e,t,n,i){try{this._beginEmit().emit(new hg(e,t,n,i));}finally{this._endEmit();}},t.prototype.trigger=function(e,t,n){var i=hr;if(t!==i.CompositionStart){if(t===i.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.editor.readOnly)this._onDidAttemptReadOnlyEdit.fire(void 0);else{var o=new fb(this._model,this),r=0;t!==i.Undo&&t!==i.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case i.Type:this._type(e,n.text);break;case i.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case i.Paste:r=4,this._paste(n.text,n.pasteOnNewLine,n.multicursorText);break;case i.Cut:this._cut();break;case i.Undo:r=5,this._interpretCommandResult(this._model.undo());break;case i.Redo:r=6,this._interpretCommandResult(this._model.redo());break;case i.ExecuteCommand:this._externalExecuteCommand(n);break;case i.ExecuteCommands:this._externalExecuteCommands(n);break;case i.CompositionEnd:this._interpretCompositionEnd(e);}}catch(e){a(e);}this._isHandling=!1,t!==i.Undo&&t!==i.Redo&&this._cursors.startTrackingSelections(),this._emitStateChangedIfNecessary(e,r,o)&&this._revealRange(0,0,!0,0);}}else this._isDoingComposition=!0;},t.prototype._interpretCompositionEnd=function(e){this._isDoingComposition||"keyboard"!==e||this._executeEditOperation(W_.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections()));},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(W_.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=0,i=t.length;n<i;n++){var o=void 0;bo(t.charCodeAt(n))&&n+1<i?(o=t.charAt(n)+t.charAt(n+1),n++):o=t.charAt(n),this._executeEditOperation(W_.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),o));}},t.prototype._replacePreviousChar=function(e,t){this._executeEditOperation(W_.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,t));},t.prototype._paste=function(e,t,n){this._executeEditOperation(W_.paste(this.context.config,this.context.model,this.getSelections(),e,t,n));},t.prototype._cut=function(){this._executeEditOperation(T_.cut(this.context.config,this.context.model,this.getSelections()));},t.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new __(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}));},t.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new __(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}));},t.MAX_CURSOR_COUNT=1e4,t;}(yg),mb=function(){function e(){}return e.executeCommands=function(e,t,n){for(var i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(i,n),r=0,s=i.trackedRanges.length;r<s;r++)i.model._setTrackedRange(i.trackedRanges[r],null,0);return o;},e._innerExecuteCommands=function(e,t){if(this._arrayIsEmpty(t))return null;var n=this._getEditOperations(e,t);if(0===n.operations.length)return null;var i=n.operations,o=this._getLoserCursorMap(i);if(o.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var r=[],s=0,a=i.length;s<a;s++)o.hasOwnProperty(i[s].identifier.major.toString())||r.push(i[s]);n.hadTrackedEditOperation&&r.length>0&&(r[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,r,function(n){for(var i=[],o=0;o<e.selectionsBefore.length;o++)i[o]=[];for(o=0;o<n.length;o++){var r=n[o];r.identifier&&i[r.identifier.major].push(r);}var s=function(e,t){return e.identifier.minor-t.identifier.minor;},a=[],u=function(n){i[n].length>0?(i[n].sort(s),a[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return i[n];},getTrackedSelection:function(t){var n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new tn(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new tn(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn);}})):a[n]=e.selectionsBefore[n];};for(o=0;o<e.selectionsBefore.length;o++)u(o);return a;});u||(u=e.selectionsBefore);var l=[];for(var c in o)o.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort(function(e,t){return t-e;});for(s=0;s<l.length;s++)u.splice(l[s],1);return u;},e._arrayIsEmpty=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0;},e._getEditOperations=function(e,t){for(var n=[],i=!1,o=0,r=t.length;o<r;o++){var s=t[o];if(s){var a=this._getEditOperationsFromCommand(e,o,s);n=n.concat(a.operations),i=i||a.hadTrackedEditOperation;}}return{operations:n,hadTrackedEditOperation:i};},e._getEditOperationsFromCommand=function(e,t,n){var i=[],o=0,r=function(e,r){e.isEmpty()&&""===r||i.push({identifier:{major:t,minor:o++},range:e,text:r,forceMoveMarkers:!1,isAutoWhitespaceEdit:n.insertsAutoWhitespace});},s=!1,u={addEditOperation:r,addTrackedEditOperation:function(e,t){s=!0,r(e,t);},trackSelection:function(t,n){var i;if(t.isEmpty()){if("boolean"==typeof n)i=n?2:3;else{var o=e.model.getLineMaxColumn(t.startLineNumber);i=t.startColumn===o?2:3;}}else i=1;var r=e.trackedRanges.length,s=e.model._setTrackedRange(null,t,i);return e.trackedRanges[r]=s,e.trackedRangesDirection[r]=t.getDirection(),r.toString();}};try{n.getEditOperations(e.model,u);}catch(e){return e.friendlyMessage=ie("corrupt.commands","Unexpected exception while executing command."),a(e),{operations:[],hadTrackedEditOperation:!1};}return{operations:i,hadTrackedEditOperation:s};},e._getLoserCursorMap=function(e){(e=e.slice(0)).sort(function(e,t){return-Jt.compareRangesUsingEnds(e.range,t.range);});for(var t={},n=1;n<e.length;n++){var i=e[n-1],o=e[n];if(i.range.getStartPosition().isBefore(o.range.getEndPosition())){var r=void 0;t[(r=i.identifier.major>o.identifier.major?i.identifier.major:o.identifier.major).toString()]=!0;for(var s=0;s<e.length;s++)e[s].identifier.major===r&&(e.splice(s,1),s<n&&n--,s--);n>0&&n--;}}return t;},e;}(),_b=function(){function e(e,t,n,i,o,r){this.id=e,this.label=t,this.alias=n,this._precondition=i,this._run=o,this._contextKeyService=r;}return e.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition);},e.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var e=this._run();return e||Promise.resolve(void 0);},e;}(),vb={getInitialState:function(){return Ts;},tokenize2:function(e,t,n){return ks(0,0,t,n);}};function yb(e,t){return void 0===t&&(t=vb),function(e,t){for(var n='<div class="monaco-tokenized-source">',i=e.split(/\r\n|\r|\n/),o=t.getInitialState(),r=0,s=i.length;r<s;r++){var a=i[r];r>0&&(n+="<br/>");var u=t.tokenize2(a,o,0);ru.convertToEndOffset(u.tokens,a.length);for(var l=new ru(u.tokens,a),c=l.inflate(),d=0,h=0,p=c.getCount();h<p;h++){var f=c.getClassName(h),g=c.getEndOffset(h);n+='<span class="'+f+'">'+no(a.substring(d,g))+"</span>",d=g;}o=u.endState;}return n+="</div>";}(e,t||vb);}function bb(e,t,n,i,o,r){for(var s="<div>",a=i,u=0,l=0,c=t.getCount();l<c;l++){var d=t.getEndOffset(l);if(!(d<=i)){for(var h="";a<d&&a<o;a++){var p=e.charCodeAt(a);switch(p){case 9:var f=r-(a+u)%r;for(u+=f-1;f>0;)h+=" ",f--;break;case 60:h+="<";break;case 62:h+=">";break;case 38:h+="&";break;case 0:h+="�";break;case 65279:case 8232:h+="<22>";break;case 13:h+="​";break;default:h+=String.fromCharCode(p);}}if(s+='<span style="'+t.getInlineStyle(l,n)+'">'+h+"</span>",d>o||a>=o)break;}}return s+="</div>";}var Cb=function(){function e(){this._heights=[],this._minWidths=[],this._ids=[],this._afterLineNumbers=[],this._ordinals=[],this._prefixSum=[],this._prefixSumValidIndex=-1,this._whitespaceId2Index={},this._lastWhitespaceId=0,this._minWidth=-1;}return e.findInsertionIndex=function(e,t,n,i){for(var o=0,r=e.length;o<r;){var s=o+r>>>1;t===e[s]?i<n[s]?r=s:o=s+1:t<e[s]?r=s:o=s+1;}return o;},e.prototype.insertWhitespace=function(t,n,i,o){t|=0,n|=0,i|=0,o|=0;var r=++this._lastWhitespaceId,s=e.findInsertionIndex(this._afterLineNumbers,t,this._ordinals,n);return this._insertWhitespaceAtIndex(r,s,t,n,i,o),this._minWidth=-1,r;},e.prototype._insertWhitespaceAtIndex=function(e,t,n,i,o,r){e|=0,t|=0,n|=0,i|=0,o|=0,r|=0,this._heights.splice(t,0,o),this._minWidths.splice(t,0,r),this._ids.splice(t,0,e),this._afterLineNumbers.splice(t,0,n),this._ordinals.splice(t,0,i),this._prefixSum.splice(t,0,0);for(var s=Object.keys(this._whitespaceId2Index),a=0,u=s.length;a<u;a++){var l=s[a],c=this._whitespaceId2Index[l];c>=t&&(this._whitespaceId2Index[l]=c+1);}this._whitespaceId2Index[e.toString()]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1);},e.prototype.changeWhitespace=function(e,t,n){e|=0,t|=0,n|=0;var i=!1;return i=this.changeWhitespaceHeight(e,n)||i,i=this.changeWhitespaceAfterLineNumber(e,t)||i;},e.prototype.changeWhitespaceHeight=function(e,t){t|=0;var n=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(n)){var i=this._whitespaceId2Index[n];if(this._heights[i]!==t)return this._heights[i]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1),!0;}return!1;},e.prototype.changeWhitespaceAfterLineNumber=function(t,n){n|=0;var i=(t|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(i)){var o=this._whitespaceId2Index[i];if(this._afterLineNumbers[o]!==n){var r=this._ordinals[o],s=this._heights[o],a=this._minWidths[o];this.removeWhitespace(t);var u=e.findInsertionIndex(this._afterLineNumbers,n,this._ordinals,r);return this._insertWhitespaceAtIndex(t,u,n,r,s,a),!0;}}return!1;},e.prototype.removeWhitespace=function(e){var t=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(t)){var n=this._whitespaceId2Index[t];return delete this._whitespaceId2Index[t],this._removeWhitespaceAtIndex(n),this._minWidth=-1,!0;}return!1;},e.prototype._removeWhitespaceAtIndex=function(e){e|=0,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),n=0,i=t.length;n<i;n++){var o=t[n],r=this._whitespaceId2Index[o];r>=e&&(this._whitespaceId2Index[o]=r-1);}},e.prototype.onLinesDeleted=function(e,t){e|=0,t|=0;for(var n=0,i=this._afterLineNumbers.length;n<i;n++){var o=this._afterLineNumbers[n];e<=o&&o<=t?this._afterLineNumbers[n]=e-1:o>t&&(this._afterLineNumbers[n]-=t-e+1);}},e.prototype.onLinesInserted=function(e,t){e|=0,t|=0;for(var n=0,i=this._afterLineNumbers.length;n<i;n++){e<=this._afterLineNumbers[n]&&(this._afterLineNumbers[n]+=t-e+1);}},e.prototype.getTotalHeight=function(){return 0===this._heights.length?0:this.getAccumulatedHeight(this._heights.length-1);},e.prototype.getAccumulatedHeight=function(e){e|=0;var t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._prefixSum[0]=this._heights[0],t++);for(var n=t;n<=e;n++)this._prefixSum[n]=this._prefixSum[n-1]+this._heights[n];return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._prefixSum[e];},e.prototype.getAccumulatedHeightBeforeLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getAccumulatedHeight(t);},e.prototype._findLastWhitespaceBeforeLineNumber=function(e){e|=0;for(var t=this._afterLineNumbers,n=0,i=t.length-1;n<=i;){var o=n+((i-n|0)/2|0)|0;if(t[o]<e){if(o+1>=t.length||t[o+1]>=e)return o;n=o+1|0;}else i=o-1|0;}return-1;},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._heights.length?t:-1;},e.prototype.getFirstWhitespaceIndexAfterLineNumber=function(e){return e|=0,this._findFirstWhitespaceAfterLineNumber(e);},e.prototype.getCount=function(){return this._heights.length;},e.prototype.getMinWidth=function(){if(-1===this._minWidth){for(var e=0,t=0,n=this._minWidths.length;t<n;t++)e=Math.max(e,this._minWidths[t]);this._minWidth=e;}return this._minWidth;},e.prototype.getAfterLineNumberForWhitespaceIndex=function(e){return e|=0,this._afterLineNumbers[e];},e.prototype.getIdForWhitespaceIndex=function(e){return e|=0,this._ids[e];},e.prototype.getHeightForWhitespaceIndex=function(e){return e|=0,this._heights[e];},e.prototype.getWhitespaces=function(e){e|=0;for(var t=[],n=0;n<this._heights.length;n++)t.push({id:this._ids[n],afterLineNumber:this._afterLineNumbers[n],heightInLines:this._heights[n]/e});return t;},e;}(),wb=function(){function e(e,t){this._lineCount=e,this._lineHeight=t,this._whitespaces=new Cb();}return e.prototype.setLineHeight=function(e){this._lineHeight=e;},e.prototype.onFlushed=function(e){this._lineCount=e;},e.prototype.insertWhitespace=function(e,t,n,i){return this._whitespaces.insertWhitespace(e,t,n,i);},e.prototype.changeWhitespace=function(e,t,n){return this._whitespaces.changeWhitespace(e,t,n);},e.prototype.removeWhitespace=function(e){return this._whitespaces.removeWhitespace(e);},e.prototype.onLinesDeleted=function(e,t){this._lineCount-=t-e+1,this._whitespaces.onLinesDeleted(e,t);},e.prototype.onLinesInserted=function(e,t){this._lineCount+=t-e+1,this._whitespaces.onLinesInserted(e,t);},e.prototype.getLinesTotalHeight=function(){return this._lineHeight*this._lineCount+this._whitespaces.getTotalHeight();},e.prototype.getVerticalOffsetForLineNumber=function(e){return((e|=0)>1?this._lineHeight*(e-1):0)+this._whitespaces.getAccumulatedHeightBeforeLineNumber(e);},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e);},e.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth();},e.prototype.isAfterLines=function(e){return e>this.getLinesTotalHeight();},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if((e|=0)<0)return 1;for(var t=0|this._lineCount,n=this._lineHeight,i=1,o=t;i<o;){var r=(i+o)/2|0,s=0|this.getVerticalOffsetForLineNumber(r);if(e>=s+n)i=r+1;else{if(e>=s)return r;o=r;}}return i>t?t:i;},e.prototype.getLinesViewportData=function(e,t){e|=0,t|=0;var n,i,o=this._lineHeight,r=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(r),a=0|this._lineCount,u=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(r),l=0|this._whitespaces.getCount();-1===u?(u=l,i=a+1,n=0):(i=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));var c=s,d=c,h=0;s>=5e5&&(h=5e5*Math.floor(s/5e5),d-=h=Math.floor(h/o)*o);for(var p=[],f=e+(t-e)/2,g=-1,m=r;m<=a;m++){if(-1===g){(c<=f&&f<c+o||c>f)&&(g=m);}for(c+=o,p[m-r]=d,d+=o;i===m;)d+=n,c+=n,++u>=l?i=a+1:(i=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));if(c>=t){a=m;break;}}-1===g&&(g=a);var _=0|this.getVerticalOffsetForLineNumber(a),v=r,y=a;return v<y&&s<e&&v++,v<y&&_+o>t&&y--,{bigNumbersDelta:h,startLineNumber:r,endLineNumber:a,relativeVerticalOffset:p,centeredLineNumber:g,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:y};},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e|=0;var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e);return(t>=1?this._lineHeight*t:0)+(e>0?this._whitespaces.getAccumulatedHeight(e-1):0);},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,n,i=0,o=this._whitespaces.getCount()-1;if(o<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(o)+this._whitespaces.getHeightForWhitespaceIndex(o))return-1;for(;i<o;)if(t=Math.floor((i+o)/2),e>=(n=this.getVerticalOffsetForWhitespaceIndex(t))+this._whitespaces.getHeightForWhitespaceIndex(t))i=t+1;else{if(e>=n)return t;o=t;}return i;},e.prototype.getWhitespaceAtVerticalOffset=function(e){e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var i=this._whitespaces.getHeightForWhitespaceIndex(t);return{id:this._whitespaces.getIdForWhitespaceIndex(t),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:i};},e.prototype.getWhitespaceViewportData=function(e,t){e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this._whitespaces.getCount()-1;if(n<0)return[];for(var o=[],r=n;r<=i;r++){var s=this.getVerticalOffsetForWhitespaceIndex(r),a=this._whitespaces.getHeightForWhitespaceIndex(r);if(s>=t)break;o.push({id:this._whitespaces.getIdForWhitespaceIndex(r),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:s,height:a});}return o;},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight);},e;}(),Sb=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),xb=function(e){function t(t,n,i){var o=e.call(this)||this;return o._configuration=t,o._linesLayout=new wb(n,o._configuration.editor.lineHeight),o.scrollable=o._register(new Av(0,i)),o._configureSmoothScrollDuration(),o.scrollable.setScrollDimensions({width:t.editor.layoutInfo.contentWidth,height:t.editor.layoutInfo.contentHeight}),o.onDidScroll=o.scrollable.onScroll,o._updateHeight(),o;}return Sb(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype.onHeightMaybeChanged=function(){this._updateHeight();},t.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?125:0);},t.prototype.onConfigurationChanged=function(e){e.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight),e.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight}),e.viewInfo&&this._configureSmoothScrollDuration(),this._updateHeight();},t.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e);},t.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t);},t.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t);},t.prototype._getHorizontalScrollbarHeight=function(e){return 2===this._configuration.editor.viewInfo.scrollbar.horizontal?0:e.width>=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize;},t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?t+=e.height-this._configuration.editor.lineHeight:t+=this._getHorizontalScrollbarHeight(e),Math.max(e.height,t);},t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()});},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new Su(t.scrollTop,t.scrollLeft,e.width,e.height);},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new Su(t.scrollTop,t.scrollLeft,e.width,e.height);},t.prototype._computeScrollWidth=function(e,t){if(!this._configuration.editor.wrappingInfo.isViewportWrapping){var n=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,i=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+n,t,i);}return Math.max(e,t);},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight();},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft};},t.prototype.addWhitespace=function(e,t,n,i){return this._linesLayout.insertWhitespace(e,t,n,i);},t.prototype.changeWhitespace=function(e,t,n){return this._linesLayout.changeWhitespace(e,t,n);},t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e);},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e);},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e);},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e);},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e);},t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height);},t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height);},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height);},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces();},t.prototype.getScrollWidth=function(){return this.scrollable.getScrollDimensions().scrollWidth;},t.prototype.getScrollHeight=function(){return this.scrollable.getScrollDimensions().scrollHeight;},t.prototype.getCurrentScrollLeft=function(){return this.scrollable.getCurrentScrollPosition().scrollLeft;},t.prototype.getCurrentScrollTop=function(){return this.scrollable.getCurrentScrollPosition().scrollTop;},t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e);},t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e);},t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e);},t.prototype.deltaScrollNow=function(e,t){var n=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t});},t;}(y),Eb=function(){return function(e,t){this.outputLineIndex=e,this.outputOffset=t;};}(),Lb=function(){function e(e){this._lines=e;}return e.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column);},e.prototype.convertViewRangeToModelRange=function(e){var t=this._lines.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Jt(t.lineNumber,t.column,n.lineNumber,n.column);},e.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t);},e.prototype.validateViewRange=function(e,t){var n=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Jt(n.lineNumber,n.column,i.lineNumber,i.column);},e.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column);},e.prototype.convertModelRangeToViewRange=function(e){var t=this._lines.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this._lines.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new Jt(t.lineNumber,t.column,n.lineNumber,n.column);},e.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column);},e;}(),Tb=function(){function e(e,t,n,i,o,r){this.model=e,this._validModelVersionId=-1,this.tabSize=n,this.wrappingColumn=i,this.columnsForFullWidthChar=o,this.wrappingIndent=r,this.linePositionMapperFactory=t,this._constructLines(!0);}return e.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[]);},e.prototype.createCoordinatesConverter=function(){return new Lb(this);},e.prototype._ensureValidState=function(){if(this.model.getVersionId()!==this._validModelVersionId)throw new Error("ViewModel is out of sync with Model!");this.lines.length!==this.model.getLineCount()&&this._constructLines(!1);},e.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var n=this.model.getLinesContent(),i=n.length,o=new Uint32Array(i),r=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e);}).sort(Jt.compareRangesUsingStarts),s=1,a=0,u=-1,l=u+1<r.length?a+1:i+2,c=0;c<i;c++){var d=c+1;d===l&&(s=r[++u].startLineNumber,a=r[u].endLineNumber,l=u+1<r.length?a+1:i+2);var h=d>=s&&d<=a,p=Ob(this.linePositionMapperFactory,n[c],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!h);o[c]=p.getViewLineCount(),this.lines[c]=p;}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new ka(o);},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map(function(t){return e.model.getDecorationRange(t);});},e.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var n=e.map(function(e){return t.model.validateRange(e);}).sort(Jt.compareRangesUsingStarts),i=[],o=n[0].startLineNumber,r=n[0].endLineNumber,s=1,a=n.length;s<a;s++){var u=n[s];u.startLineNumber>r+1?(i.push(new Jt(o,1,r,1)),o=u.startLineNumber,r=u.endLineNumber):u.endLineNumber>r&&(r=u.endLineNumber);}return i.push(new Jt(o,1,r,1)),i;},e.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),i=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e);}).sort(Jt.compareRangesUsingStarts);if(n.length===i.length){for(var o=!1,r=0;r<n.length;r++)if(!n[r].equalsRange(i[r])){o=!0;break;}if(!o)return!1;}var s=[];for(r=0;r<n.length;r++)s.push({range:n[r],options:i_.EMPTY});this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,s);var a=n,u=1,l=0,c=-1,d=c+1<a.length?l+1:this.lines.length+2,h=!1;for(r=0;r<this.lines.length;r++){var p=r+1;p===d&&(u=a[++c].startLineNumber,l=a[c].endLineNumber,d=c+1<a.length?l+1:this.lines.length+2);var f=!1;if(p>=u&&p<=l?this.lines[r].isVisible()&&(this.lines[r]=this.lines[r].setVisible(!1),f=!0):(h=!0,this.lines[r].isVisible()||(this.lines[r]=this.lines[r].setVisible(!0),f=!0)),f){var g=this.lines[r].getViewLineCount();this.prefixSumComputer.changeValue(r,g);}}return h||this.setHiddenAreas([]),!0;},e.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible();},e.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1),!0);},e.prototype.setWrappingSettings=function(e,t,n){return(this.wrappingIndent!==e||this.wrappingColumn!==t||this.columnsForFullWidthChar!==n)&&(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=n,this._constructLines(!1),!0);},e.prototype.onModelFlushed=function(){this._constructLines(!0);},e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new cg(i,o);},e.prototype.onModelLinesInserted=function(e,t,n,i){if(e<=this._validModelVersionId)return null;for(var o=this.getHiddenAreas(),r=!1,s=new Qt(t,1),a=0;a<o.length;a++)if(o[a].containsPosition(s)){r=!0;break;}for(var u=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,l=0,c=[],d=new Uint32Array(i.length),h=(a=0,i.length);a<h;a++){var p=Ob(this.linePositionMapperFactory,i[a],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!r);c.push(p);var f=p.getViewLineCount();l+=f,d[a]=f;}return this.lines=this.lines.slice(0,t-1).concat(c).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,d),new dg(u,u+l-1);},e.prototype.onModelLineChanged=function(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];var i=t-1,o=this.lines[i].getViewLineCount(),r=this.lines[i].isVisible(),s=Ob(this.linePositionMapperFactory,n,this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,r);this.lines[i]=s;var a=this.lines[i].getViewLineCount(),u=!1,l=0,c=-1,d=0,h=-1,p=0,f=-1;return o>a?(f=(p=(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+a-1)+1)+(o-a)-1,u=!0):o<a?(h=(d=(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+o-1)+1)+(a-o)-1,u=!0):c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+a-1,this.prefixSumComputer.changeValue(i,a),[u,l<=c?new lg(l,c):null,d<=h?new dg(d,h):null,p<=f?new cg(p,f):null];},e.prototype.acceptVersionId=function(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([]);},e.prototype.getViewLineCount=function(){return this._ensureValidState(),this.prefixSumComputer.getTotalValue();},e.prototype._toValidViewLineNumber=function(e){if(e<1)return 1;var t=this.getViewLineCount();return e>t?t:e;},e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1);},e.prototype.getActiveIndentGuide=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.getActiveIndentGuide(i.lineNumber,o.lineNumber,r.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),u=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:u.lineNumber,indent:s.indent};},e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),o=[],r=[],s=[],a=n.lineNumber-1,u=i.lineNumber-1,l=null,c=a;c<=u;c++){var d=this.lines[c];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,c===a?n.column:1),p=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(c+1)),f=0;(C=p-h+1)>1&&1===d.getViewLineMinColumn(this.model,c+1,p)&&(f=0===h?1:2),r.push(C),s.push(f),null===l&&(l=new Qt(c+1,0));}else null!==l&&(o=o.concat(this.model.getLinesIndentGuides(l.lineNumber,c)),l=null);}null!==l&&(o=o.concat(this.model.getLinesIndentGuides(l.lineNumber,i.lineNumber)),l=null);for(var g=t-e+1,m=new Array(g),_=0,v=0,y=o.length;v<y;v++){var b=o[v],C=Math.min(g-_,r[v]),w=void 0;w=2===(f=s[v])?0:1===f?1:C;for(var S=0;S<C;S++)S===w&&(b=0),m[_++]=b;}return m;},e.prototype.getViewLineContent=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,i);},e.prototype.getViewLineLength=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,i);},e.prototype.getViewLineMinColumn=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,i);},e.prototype.getViewLineMaxColumn=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,i);},e.prototype.getViewLineData=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,i);},e.prototype.getViewLinesData=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var i=this.prefixSumComputer.getIndexOf(e-1),o=e,r=i.index,s=i.remainder,a=[],u=r,l=this.model.getLineCount();u<l;u++){var c=this.lines[u];if(c.isVisible()){var d=u===r?s:0,h=c.getViewLineCount()-d,p=!1;o+h>t&&(p=!0,h=t-o+1);var f=d+h;if(c.getViewLinesData(this.model,u+1,d,f,o-e,n,a),o+=h,p)break;}}return a;},e.prototype.validateViewPosition=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),o=i.index,r=i.remainder,s=this.lines[o],a=s.getViewLineMinColumn(this.model,o+1,r),u=s.getViewLineMaxColumn(this.model,o+1,r);t<a&&(t=a),t>u&&(t=u);var l=s.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Qt(o+1,l)).equals(n)?new Qt(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column);},e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),i=n.index,o=n.remainder,r=this.lines[i].getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new Qt(i+1,r));},e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();for(var n=this.model.validatePosition(new Qt(e,t)),i=n.lineNumber,o=n.column,r=i-1,s=!1;r>0&&!this.lines[r].isVisible();)r--,s=!0;if(0===r&&!this.lines[r].isVisible())return new Qt(1,1);var a=1+(0===r?0:this.prefixSumComputer.getAccumulatedValue(r-1));return s?this.lines[r].getViewPositionOfModelPosition(a,this.model.getLineMaxColumn(r+1)):this.lines[i-1].getViewPositionOfModelPosition(a,o);},e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,t);}for(;n>0&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;var o=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(o,this.model.getLineMaxColumn(n+1));},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new Ab(),r=0,s=i.length;r<s;r++){var a=i[r],u=a.options.overviewRuler,l=u?u.position:0;if(0!==l){var c=u.getColor(n),d=this._getViewLineNumberForModelPosition(a.range.startLineNumber,a.range.startColumn),h=this._getViewLineNumberForModelPosition(a.range.endLineNumber,a.range.endColumn);o.accept(c,d,h,l);}}return o.result;},e.prototype.getDecorationsInRange=function(e,t,n){var i=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-i.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new Jt(i.lineNumber,1,o.lineNumber,o.column),t,n);for(var r=[],s=i.lineNumber-1,a=o.lineNumber-1,u=null,l=s;l<=a;l++){if(this.lines[l].isVisible())null===u&&(u=new Qt(l+1,l===s?i.column:1));else if(null!==u){var c=this.model.getLineMaxColumn(l);r=r.concat(this.model.getDecorationsInRange(new Jt(u.lineNumber,u.column,l,c),t,n)),u=null;}}null!==u&&(r=r.concat(this.model.getDecorationsInRange(new Jt(u.lineNumber,u.column,o.lineNumber,o.column),t,n)),u=null),r.sort(function(e,t){var n=Jt.compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n;});for(var d=[],h=0,p=null,f=0,g=r.length;f<g;f++){var m=r[f],_=m.id;p!==_&&(p=_,d[h++]=m);}return d;},e;}(),Ib=function(){function e(){}return e.prototype.isVisible=function(){return!0;},e.prototype.setVisible=function(e){return e?this:Nb.INSTANCE;},e.prototype.getViewLineCount=function(){return 1;},e.prototype.getViewLineContent=function(e,t,n){return e.getLineContent(t);},e.prototype.getViewLineLength=function(e,t,n){return e.getLineLength(t);},e.prototype.getViewLineMinColumn=function(e,t,n){return e.getLineMinColumn(t);},e.prototype.getViewLineMaxColumn=function(e,t,n){return e.getLineMaxColumn(t);},e.prototype.getViewLineData=function(e,t,n){var i=e.getLineTokens(t),o=i.getLineContent();return new Eu(o,!1,1,o.length+1,i.inflate());},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){r[o]?s[o]=this.getViewLineData(e,t,0):s[o]=null;},e.prototype.getModelColumnOfViewPosition=function(e,t){return t;},e.prototype.getViewPositionOfModelPosition=function(e,t){return new Qt(e,t);},e.prototype.getViewLineNumberOfModelPosition=function(e,t){return e;},e.INSTANCE=new e(),e;}(),Nb=function(){function e(){}return e.prototype.isVisible=function(){return!1;},e.prototype.setVisible=function(e){return e?Ib.INSTANCE:this;},e.prototype.getViewLineCount=function(){return 0;},e.prototype.getViewLineContent=function(e,t,n){throw new Error("Not supported");},e.prototype.getViewLineLength=function(e,t,n){throw new Error("Not supported");},e.prototype.getViewLineMinColumn=function(e,t,n){throw new Error("Not supported");},e.prototype.getViewLineMaxColumn=function(e,t,n){throw new Error("Not supported");},e.prototype.getViewLineData=function(e,t,n){throw new Error("Not supported");},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){throw new Error("Not supported");},e.prototype.getModelColumnOfViewPosition=function(e,t){throw new Error("Not supported");},e.prototype.getViewPositionOfModelPosition=function(e,t){throw new Error("Not supported");},e.prototype.getViewLineNumberOfModelPosition=function(e,t){throw new Error("Not supported");},e.INSTANCE=new e(),e;}(),kb=function(){function e(e,t){this.positionMapper=e,this.wrappedIndent=this.positionMapper.getWrappedLinesIndent(),this.wrappedIndentLength=this.wrappedIndent.length,this.outputLineCount=this.positionMapper.getOutputLineCount(),this._isVisible=t;}return e.prototype.isVisible=function(){return this._isVisible;},e.prototype.setVisible=function(e){return this._isVisible=e,this;},e.prototype.getViewLineCount=function(){return this._isVisible?this.outputLineCount:0;},e.prototype.getInputStartOffsetOfOutputLineIndex=function(e){return this.positionMapper.getInputOffsetOfOutputPosition(e,0);},e.prototype.getInputEndOffsetOfOutputLineIndex=function(e,t,n){return n+1===this.outputLineCount?e.getLineMaxColumn(t)-1:this.positionMapper.getInputOffsetOfOutputPosition(n+1,0);},e.prototype.getViewLineContent=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});return n>0&&(r=this.wrappedIndent+r),r;},e.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n)-i;return n>0&&(o=this.wrappedIndent.length+o),o;},e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this.wrappedIndentLength+1:1;},e.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1;},e.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});n>0&&(r=this.wrappedIndent+r);var s=n>0?this.wrappedIndentLength+1:1,a=r.length+1,u=n+1<this.getViewLineCount(),l=0;n>0&&(l=this.wrappedIndentLength);var c=e.getLineTokens(t);return new Eu(r,u,s,a,c.sliceAndInflate(i,o,l));},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){if(!this._isVisible)throw new Error("Not supported");for(var a=n;a<i;a++){var u=o+a-n;r[u]?s[u]=this.getViewLineData(e,t,a):s[u]=null;}},e.prototype.getModelColumnOfViewPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=t-1;return e>0&&(n<this.wrappedIndentLength?n=0:n-=this.wrappedIndentLength),this.positionMapper.getInputOffsetOfOutputPosition(e,n)+1;},e.prototype.getViewPositionOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=this.positionMapper.getOutputPositionOfInputOffset(t-1),i=n.outputLineIndex,o=n.outputOffset+1;return i>0&&(o+=this.wrappedIndentLength),new Qt(e+i,o);},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");return e+this.positionMapper.getOutputPositionOfInputOffset(t-1).outputLineIndex;},e;}();function Ob(e,t,n,i,o,r,s){var a=e.createLineMapping(t,n,i,o,r);return null===a?s?Ib.INSTANCE:Nb.INSTANCE:new kb(a,s);}var Db=function(){function e(e){this._lines=e;}return e.prototype._validPosition=function(e){return this._lines.model.validatePosition(e);},e.prototype._validRange=function(e){return this._lines.model.validateRange(e);},e.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e);},e.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e);},e.prototype.validateViewPosition=function(e,t){return this._validPosition(t);},e.prototype.validateViewRange=function(e,t){return this._validRange(t);},e.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e);},e.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e);},e.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t);},e;}(),Rb=function(){function e(e){this.model=e;}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new Db(this);},e.prototype.getHiddenAreas=function(){return[];},e.prototype.setHiddenAreas=function(e){return!1;},e.prototype.setTabSize=function(e){return!1;},e.prototype.setWrappingSettings=function(e,t,n){return!1;},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,n){return new cg(t,n);},e.prototype.onModelLinesInserted=function(e,t,n,i){return new dg(t,n);},e.prototype.onModelLineChanged=function(e,t,n){return[!1,new lg(t,t),null,null];},e.prototype.acceptVersionId=function(e){},e.prototype.getViewLineCount=function(){return this.model.getLineCount();},e.prototype.warmUpLookupCache=function(e,t){},e.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0};},e.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,i=new Array(n),o=0;o<n;o++)i[o]=0;return i;},e.prototype.getViewLineContent=function(e){return this.model.getLineContent(e);},e.prototype.getViewLineLength=function(e){return this.model.getLineLength(e);},e.prototype.getViewLineMinColumn=function(e){return this.model.getLineMinColumn(e);},e.prototype.getViewLineMaxColumn=function(e){return this.model.getLineMaxColumn(e);},e.prototype.getViewLineData=function(e){var t=this.model.getLineTokens(e),n=t.getLineContent();return new Eu(n,!1,1,n.length+1,t.inflate());},e.prototype.getViewLinesData=function(e,t,n){var i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);for(var o=[],r=e;r<=t;r++){var s=r-e;n[s]||(o[s]=null),o[s]=this.getViewLineData(r);}return o;},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new Ab(),r=0,s=i.length;r<s;r++){var a=i[r],u=a.options.overviewRuler,l=u?u.position:0;if(0!==l){var c=u.getColor(n),d=a.range.startLineNumber,h=a.range.endLineNumber;o.accept(c,d,h,l);}}return o.result;},e.prototype.getDecorationsInRange=function(e,t,n){return this.model.getDecorationsInRange(e,t,n);},e;}(),Ab=function(){function e(){this.result=Object.create(null);}return e.prototype.accept=function(e,t,n,i){var o=this.result[e];if(o){var r=o[o.length-3],s=o[o.length-1];if(r===i&&s+1>=t)return void(n>s&&(o[o.length-1]=n));o.push(i,t,n);}else this.result[e]=[i,t,n];},e;}(),Mb=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Pb=function(e){function t(t,n,i){for(var o=e.call(this,0)||this,r=0;r<t.length;r++)o.set(t.charCodeAt(r),1);for(r=0;r<n.length;r++)o.set(n.charCodeAt(r),2);for(r=0;r<i.length;r++)o.set(i.charCodeAt(r),3);return o;}return Mb(t,e),t.prototype.get=function(t){return t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?4:e.prototype.get.call(this,t);},t;}(Da),Fb=function(){function e(e,t,n){this.classifier=new Pb(e,t,n);}return e.nextVisibleColumn=function(e,t,n,i){return e=+e,t=+t,i=+i,n?e+(t-e%t):e+i;},e.prototype.createLineMapping=function(t,n,i,o,r){if(-1===i)return null;n=+n,i=+i,o=+o;var s=0,a="",u=-1;if(0!==(r=+r)&&-1!==(u=lo(t))){a=t.substring(0,u);for(var l=0;l<u;l++)s=e.nextVisibleColumn(s,n,9===t.charCodeAt(l),1);var c=0;2===r?c=1:3===r&&(c=2);for(l=0;l<c;l++)a+="\t",s=e.nextVisibleColumn(s,n,!0,1);s+o>i&&(a="",s=0);}var d=this.classifier,h=0,p=[],f=0,g=0,m=-1,_=0,v=-1,y=0,b=t.length;for(l=0;l<b;l++){var C=t.charCodeAt(l),w=9===C,S=d.get(C);if(1===S&&(m=l,_=s),4===S&&l>0){var x=t.charCodeAt(l-1);1!==d.get(x)&&(m=l,_=s);}var E=1;if(To(C)&&(E=o),(g=e.nextVisibleColumn(g,n,w,E))>i&&0!==l){var L=void 0,T=void 0;-1!==m&&_<=i?(L=m,T=_):-1!==v&&y<=i?(L=v,T=y):(L=l,T=s),p[f++]=L-h,h=L,g=e.nextVisibleColumn(T,n,w,E),m=-1,_=0,v=-1,y=0;}if(-1!==m&&(_=e.nextVisibleColumn(_,n,w,E)),-1!==v&&(y=e.nextVisibleColumn(y,n,w,E)),2===S&&(0===r||l>=u)&&(m=l+1,_=s),4===S&&l<b-1){var I=t.charCodeAt(l+1);2!==d.get(I)&&(m=l+1,_=s);}3===S&&(v=l+1,y=s);}return 0===f?null:(p[f++]=b-h,new Wb(new Na(function(e){for(var t=e.length,n=new Uint32Array(t),i=0;i<t;i++)n[i]=Ta(e[i]);return n;}(p)),a));},e;}(),Wb=function(){function e(e,t){this._prefixSums=e,this._wrappedLinesIndent=t;}return e.prototype.getOutputLineCount=function(){return this._prefixSums.getCount();},e.prototype.getWrappedLinesIndent=function(){return this._wrappedLinesIndent;},e.prototype.getInputOffsetOfOutputPosition=function(e,t){return 0===e?t:this._prefixSums.getAccumulatedValue(e-1)+t;},e.prototype.getOutputPositionOfInputOffset=function(e){var t=this._prefixSums.getIndexOf(e);return new Eb(t.index,t.remainder);},e;}(),Bb=function(){function e(e,t,n,i,o){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver();}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null;},e.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver();},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver();},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver();},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver();},e.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,n=this._decorationsCache[t];if(!n){var i=e.range,o=e.options,r=void 0;if(o.isWholeLine){var s=this._coordinatesConverter.convertModelPositionToViewPosition(new Qt(i.startLineNumber,1)),a=this._coordinatesConverter.convertModelPositionToViewPosition(new Qt(i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)));r=new Jt(s.lineNumber,s.column,a.lineNumber,a.column);}else r=this._coordinatesConverter.convertModelRangeToViewRange(i);n=new Iu(r,o),this._decorationsCache[t]=n;}return n;},e.prototype.getDecorationsViewportData=function(e){var t=!0;return(t=(t=t&&null!==this._cachedModelDecorationsResolver)&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver;},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly),n=e.startLineNumber,i=e.endLineNumber,o=[],r=0,s=[],a=n;a<=i;a++)s[a-n]=[];for(var u=0,l=t.length;u<l;u++){var c=t[u],d=c.options,h=this._getOrCreateViewModelDecoration(c),p=h.range;if(o[r++]=h,d.inlineClassName){var f=new Tu(p,d.inlineClassName,d.inlineClassNameAffectsLetterSpacing?3:0),g=Math.max(n,p.startLineNumber),m=Math.min(i,p.endLineNumber);for(a=g;a<=m;a++)s[a-n].push(f);}if(d.beforeContentClassName&&n<=p.startLineNumber&&p.startLineNumber<=i){f=new Tu(new Jt(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn),d.beforeContentClassName,1);s[p.startLineNumber-n].push(f);}if(d.afterContentClassName&&n<=p.endLineNumber&&p.endLineNumber<=i){f=new Tu(new Jt(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn),d.afterContentClassName,2);s[p.endLineNumber-n].push(f);}}return{decorations:o,inlineDecorations:s};},e;}(),Vb=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Hb=!0,Ub=function(e){function t(t,n,i,o){var r=e.call(this)||this;if(r.editorId=t,r.configuration=n,r.model=i,r.hasFocus=!1,r.viewportStartLine=-1,r.viewportStartLineTrackedRange=null,r.viewportStartLineDelta=0,Hb&&r.model.isTooLargeForTokenization())r.lines=new Rb(r.model);else{var s=r.configuration.editor,a=new Fb(s.wrappingInfo.wordWrapBreakBeforeCharacters,s.wrappingInfo.wordWrapBreakAfterCharacters,s.wrappingInfo.wordWrapBreakObtrusiveCharacters);r.lines=new Tb(r.model,a,r.model.getOptions().tabSize,s.wrappingInfo.wrappingColumn,s.fontInfo.typicalFullwidthCharacterWidth/s.fontInfo.typicalHalfwidthCharacterWidth,s.wrappingInfo.wrappingIndent);}return r.coordinatesConverter=r.lines.createCoordinatesConverter(),r.viewLayout=r._register(new xb(r.configuration,r.getLineCount(),o)),r._register(r.viewLayout.onDidScroll(function(e){try{r._beginEmit().emit(new pg(e));}finally{r._endEmit();}})),r.decorations=new Bb(r.editorId,r.model,r.configuration,r.lines,r.coordinatesConverter),r._registerModelEvents(),r._register(r.configuration.onDidChange(function(e){try{var t=r._beginEmit();r._onConfigurationChanged(t,e);}finally{r._endEmit();}})),r._register(ly.getInstance().onDidChange(function(){try{r._beginEmit().emit(new mg());}finally{r._endEmit();}})),r;}return Vb(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1);},t.prototype.setHasFocus=function(e){this.hasFocus=e;},t.prototype._onConfigurationChanged=function(e,t){var n=null;if(-1!==this.viewportStartLine){var i=new Qt(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(i);}var o=!1,r=this.configuration.editor;if(this.lines.setWrappingSettings(r.wrappingInfo.wrappingIndent,r.wrappingInfo.wrappingColumn,r.fontInfo.typicalFullwidthCharacterWidth/r.fontInfo.typicalHalfwidthCharacterWidth)&&(e.emit(new sg()),e.emit(new ug()),e.emit(new rg()),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(o=!0)),t.readOnly&&(this.decorations.reset(),e.emit(new rg())),e.emit(new ig(t)),this.viewLayout.onConfigurationChanged(t),o&&n){var s=this.coordinatesConverter.convertModelPositionToViewPosition(n),a=this.viewLayout.getVerticalOffsetForLineNumber(s.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:a+this.viewportStartLineDelta});}},t.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast(function(t){try{for(var n=e._beginEmit(),i=!1,o=!1,r=t.changes,s=t.versionId,a=0,u=r.length;a<u;a++){var l=r[a];switch(l.changeType){case 1:e.lines.onModelFlushed(),n.emit(new sg()),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),i=!0;break;case 3:null!==(f=e.lines.onModelLinesDeleted(s,l.fromLineNumber,l.toLineNumber))&&(n.emit(f),e.viewLayout.onLinesDeleted(f.fromLineNumber,f.toLineNumber)),i=!0;break;case 4:null!==(p=e.lines.onModelLinesInserted(s,l.fromLineNumber,l.toLineNumber,l.detail))&&(n.emit(p),e.viewLayout.onLinesInserted(p.fromLineNumber,p.toLineNumber)),i=!0;break;case 2:var c=e.lines.onModelLineChanged(s,l.lineNumber,l.detail),d=c[0],h=c[1],p=c[2],f=c[3];o=d,h&&n.emit(h),p&&(n.emit(p),e.viewLayout.onLinesInserted(p.fromLineNumber,p.toLineNumber)),f&&(n.emit(f),e.viewLayout.onLinesDeleted(f.fromLineNumber,f.toLineNumber));}}e.lines.acceptVersionId(s),e.viewLayout.onHeightMaybeChanged(),!i&&o&&(n.emit(new ug()),n.emit(new rg()),e.decorations.onLineMappingChanged());}finally{e._endEmit();}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&e.model.getAttachedEditorCount()>=2&&e.viewportStartLineTrackedRange){var g=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(g){var m=e.coordinatesConverter.convertModelPositionToViewPosition(g.getStartPosition()),_=e.viewLayout.getVerticalOffsetForLineNumber(m.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:_+e.viewportStartLineDelta});}}})),this._register(this.model.onDidChangeTokens(function(t){for(var n=[],i=0,o=t.ranges.length;i<o;i++){var r=t.ranges[i],s=e.coordinatesConverter.convertModelPositionToViewPosition(new Qt(r.fromLineNumber,1)).lineNumber,a=e.coordinatesConverter.convertModelPositionToViewPosition(new Qt(r.toLineNumber,e.model.getLineMaxColumn(r.toLineNumber))).lineNumber;n[i]={fromLineNumber:s,toLineNumber:a};}try{e._beginEmit().emit(new fg(n));}finally{e._endEmit();}})),this._register(this.model.onDidChangeLanguageConfiguration(function(t){try{e._beginEmit().emit(new vg());}finally{e._endEmit();}})),this._register(this.model.onDidChangeOptions(function(t){if(e.lines.setTabSize(e.model.getOptions().tabSize)){e.decorations.onLineMappingChanged(),e.viewLayout.onFlushed(e.getLineCount());try{var n=e._beginEmit();n.emit(new sg()),n.emit(new ug()),n.emit(new rg());}finally{e._endEmit();}}})),this._register(this.model.onDidChangeDecorations(function(t){e.decorations.onModelDecorationsChanged();try{e._beginEmit().emit(new rg());}finally{e._endEmit();}}));},t.prototype.setHiddenAreas=function(e){try{var t=this._beginEmit();this.lines.setHiddenAreas(e)&&(t.emit(new sg()),t.emit(new ug()),t.emit(new rg()),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());}finally{this._endEmit();}},t.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange(),t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this.lines.getHiddenAreas();if(0===n.length)return[t];for(var i=[],o=0,r=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,u=t.endColumn,l=0,c=n.length;l<c;l++){var d=n[l].startLineNumber,h=n[l].endLineNumber;h<r||d>a||(r<d&&(i[o++]=new Jt(r,s,d-1,this.model.getLineMaxColumn(d-1))),r=h+1,s=1);}return(r<a||r===a&&s<u)&&(i[o++]=new Jt(r,s,a,u)),i;},t.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new Jt(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n));},t.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new Jt(n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i));},t.prototype.saveState=function(){var e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new Qt(n,this.getLineMinColumn(n))),o=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:o};},t.prototype.reduceRestoreState=function(e){if(void 0===e.firstPosition)return this._reduceRestoreStateCompatibility(e);var t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i};},t.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones};},t.prototype.getTabSize=function(){return this.model.getOptions().tabSize;},t.prototype.getLineCount=function(){return this.lines.getViewLineCount();},t.prototype.setViewport=function(e,t,n){this.lines.warmUpLookupCache(e,t),this.viewportStartLine=e;var i=this.coordinatesConverter.convertViewPositionToModelPosition(new Qt(e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new Jt(i.lineNumber,i.column,i.lineNumber,i.column),1);var o=this.viewLayout.getVerticalOffsetForLineNumber(e),r=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=r-o;},t.prototype.getActiveIndentGuide=function(e,t,n){return this.lines.getActiveIndentGuide(e,t,n);},t.prototype.getLinesIndentGuides=function(e,t){return this.lines.getViewLinesIndentGuides(e,t);},t.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e);},t.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e);},t.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e);},t.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e);},t.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=lo(this.getLineContent(e));return-1===t?0:t+1;},t.prototype.getLineLastNonWhitespaceColumn=function(e){var t=ho(this.getLineContent(e));return-1===t?0:t+2;},t.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations;},t.prototype.getViewLineRenderingData=function(e,t){var n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),o=this.getTabSize(),r=this.lines.getViewLineData(t),s=this.decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return new Lu(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,n,i,r.tokens,s,o);},t.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e);},t.prototype.getMinimapLinesRenderingData=function(e,t,n){var i=this.lines.getViewLinesData(e,t,n);return new xu(this.getTabSize(),i);},t.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,this.configuration.editor.readOnly,e);},t.prototype.invalidateOverviewRulerColorCache=function(){for(var e=this.model.getOverviewRulerDecorations(),t=0,n=e.length;t<n;t++){var i=e[t].options.overviewRuler;i&&i.invalidateCachedColor();}},t.prototype.getValueInRange=function(e,t){var n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t);},t.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e);},t.prototype.validateModelPosition=function(e){return this.model.validatePosition(e);},t.prototype.validateModelRange=function(e){return this.model.validateRange(e);},t.prototype.deduceModelPositionRelativeToViewPosition=function(e,t,n){var i=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);var o=this.model.getOffsetAt(i)+t;return this.model.getPositionAt(o);},t.prototype.getEOL=function(){return this.model.getEOL();},t.prototype.getPlainTextToCopy=function(e,t,n){var i=this,o=n?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(Jt.compareRangesUsingStarts);var r=e.filter(function(e){return!e.isEmpty();});if(0===r.length){if(!t)return"";for(var s=e.map(function(e){var t=new Qt(e.startLineNumber,1);return i.coordinatesConverter.convertViewPositionToModelPosition(t).lineNumber;}),a="",u=0;u<s.length;u++)u>0&&s[u-1]===s[u]||(a+=this.model.getLineContent(s[u])+o);return a;}var l=[];for(u=0;u<r.length;u++)l.push(this.getValueInRange(r[u],n?2:0));return 1===l.length?l[0]:l;},t.prototype.getHTMLToCopy=function(e,t){if(1===this.model.getLanguageIdentifier().id)return null;if(1!==e.length)return null;var n=this.coordinatesConverter.convertViewRangeToModelRange(e[0]);if(n.isEmpty()){if(!t)return null;var i=n.startLineNumber;n=new Jt(i,this.model.getLineMinColumn(i),i,this.model.getLineMaxColumn(i));}var o=this.configuration.editor.fontInfo,r=this._getColorMap();return'<div style="color: '+r[1]+";background-color: "+r[2]+";font-family: "+o.fontFamily+";font-weight: "+o.fontWeight+";font-size: "+o.fontSize+"px;line-height: "+o.lineHeight+'px;white-space: pre;">'+this._getHTMLToCopy(n,r)+"</div>";},t.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn,s=this.getTabSize(),a="",u=n;u<=o;u++){var l=this.model.getLineTokens(u),c=l.getLineContent(),d=u===n?i-1:0,h=u===o?r-1:c.length;a+=""===c?"<br>":bb(c,l.inflate(),t,d,h,s);}return a;},t.prototype._getColorMap=function(){var e=Ls.getColorMap(),t=["#000000"];if(e)for(var n=1,i=e.length;n<i;n++)t[n]=Oh.Format.CSS.formatHex(e[n]);return t;},t;}(yg),jb=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map();for(var n=0,i=e;n<i.length;n++){var o=i[n],r=o[0],s=o[1];this.set(r,s);}}return e.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n;},e.prototype.has=function(e){return this._entries.has(e);},e.prototype.get=function(e){return this._entries.get(e);},e;}(),zb=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Kb=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},qb=function(e,t){return function(n,i){t(n,i,e);};},Gb=0,$b="showUnused",Yb=function(){function e(e,t,n,i,o,r){this.model=e,this.viewModel=t,this.cursor=n,this.view=i,this.hasRealView=o,this.listenersToRemove=r;}return e.prototype.dispose=function(){f(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose();},e;}(),Xb=function(e){function t(t,n,i,o,r,s,u,l,c){var d,h=e.call(this)||this;h._onDidDispose=h._register(new N()),h.onDidDispose=h._onDidDispose.event,h._onDidChangeModelContent=h._register(new N()),h.onDidChangeModelContent=h._onDidChangeModelContent.event,h._onDidChangeModelLanguage=h._register(new N()),h.onDidChangeModelLanguage=h._onDidChangeModelLanguage.event,h._onDidChangeModelLanguageConfiguration=h._register(new N()),h.onDidChangeModelLanguageConfiguration=h._onDidChangeModelLanguageConfiguration.event,h._onDidChangeModelOptions=h._register(new N()),h.onDidChangeModelOptions=h._onDidChangeModelOptions.event,h._onDidChangeModelDecorations=h._register(new N()),h.onDidChangeModelDecorations=h._onDidChangeModelDecorations.event,h._onDidChangeConfiguration=h._register(new N()),h.onDidChangeConfiguration=h._onDidChangeConfiguration.event,h._onDidChangeModel=h._register(new N()),h.onDidChangeModel=h._onDidChangeModel.event,h._onDidChangeCursorPosition=h._register(new N()),h.onDidChangeCursorPosition=h._onDidChangeCursorPosition.event,h._onDidChangeCursorSelection=h._register(new N()),h.onDidChangeCursorSelection=h._onDidChangeCursorSelection.event,h._onDidAttemptReadOnlyEdit=h._register(new N()),h.onDidAttemptReadOnlyEdit=h._onDidAttemptReadOnlyEdit.event,h._onDidLayoutChange=h._register(new N()),h.onDidLayoutChange=h._onDidLayoutChange.event,h._editorTextFocus=h._register(new Zb()),h.onDidFocusEditorText=h._editorTextFocus.onDidChangeToTrue,h.onDidBlurEditorText=h._editorTextFocus.onDidChangeToFalse,h._editorWidgetFocus=h._register(new Zb()),h.onDidFocusEditorWidget=h._editorWidgetFocus.onDidChangeToTrue,h.onDidBlurEditorWidget=h._editorWidgetFocus.onDidChangeToFalse,h._onWillType=h._register(new N()),h.onWillType=h._onWillType.event,h._onDidType=h._register(new N()),h.onDidType=h._onDidType.event,h._onCompositionStart=h._register(new N()),h.onCompositionStart=h._onCompositionStart.event,h._onCompositionEnd=h._register(new N()),h.onCompositionEnd=h._onCompositionEnd.event,h._onDidPaste=h._register(new N()),h.onDidPaste=h._onDidPaste.event,h._onMouseUp=h._register(new N()),h.onMouseUp=h._onMouseUp.event,h._onMouseDown=h._register(new N()),h.onMouseDown=h._onMouseDown.event,h._onMouseDrag=h._register(new N()),h.onMouseDrag=h._onMouseDrag.event,h._onMouseDrop=h._register(new N()),h.onMouseDrop=h._onMouseDrop.event,h._onContextMenu=h._register(new N()),h.onContextMenu=h._onContextMenu.event,h._onMouseMove=h._register(new N()),h.onMouseMove=h._onMouseMove.event,h._onMouseLeave=h._register(new N()),h.onMouseLeave=h._onMouseLeave.event,h._onKeyUp=h._register(new N()),h.onKeyUp=h._onKeyUp.event,h._onKeyDown=h._register(new N()),h.onKeyDown=h._onKeyDown.event,h._onDidScrollChange=h._register(new N()),h.onDidScrollChange=h._onDidScrollChange.event,h._onDidChangeViewZones=h._register(new N()),h.onDidChangeViewZones=h._onDidChangeViewZones.event,h._domElement=t,h._id=++Gb,h._decorationTypeKeysToIds={},h._decorationTypeSubtypes={},h.isSimpleWidget=i.isSimpleWidget||!1,h._telemetryData=i.telemetryData||null,n=n||{},h._configuration=h._register(h._createConfiguration(n)),h._register(h._configuration.onDidChange(function(e){h._onDidChangeConfiguration.fire(e),e.layoutInfo&&h._onDidLayoutChange.fire(h._configuration.editor.layoutInfo),h._configuration.editor.showUnused?h._domElement.classList.add($b):h._domElement.classList.remove($b);})),h._contextKeyService=h._register(u.createScoped(h._domElement)),h._notificationService=c,h._codeEditorService=r,h._commandService=s,h._themeService=l,h._register(new Qb(h,h._contextKeyService)),h._register(new Jb(h,h._contextKeyService)),h._instantiationService=o.createChild(new jb([bl,h._contextKeyService])),h._attachModel(null),h._contributions={},h._actions={},h._focusTracker=new eC(t),h._focusTracker.onChange(function(){h._editorWidgetFocus.setValue(h._focusTracker.hasFocus());}),h._contentWidgets={},h._overlayWidgets={};for(var p=0,f=(d=Array.isArray(i.contributions)?i.contributions:Vc.getEditorContributions()).length;p<f;p++){var g=d[p];try{var m=h._instantiationService.createInstance(g,h);h._contributions[m.getId()]=m;}catch(e){a(e);}}return Vc.getEditorActions().forEach(function(e){var t=new _b(e.id,e.label,e.alias,e.precondition,function(){return h._instantiationService.invokeFunction(function(t){return Promise.resolve(e.runEditorCommand(t,h,null));});},h._contextKeyService);h._actions[t.id]=t;}),h._codeEditorService.addCodeEditor(h),h;}return zb(t,e),t.prototype._createConfiguration=function(e){return new qc(e,this._domElement);},t.prototype.getId=function(){return this.getEditorType()+":"+this._id;},t.prototype.getEditorType=function(){return dr.ICodeEditor;},t.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var t=Object.keys(this._contributions),n=0,i=t.length;n<i;n++){var o=t[n];this._contributions[o].dispose();}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),e.prototype.dispose.call(this);},t.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e);},t.prototype.updateOptions=function(e){this._configuration.updateOptions(e);},t.prototype.getConfiguration=function(){return this._configuration.editor;},t.prototype.getRawConfiguration=function(){return this._configuration.getRawOptions();},t.prototype.getValue=function(e){if(void 0===e&&(e=null),!this._modelData)return"";var t=!(!e||!e.preserveBOM),n=0;return e&&e.lineEnding&&"\n"===e.lineEnding?n=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(n=2),this._modelData.model.getValue(n,t);},t.prototype.setValue=function(e){this._modelData&&this._modelData.model.setValue(e);},t.prototype.getModel=function(){return this._modelData?this._modelData.model:null;},t.prototype.setModel=function(e){if(void 0===e&&(e=null),!(null===this._modelData&&null===e||this._modelData&&this._modelData.model===e)){var t=this._detachModel();this._attachModel(e);var n={oldModelUrl:t?t.uri:null,newModelUrl:e?e.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(n),this._postDetachModelCleanup(t);}},t.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var t=this._decorationTypeSubtypes[e];for(var n in t)this._removeDecorationType(e+"-"+n);}this._decorationTypeSubtypes={};}},t.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[];},t.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[];},t._getVerticalOffsetForPosition=function(e,t,n){var i=e.model.validatePosition({lineNumber:t,column:n}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber);},t.prototype.getTopForLineNumber=function(e){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,1):-1;},t.prototype.getTopForPosition=function(e,n){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,n):-1;},t.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(function(e){return Jt.lift(e);}));},t.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return v_.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1;},t.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null;},t.prototype.setPosition=function(e){if(this._modelData){if(!Qt.isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}]);}},t.prototype._sendRevealRange=function(e,t,n,i){if(this._modelData){if(!Jt.isIRange(e))throw new Error("Invalid arguments");var o=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.cursor.emitCursorRevealRange(r,t,n,i);}},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this._revealLine(e,0,t);},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this._revealLine(e,1,t);},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealLine(e,2,t);},t.prototype._revealLine=function(e,t,n){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new Jt(e,1,e,1),t,!1,n);},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this._revealPosition(e,0,!0,t);},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this._revealPosition(e,1,!0,t);},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealPosition(e,2,!0,t);},t.prototype._revealPosition=function(e,t,n,i){if(!Qt.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Jt(e.lineNumber,e.column,e.lineNumber,e.column),t,n,i);},t.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null;},t.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null;},t.prototype.setSelection=function(e){var t=tn.isISelection(e),n=Jt.isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){var i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i);}},t.prototype._setSelectionImpl=function(e){if(this._modelData){var t=new tn(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[t]);}},t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,0,n);},t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,1,n);},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,2,n);},t.prototype._revealLines=function(e,t,n,i){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new Jt(e,1,t,1),n,!1,i);},t.prototype.revealRange=function(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===i&&(i=!0),this._revealRange(e,n?1:0,i,t);},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this._revealRange(e,1,!0,t);},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealRange(e,2,!0,t);},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this._revealRange(e,3,!0,t);},t.prototype._revealRange=function(e,t,n,i){if(!Jt.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Jt.lift(e),t,n,i);},t.prototype.setSelections=function(e,t){if(void 0===t&&(t="api"),this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(var n=0,i=e.length;n<i;n++)if(!tn.isISelection(e[n]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(t,e);}},t.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1;},t.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1;},t.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1;},t.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1;},t.prototype.setScrollLeft=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e});}},t.prototype.setScrollTop=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e});}},t.prototype.setScrollPosition=function(e){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPositionNow(e);},t.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},t=Object.keys(this._contributions),n=0,i=t.length;n<i;n++){var o=t[n],r=this._contributions[o];"function"==typeof r.saveViewState&&(e[o]=r.saveViewState());}return{cursorState:this._modelData.cursor.saveState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e};},t.prototype.restoreViewState=function(e){if(this._modelData&&this._modelData.hasRealView&&e&&e.cursorState&&e.viewState){var t=e.cursorState;Array.isArray(t)?this._modelData.cursor.restoreState(t):this._modelData.cursor.restoreState([t]);for(var n=e.contributionsState||{},i=Object.keys(this._contributions),o=0,r=i.length;o<r;o++){var s=i[o],a=this._contributions[s];"function"==typeof a.restoreViewState&&a.restoreViewState(n[s]);}var u=this._modelData.viewModel.reduceRestoreState(e.viewState),l=this._modelData.viewModel.viewLayout.getLinesViewportDataAtScrollTop(u.scrollTop),c=this._modelData.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Qt(l.startLineNumber,1)),d=this._modelData.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Qt(l.endLineNumber,1));this._modelData.model.tokenizeViewport(c.lineNumber,d.lineNumber),this._modelData.view.restoreState(u);}},t.prototype.getContribution=function(e){return this._contributions[e]||null;},t.prototype.getActions=function(){for(var e=[],t=Object.keys(this._actions),n=0,i=t.length;n<i;n++){var o=t[n];e.push(this._actions[o]);}return e;},t.prototype.getSupportedActions=function(){var e=this.getActions();return e=e.filter(function(e){return e.isSupported();});},t.prototype.getAction=function(e){return this._actions[e]||null;},t.prototype.trigger=function(e,t,n){if(n=n||{},t===hr.Type){if(!this._modelData||"string"!=typeof n.text||0===n.text.length)return;return"keyboard"===e&&this._onWillType.fire(n.text),this._modelData.cursor.trigger(e,t,n),void("keyboard"===e&&this._onDidType.fire(n.text));}if(t!==hr.Paste){t===hr.CompositionStart&&this._onCompositionStart.fire(),t===hr.CompositionEnd&&this._onCompositionEnd.fire();var i=this.getAction(t);i?Promise.resolve(i.run()).then(null,a):this._modelData&&(this._triggerEditorCommand(e,t,n)||this._modelData.cursor.trigger(e,t,n));}else{if(!this._modelData||"string"!=typeof n.text||0===n.text.length)return;var o=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,t,n);var r=this._modelData.cursor.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire(new Jt(o.lineNumber,o.column,r.lineNumber,r.column));}},t.prototype._triggerEditorCommand=function(e,t,n){var i=this,o=Vc.getEditorCommand(t);return!!o&&((n=n||{}).source=e,this._instantiationService.invokeFunction(function(e){Promise.resolve(o.runEditorCommand(e,i,n)).then(null,a);}),!0);},t.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null;},t.prototype.pushUndoStop=function(){return!!this._modelData&&!this._configuration.editor.readOnly&&(this._modelData.model.pushStackElement(),!0);},t.prototype.executeEdits=function(e,t,n){return!!this._modelData&&!this._configuration.editor.readOnly&&(this._modelData.model.pushEditOperations(this._modelData.cursor.getSelections(),t,function(){return n||null;}),n&&this._modelData.cursor.setSelections(e,n),!0);},t.prototype.executeCommand=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,hr.ExecuteCommand,t);},t.prototype.executeCommands=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,hr.ExecuteCommands,t);},t.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null;},t.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,this._configuration.editor.readOnly):null;},t.prototype.deltaDecorations=function(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[];},t.prototype.removeDecorations=function(e){var t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e];},t.prototype.getLayoutInfo=function(){return this._configuration.editor.layoutInfo;},t.prototype.createOverviewRuler=function(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null;},t.prototype.getDomNode=function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e);},t.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render();},t.prototype.focus=function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus();},t.prototype.hasTextFocus=function(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused();},t.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus();},t.prototype.addContentWidget=function(e){var t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t);},t.prototype.layoutContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n);}},t.prototype.removeContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(n);}},t.prototype.addOverlayWidget=function(e){var t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t);},t.prototype.layoutOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n);}},t.prototype.removeOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(n);}},t.prototype.changeViewZones=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)&&this._onDidChangeViewZones.fire();},t.prototype.getTargetAtClientPoint=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null;},t.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var n=this._modelData.model.validatePosition(e),i=this._configuration.editor.layoutInfo;return{top:t._getVerticalOffsetForPosition(this._modelData,n.lineNumber,n.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(n.lineNumber,n.column)+i.glyphMarginWidth+i.lineNumbersWidth+i.decorationsWidth-this.getScrollLeft(),height:this._configuration.editor.lineHeight};},t.prototype.getOffsetForColumn=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1;},t.prototype.render=function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,!1);},t.prototype.applyFontInfo=function(e){qc.applyFontInfoSlow(e,this._configuration.editor.fontInfo);},t.prototype._attachModel=function(e){var t=this;if(e){var n=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();var i=new Ub(this._id,this._configuration,e,function(e){return si(e);});n.push(e.onDidChangeDecorations(function(e){return t._onDidChangeModelDecorations.fire(e);})),n.push(e.onDidChangeLanguage(function(n){t._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),t._onDidChangeModelLanguage.fire(n);})),n.push(e.onDidChangeLanguageConfiguration(function(e){return t._onDidChangeModelLanguageConfiguration.fire(e);})),n.push(e.onDidChangeContent(function(e){return t._onDidChangeModelContent.fire(e);})),n.push(e.onDidChangeOptions(function(e){return t._onDidChangeModelOptions.fire(e);})),n.push(e.onWillDispose(function(){return t.setModel(null);}));var o=new gb(this._configuration,e,i);n.push(o.onDidReachMaxCursorCount(function(){t._notificationService.warn(ie("cursors.maximum","The number of cursors has been limited to {0}.",gb.MAX_CURSOR_COUNT));})),n.push(o.onDidAttemptReadOnlyEdit(function(){t._onDidAttemptReadOnlyEdit.fire(void 0);})),n.push(o.onDidChange(function(e){for(var n=[],i=0,o=e.selections.length;i<o;i++)n[i]=e.selections[i].getPosition();var r={position:n[0],secondaryPositions:n.slice(1),reason:e.reason,source:e.source};t._onDidChangeCursorPosition.fire(r);var s={selection:e.selections[0],secondarySelections:e.selections.slice(1),source:e.source,reason:e.reason};t._onDidChangeCursorSelection.fire(s);}));var r=this._createView(i,o),s=r[0],a=r[1];if(a){this._domElement.appendChild(s.domNode.domNode);for(var u=Object.keys(this._contentWidgets),l=0,c=u.length;l<c;l++){var d=u[l];s.addContentWidget(this._contentWidgets[d]);}for(l=0,c=(u=Object.keys(this._overlayWidgets)).length;l<c;l++){d=u[l];s.addOverlayWidget(this._overlayWidgets[d]);}s.render(!1,!0),s.domNode.domNode.setAttribute("data-uri",e.uri.toString());}this._modelData=new Yb(e,i,o,s,a,n);}else this._modelData=null;},t.prototype._createView=function(e,t){var n,i=this;n=this.isSimpleWidget?{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n);},paste:function(e,t,n,o){i.trigger(e,hr.Paste,{text:t,pasteOnNewLine:n,multicursorText:o});},type:function(e,t){i.trigger(e,hr.Type,{text:t});},replacePreviousChar:function(e,t,n){i.trigger(e,hr.ReplacePreviousChar,{text:t,replaceCharCnt:n});},compositionStart:function(e){i.trigger(e,hr.CompositionStart,void 0);},compositionEnd:function(e){i.trigger(e,hr.CompositionEnd,void 0);},cut:function(e){i.trigger(e,hr.Cut,void 0);}}:{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n);},paste:function(e,t,n,o){i._commandService.executeCommand(hr.Paste,{text:t,pasteOnNewLine:n,multicursorText:o});},type:function(e,t){i._commandService.executeCommand(hr.Type,{text:t});},replacePreviousChar:function(e,t,n){i._commandService.executeCommand(hr.ReplacePreviousChar,{text:t,replaceCharCnt:n});},compositionStart:function(e){i._commandService.executeCommand(hr.CompositionStart,{});},compositionEnd:function(e){i._commandService.executeCommand(hr.CompositionEnd,{});},cut:function(e){i._commandService.executeCommand(hr.Cut,{});}};var o=new ub(e);return o.onDidGainFocus=function(){i._editorTextFocus.setValue(!0),i._editorWidgetFocus.setValue(!0);},o.onDidScroll=function(e){return i._onDidScrollChange.fire(e);},o.onDidLoseFocus=function(){return i._editorTextFocus.setValue(!1);},o.onContextMenu=function(e){return i._onContextMenu.fire(e);},o.onMouseDown=function(e){return i._onMouseDown.fire(e);},o.onMouseUp=function(e){return i._onMouseUp.fire(e);},o.onMouseDrag=function(e){return i._onMouseDrag.fire(e);},o.onMouseDrop=function(e){return i._onMouseDrop.fire(e);},o.onKeyUp=function(e){return i._onKeyUp.fire(e);},o.onMouseMove=function(e){return i._onMouseMove.fire(e);},o.onMouseLeave=function(e){return i._onMouseLeave.fire(e);},o.onKeyDown=function(e){return i._onKeyDown.fire(e);},[new rb(n,this._configuration,this._themeService,e,t,o),!0];},t.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id);},t.prototype._detachModel=function(){if(!this._modelData)return null;var e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.removeChild(t),e;},t.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e);},t.prototype.getTelemetryData=function(){return this._telemetryData;},t.prototype.hasModel=function(){return null!==this._modelData;},t=Kb([qb(3,ln),qb(4,pn),qb(5,qo),qb(6,bl),qb(7,Rd),qb(8,sc)],t);}(y),Zb=function(e){function t(){var t=e.call(this)||this;return t._onDidChangeToTrue=t._register(new N()),t.onDidChangeToTrue=t._onDidChangeToTrue.event,t._onDidChangeToFalse=t._register(new N()),t.onDidChangeToFalse=t._onDidChangeToFalse.event,t._value=0,t;}return zb(t,e),t.prototype.setValue=function(e){var t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire());},t;}(y),Qb=function(e){function t(t,n){var i=e.call(this)||this;return i._editor=t,n.createKey("editorId",t.getId()),i._editorFocus=A_.focus.bindTo(n),i._textInputFocus=A_.textInputFocus.bindTo(n),i._editorTextFocus=A_.editorTextFocus.bindTo(n),i._editorTabMovesFocus=A_.tabMovesFocus.bindTo(n),i._editorReadonly=A_.readOnly.bindTo(n),i._hasMultipleSelections=A_.hasMultipleSelections.bindTo(n),i._hasNonEmptySelection=A_.hasNonEmptySelection.bindTo(n),i._canUndo=A_.canUndo.bindTo(n),i._canRedo=A_.canRedo.bindTo(n),i._register(i._editor.onDidChangeConfiguration(function(){return i._updateFromConfig();})),i._register(i._editor.onDidChangeCursorSelection(function(){return i._updateFromSelection();})),i._register(i._editor.onDidFocusEditorWidget(function(){return i._updateFromFocus();})),i._register(i._editor.onDidBlurEditorWidget(function(){return i._updateFromFocus();})),i._register(i._editor.onDidFocusEditorText(function(){return i._updateFromFocus();})),i._register(i._editor.onDidBlurEditorText(function(){return i._updateFromFocus();})),i._register(i._editor.onDidChangeModel(function(){return i._updateFromModel();})),i._register(i._editor.onDidChangeConfiguration(function(){return i._updateFromModel();})),i._updateFromConfig(),i._updateFromSelection(),i._updateFromFocus(),i._updateFromModel(),i;}return zb(t,e),t.prototype._updateFromConfig=function(){var e=this._editor.getConfiguration();this._editorTabMovesFocus.set(e.tabFocusMode),this._editorReadonly.set(e.readOnly);},t.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(function(e){return!e.isEmpty();}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset());},t.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());},t.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()));},t;}(y),Jb=function(e){function t(t,n){var i=e.call(this)||this;i._editor=t,i._langId=A_.languageId.bindTo(n),i._hasCompletionItemProvider=A_.hasCompletionItemProvider.bindTo(n),i._hasCodeActionsProvider=A_.hasCodeActionsProvider.bindTo(n),i._hasCodeLensProvider=A_.hasCodeLensProvider.bindTo(n),i._hasDefinitionProvider=A_.hasDefinitionProvider.bindTo(n),i._hasImplementationProvider=A_.hasImplementationProvider.bindTo(n),i._hasTypeDefinitionProvider=A_.hasTypeDefinitionProvider.bindTo(n),i._hasHoverProvider=A_.hasHoverProvider.bindTo(n),i._hasDocumentHighlightProvider=A_.hasDocumentHighlightProvider.bindTo(n),i._hasDocumentSymbolProvider=A_.hasDocumentSymbolProvider.bindTo(n),i._hasReferenceProvider=A_.hasReferenceProvider.bindTo(n),i._hasRenameProvider=A_.hasRenameProvider.bindTo(n),i._hasDocumentFormattingProvider=A_.hasDocumentFormattingProvider.bindTo(n),i._hasDocumentSelectionFormattingProvider=A_.hasDocumentSelectionFormattingProvider.bindTo(n),i._hasSignatureHelpProvider=A_.hasSignatureHelpProvider.bindTo(n),i._isInWalkThrough=A_.isInEmbeddedEditor.bindTo(n);var o=function(){return i._update();};return i._register(t.onDidChangeModel(o)),i._register(t.onDidChangeModelLanguage(o)),i._register(cs.onDidChange(o)),i._register(ys.onDidChange(o)),i._register(vs.onDidChange(o)),i._register(gs.onDidChange(o)),i._register(ms.onDidChange(o)),i._register(_s.onDidChange(o)),i._register(hs.onDidChange(o)),i._register(fs.onDidChange(o)),i._register(ps.onDidChange(o)),i._register(us.onDidChange(o)),i._register(ls.onDidChange(o)),i._register(bs.onDidChange(o)),i._register(Cs.onDidChange(o)),i._register(ds.onDidChange(o)),o(),i;}return zb(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype.reset=function(){this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset();},t.prototype._update=function(){var e=this._editor.getModel();e?(this._langId.set(e.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(cs.has(e)),this._hasCodeActionsProvider.set(ys.has(e)),this._hasCodeLensProvider.set(vs.has(e)),this._hasDefinitionProvider.set(gs.has(e)),this._hasImplementationProvider.set(ms.has(e)),this._hasTypeDefinitionProvider.set(_s.has(e)),this._hasHoverProvider.set(hs.has(e)),this._hasDocumentHighlightProvider.set(fs.has(e)),this._hasDocumentSymbolProvider.set(ps.has(e)),this._hasReferenceProvider.set(us.has(e)),this._hasRenameProvider.set(ls.has(e)),this._hasSignatureHelpProvider.set(ds.has(e)),this._hasDocumentFormattingProvider.set(bs.has(e)||Cs.has(e)),this._hasDocumentSelectionFormattingProvider.set(Cs.has(e)),this._isInWalkThrough.set(e.uri.scheme===Hi.walkThroughSnippet)):this.reset();},t;}(y),eC=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new N()),n.onChange=n._onChange.event,n._hasFocus=!1,n._domFocusTracker=n._register(Bi(t)),n._register(n._domFocusTracker.onDidFocus(function(){n._hasFocus=!0,n._onChange.fire(void 0);})),n._register(n._domFocusTracker.onDidBlur(function(){n._hasFocus=!1,n._onChange.fire(void 0);})),n;}return zb(t,e),t.prototype.hasFocus=function(){return this._hasFocus;},t;}(y),tC=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='"),nC=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 iC(e){return tC+encodeURIComponent(e.toString())+nC;}var oC=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),rC=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');Vd(function(e,t){var n=e.getColor(Mf);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var i=e.getColor(Af);i&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+iC(i)+'") repeat-x bottom left; }');var o=e.getColor(Ff);o&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+o+"; }");var r=e.getColor(Pf);r&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+iC(r)+'") repeat-x bottom left; }');var s=e.getColor(Bf);s&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(Wf);a&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+iC(a)+'") repeat-x bottom left; }');var u=e.getColor(Hf);u&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+u+"; }");var l=e.getColor(Vf);l&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+(oC+encodeURIComponent(l.toString())+rC)+'") no-repeat bottom left; }');var c=e.getColor(jf);c&&t.addRule("."+$b+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; will-change: opacity; }");var d=e.getColor(Uf);d&&t.addRule("."+$b+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }");});n("./node_modules/monaco-editor/esm/vs/editor/browser/widget/media/diffEditor.css"),n("./node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash.css");var sC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),aC=!1,uC=function(e){function t(t,n,i){void 0===i&&(i={});var r=e.call(this)||this;return r._state=3,r._onDidEnablementChange=r._register(new N()),r.onDidEnablementChange=r._onDidEnablementChange.event,r._onDidStart=r._register(new N()),r.onDidStart=r._onDidStart.event,r._onDidChange=r._register(new N()),r.onDidChange=r._onDidChange.event,r._onDidReset=r._register(new N()),r.onDidReset=r._onDidReset.event,r._onDidEnd=r._register(new N()),r.onDidEnd=r._onDidEnd.event,r.linkedSash=void 0,r.orthogonalStartSashDisposables=[],r.orthogonalEndSashDisposables=[],r.el=Vi(t,ji(".monaco-sash")),o.d&&Xn(r.el,"mac"),r._register(Tn(r.el,"mousedown")(r.onMouseDown,r)),r._register(Tn(r.el,"dblclick")(r.onMouseDoubleClick,r)),cd.addTarget(r.el),r._register(Tn(r.el,ad.Start)(r.onTouchStart,r)),En&&Xn(r.el,"touch"),r.setOrientation(i.orientation||0),r.hidden=!1,r.layoutProvider=n,r.orthogonalStartSash=i.orthogonalStartSash,r.orthogonalEndSash=i.orthogonalEndSash,ei(r.el,"debug",aC),r;}return sC(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state;},set:function(e){this._state!==e&&(ei(this.el,"disabled",0===e),ei(this.el,"minimum",1===e),ei(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e));},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash;},set:function(e){this.orthogonalStartSashDisposables=f(this.orthogonalStartSashDisposables),e?(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this,this.orthogonalStartSashDisposables),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash;},set:function(e){this.orthogonalEndSashDisposables=f(this.orthogonalEndSashDisposables),e?(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this,this.orthogonalEndSashDisposables),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e;},enumerable:!0,configurable:!0}),t.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(Xn(this.el,"horizontal"),Qn(this.el,"vertical")):(Qn(this.el,"horizontal"),Xn(this.el,"vertical")),this.layoutProvider&&this.layout();},t.prototype.onMouseDown=function(e){var t=this;Fi.stop(e,!1);var n=!1;if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),!e.__orthogonalSashEvent){var i=void 0;0===this.orientation?e.offsetY<=4?i=this.orthogonalStartSash:e.offsetY>=this.el.clientHeight-4&&(i=this.orthogonalEndSash):e.offsetX<=4?i=this.orthogonalStartSash:e.offsetX>=this.el.clientWidth-4&&(i=this.orthogonalEndSash),i&&(n=!0,e.__orthogonalSashEvent=!0,i.onMouseDown(e));}if(this.state){for(var r=0,s=Gi("iframe");r<s.length;r++){s[r].style.pointerEvents="none";}var a=new Vn(e),u=a.posx,l=a.posy,c=a.altKey,d={startX:u,currentX:u,startY:l,currentY:l,altKey:c};Xn(this.el,"active"),this._onDidStart.fire(d);var h=Di(this.el),p=function(){var e="";e=n?"all-scroll":1===t.orientation?1===t.state?"s-resize":2===t.state?"n-resize":o.d?"row-resize":"ns-resize":1===t.state?"e-resize":2===t.state?"w-resize":o.d?"col-resize":"ew-resize",h.innerHTML="* { cursor: "+e+" !important; }";},g=[];p(),n||this.onDidEnablementChange(p,null,g);Tn(window,"mousemove")(function(e){Fi.stop(e,!1);var n=new Vn(e),i={startX:u,currentX:n.posx,startY:l,currentY:n.posy,altKey:c};t._onDidChange.fire(i);},null,g),Tn(window,"mouseup")(function(e){Fi.stop(e,!1),t.el.removeChild(h),Qn(t.el,"active"),t._onDidEnd.fire(),f(g);for(var n=0,i=Gi("iframe");n<i.length;n++)i[n].style.pointerEvents="auto";},null,g);}},t.prototype.onMouseDoubleClick=function(e){this._onDidReset.fire();},t.prototype.onTouchStart=function(e){var t=this;Fi.stop(e);var n=[],i=e.pageX,o=e.pageY,r=e.altKey;this._onDidStart.fire({startX:i,currentX:i,startY:o,currentY:o,altKey:r}),n.push(ni(this.el,ad.Change,function(e){ve(e.pageX)&&ve(e.pageY)&&t._onDidChange.fire({startX:i,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:r});})),n.push(ni(this.el,ad.End,function(e){t._onDidEnd.fire(),f(n);}));},t.prototype.layout=function(){var e=En?20:4;if(0===this.orientation){var t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-e/2+"px",t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px");}else{var n=this.layoutProvider;this.el.style.top=n.getHorizontalSashTop(this)-e/2+"px",n.getHorizontalSashLeft&&(this.el.style.left=n.getHorizontalSashLeft(this)+"px"),n.getHorizontalSashWidth&&(this.el.style.width=n.getHorizontalSashWidth(this)+"px");}},t.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true");},t.prototype.onOrthogonalStartSashEnablementChange=function(e){ei(this.el,"orthogonal-start",0!==e);},t.prototype.onOrthogonalEndSashEnablementChange=function(e){ei(this.el,"orthogonal-end",0!==e);},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.orthogonalStartSashDisposables=f(this.orthogonalStartSashDisposables),this.orthogonalEndSashDisposables=f(this.orthogonalEndSashDisposables),this.el&&this.el.parentElement&&this.el.parentElement.removeChild(this.el),this.el=null;},t;}(y),lC=function(){function e(e,t){if(this.flags=t,0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?to("{0}#{1}",n.uri.toString(),n.getVersionId()):null;}0!=(4&this.flags)&&(this.position=e.getPosition()),0!=(2&this.flags)&&(this.selection=e.getSelection()),0!=(8&this.flags)&&(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop());}return e.prototype._equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.modelVersionId===n.modelVersionId&&this.scrollLeft===n.scrollLeft&&this.scrollTop===n.scrollTop&&!(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))&&!(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection));},e.prototype.validate=function(t){return this._equals(new e(t,this.flags));},e;}(),cC=function(){function e(e,t){this._visiblePosition=e,this._visiblePositionScrollDelta=t;}return e.capture=function(t){var n=null,i=0;if(0!==t.getScrollTop()){var o=t.getVisibleRanges();if(o.length>0){n=o[0].getStartPosition();var r=t.getTopForPosition(n.lineNumber,n.column);i=t.getScrollTop()-r;}}return new e(n,i);},e.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta);}},e;}(),dC=(n("./node_modules/monaco-editor/esm/vs/editor/browser/widget/media/diffReview.css"),n("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),hC=function(e){function t(t,n,i){var o=e.call(this)||this;return o.options=i,o._context=t||o,o._action=n,n instanceof wl&&o._register(n.onDidChange(function(e){o.element&&o.handleActionChangeEvent(e);})),o;}return dC(t,e),t.prototype.handleActionChangeEvent=function(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip();},Object.defineProperty(t.prototype,"actionRunner",{get:function(){return this._actionRunner;},set:function(e){this._actionRunner=e;},enumerable:!0,configurable:!0}),t.prototype.getAction=function(){return this._action;},t.prototype.isEnabled=function(){return this._action.enabled;},t.prototype.setActionContext=function(e){this._context=e;},t.prototype.render=function(e){var t=this;this.element=e,cd.addTarget(e);var n=this.options&&this.options.draggable;n&&(e.draggable=!0),this._register(ni(this.element,ad.Tap,function(e){return t.onClick(e);})),this._register(ni(this.element,Pi.MOUSE_DOWN,function(e){n||Fi.stop(e,!0);var i=e;t._action.enabled&&0===i.button&&Xn(t.element,"active");})),this._register(ni(this.element,Pi.CLICK,function(e){Fi.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):o.h(function(){return t.onClick(e);});})),this._register(ni(this.element,Pi.DBLCLICK,function(e){Fi.stop(e,!0);})),[Pi.MOUSE_UP,Pi.MOUSE_OUT].forEach(function(e){t._register(ni(t.element,e,function(e){Fi.stop(e),Qn(t.element,"active");}));});},t.prototype.onClick=function(e){var t;Fi.stop(e,!0),Ce(this._context)?t=e:_e(t=this._context)&&(t.event=e),this._actionRunner.run(this._action,t);},t.prototype.focus=function(){this.element&&(this.element.focus(),Xn(this.element,"focused"));},t.prototype.blur=function(){this.element&&(this.element.blur(),Qn(this.element,"focused"));},t.prototype.updateEnabled=function(){},t.prototype.updateLabel=function(){},t.prototype.updateTooltip=function(){},t.prototype.updateClass=function(){},t.prototype.updateChecked=function(){},t.prototype.dispose=function(){this.element&&(Kn(this.element),this.element=null),e.prototype.dispose.call(this);},t;}(y),pC=function(e){function t(n){var i=e.call(this,t.ID,n,n?"separator text":"separator")||this;return i.checked=!1,i.radio=!1,i.enabled=!1,i;}return dC(t,e),t.ID="vs.actions.separator",t;}(wl),fC=function(e){function t(t,n,i){void 0===i&&(i={});var o=e.call(this,t,n,i)||this;return o.options=i,o.options.icon=void 0!==i.icon&&i.icon,o.options.label=void 0===i.label||i.label,o.cssClass="",o;}return dC(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.label=Vi(this.element,ji("a.action-label")),this._action.id===pC.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&&(Vi(this.element,ji("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked();},t.prototype.focus=function(){e.prototype.focus.call(this),this.label.focus();},t.prototype.updateLabel=function(){this.options.label&&(this.label.textContent=this.getAction().label);},t.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=ie({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&(this.label.title=e);},t.prototype.updateClass=function(){this.cssClass&&Jn(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,Xn(this.label,"icon"),this.cssClass&&Zn(this.label,this.cssClass),this.updateEnabled()):Qn(this.label,"icon");},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.label.removeAttribute("aria-disabled"),Qn(this.element,"disabled"),Qn(this.label,"disabled"),this.label.tabIndex=0):(this.label.setAttribute("aria-disabled","true"),Xn(this.element,"disabled"),Xn(this.label,"disabled"),qi(this.label));},t.prototype.updateChecked=function(){this.getAction().checked?Xn(this.label,"checked"):Qn(this.label,"checked");},t;}(hC),gC={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},mC=function(e){function t(t,n){void 0===n&&(n=gC);var i,o,r=e.call(this)||this;switch(r._onDidBlur=r._register(new N()),r._onDidCancel=r._register(new N()),r._onDidRun=r._register(new N()),r._onDidBeforeRun=r._register(new N()),r.options=n,r._context=n.context,r._actionRunner=r.options.actionRunner,r.options.triggerKeys||(r.options.triggerKeys=gC.triggerKeys),r._actionRunner||(r._actionRunner=new Sl(),r._register(r._actionRunner)),r._register(r._actionRunner.onDidRun(function(e){return r._onDidRun.fire(e);})),r._register(r._actionRunner.onDidBeforeRun(function(e){return r._onDidBeforeRun.fire(e);})),r.items=[],r.focusedItem=void 0,r.domNode=document.createElement("div"),r.domNode.className="monaco-action-bar",!1!==n.animated&&Xn(r.domNode,"animated"),r.options.orientation){case 0:i=15,o=17;break;case 1:i=17,o=15,r.domNode.className+=" reverse";break;case 2:i=16,o=18,r.domNode.className+=" vertical";break;case 3:i=18,o=16,r.domNode.className+=" vertical reverse";}return r._register(ni(r.domNode,Pi.KEY_DOWN,function(e){var t=new Rn(e),n=!0;t.equals(i)?r.focusPrevious():t.equals(o)?r.focusNext():t.equals(9)?r.cancel():r.isTriggerKeyEvent(t)?r.options.triggerKeys&&r.options.triggerKeys.keyDown&&r.doTrigger(t):n=!1,n&&(t.preventDefault(),t.stopPropagation());})),r._register(ni(r.domNode,Pi.KEY_UP,function(e){var t=new Rn(e);r.isTriggerKeyEvent(t)?(r.options.triggerKeys.keyDown||r.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&r.updateFocusedItem();})),r.focusTracker=r._register(Bi(r.domNode)),r._register(r.focusTracker.onDidBlur(function(){document.activeElement!==r.domNode&&ki(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),t.appendChild(r.domNode),r;}return dC(t,e),Object.defineProperty(t.prototype,"onDidBlur",{get:function(){return this._onDidBlur.event;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidCancel",{get:function(){return this._onDidCancel.event;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidRun",{get:function(){return this._onDidRun.event;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event;},enumerable:!0,configurable:!0}),t.prototype.isTriggerKeyEvent=function(e){var t=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(n){t=t||e.equals(n);}),t;},t.prototype.updateFocusedItem=function(){for(var e=0;e<this.actionsList.children.length;e++){var t=this.actionsList.children[e];if(ki(document.activeElement,t)){this.focusedItem=e;break;}}},Object.defineProperty(t.prototype,"context",{get:function(){return this._context;},set:function(e){this._context=e,this.items.forEach(function(t){return t.setActionContext(e);});},enumerable:!0,configurable:!0}),t.prototype.getContainer=function(){return this.domNode;},t.prototype.push=function(e,t){var n=this;void 0===t&&(t={});var i=Array.isArray(e)?e:[e],o=ve(t.index)?t.index:null;i.forEach(function(e){var i=document.createElement("li");i.className="action-item",i.setAttribute("role","presentation"),n._register(ni(i,Pi.CONTEXT_MENU,function(e){e.preventDefault(),e.stopPropagation();}));var r=null;n.options.actionItemProvider&&(r=n.options.actionItemProvider(e)),r||(r=new fC(n.context,e,t)),r.actionRunner=n._actionRunner,r.setActionContext(n.context),r.render(i),null===o||o<0||o>=n.actionsList.children.length?(n.actionsList.appendChild(i),n.items.push(r)):(n.actionsList.insertBefore(i,n.actionsList.children[o]),n.items.splice(o,0,r),o++);});},t.prototype.clear=function(){this.items=f(this.items),zn(this.actionsList);},t.prototype.isEmpty=function(){return 0===this.items.length;},t.prototype.focus=function(e){e&&void 0===this.focusedItem?(this.focusedItem=this.items.length-1,this.focusNext()):this.updateFocus();},t.prototype.focusNext=function(){void 0===this.focusedItem&&(this.focusedItem=this.items.length-1);var e,t=this.focusedItem;do{this.focusedItem=(this.focusedItem+1)%this.items.length,e=this.items[this.focusedItem];}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus();},t.prototype.focusPrevious=function(){void 0===this.focusedItem&&(this.focusedItem=0);var e,t=this.focusedItem;do{this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.items.length-1),e=this.items[this.focusedItem];}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0);},t.prototype.updateFocus=function(e){void 0===this.focusedItem&&this.actionsList.focus();for(var t=0;t<this.items.length;t++){var n=this.items[t];t===this.focusedItem?xe(n.isEnabled)&&(n.isEnabled()&&xe(n.focus)?n.focus(e):this.actionsList.focus()):xe(n.blur)&&n.blur();}},t.prototype.doTrigger=function(e){if(void 0!==this.focusedItem){var t=this.items[this.focusedItem];if(t instanceof hC){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n);}}},t.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire();},t.prototype.run=function(e,t){return this._actionRunner.run(e,t);},t.prototype.dispose=function(){null!==this.items&&f(this.items),this.items=null,Kn(this.getContainer()),e.prototype.dispose.call(this);},t;}(y),_C=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),vC=function(){function e(e,t,n,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=i;}return e.prototype.getType=function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0;},e;}(),yC=function(){return function(e){this.entries=e;};}(),bC=function(e){function t(t){var n=e.call(this)||this;return n._width=0,n._diffEditor=t,n._isVisible=!1,n.shadow=rd(document.createElement("div")),n.shadow.setClassName("diff-review-shadow"),n.actionBarContainer=rd(document.createElement("div")),n.actionBarContainer.setClassName("diff-review-actions"),n._actionBar=n._register(new mC(n.actionBarContainer.domNode)),n._actionBar.push(new wl("diffreview.close",ie("label.close","Close"),"close-diff-review",!0,function(){return n.hide(),null;}),{label:!1,icon:!0}),n.domNode=rd(document.createElement("div")),n.domNode.setClassName("diff-review monaco-editor-background"),n._content=rd(document.createElement("div")),n._content.setClassName("diff-review-content"),n.scrollbar=n._register(new zv(n._content.domNode,{})),n.domNode.domNode.appendChild(n.scrollbar.getDomNode()),n._register(t.onDidUpdateDiff(function(){n._isVisible&&(n._diffs=n._compute(),n._render());})),n._register(t.getModifiedEditor().onDidChangeCursorPosition(function(){n._isVisible&&n._render();})),n._register(t.getOriginalEditor().onDidFocusEditorWidget(function(){n._isVisible&&n.hide();})),n._register(t.getModifiedEditor().onDidFocusEditorWidget(function(){n._isVisible&&n.hide();})),n._register(ii(n.domNode.domNode,"click",function(e){e.preventDefault();var t=Oi(e.target,"diff-review-row");t&&n._goToRow(t);})),n._register(ii(n.domNode.domNode,"keydown",function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),n._goToRow(n._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),n._goToRow(n._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),n.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),n.accept());})),n._diffs=[],n._currentDiff=null,n;}return _C(t,e),t.prototype.prev=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break;}e=this._diffs.length+t-1;}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new Qt(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()));},t.prototype.next=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break;}e=t+1;}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new Qt(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()));},t.prototype.accept=function(){var e=-1,t=this._getCurrentFocusedRow();if(t){var n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n);}this.hide(),-1!==e&&(this._diffEditor.setPosition(new Qt(e,1)),this._diffEditor.revealPosition(new Qt(e,1),1));},t.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render();},t.prototype._getPrevRow=function(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow();},t.prototype._getNextRow=function(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow();},t.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row");},t.prototype._getCurrentFocusedRow=function(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null;},t.prototype._goToRow=function(e){var t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode();},t.prototype.isVisible=function(){return this._isVisible;},t.prototype.layout=function(e,t,n){this._width=t,this.shadow.setTop(e-6),this.shadow.setWidth(t),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(t),this.domNode.setHeight(n),this._content.setHeight(n),this._content.setWidth(t),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"));},t.prototype._compute=function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var n=this._diffEditor.getOriginalEditor().getModel(),i=this._diffEditor.getModifiedEditor().getModel();return n&&i?t._mergeAdjacent(e,n.getLineCount(),i.getLineCount()):[];},t._mergeAdjacent=function(e,t,n){if(!e||0===e.length)return[];for(var i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r],u=a.originalStartLineNumber,l=a.originalEndLineNumber,c=a.modifiedStartLineNumber,d=a.modifiedEndLineNumber,h=[],p=0,f=0===l?u:u-1,g=0===d?c:c-1,m=1,_=1;if(r>0){var v=e[r-1];m=0===v.originalEndLineNumber?v.originalStartLineNumber+1:v.originalEndLineNumber+1,_=0===v.modifiedEndLineNumber?v.modifiedStartLineNumber+1:v.modifiedEndLineNumber+1;}var y=f-3+1,b=g-3+1;if(y<m)y+=L=m-y,b+=L;if(b<_)y+=L=_-b,b+=L;h[p++]=new vC(y,f,b,g),0!==l&&(h[p++]=new vC(u,l,0,0)),0!==d&&(h[p++]=new vC(0,0,c,d));var C=0===l?u+1:l+1,w=0===d?c+1:d+1,S=t,x=n;if(r+1<s){var E=e[r+1];S=0===E.originalEndLineNumber?E.originalStartLineNumber:E.originalStartLineNumber-1,x=0===E.modifiedEndLineNumber?E.modifiedStartLineNumber:E.modifiedStartLineNumber-1;}var L,T=C+3-1,I=w+3-1;if(T>S)T+=L=S-T,I+=L;if(I>x)T+=L=x-I,I+=L;h[p++]=new vC(C,T,w,I),i[o++]=new yC(h);}var N=i[0].entries,k=[],O=0;for(r=1,s=i.length;r<s;r++){var D=i[r].entries,R=N[N.length-1],A=D[0];0===R.getType()&&0===A.getType()&&A.originalLineStart<=R.originalLineEnd?(N[N.length-1]=new vC(R.originalLineStart,A.originalLineEnd,R.modifiedLineStart,A.modifiedLineEnd),N=N.concat(D.slice(1))):(k[O++]=new yC(N),N=D);}return k[O++]=new yC(N),k;},t.prototype._findDiffIndex=function(e){for(var t=e.lineNumber,n=0,i=this._diffs.length;n<i;n++){var o=this._diffs[n].entries;if(t<=o[o.length-1].modifiedLineEnd)return n;}return 0;},t.prototype._render=function(){var e=this._diffEditor.getOriginalEditor().getConfiguration(),n=this._diffEditor.getModifiedEditor().getConfiguration(),i=this._diffEditor.getOriginalEditor().getModel(),o=this._diffEditor.getModifiedEditor().getModel(),r=i.getOptions(),s=o.getOptions();if(!this._isVisible||!i||!o)return zn(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();var a=this._diffEditor.getPosition(),u=this._findDiffIndex(a);if(this._diffs[u]!==this._currentDiff){this._currentDiff=this._diffs[u];var l=this._diffs[u].entries,c=document.createElement("div");c.className="diff-review-table",c.setAttribute("role","list"),qc.applyFontInfoSlow(c,n.fontInfo);for(var d=0,h=0,p=0,f=0,g=0,m=l.length;g<m;g++){var _=(N=l[g]).originalLineStart,v=N.originalLineEnd,y=N.modifiedLineStart,b=N.modifiedLineEnd;0!==_&&(0===d||_<d)&&(d=_),0!==v&&(0===h||v>h)&&(h=v),0!==y&&(0===p||y<p)&&(p=y),0!==b&&(0===f||b>f)&&(f=b);}var C=document.createElement("div");C.className="diff-review-row";var w=document.createElement("div");w.className="diff-review-cell diff-review-summary";var S=h-d+1,x=f-p+1;w.appendChild(document.createTextNode(u+1+"/"+this._diffs.length+": @@ -"+d+","+S+" +"+p+","+x+" @@")),C.setAttribute("data-line",String(p));var E=function(e){return 0===e?ie("no_lines","no lines"):1===e?ie("one_line","1 line"):ie("more_lines","{0} lines",e);},L=E(S),T=E(x);C.setAttribute("aria-label",ie({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}",u+1,this._diffs.length,d,L,p,T)),C.appendChild(w),C.setAttribute("role","listitem"),c.appendChild(C);var I=p;for(g=0,m=l.length;g<m;g++){var N=l[g];t._renderSection(c,N,I,this._width,e,i,r,n,o,s),0!==N.modifiedLineStart&&(I=N.modifiedLineEnd);}zn(this._content.domNode),this._content.domNode.appendChild(c),this.scrollbar.scanDomNode();}},t._renderSection=function(e,t,n,i,o,r,s,a,u,l){var c=t.getType(),d="diff-review-row",h="",p="diff-review-spacer";switch(c){case 1:d="diff-review-row line-insert",h=" char-insert",p="diff-review-spacer insert-sign";break;case 2:d="diff-review-row line-delete",h=" char-delete",p="diff-review-spacer delete-sign";}for(var f=t.originalLineStart,g=t.originalLineEnd,m=t.modifiedLineStart,_=t.modifiedLineEnd,v=Math.max(_-m,g-f),y=o.layoutInfo.glyphMarginWidth+o.layoutInfo.lineNumbersWidth,b=10+a.layoutInfo.glyphMarginWidth+a.layoutInfo.lineNumbersWidth,C=0;C<=v;C++){var w=0===f?0:f+C,S=0===m?0:m+C,x=document.createElement("div");x.style.minWidth=i+"px",x.className=d,x.setAttribute("role","listitem"),0!==S&&(n=S),x.setAttribute("data-line",String(n));var E=document.createElement("div");E.className="diff-review-cell",x.appendChild(E);var L=document.createElement("span");L.style.width=y+"px",L.style.minWidth=y+"px",L.className="diff-review-line-number"+h,0!==w?L.appendChild(document.createTextNode(String(w))):L.innerHTML=" ",E.appendChild(L);var T=document.createElement("span");T.style.width=b+"px",T.style.minWidth=b+"px",T.style.paddingRight="10px",T.className="diff-review-line-number"+h,0!==S?T.appendChild(document.createTextNode(String(S))):T.innerHTML=" ",E.appendChild(T);var I=document.createElement("span");I.className=p,I.innerHTML=" ",E.appendChild(I);var N=void 0;0!==S?(E.insertAdjacentHTML("beforeend",this._renderLine(u,a,l.tabSize,S)),N=u.getLineContent(S)):(E.insertAdjacentHTML("beforeend",this._renderLine(r,o,s.tabSize,w)),N=r.getLineContent(w)),0===N.length&&(N=ie("blankLine","blank"));var k=void 0;switch(c){case 0:k=ie("equalLine","original {0}, modified {1}: {2}",w,S,N);break;case 1:k=ie("insertLine","+ modified {0}: {1}",S,N);break;case 2:k=ie("deleteLine","- original {0}: {1}",w,N);}x.setAttribute("aria-label",k),e.appendChild(x);}},t._renderLine=function(e,t,n,i){var o=e.getLineContent(i),r=new Uint32Array(2);r[0]=o.length,r[1]=16793600;var s=new ru(r,o),a=Lu.isBasicASCII(o,e.mightContainNonBasicASCII()),u=Lu.containsRTL(o,a,e.mightContainRTL());return yu(new fu(t.fontInfo.isMonospace&&!t.viewInfo.disableMonospaceOptimizations,t.fontInfo.canUseHalfwidthRightwardsArrow,o,!1,a,u,0,s,[],n,t.fontInfo.spaceWidth,t.viewInfo.stopRenderingLineAfter,t.viewInfo.renderWhitespace,t.viewInfo.renderControlCharacters,t.viewInfo.fontLigatures)).html;},t;}(y);Vd(function(e,t){var n=e.getColor(Ef);n&&t.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var i=e.getColor(yp);i&&t.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+i+" 0 -6px 6px -6px inset; }");});var CC=function(e){function t(){return e.call(this,{id:"editor.action.diffReview.next",label:ie("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:dl.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this;}return _C(t,e),t.prototype.run=function(e,t){var n=SC(e);n&&n.diffReviewNext();},t;}(Zc),wC=function(e){function t(){return e.call(this,{id:"editor.action.diffReview.prev",label:ie("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:dl.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this;}return _C(t,e),t.prototype.run=function(e,t){var n=SC(e);n&&n.diffReviewPrev();},t;}(Zc);function SC(e){for(var t=e.get(pn).listDiffEditors(),n=0,i=t.length;n<i;n++){var o=t[n];if(o.hasWidgetFocus())return o;}return null;}td(CC),td(wC);var xC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),EC=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},LC=function(e,t){return function(n,i){t(n,i,e);};},TC=function(){function e(){this._zones=[],this._zonesMap={},this._decorations=[];}return e.prototype.getForeignViewZones=function(e){var t=this;return e.filter(function(e){return!t._zonesMap[String(e.id)];});},e.prototype.clean=function(e){var t=this;this._zones.length>0&&e.changeViewZones(function(e){for(var n=0,i=t._zones.length;n<i;n++)e.removeZone(t._zones[n]);}),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[]);},e.prototype.apply=function(e,t,n,i){var o=this,r=i?cC.capture(e):null;e.changeViewZones(function(e){for(var t=0,i=o._zones.length;t<i;t++)e.removeZone(o._zones[t]);o._zones=[],o._zonesMap={};t=0;for(var r=n.zones.length;t<r;t++){n.zones[t].suppressMouseDown=!0;var s=e.addZone(n.zones[t]);o._zones.push(s),o._zonesMap[String(s)]=!0;}}),r&&r.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones);},e;}(),IC=0,NC=function(e){function t(n,i,o,r,s,a,u,l){var c=e.call(this)||this;c._onDidDispose=c._register(new N()),c.onDidDispose=c._onDidDispose.event,c._onDidUpdateDiff=c._register(new N()),c.onDidUpdateDiff=c._onDidUpdateDiff.event,c._lastOriginalWarning=null,c._lastModifiedWarning=null,c._editorWorkerService=o,c._codeEditorService=a,c._contextKeyService=c._register(r.createScoped(n)),c._contextKeyService.createKey("isInDiffEditor",!0),c._themeService=u,c._notificationService=l,c.id=++IC,c._domElement=n,i=i||{},c._renderSideBySide=!0,void 0!==i.renderSideBySide&&(c._renderSideBySide=i.renderSideBySide),c._ignoreTrimWhitespace=!0,void 0!==i.ignoreTrimWhitespace&&(c._ignoreTrimWhitespace=i.ignoreTrimWhitespace),c._renderIndicators=!0,void 0!==i.renderIndicators&&(c._renderIndicators=i.renderIndicators),c._originalIsEditable=!1,void 0!==i.originalEditable&&(c._originalIsEditable=Boolean(i.originalEditable)),c._updateDecorationsRunner=c._register(new ee(function(){return c._updateDecorations();},0)),c._containerDomElement=document.createElement("div"),c._containerDomElement.className=t._getClassName(c._themeService.getTheme(),c._renderSideBySide),c._containerDomElement.style.position="relative",c._containerDomElement.style.height="100%",c._domElement.appendChild(c._containerDomElement),c._overviewViewportDomElement=rd(document.createElement("div")),c._overviewViewportDomElement.setClassName("diffViewport"),c._overviewViewportDomElement.setPosition("absolute"),c._overviewDomElement=document.createElement("div"),c._overviewDomElement.className="diffOverview",c._overviewDomElement.style.position="absolute",c._overviewDomElement.appendChild(c._overviewViewportDomElement.domNode),c._register(ii(c._overviewDomElement,"mousedown",function(e){c.modifiedEditor.delegateVerticalScrollbarMouseDown(e);})),c._containerDomElement.appendChild(c._overviewDomElement),c._createLeftHandSide(),c._createRightHandSide(),c._beginUpdateDecorationsTimeout=-1,c._currentlyChangingViewZones=!1,c._diffComputationToken=0,c._originalEditorState=new TC(),c._modifiedEditorState=new TC(),c._isVisible=!0,c._isHandlingScrollEvent=!1,c._width=0,c._height=0,c._reviewHeight=0,c._diffComputationResult=null;var d=c._contextKeyService.createScoped();d.createKey("isInDiffLeftEditor",!0);var h=new jb();h.set(bl,d);var p=s.createChild(h),f=c._contextKeyService.createScoped();f.createKey("isInDiffRightEditor",!0);var g=new jb();g.set(bl,f);var m=s.createChild(g);return c._createLeftHandSideEditor(i,p),c._createRightHandSideEditor(i,m),c._reviewPane=new bC(c),c._containerDomElement.appendChild(c._reviewPane.domNode.domNode),c._containerDomElement.appendChild(c._reviewPane.shadow.domNode),c._containerDomElement.appendChild(c._reviewPane.actionBarContainer.domNode),i.automaticLayout&&(c._measureDomElementToken=window.setInterval(function(){return c._measureDomElement(!1);},100)),c._enableSplitViewResizing=!0,void 0!==i.enableSplitViewResizing&&(c._enableSplitViewResizing=i.enableSplitViewResizing),c._renderSideBySide?c._setStrategy(new MC(c._createDataSource(),c._enableSplitViewResizing)):c._setStrategy(new FC(c._createDataSource(),c._enableSplitViewResizing)),c._register(u.onThemeChange(function(e){c._strategy&&c._strategy.applyColors(e)&&c._updateDecorationsRunner.schedule(),c._containerDomElement.className=t._getClassName(c._themeService.getTheme(),c._renderSideBySide);})),c._codeEditorService.addDiffEditor(c),c;}return xC(t,e),t.prototype.hasWidgetFocus=function(){return ki(document.activeElement,this._domElement);},t.prototype.diffReviewNext=function(){this._reviewPane.next();},t.prototype.diffReviewPrev=function(){this._reviewPane.prev();},t._getClassName=function(e,t){var n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+=Fd(e.type);},t.prototype._recreateOverviewRulers=function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),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._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode()),this._layoutOverviewRulers();},t.prototype._createLeftHandSide=function(){this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode);},t.prototype._createRightHandSide=function(){this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode);},t.prototype._createLeftHandSideEditor=function(e,t){var n=this;this.originalEditor=this._createInnerEditor(t,this._originalDomNode,this._adjustOptionsForLeftHandSide(e,this._originalIsEditable)),this._register(this.originalEditor.onDidScrollChange(function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport());})),this._register(this.originalEditor.onDidChangeViewZones(function(){n._onViewZonesChanged();})),this._register(this.originalEditor.onDidChangeModelContent(function(){n._isVisible&&n._beginUpdateDecorationsSoon();}));},t.prototype._createRightHandSideEditor=function(e,t){var n=this;this.modifiedEditor=this._createInnerEditor(t,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e)),this._register(this.modifiedEditor.onDidScrollChange(function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport());})),this._register(this.modifiedEditor.onDidChangeViewZones(function(){n._onViewZonesChanged();})),this._register(this.modifiedEditor.onDidChangeConfiguration(function(e){e.fontInfo&&n.modifiedEditor.getModel()&&n._onViewZonesChanged();})),this._register(this.modifiedEditor.onDidChangeModelContent(function(){n._isVisible&&n._beginUpdateDecorationsSoon();}));},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(Xb,t,n,{});},t.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),window.clearInterval(this._measureDomElementToken),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(),e.prototype.dispose.call(this);},t.prototype.getId=function(){return this.getEditorType()+":"+this.id;},t.prototype.getEditorType=function(){return dr.IDiffEditor;},t.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null;},t.prototype.getOriginalEditor=function(){return this.originalEditor;},t.prototype.getModifiedEditor=function(){return this.modifiedEditor;},t.prototype.updateOptions=function(e){var n=!1;void 0!==e.renderSideBySide&&this._renderSideBySide!==e.renderSideBySide&&(this._renderSideBySide=e.renderSideBySide,n=!0);var i=!1;void 0!==e.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==e.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=e.ignoreTrimWhitespace,i=!0),void 0!==e.renderIndicators&&this._renderIndicators!==e.renderIndicators&&(this._renderIndicators=e.renderIndicators,i=!0),i&&this._beginUpdateDecorations(),void 0!==e.originalEditable&&(this._originalIsEditable=Boolean(e.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e,this._originalIsEditable)),void 0!==e.enableSplitViewResizing&&(this._enableSplitViewResizing=e.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),n&&(this._renderSideBySide?this._setStrategy(new MC(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new FC(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=t._getClassName(this._themeService.getTheme(),this._renderSideBySide));},t.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()};},t.prototype.setModel=function(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(e?e.original:null),this.modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,e?(this._recreateOverviewRulers(),this._beginUpdateDecorations()):this._diffComputationResult=null,this._layoutOverviewViewport();},t.prototype.getDomNode=function(){return this._domElement;},t.prototype.getVisibleColumnFromPosition=function(e){return this.modifiedEditor.getVisibleColumnFromPosition(e);},t.prototype.getPosition=function(){return this.modifiedEditor.getPosition();},t.prototype.setPosition=function(e){this.modifiedEditor.setPosition(e);},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLine(e,t);},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenter(e,t);},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t);},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPosition(e,t);},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenter(e,t);},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t);},t.prototype.getSelection=function(){return this.modifiedEditor.getSelection();},t.prototype.getSelections=function(){return this.modifiedEditor.getSelections();},t.prototype.setSelection=function(e){this.modifiedEditor.setSelection(e);},t.prototype.setSelections=function(e){this.modifiedEditor.setSelections(e);},t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLines(e,t,n);},t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenter(e,t,n);},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n);},t.prototype.revealRange=function(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===i&&(i=!0),this.modifiedEditor.revealRange(e,t,n,i);},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenter(e,t);},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t);},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeAtTop(e,t);},t.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions();},t.prototype.saveViewState=function(){return{original:this.originalEditor.saveViewState(),modified:this.modifiedEditor.saveViewState()};},t.prototype.restoreViewState=function(e){if(e.original&&e.original){var t=e;this.originalEditor.restoreViewState(t.original),this.modifiedEditor.restoreViewState(t.modified);}},t.prototype.layout=function(e){this._measureDomElement(!1,e);},t.prototype.focus=function(){this.modifiedEditor.focus();},t.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus();},t.prototype.trigger=function(e,t,n){this.modifiedEditor.trigger(e,t,n);},t.prototype.changeDecorations=function(e){return this.modifiedEditor.changeDecorations(e);},t.prototype._measureDomElement=function(e,t){if((t=t||{width:this._containerDomElement.clientWidth,height:this._containerDomElement.clientHeight}).width<=0)return this._width=0,this._height=0,void(this._reviewHeight=0);(e||t.width!==this._width||t.height!==this._height)&&(this._width=t.width,this._height=t.height,this._reviewHeight=this._reviewPane.isVisible()?this._height:0,this._doLayout());},t.prototype._layoutOverviewRulers=function(){var e=t.ENTIRE_DIFF_OVERVIEW_WIDTH-2*t.ONE_OVERVIEW_WIDTH;this.modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:t.ONE_OVERVIEW_WIDTH,right:e+t.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:t.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}));},t.prototype._onViewZonesChanged=function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule();},t.prototype._beginUpdateDecorationsSoon=function(){var e=this;-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(function(){return e._beginUpdateDecorations();},t.UPDATE_DIFF_DECORATIONS_DELAY);},t._equals=function(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString();},t.prototype._beginUpdateDecorations=function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var n=this.originalEditor.getModel(),i=this.modifiedEditor.getModel();if(n&&i){this._diffComputationToken++;var o=this._diffComputationToken;this._editorWorkerService.canComputeDiff(n.uri,i.uri)?this._editorWorkerService.computeDiff(n.uri,i.uri,this._ignoreTrimWhitespace).then(function(t){o===e._diffComputationToken&&n===e.originalEditor.getModel()&&i===e.modifiedEditor.getModel()&&(e._diffComputationResult=t,e._updateDecorationsRunner.schedule(),e._onDidUpdateDiff.fire());},function(t){o===e._diffComputationToken&&n===e.originalEditor.getModel()&&i===e.modifiedEditor.getModel()&&(e._diffComputationResult=null,e._updateDecorationsRunner.schedule());}):t._equals(n.uri,this._lastOriginalWarning)&&t._equals(i.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=n.uri,this._lastModifiedWarning=i.uri,this._notificationService.warn(ie("diff.tooLarge","Cannot compare files because one file is too large.")));}},t.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor);},t.prototype._updateDecorations=function(){if(this.originalEditor.getModel()&&this.modifiedEditor.getModel()){var e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),n=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),i=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,n,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,i.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,i.modified,!0);}finally{this._currentlyChangingViewZones=!1;}}},t.prototype._adjustOptionsForSubEditor=function(e){var t=Le(e||{});return t.inDiffEditor=!0,t.wordWrap="off",t.wordWrapMinified=!1,t.automaticLayout=!1,t.scrollbar=t.scrollbar||{},t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=!1,t.fixedOverflowWidgets=!0,t.minimap||(t.minimap={}),t.minimap.enabled=!1,t;},t.prototype._adjustOptionsForLeftHandSide=function(e,t){var n=this._adjustOptionsForSubEditor(e);return n.readOnly=!t,n.overviewRulerLanes=1,n.extraEditorClassName="original-in-monaco-diff-editor",n;},t.prototype._adjustOptionsForRightHandSide=function(e){var n=this._adjustOptionsForSubEditor(e);return n.revealHorizontalRightPadding=Xe.viewInfo.revealHorizontalRightPadding+t.ENTIRE_DIFF_OVERVIEW_WIDTH,n.scrollbar.verticalHasArrows=!1,n.extraEditorClassName="modified-in-monaco-diff-editor",n;},t.prototype.doLayout=function(){this._measureDomElement(!0);},t.prototype._doLayout=function(){var e=this._strategy.layout();this._originalDomNode.style.width=e+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=this._width-e+"px",this._modifiedDomNode.style.left=e+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=this._height-this._reviewHeight+"px",this._overviewDomElement.style.width=t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=this._width-t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(t.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:e,height:this._height-this._reviewHeight}),this.modifiedEditor.layout({width:this._width-e-t.ENTIRE_DIFF_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(this._height-this._reviewHeight,this._width,this._reviewHeight),this._layoutOverviewViewport();},t.prototype._layoutOverviewViewport=function(){var e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0));},t.prototype._computeOverviewViewport=function(){var e=this.modifiedEditor.getLayoutInfo();if(!e)return null;var t=this.modifiedEditor.getScrollTop(),n=this.modifiedEditor.getScrollHeight(),i=Math.max(0,e.contentHeight),o=Math.max(0,i-0),r=n>0?o/n:0;return{height:Math.max(0,Math.floor(e.contentHeight*r)),top:Math.floor(t*r)};},t.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._width;},getHeight:function(){return e._height-e._reviewHeight;},getContainerDomNode:function(){return e._containerDomElement;},relayoutEditors:function(){e._doLayout();},getOriginalEditor:function(){return e.originalEditor;},getModifiedEditor:function(){return e.modifiedEditor;}};},t.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._measureDomElement(!0);},t.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){var n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;for(var i=0,o=n.length-1;i<o;){var r=Math.floor((i+o)/2),s=t(n[r]),a=r+1<=o?t(n[r+1]):Number.MAX_VALUE;e<s?o=r-1:e>=a?i=r+1:(i=r,o=r);}return n[i];},t.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,function(e){return e.originalStartLineNumber;});if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=o?i+Math.min(s,r):i+r-o+s;},t.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,function(e){return e.modifiedStartLineNumber;});if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-i;return s<=r?n+Math.min(s,o):n+o-r+s;},t.prototype.getDiffLineInformationForOriginal=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null;},t.prototype.getDiffLineInformationForModified=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null;},t.ONE_OVERVIEW_WIDTH=15,t.ENTIRE_DIFF_OVERVIEW_WIDTH=30,t.UPDATE_DIFF_DECORATIONS_DELAY=200,t=EC([LC(2,Os),LC(3,bl),LC(4,ln),LC(5,pn),LC(6,Rd),LC(7,sc)],t);}(y),kC=function(e){function t(t){var n=e.call(this)||this;return n._dataSource=t,n;}return xC(t,e),t.prototype.applyColors=function(e){var t=(e.getColor(Jp)||Zp).transparent(2),n=(e.getColor(ef)||Qp).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i;},t.prototype.getEditorsDiffDecorations=function(e,t,n,i,o,r,s){o=o.sort(function(e,t){return e.afterLineNumber-t.afterLineNumber;}),i=i.sort(function(e,t){return e.afterLineNumber-t.afterLineNumber;});var a=this._getViewZones(e,i,o,r,s,n),u=this._getOriginalEditorDecorations(e,t,n,r,s),l=this._getModifiedEditorDecorations(e,t,n,r,s);return{original:{decorations:u.decorations,overviewZones:u.overviewZones,zones:a.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.modified}};},t;}(y),OC=function(){function e(e){this._source=e,this._index=-1,this.advance();}return e.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null;},e;}(),DC=function(){function e(e,t,n){this.lineChanges=e,this.originalForeignVZ=t,this.modifiedForeignVZ=n;}return e.prototype.getViewZones=function(){for(var e={original:[],modified:[]},t=0,n=0,i=0,o=0,r=0,s=0,a=function(e,t){return e.afterLineNumber-t.afterLineNumber;},u=function(e,t){if(null===t.domNode&&e.length>0){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines);}e.push(t);},l=new OC(this.modifiedForeignVZ),c=new OC(this.originalForeignVZ),d=0,h=this.lineChanges.length;d<=h;d++){var p=d<h?this.lineChanges[d]:null;null!==p?(i=p.originalStartLineNumber+(p.originalEndLineNumber>0?-1:0),o=p.modifiedStartLineNumber+(p.modifiedEndLineNumber>0?-1:0),n=p.originalEndLineNumber>0?p.originalEndLineNumber-p.originalStartLineNumber+1:0,t=p.modifiedEndLineNumber>0?p.modifiedEndLineNumber-p.modifiedStartLineNumber+1:0,r=Math.max(p.originalStartLineNumber,p.originalEndLineNumber),s=Math.max(p.modifiedStartLineNumber,p.modifiedEndLineNumber)):(r=i+=1e7+n,s=o+=1e7+t);for(var f,g=[],m=[];l.current&&l.current.afterLineNumber<=s;){var _=void 0;_=l.current.afterLineNumber<=o?i-o+l.current.afterLineNumber:r;var v=null;p&&p.modifiedStartLineNumber<=l.current.afterLineNumber&&l.current.afterLineNumber<=p.modifiedEndLineNumber&&(v=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),g.push({afterLineNumber:_,heightInLines:l.current.heightInLines,domNode:null,marginDomNode:v}),l.advance();}for(;c.current&&c.current.afterLineNumber<=r;){_=void 0;_=c.current.afterLineNumber<=i?o-i+c.current.afterLineNumber:s,m.push({afterLineNumber:_,heightInLines:c.current.heightInLines,domNode:null}),c.advance();}if(null!==p&&BC(p))(f=this._produceOriginalFromDiff(p,n,t))&&g.push(f);if(null!==p&&VC(p))(f=this._produceModifiedFromDiff(p,n,t))&&m.push(f);var y=0,b=0;for(g=g.sort(a),m=m.sort(a);y<g.length&&b<m.length;){var C=g[y],w=m[b],S=C.afterLineNumber-i,x=w.afterLineNumber-o;S<x?(u(e.original,C),y++):x<S?(u(e.modified,w),b++):C.shouldNotShrink?(u(e.original,C),y++):w.shouldNotShrink?(u(e.modified,w),b++):C.heightInLines>=w.heightInLines?(C.heightInLines-=w.heightInLines,b++):(w.heightInLines-=C.heightInLines,y++);}for(;y<g.length;)u(e.original,g[y]),y++;for(;b<m.length;)u(e.modified,m[b]),b++;}var E=function(e){var t;e.domNode||(e.domNode=((t=document.createElement("div")).className="diagonal-fill",t));};return e.original.forEach(E),e.modified.forEach(E),e;},e;}();function RC(e,t,n,i,o){return{range:new Jt(e,t,n,i),options:o};}var AC={charDelete:i_.register({className:"char-delete"}),charDeleteWholeLine:i_.register({className:"char-delete",isWholeLine:!0}),charInsert:i_.register({className:"char-insert"}),charInsertWholeLine:i_.register({className:"char-insert",isWholeLine:!0}),lineInsert:i_.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:i_.register({className:"line-insert",linesDecorationsClassName:"insert-sign",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:i_.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:i_.register({className:"line-delete",linesDecorationsClassName:"delete-sign",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:i_.register({marginClassName:"line-delete"})},MC=function(e){function t(t,n){var i=e.call(this,t)||this;return i._disableSash=!1===n,i._sashRatio=null,i._sashPosition=null,i._sash=i._register(new uC(i._dataSource.getContainerDomNode(),i)),i._disableSash&&(i._sash.state=0),i._sash.onDidStart(function(){return i.onSashDragStart();}),i._sash.onDidChange(function(e){return i.onSashDrag(e);}),i._sash.onDidEnd(function(){return i.onSashDragEnd();}),i._sash.onDidReset(function(){return i.onSashReset();}),i;}return xC(t,e),t.prototype.setEnableSplitViewResizing=function(e){var t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3);},t.prototype.layout=function(e){void 0===e&&(e=this._sashRatio);var n=this._dataSource.getWidth()-NC.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.floor((e||.5)*n),o=Math.floor(.5*n);return i=this._disableSash?o:i||o,n>2*t.MINIMUM_EDITOR_WIDTH?(i<t.MINIMUM_EDITOR_WIDTH&&(i=t.MINIMUM_EDITOR_WIDTH),i>n-t.MINIMUM_EDITOR_WIDTH&&(i=n-t.MINIMUM_EDITOR_WIDTH)):i=o,this._sashPosition!==i&&(this._sashPosition=i,this._sash.layout()),this._sashPosition;},t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition;},t.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth()-NC.ENTIRE_DIFF_OVERVIEW_WIDTH,n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors();},t.prototype.onSashDragEnd=function(){this._sash.layout();},t.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout();},t.prototype.getVerticalSashTop=function(e){return 0;},t.prototype.getVerticalSashLeft=function(e){return this._sashPosition;},t.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight();},t.prototype._getViewZones=function(e,t,n,i,o){return new PC(e,t,n).getViewZones();},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=this._removeColor.toString(),s={decorations:[],overviewZones:[]},a=i.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(VC(c)&&(s.decorations.push({range:new Jt(c.originalStartLineNumber,1,c.originalEndLineNumber,Number.MAX_VALUE),options:n?AC.lineDeleteWithSign:AC.lineDelete}),BC(c)&&c.charChanges||s.decorations.push(RC(c.originalStartLineNumber,1,c.originalEndLineNumber,Number.MAX_VALUE,AC.charDeleteWholeLine)),s.overviewZones.push(new Dy(c.originalStartLineNumber,c.originalEndLineNumber,r)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(VC(p))if(t)for(var f=p.originalStartLineNumber;f<=p.originalEndLineNumber;f++){var g=void 0,m=void 0;g=f===p.originalStartLineNumber?p.originalStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.originalEndLineNumber?p.originalEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(RC(f,g,f,m,AC.charDelete));}else s.decorations.push(RC(p.originalStartLineNumber,p.originalStartColumn,p.originalEndLineNumber,p.originalEndColumn,AC.charDelete));}}return s;},t.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){for(var r=this._insertColor.toString(),s={decorations:[],overviewZones:[]},a=o.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(BC(c)&&(s.decorations.push({range:new Jt(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE),options:n?AC.lineInsertWithSign:AC.lineInsert}),VC(c)&&c.charChanges||s.decorations.push(RC(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE,AC.charInsertWholeLine)),s.overviewZones.push(new Dy(c.modifiedStartLineNumber,c.modifiedEndLineNumber,r)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(BC(p))if(t)for(var f=p.modifiedStartLineNumber;f<=p.modifiedEndLineNumber;f++){var g=void 0,m=void 0;g=f===p.modifiedStartLineNumber?p.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.modifiedEndLineNumber?p.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(RC(f,g,f,m,AC.charInsert));}else s.decorations.push(RC(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn,AC.charInsert));}}return s;},t.MINIMUM_EDITOR_WIDTH=100,t;}(kC),PC=function(e){function t(t,n,i){return e.call(this,t,n,i)||this;}return xC(t,e),t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null;},t.prototype._produceOriginalFromDiff=function(e,t,n){return n>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null;},t.prototype._produceModifiedFromDiff=function(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null;},t;}(DC),FC=function(e){function t(t,n){var i=e.call(this,t)||this;return i.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,i._register(t.getOriginalEditor().onDidLayoutChange(function(e){i.decorationsLeft!==e.decorationsLeft&&(i.decorationsLeft=e.decorationsLeft,t.relayoutEditors());})),i;}return xC(t,e),t.prototype.setEnableSplitViewResizing=function(e){},t.prototype._getViewZones=function(e,t,n,i,o,r){return new WC(e,t,n,i,o,r).getViewZones();},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=this._removeColor.toString(),s={decorations:[],overviewZones:[]},a=0,u=e.length;a<u;a++){var l=e[a];VC(l)&&(s.decorations.push({range:new Jt(l.originalStartLineNumber,1,l.originalEndLineNumber,Number.MAX_VALUE),options:AC.lineDeleteMargin}),s.overviewZones.push(new Dy(l.originalStartLineNumber,l.originalEndLineNumber,r)));}return s;},t.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){for(var r=this._insertColor.toString(),s={decorations:[],overviewZones:[]},a=o.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(BC(c))if(s.decorations.push({range:new Jt(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE),options:n?AC.lineInsertWithSign:AC.lineInsert}),s.overviewZones.push(new Dy(c.modifiedStartLineNumber,c.modifiedEndLineNumber,r)),c.charChanges)for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(BC(p))if(t)for(var f=p.modifiedStartLineNumber;f<=p.modifiedEndLineNumber;f++){var g=void 0,m=void 0;g=f===p.modifiedStartLineNumber?p.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.modifiedEndLineNumber?p.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(RC(f,g,f,m,AC.charInsert));}else s.decorations.push(RC(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn,AC.charInsert));}else s.decorations.push(RC(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE,AC.charInsertWholeLine));}return s;},t.prototype.layout=function(){return Math.max(5,this.decorationsLeft);},t;}(kC),WC=function(e){function t(t,n,i,o,r,s){var a=e.call(this,t,n,i)||this;return a.originalModel=o.getModel(),a.modifiedEditorConfiguration=r.getConfiguration(),a.modifiedEditorTabSize=r.getModel().getOptions().tabSize,a.renderIndicators=s,a;}return xC(t,e),t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e;},t.prototype._produceOriginalFromDiff=function(e,t,n){var i=document.createElement("div");return i.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:i};},t.prototype._produceModifiedFromDiff=function(e,t,n){var i=[];if(e.charChanges)for(var o=0,r=e.charChanges.length;o<r;o++){var s=e.charChanges[o];VC(s)&&i.push(new Tu(new Jt(s.originalStartLineNumber,s.originalStartColumn,s.originalEndLineNumber,s.originalEndColumn),"char-delete",0));}for(var a=iu(1e4),u=[],l=this.modifiedEditorConfiguration.layoutInfo.decorationsWidth,c=this.modifiedEditorConfiguration.lineHeight,d=this.modifiedEditorConfiguration.fontInfo.typicalHalfwidthCharacterWidth,h=0,p=e.originalStartLineNumber;p<=e.originalEndLineNumber;p++)if(h=Math.max(h,this._renderOriginalLine(p-e.originalStartLineNumber,this.originalModel,this.modifiedEditorConfiguration,this.modifiedEditorTabSize,p,i,a)),this.renderIndicators){var f=p-e.originalStartLineNumber;u=u.concat(['<div class="delete-sign" style="position:absolute;top:'+f*c+"px;width:"+l+"px;height:"+c+'px;right:0;"></div>']);}h+=this.modifiedEditorConfiguration.viewInfo.scrollBeyondLastColumn;var g=document.createElement("div");g.className="view-lines line-delete",g.innerHTML=a.build(),qc.applyFontInfoSlow(g,this.modifiedEditorConfiguration.fontInfo);var m=document.createElement("div");return m.className="inline-deleted-margin-view-zone",m.innerHTML=u.join(""),qc.applyFontInfoSlow(m,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:h*d,domNode:g,marginDomNode:m};},t.prototype._renderOriginalLine=function(e,t,n,i,o,r,s){var a=t.getLineTokens(o),u=a.getLineContent(),l=lu.filter(r,o,1,u.length+1);s.appendASCIIString('<div class="view-line'),0===r.length&&s.appendASCIIString(" char-delete"),s.appendASCIIString('" style="top:'),s.appendASCIIString(String(e*n.lineHeight)),s.appendASCIIString('px;width:1000000px;">');var c=Lu.isBasicASCII(u,t.mightContainNonBasicASCII()),d=Lu.containsRTL(u,c,t.mightContainRTL()),h=_u(new fu(n.fontInfo.isMonospace&&!n.viewInfo.disableMonospaceOptimizations,n.fontInfo.canUseHalfwidthRightwardsArrow,u,!1,c,d,0,a,l,i,n.fontInfo.spaceWidth,n.viewInfo.stopRenderingLineAfter,n.viewInfo.renderWhitespace,n.viewInfo.renderControlCharacters,n.viewInfo.fontLigatures),s);s.appendASCIIString("</div>");var p=h.characterMapping.getAbsoluteOffsets();return p.length>0?p[p.length-1]:0;},t;}(DC);function BC(e){return e.modifiedEndLineNumber>0;}function VC(e){return e.originalEndLineNumber>0;}Vd(function(e,t){var n=e.getColor(Jp);n&&(t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var i=e.getColor(ef);i&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+i+"; }"));var o=e.getColor(tf);o&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+o+"; }");var r=e.getColor(nf);r&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+r+"; }");var s=e.getColor(yp);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }");var a=e.getColor(of);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+a+"; }");});var HC=dn("themeService"),UC=dn("contextViewService"),jC=dn("contextMenuService"),zC=dn("keybindingService"),KC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),qC=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},GC=function(e,t){return function(n,i){t(n,i,e);};},$C=0,YC=!1;function XC(){var e;YC||(YC=!0,e=document.body,(Ic=document.createElement("div")).className="monaco-aria-container",(Nc=document.createElement("div")).className="monaco-alert",Nc.setAttribute("role","alert"),Nc.setAttribute("aria-atomic","true"),Ic.appendChild(Nc),(kc=document.createElement("div")).className="monaco-status",kc.setAttribute("role","status"),kc.setAttribute("aria-atomic","true"),Ic.appendChild(kc),e.appendChild(Ic));}var ZC=function(e){function t(t,n,i,o,r,s,a,u,l){var c=this;return(n=n||{}).ariaLabel=n.ariaLabel||ie("editorViewAccessibleLabel","Editor content"),n.ariaLabel=n.ariaLabel+";"+(vn?ie("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."):ie("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")),c=e.call(this,t,n,{},i,o,r,s,u,l)||this,a instanceof yc&&(c._standaloneKeybindingService=a),XC(),c;}return KC(t,e),t.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var i="DYNAMIC_"+ ++$C,o=dl.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,o),i;},t.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t);},t.prototype.addAction=function(e){var t=this;if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)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"),y.None;var n=e.id,i=e.label,o=dl.and(dl.equals("editorId",this.getId()),dl.deserialize(e.precondition)),r=e.keybindings,s=dl.and(o,dl.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,u=e.contextMenuOrder||0,l=function(){return Promise.resolve(e.run(t));},c=[],d=this.getId()+":"+n;if(c.push(Go.registerCommand(d,l)),a){var h={command:{id:d,title:i},when:o,group:a,order:u};c.push(kl.appendMenuItem(Il.EditorContext,h));}Array.isArray(r)&&(c=c.concat(r.map(function(e){return t._standaloneKeybindingService.addDynamicKeybinding(d,e,l,s);})));var p=new _b(d,i,i,o,l,this._contextKeyService);return this._actions[n]=p,c.push(m(function(){delete t._actions[n];})),g(c);},t=qC([GC(2,ln),GC(3,pn),GC(4,qo),GC(5,bl),GC(6,zC),GC(7,Rd),GC(8,sc)],t);}(Xb),QC=function(e){function t(t,n,i,o,r,s,a,u,l,c,d,h){var p=this;Tc(h,n,!1),"string"==typeof(n=n||{}).theme&&c.setTheme(n.theme);var f,g=n.model;if(delete n.model,(p=e.call(this,t,n,o,r,s,a,u,c,d)||this)._contextViewService=l,p._configurationService=h,p._register(i),void 0===g?(f=self.monaco.editor.createModel(n.value||"",n.language||"text/plain"),p._ownsModel=!0):(f=g,p._ownsModel=!1),p._attachModel(f),f){var m={oldModelUrl:null,newModelUrl:f.uri};p._onDidChangeModel.fire(m);}return p;}return KC(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype.updateOptions=function(t){Tc(this._configurationService,t,!1),e.prototype.updateOptions.call(this,t);},t.prototype._attachModel=function(t){e.prototype._attachModel.call(this,t),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode);},t.prototype._postDetachModelCleanup=function(t){e.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1);},t=qC([GC(3,ln),GC(4,pn),GC(5,qo),GC(6,bl),GC(7,zC),GC(8,UC),GC(9,HC),GC(10,sc),GC(11,Fl)],t);}(ZC),JC=function(e){function t(t,n,i,o,r,s,a,u,l,c,d,h){var p=this;return Tc(h,n,!0),"string"==typeof(n=n||{}).theme&&(n.theme=c.setTheme(n.theme)),(p=e.call(this,t,n,u,r,o,l,c,d)||this)._contextViewService=a,p._configurationService=h,p._register(i),p._contextViewService.setContainer(p._containerDomElement),p;}return KC(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this);},t.prototype.updateOptions=function(t){Tc(this._configurationService,t,!0),e.prototype.updateOptions.call(this,t);},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(ZC,t,n);},t.prototype.getOriginalEditor=function(){return e.prototype.getOriginalEditor.call(this);},t.prototype.getModifiedEditor=function(){return e.prototype.getModifiedEditor.call(this);},t.prototype.addCommand=function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n);},t.prototype.createContextKey=function(e,t){return this.getModifiedEditor().createContextKey(e,t);},t.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e);},t=qC([GC(3,ln),GC(4,bl),GC(5,zC),GC(6,UC),GC(7,Os),GC(8,pn),GC(9,HC),GC(10,sc),GC(11,Fl)],t);}(NC),ew=dn("IWorkspaceEditService"),tw=dn("modeService"),nw=function(){function e(e){this._languageIdentifier=e;}return e.prototype.getId=function(){return this._languageIdentifier.language;},e;}(),iw="text/plain",ow="application/unknown",rw=[],sw=[],aw=[];function uw(e,t){void 0===t&&(t=!1);var n=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(Oo)>=0};}(e);rw.push(n),n.userConfigured?aw.push(n):sw.push(n),t&&!n.userConfigured&&rw.forEach(function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"));});}function lw(e,t){if(!e)return[ow];var n=Ao(e=e.toLowerCase()),i=cw(e,n,aw);if(i)return[i,iw];var o=cw(e,n,sw);if(o)return[o,iw];if(t){var r=function(e){No(e)&&(e=e.substr(1));if(e.length>0)for(var t=0;t<rw.length;++t){var n=rw[t];if(n.firstline){var i=e.match(n.firstline);if(i&&i.length>0)return n.mime;}}return null;}(t);if(r)return[r,iw];}return[ow];}function cw(e,t,n){for(var i=null,o=null,r=null,s=n.length-1;s>=0;s--){var a=n[s];if(t===a.filenameLowercase){i=a;break;}if(a.filepattern&&(!o||a.filepattern.length>o.filepattern.length)){var u=a.filepatternOnPath?e:t;zr(a.filepatternLowercase,u)&&(o=a);}a.extension&&(!r||a.extension.length>r.extension.length)&&ao(t,a.extensionLowercase)&&(r=a);}return i?i.mime:o?o.mime:r?r.mime:null;}var dw=new(function(){function e(){this._onDidAddLanguages=new N(),this.onDidAddLanguages=this._onDidAddLanguages.event,this._languages=[];}return e.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidAddLanguages.fire([e]);},e.prototype.getLanguages=function(){return this._languages.slice(0);},e;}())();Au.add("editor.modesRegistry",dw);var hw="plaintext",pw=new ts(hw,1);dw.registerLanguage({id:hw,extensions:[".txt",".gitignore"],aliases:[ie("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),la.register(pw,{brackets:[["(",")"],["[","]"],["{","}"]]});var fw,gw,mw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),_w=Object.prototype.hasOwnProperty,vw=function(e){function t(t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=e.call(this)||this;return i._onDidChange=i._register(new N()),i.onDidChange=i._onDidChange.event,i._nextLanguageId=1,i._languages={},i._mimeTypesMap={},i._nameMap={},i._lowercaseNameMap={},i._languageIds=[],i._warnOnOverwrite=n,t&&(i._registerLanguages(dw.getLanguages()),i._register(dw.onDidAddLanguages(function(e){return i._registerLanguages(e);}))),i;}return mw(t,e),t.prototype._registerLanguages=function(e){var t=this;if(0!==e.length){for(var n=0;n<e.length;n++)this._registerLanguage(e[n]);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(function(e){var n=t._languages[e];n.name&&(t._nameMap[n.name]=n.identifier),n.aliases.forEach(function(e){t._lowercaseNameMap[e.toLowerCase()]=n.identifier;}),n.mimetypes.forEach(function(e){t._mimeTypesMap[e]=n.identifier;});}),Au.as(Fu.Configuration).registerOverrideIdentifiers(dw.getLanguages().map(function(e){return e.id;})),this._onDidChange.fire();}},t.prototype._registerLanguage=function(e){var t,n=e.id;if(_w.call(this._languages,n))t=this._languages[n];else{var i=this._nextLanguageId++;t={identifier:new ts(n,i),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languageIds[i]=n,this._languages[n]=t;}this._mergeLanguage(t,e);},t.prototype._mergeLanguage=function(e,t){var n,i,o=t.id,r=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&((n=e.mimetypes).push.apply(n,t.mimetypes),r=t.mimetypes[0]),r||(r="text/x-"+o,e.mimetypes.push(r)),Array.isArray(t.extensions))for(var s=0,u=t.extensions;s<u.length;s++){var l=u[s];uw({id:o,mime:r,extension:l},this._warnOnOverwrite),e.extensions.push(l);}if(Array.isArray(t.filenames))for(var c=0,d=t.filenames;c<d.length;c++){var h=d[c];uw({id:o,mime:r,filename:h},this._warnOnOverwrite),e.filenames.push(h);}if(Array.isArray(t.filenamePatterns))for(var p=0,f=t.filenamePatterns;p<f.length;p++){uw({id:o,mime:r,filepattern:f[p]},this._warnOnOverwrite);}if("string"==typeof t.firstLine&&t.firstLine.length>0){var g=t.firstLine;"^"!==g.charAt(0)&&(g="^"+g);try{var m=new RegExp(g);"^"!==(i=m).source&&"^$"!==i.source&&"$"!==i.source&&"^\\s*$"!==i.source&&i.exec("")&&0===i.lastIndex||uw({id:o,mime:r,firstline:m},this._warnOnOverwrite);}catch(e){a(e);}}e.aliases.push(o);var _=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(_=0===t.aliases.length?[null]:t.aliases),null!==_)for(var v=0;v<_.length;v++){var y=_[v];y&&0!==y.length&&e.aliases.push(y);}var b=null!==_&&_.length>0;if(b&&null===_[0]);else{var C=(b?_[0]:null)||o;!b&&e.name||(e.name=C);}t.configuration&&e.configurationFiles.push(t.configuration);},t.prototype.isRegisteredMode=function(e){return!!_w.call(this._mimeTypesMap,e)||_w.call(this._languages,e);},t.prototype.getModeIdForLanguageNameLowercase=function(e){return _w.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null;},t.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map(function(e){return e.trim();}).map(function(e){return _w.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e;}).filter(function(e){return _w.call(t._languages,e);}):[];},t.prototype.getLanguageIdentifier=function(e){if("vs.editor.nullMode"===e||0===e)return Is;var t;if("string"==typeof e)t=e;else if(!(t=this._languageIds[e]))return null;return _w.call(this._languages,t)?this._languages[t].identifier:null;},t.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=lw(e,t);return this.extractModeIds(n.join(","));},t;}(y),yw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),bw=function(e){function t(t,n){var i=e.call(this)||this;return i._onDidChange=i._register(new N()),i.onDidChange=i._onDidChange.event,i._selector=n,i.languageIdentifier=i._selector(),i._register(t(function(){return i._evaluate();})),i;}return yw(t,e),t.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier));},t;}(y),Cw=function(){function e(e){void 0===e&&(e=!1);var t=this;this._onDidCreateMode=new N(),this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new N(),this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new vw(!0,e),this._registry.onDidChange(function(){return t._onLanguagesMaybeChanged.fire();});}return e.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e);},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e);},e.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return n.length>0?n[0]:null;},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null;},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e);},e.prototype.create=function(e){var t=this;return new bw(this.onLanguagesMaybeChanged,function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n);});},e.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new bw(this.onLanguagesMaybeChanged,function(){var i=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(i);});},e.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||Is;return this._getOrCreateMode(t.language),t;},e.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext");},e.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||Is;this._instantiatedModes[e]=new nw(t),this._onDidCreateMode.fire(this._instantiatedModes[e]);}return this._instantiatedModes[e];},e;}(),ww=function(){function e(e){void 0===e&&(e=""),this.value=e;}return e.prototype.appendText=function(e){return this.value+=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this;},e.prototype.appendMarkdown=function(e){return this.value+=e,this;},e.prototype.appendCodeblock=function(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this;},e;}();function Sw(e){return xw(e)?!e.value:!Array.isArray(e)||e.every(Sw);}function xw(e){return e instanceof ww||!(!e||"object"!=typeof e)&&"string"==typeof e.value&&("boolean"==typeof e.isTrusted||void 0===e.isTrusted);}function Ew(e,t){return e===t||!(!e||!t)&&e.value===t.value&&e.isTrusted===t.isTrusted;}function Lw(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e;}!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error";}(fw||(fw={})),function(e){e.compare=function(e,t){return t-e;};var t=Object.create(null);t[e.Error]=ie("sev.error","Error"),t[e.Warning]=ie("sev.warning","Warning"),t[e.Info]=ie("sev.info","Info"),e.toString=function(e){return t[e]||"";},e.fromSeverity=function(t){switch(t){case Du.Error:return e.Error;case Du.Warning:return e.Warning;case Du.Info:return e.Info;case Du.Ignore:return e.Hint;}};}(fw||(fw={})),function(e){var t="";e.makeKey=function(e){var n=[t];return e.source?n.push(e.source.replace("¦","¦")):n.push(t),e.code?n.push(e.code.replace("¦","¦")):n.push(t),void 0!==e.severity&&null!==e.severity?n.push(fw.toString(e.severity)):n.push(t),e.message?n.push(e.message.replace("¦","¦")):n.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(t),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(t),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(t),n.push(t),n.join("¦");};}(gw||(gw={}));var Tw=dn("markerService"),Iw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Nw=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},kw=function(e,t){return function(n,i){t(n,i,e);};};function Ow(e){return e.toString();}var Dw=function(){function e(e,t,n){this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._markerDecorations=[],this._modelEventListeners=[],this._modelEventListeners.push(e.onWillDispose(function(){return t(e);})),this._modelEventListeners.push(e.onDidChangeLanguage(function(t){return n(e,t);}));}return e.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null);},e.prototype.dispose=function(){this._markerDecorations=this.model.deltaDecorations(this._markerDecorations,[]),this._modelEventListeners=f(this._modelEventListeners),this._disposeLanguageSelection();},e.prototype.acceptMarkerDecorations=function(e){this._markerDecorations=this.model.deltaDecorations(this._markerDecorations,e);},e.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return t.model.setMode(e.languageIdentifier);}),this.model.setMode(e.languageIdentifier);},e;}(),Rw=function(){function e(){}return e.setMarkers=function(t,n){var i=n.read({resource:t.model.uri,take:500}).map(function(n){return{range:e._createDecorationRange(t.model,n),options:e._createDecorationOption(n)};});t.acceptMarkerDecorations(i);},e._createDecorationRange=function(e,t){var n=Jt.lift(t);if(t.severity===fw.Hint&&(t.tags&&-1!==t.tags.indexOf(1)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2))),(n=e.validateRange(n)).isEmpty()){var i=e.getWordAtPosition(n.getStartPosition());if(i)n=new Jt(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn);else{var o=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===o||(n=n.endColumn>=o?new Jt(n.startLineNumber,o-1,n.endLineNumber,o):new Jt(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1));}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r<n.endColumn&&(n=new Jt(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r);}return n;},e._createDecorationOption=function(e){var t,n,i=void 0,o=void 0;switch(e.severity){case fw.Hint:t=e.tags&&e.tags.indexOf(1)>=0?"squiggly-unnecessary":"squiggly-hint",n=0;break;case fw.Warning:t="squiggly-warning",i=Ad(Kf),n=20;break;case fw.Info:t="squiggly-info",i=Ad(qf),n=10;break;case fw.Error:default:t="squiggly-error",i=Ad(zf),n=30;}e.tags&&-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary");var r=null,s=e.message,a=e.source,u=e.relatedInformation,l=e.code;if("string"==typeof s&&(s=s.trim(),a&&(s=/\n/g.test(s)?l?ie("diagAndSourceAndCodeMultiline","[{0}]\n{1} [{2}]",a,s,l):ie("diagAndSourceMultiline","[{0}]\n{1}",a,s):l?ie("diagAndSourceAndCode","[{0}] {1} [{2}]",a,s,l):ie("diagAndSource","[{0}] {1}",a,s)),r=new ww().appendCodeblock("_",s),!ce(u))){r.appendMarkdown("\n");for(var c=0,d=u;c<d.length;c++){var h=d[c],p=h.message,f=h.resource,g=h.startLineNumber,m=h.startColumn;r.appendMarkdown("* ["+Ao(f.path)+"("+g+", "+m+")]("+f.toString(!1)+"#"+g+","+m+"): "),r.appendText(""+p),r.appendMarkdown("\n");}r.appendMarkdown("\n");}return{stickiness:1,className:t,hoverMessage:r,showIfCollapsed:!0,overviewRuler:{color:i,position:cr.Right},zIndex:n,inlineClassName:o};},e;}(),Aw=o.c||o.d?1:2,Mw=function(e){function t(t,n,i){var o=e.call(this)||this;return o._onModelAdded=o._register(new N()),o.onModelAdded=o._onModelAdded.event,o._onModelRemoved=o._register(new N()),o.onModelRemoved=o._onModelRemoved.event,o._onModelModeChanged=o._register(new N()),o.onModelModeChanged=o._onModelModeChanged.event,o._markerService=t,o._configurationService=n,o._resourcePropertiesService=i,o._models={},o._modelCreationOptionsByLanguageAndResource=Object.create(null),o._markerService&&(o._markerServiceSubscription=o._markerService.onMarkerChanged(o._handleMarkerChange,o)),o._configurationServiceSubscription=o._configurationService.onDidChangeConfiguration(function(e){return o._updateModelOptions();}),o._updateModelOptions(),o;}return Iw(t,e),t._readModelOptions=function(e,t){var n=Ye.tabSize;if(e.editor&&void 0!==e.editor.tabSize){var i=parseInt(e.editor.tabSize,10);isNaN(i)||(n=i),n<1&&(n=1);}var o=Ye.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(o="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var r=Aw,s=e.eol;"\r\n"===s?r=2:"\n"===s&&(r=1);var a=Ye.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var u=Ye.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(u="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var l=Ye.largeFileOptimizations;return e.editor&&void 0!==e.editor.largeFileOptimizations&&(l="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,insertSpaces:o,detectIndentation:u,defaultEOL:r,trimAutoWhitespace:a,largeFileOptimizations:l};},t.prototype.getCreationOptions=function(e,n,i){var o=this._modelCreationOptionsByLanguageAndResource[e+n];if(!o){var r=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:n}),s=this._resourcePropertiesService.getEOL(n,e);o=t._readModelOptions({editor:r,eol:s},i),this._modelCreationOptionsByLanguageAndResource[e+n]=o;}return o;},t.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var n=Object.keys(this._models),i=0,o=n.length;i<o;i++){var r=n[i],s=this._models[r],a=s.model.getLanguageIdentifier().language,u=s.model.uri,l=e[a+u],c=this.getCreationOptions(a,u,s.model.isForSimpleWidget);t._setModelOptionsForModel(s.model,c,l);}},t._setModelOptionsForModel=function(e,t,n){n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.trimAutoWhitespace===t.trimAutoWhitespace||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,trimAutoWhitespace:t.trimAutoWhitespace}));},t.prototype.dispose=function(){this._markerServiceSubscription&&this._markerServiceSubscription.dispose(),this._configurationServiceSubscription.dispose(),e.prototype.dispose.call(this);},t.prototype._handleMarkerChange=function(e){var t=this;e.forEach(function(e){var n=Ow(e),i=t._models[n];i&&Rw.setMarkers(i,t._markerService);});},t.prototype._cleanUp=function(e){var t=this;e.uri.scheme!==Hi.inMemory&&e.uri.scheme!==Hi.internal&&e.uri.scheme!==Hi.vscode||this._markerService&&this._markerService.read({resource:e.uri}).map(function(e){return e.owner;}).forEach(function(n){return t._markerService.remove(n,[e.uri]);}),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri];},t.prototype._createModelData=function(e,t,n,i){var o=this,r=this.getCreationOptions(t.language,n,i),s=new Jm(e,r,t,n),a=Ow(s.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");var u=new Dw(s,function(e){return o._onWillDispose(e);},function(e,t){return o._onDidChangeLanguage(e,t);});return this._models[a]=u,u;},t.prototype.createModel=function(e,t,n,i){var o;return void 0===i&&(i=!1),t?(o=this._createModelData(e,t.languageIdentifier,n,i),this.setMode(o.model,t)):o=this._createModelData(e,pw,n,i),this._markerService&&Rw.setMarkers(o,this._markerService),this._onModelAdded.fire(o.model),o.model;},t.prototype.setMode=function(e,t){if(t){var n=this._models[Ow(e.uri)];n&&n.setLanguage(t);}},t.prototype.getModels=function(){for(var e=[],t=Object.keys(this._models),n=0,i=t.length;n<i;n++){var o=t[n];e.push(this._models[o].model);}return e;},t.prototype.getModel=function(e){var t=Ow(e),n=this._models[t];return n?n.model:null;},t.prototype._onWillDispose=function(e){var t=Ow(e.uri),n=this._models[t];delete this._models[t],n.dispose(),this._cleanUp(e),this._onModelRemoved.fire(e);},t.prototype._onDidChangeLanguage=function(e,n){var i=n.oldLanguage,o=e.getLanguageIdentifier().language,r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(o,e.uri,e.isForSimpleWidget);t._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldModeId:i});},t=Nw([kw(0,Tw),kw(1,Fl),kw(2,ja)],t);}(y),Pw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Fw=function(e){function t(){var t=e.call(this)||this;return t._onCodeEditorAdd=t._register(new N()),t.onCodeEditorAdd=t._onCodeEditorAdd.event,t._onCodeEditorRemove=t._register(new N()),t._onDiffEditorAdd=t._register(new N()),t._onDiffEditorRemove=t._register(new N()),t._codeEditors=Object.create(null),t._diffEditors=Object.create(null),t;}return Pw(t,e),t.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e);},t.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e);},t.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map(function(t){return e._codeEditors[t];});},t.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e);},t.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e);},t.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map(function(t){return e._diffEditors[t];});},t.prototype.getFocusedCodeEditor=function(){for(var e=null,t=this.listCodeEditors(),n=0;n<t.length;n++){var i=t[n];if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i);}return e;},t;}(y),Ww=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Bw=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},Vw=function(e,t){return function(n,i){t(n,i,e);};},Hw=function(e){function t(t,n){void 0===n&&(n=Di());var i=e.call(this)||this;return i._styleSheet=n,i._decorationOptionProviders=Object.create(null),i._themeService=t,i;}return Ww(t,e),t.prototype.registerDecorationType=function(e,t,n){var i=this._decorationOptionProviders[e];if(!i){var o={styleSheet:this._styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};i=n?new Uw(this._themeService,o):new jw(this._themeService,o),this._decorationOptionProviders[e]=i;}i.refCount++;},t.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders[e];t&&(t.refCount--,t.refCount<=0&&(delete this._decorationOptionProviders[e],t.dispose(),this.listCodeEditors().forEach(function(t){return t.removeDecorations(e);})));},t.prototype.resolveDecorationOptions=function(e,t){var n=this._decorationOptionProviders[e];if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t);},t=Bw([Vw(0,Rd)],t);}(Fw),Uw=function(){function e(e,t){this._parentTypeKey=t.parentTypeKey,this.refCount=0,this._beforeContentRules=new Kw(3,t,e),this._afterContentRules=new Kw(4,t,e);}return e.prototype.getOptions=function(e,t){var n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n;},e.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null);},e;}(),jw=function(){function e(e,t){var n=this;this.refCount=0,this._disposables=[];var i=function(i){var o=new Kw(i,t,e);if(o.hasContent)return n._disposables.push(o),o.className;};this.className=i(0);var o,r=(o=new Kw(1,t,e)).hasContent?(n._disposables.push(o),{className:o.className,hasLetterSpacing:o.hasLetterSpacing}):null;r&&(this.inlineClassName=r.className,this.inlineClassNameAffectsLetterSpacing=r.hasLetterSpacing),this.beforeContentClassName=i(3),this.afterContentClassName=i(4),this.glyphMarginClassName=i(2);var s=t.options;this.isWholeLine=Boolean(s.isWholeLine),this.stickiness=s.rangeBehavior;var a=s.light&&s.light.overviewRulerColor||s.overviewRulerColor,u=s.dark&&s.dark.overviewRulerColor||s.overviewRulerColor;void 0===a&&void 0===u||(this.overviewRuler={color:a||u,darkColor:u||a,position:s.overviewRulerLane||cr.Center});}return e.prototype.getOptions=function(e,t){return t?{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;},e.prototype.dispose=function(){this._disposables=f(this._disposables);},e;}(),zw={color:"color:{0} !important;",opacity:"opacity:{0}; will-change: opacity;",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:url('{0}') center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:url('{0}');",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},Kw=function(){function e(e,t,n){var i=this;this._theme=n.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var o=qw.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(o=o+" "+qw.getClassName(this._providerArgs.parentTypeKey,e)),this._className=o,this._unThemedSelector=qw.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onThemeChange(function(e){i._theme=n.getTheme(),i._removeCSS(),i._buildCSS();}):this._themeListener=null;}return e.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null);},Object.defineProperty(e.prototype,"hasContent",{get:function(){return this._hasContent;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className;},enumerable:!0,configurable:!0}),e.prototype._buildCSS=function(){var e,t,n,i=this._providerArgs.options;switch(this._ruleType){case 0:e=this.getCSSTextForModelDecorationClassName(i),t=this.getCSSTextForModelDecorationClassName(i.light),n=this.getCSSTextForModelDecorationClassName(i.dark);break;case 1:e=this.getCSSTextForModelDecorationInlineClassName(i),t=this.getCSSTextForModelDecorationInlineClassName(i.light),n=this.getCSSTextForModelDecorationInlineClassName(i.dark);break;case 2:e=this.getCSSTextForModelDecorationGlyphMarginClassName(i),t=this.getCSSTextForModelDecorationGlyphMarginClassName(i.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(i.dark);break;case 3:e=this.getCSSTextForModelDecorationContentClassName(i.before),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.before),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.before);break;case 4:e=this.getCSSTextForModelDecorationContentClassName(i.after),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.after),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType);}var o=this._providerArgs.styleSheet.sheet,r=!1;e.length>0&&(o.insertRule(this._unThemedSelector+" {"+e+"}",0),r=!0),t.length>0&&(o.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),r=!0),n.length>0&&(o.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),r=!0),this._hasContent=r;},e.prototype._removeCSS=function(){Mi(this._unThemedSelector,this._providerArgs.styleSheet);},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("");},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("");},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if(void 0!==e){if(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&("string"==typeof e.contentIconPath?t.push(to(zw.contentIconPath,_t.file(e.contentIconPath).toString().replace(/'/g,"%27"))):t.push(to(zw.contentIconPath,_t.revive(e.contentIconPath).toString(!0).replace(/'/g,"%27")))),"string"==typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(to(zw.contentText,n));}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;");}return t.join("");},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return void 0!==e.gutterIconPath&&("string"==typeof e.gutterIconPath?t.push(to(zw.gutterIconPath,_t.file(e.gutterIconPath).toString())):t.push(to(zw.gutterIconPath,_t.revive(e.gutterIconPath).toString(!0).replace(/'/g,"%27"))),void 0!==e.gutterIconSize&&t.push(to(zw.gutterIconSize,e.gutterIconSize))),t.join("");},e.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(to("box-sizing: border-box;")),!0);},e.prototype.collectCSSText=function(e,t,n){for(var i=n.length,o=0,r=t;o<r.length;o++){var s=r[o],a=this.resolveValue(e[s]);"string"==typeof a&&n.push(to(zw[s],a));}return n.length!==i;},e.prototype.resolveValue=function(e){if((n=e)&&"string"==typeof n.id){this._usesThemeColors=!0;var t=this._theme.getColor(e.id);return t?t.toString():"transparent";}var n;return e;},e;}(),qw=function(){function e(){}return e.getClassName=function(e,t){return"ced-"+e+"-"+t;},e.getSelector=function(e,t,n){var i=".monaco-editor ."+this.getClassName(e,n);return t&&(i=i+"."+this.getClassName(t,n)),3===n?i+="::before":4===n&&(i+="::after"),i;},e;}(),Gw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),$w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return Gw(t,e),t.prototype.getActiveCodeEditor=function(){return null;},t.prototype.openCodeEditor=function(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null);},t.prototype.doOpenEditor=function(e,t){if(!this.findModel(e,t.resource)){if(t.resource){var n=t.resource.scheme;if(n===Hi.http||n===Hi.https)return Yi(t.resource.toString()),e;}return null;}var i=t.options?t.options.selection:null;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{var o={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(o),e.revealPositionInCenter(o,1);}return e;},t.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n;},t;}(Hw),Yw=function(){return function(e,t,n,i,o){this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=o;};}();function Xw(e,t){e.sort(function(e,t){var n=function(e,t){if(e<t)return-1;if(e>t)return 1;return 0;}(e.token,t.token);return 0!==n?n:e.index-t.index;});for(var n=0,i="000000",o="ffffff";e.length>=1&&""===e[0].token;){var r=e.shift();-1!==r.fontStyle&&(n=r.fontStyle),null!==r.foreground&&(i=r.foreground),null!==r.background&&(o=r.background);}for(var s=new Qw(),a=0,u=t;a<u.length;a++){var l=u[a];s.getId(l);}for(var c=s.getId(i),d=s.getId(o),h=new oS(n,c,d),p=new rS(h),f=0,g=e.length;f<g;f++){var m=e[f];p.insert(m.token,m.fontStyle,s.getId(m.foreground),s.getId(m.background));}return new Jw(s,p);}var Zw=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,Qw=function(){function e(){this._lastColorId=0,this._id2color=[],this._color2id=new Map();}return e.prototype.getId=function(e){if(null===e)return 0;var t=e.match(Zw);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();var n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=Oh.fromHex("#"+e),n);},e.prototype.getColorMap=function(){return this._id2color.slice(0);},e;}(),Jw=function(){function e(e,t){this._colorMap=e,this._root=t,this._cache=new Map();}return e.createFromRawTokenTheme=function(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];for(var t=[],n=0,i=0,o=e.length;i<o;i++){var r=e[i],s=-1;if("string"==typeof r.fontStyle){s=0;for(var a=r.fontStyle.split(" "),u=0,l=a.length;u<l;u++)switch(a[u]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;}}var c=null;"string"==typeof r.foreground&&(c=r.foreground);var d=null;"string"==typeof r.background&&(d=r.background),t[n++]=new Yw(r.token||"",i,s,c,d);}return t;}(e),t);},e.createFromParsedTokenTheme=function(e,t){return Xw(e,t);},e.prototype.getColorMap=function(){return this._colorMap.getColorMap();},e.prototype._match=function(e){return this._root.match(e);},e.prototype.match=function(e,t){var n=this._cache.get(t);if(void 0===n){var i=this._match(t),o=function(e){var t=e.match(eS);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;}throw new Error("Unexpected match for standard token type!");}(t);n=(i.metadata|o<<8)>>>0,this._cache.set(t,n);}return(n|e<<0)>>>0;},e;}(),eS=/\b(comment|string|regex)\b/;var tS,nS,iS,oS=function(){function e(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0;}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background);},e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0;},e;}(),rS=function(){function e(e){this._mainRule=e,this._children=new Map();}return e.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");-1===i?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));var o=this._children.get(t);return void 0!==o?o.match(n):this._mainRule;},e.prototype.insert=function(t,n,i,o){if(""!==t){var r,s,a=t.indexOf(".");-1===a?(r=t,s=""):(r=t.substring(0,a),s=t.substring(a+1));var u=this._children.get(r);void 0===u&&(u=new e(this._mainRule.clone()),this._children.set(r,u)),u.insert(s,n,i,o);}else this._mainRule.acceptOverwrite(n,i,o);},e;}();var sS={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:"09885A"},{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:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{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:(tS={},tS[Op]="#FFFFFE",tS[Dp]="#000000",tS[Wp]="#E5EBF1",tS[Sf]="#D3D3D3",tS[xf]="#939393",tS[Bp]="#ADD6FF4D",tS)},aS={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:(nS={},nS[Op]="#1E1E1E",nS[Dp]="#D4D4D4",nS[Wp]="#3A3D41",nS[Sf]="#404040",nS[xf]="#707070",nS[Bp]="#ADD6FF26",nS)},uS={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:(iS={},iS[Op]="#000000",iS[Dp]="#FFFFFF",iS[Sf]="#FFFFFF",iS[xf]="#FFFFFF",iS)},lS="vs",cS="vs-dark",dS="hc-black",hS=Au.as(Dh),pS=Au.as(Wd),fS=function(){function e(e,t){this.themeData=t;var n=t.base;e.length>0?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null;}return Object.defineProperty(e.prototype,"base",{get:function(){return this.themeData.base;},enumerable:!0,configurable:!0}),e.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null);},e.prototype.getColors=function(){if(!this.colors){var e=Object.create(null);for(var t in this.themeData.colors)e[t]=Oh.fromHex(this.themeData.colors[t]);if(this.themeData.inherit){var n=mS(this.themeData.base);for(var t in n.colors)e[t]||(e[t]=Oh.fromHex(n.colors[t]));}this.colors=e;}return this.colors;},e.prototype.getColor=function(e,t){var n=this.getColors()[e];return n||(!1!==t?this.getDefault(e):null);},e.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=hS.resolveDefaultColor(e,this),this.defaultColors[e]=t,t);},e.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e);},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case lS:return"light";case dS:return"hc";default:return"dark";}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=mS(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors);}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=Jw.createFromRawTokenTheme(e,t);}return this._tokenTheme;},enumerable:!0,configurable:!0}),e;}();function gS(e){return e===lS||e===cS||e===dS;}function mS(e){switch(e){case lS:return sS;case cS:return aS;case dS:return uS;}}function _S(e){var t=mS(e);return new fS(e,t);}var vS=function(){function e(){this.environment=Object.create(null),this._onThemeChange=new N(),this._onIconThemeChange=new N(),this._knownThemes=new Map(),this._knownThemes.set(lS,_S(lS)),this._knownThemes.set(cS,_S(cS)),this._knownThemes.set(dS,_S(dS)),this._styleElement=Di(),this._styleElement.className="monaco-colors",this.setTheme(lS);}return Object.defineProperty(e.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event;},enumerable:!0,configurable:!0}),e.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!gS(t.base)&&!gS(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new fS(e,t)),gS(e)&&this._knownThemes.forEach(function(t){t.base===e&&t.notifyBaseUpdated();}),this._theme&&this._theme.themeName===e&&this.setTheme(e);},e.prototype.getTheme=function(){return this._theme;},e.prototype.setTheme=function(e){var t,n=this;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(lS),this._theme===t)return t.id;this._theme=t;var i=[],o={},r={addRule:function(e){o[e]||(i.push(e),o[e]=!0);}};pS.getThemingParticipants().forEach(function(e){return e(t,r,n.environment);});var s=t.tokenTheme.getColorMap();return r.addRule(function(e){for(var t=[],n=1,i=e.length;n<i;n++){var o=e[n];t[n]=".mtk"+n+" { color: "+o+"; }";}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.join("\n");}(s)),this._styleElement.innerHTML=i.join("\n"),Ls.setColorMap(s),this._onThemeChange.fire(t),t.id;},e.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1};},e;}(),yS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),bS=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},CS=function(e,t){return function(n,i){t(n,i,e);};},wS="data-keybinding-context",SS=function(){function e(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e;}return e.prototype.setValue=function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0);},e.prototype.removeValue=function(e){return e in this._value&&(delete this._value[e],!0);},e.prototype.getValue=function(e){var t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t;},e;}(),xS=function(e){function t(){return e.call(this,-1,null)||this;}return yS(t,e),t.prototype.setValue=function(e,t){return!1;},t.prototype.removeValue=function(e){return!1;},t.prototype.getValue=function(e){},t.INSTANCE=new t(),t;}(SS),ES=function(e){function t(t,n,i){var o=e.call(this,t,null)||this;return o._configurationService=n,o._values=new Map(),o._listener=o._configurationService.onDidChangeConfiguration(function(e){if(4===e.source){var t=(u=o._values,l=[],u.forEach(function(e,t){return l.push(t);}),l);o._values.clear(),i.fire(t);}else{for(var n=[],r=0,s=e.affectedKeys;r<s.length;r++){var a="config."+s[r];o._values.has(a)&&(o._values.delete(a),n.push(a));}i.fire(n);}var u,l;}),o;}return yS(t,e),t.prototype.dispose=function(){this._listener.dispose();},t.prototype.getValue=function(n){if(0!==n.indexOf(t._keyPrefix))return e.prototype.getValue.call(this,n);if(this._values.has(n))return this._values.get(n);var i=n.substr(t._keyPrefix.length),o=this._configurationService.getValue(i),r=void 0;switch(typeof o){case"number":case"boolean":case"string":r=o;}return this._values.set(n,r),r;},t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n);},t.prototype.removeValue=function(t){return e.prototype.removeValue.call(this,t);},t._keyPrefix="config.",t;}(SS),LS=function(){function e(e,t,n){this._parent=e,this._key=t,this._defaultValue=n,this.reset();}return e.prototype.set=function(e){this._parent.setContext(this._key,e);},e.prototype.reset=function(){void 0===this._defaultValue?this._parent.removeContext(this._key):this._parent.setContext(this._key,this._defaultValue);},e.prototype.get=function(){return this._parent.getContextKeyValue(this._key);},e;}(),TS=function(){function e(){this._keys=[];}return e.prototype.collect=function(e){this._keys=this._keys.concat(e);},e.prototype.affectsSome=function(e){for(var t=0,n=this._keys;t<n.length;t++){var i=n[t];if(e.has(i))return!0;}return!1;},e;}(),IS=function(){function e(e){this._isDisposed=!1,this._myContextId=e,this._onDidChangeContextKey=new N();}return e.prototype.createKey=function(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new LS(this,e,t);},Object.defineProperty(e.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext||(this._onDidChangeContext=R(this._onDidChangeContextKey.event,function(e,t){return e||(e=new TS()),e.collect(t),e;},25)),this._onDidChangeContext;},enumerable:!0,configurable:!0}),e.prototype.createScoped=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new kS(this,this._onDidChangeContextKey,e);},e.prototype.contextMatchesRules=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId);return $l.contextMatchesRules(t,e);},e.prototype.getContextKeyValue=function(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e);},e.prototype.setContext=function(e,t){if(!this._isDisposed){var n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContextKey.fire(e);}},e.prototype.removeContext=function(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContextKey.fire(e);},e.prototype.getContext=function(e){return this._isDisposed?xS.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(wS)){var t=e.getAttribute(wS);return t?parseInt(t,10):NaN;}e=e.parentElement;}return 0;}(e));},e;}(),NS=function(e){function t(t){var n=e.call(this,0)||this;n._toDispose=[],n._lastContextId=0,n._contexts=Object.create(null);var i=new ES(n._myContextId,t,n._onDidChangeContextKey);return n._contexts[String(n._myContextId)]=i,n._toDispose.push(i),n;}return yS(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._toDispose=f(this._toDispose);},t.prototype.getContextValuesContainer=function(e){return this._isDisposed?xS.INSTANCE:this._contexts[String(e)];},t.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var t=++this._lastContextId;return this._contexts[String(t)]=new SS(t,this.getContextValuesContainer(e)),t;},t.prototype.disposeContext=function(e){this._isDisposed||delete this._contexts[String(e)];},t=bS([CS(0,Fl)],t);}(IS),kS=function(e){function t(t,n,i){var o=e.call(this,t.createChildContext())||this;return o._parent=t,o._onDidChangeContextKey=n,i&&(o._domNode=i,o._domNode.setAttribute(wS,String(o._myContextId))),o;}return yS(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(wS),this._domNode=void 0);},Object.defineProperty(t.prototype,"onDidChangeContext",{get:function(){return this._parent.onDidChangeContext;},enumerable:!0,configurable:!0}),t.prototype.getContextValuesContainer=function(e){return this._isDisposed?xS.INSTANCE:this._parent.getContextValuesContainer(e);},t.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e);},t.prototype.disposeContext=function(e){this._isDisposed||this._parent.disposeContext(e);},t;}(IS);Go.registerCommand("setContext",function(e,t,n){e.get(bl).createKey(String(t),n);});n("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextMenuHandler.css"),n("./node_modules/monaco-editor/esm/vs/base/browser/ui/menu/menu.css");var OS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),DS=/\(&{1,2}(.)\)|&{1,2}(.)/,RS=/(?:&){1,2}(.)/,AS=function(e){function t(t,n,i){var o=e.call(this,i||"submenu",t,"",!0)||this;return o.entries=n,o;}return OS(t,e),t;}(wl),MS=function(e){function t(t,n,i){void 0===i&&(i={});var o=this;Xn(t,"monaco-menu-container"),t.setAttribute("role","presentation");var r=document.createElement("div");Xn(r,"monaco-menu"),r.setAttribute("role","presentation"),t.appendChild(r),(o=e.call(this,r,{orientation:2,actionItemProvider:function(e){return o.doGetActionItem(e,i,s);},context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,triggerKeys:{keys:[3],keyDown:!0}})||this).actionsList.setAttribute("role","menu"),o.actionsList.tabIndex=0,o.menuDisposables=[],i.enableMnemonics&&o.menuDisposables.push(ni(r,Pi.KEY_DOWN,function(e){var t=ze.fromString(e.key);if(o.mnemonics.has(t)){Fi.stop(e,!0);var n=o.mnemonics.get(t);if(1===n.length&&(n[0]instanceof FS&&o.focusItemByElement(n[0].container),n[0].onClick(event)),n.length>1){var i=n.shift();o.focusItemByElement(i.container),n.push(i),o.mnemonics.set(t,n);}}})),o._register(ni(o.domNode,Pi.MOUSE_OUT,function(e){ki(e.relatedTarget,o.domNode)||(o.focusedItem=void 0,o.updateFocus(),e.stopPropagation());})),o._register(ni(o.actionsList,Pi.MOUSE_OVER,function(e){var t=e.target;if(t&&ki(t,o.actionsList)&&t!==o.actionsList){for(;t.parentElement!==o.actionsList;)t=t.parentElement;if(Yn(t,"action-item")){var n=o.focusedItem;o.setFocusedItem(t),n!==o.focusedItem&&o.updateFocus();}}}));var s={parent:o};return o.mnemonics=new Map(),o.push(n,{icon:!0,label:!0,isMenu:!0}),o;}return OS(t,e),t.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:null,i=e.backgroundColor?""+e.backgroundColor:null,o=e.borderColor?"2px solid "+e.borderColor:null,r=e.shadowColor?"0 2px 4px "+e.shadowColor:null;t.style.border=o,this.domNode.style.color=n,this.domNode.style.backgroundColor=i,t.style.boxShadow=r,this.items&&this.items.forEach(function(t){(t instanceof PS||t instanceof WS)&&t.style(e);});},t.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus();},t.prototype.setFocusedItem=function(e){for(var t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break;}}},t.prototype.doGetActionItem=function(e,t,n){if(e instanceof pC)return new WS(t.context,e,{icon:!0});if(e instanceof AS){var i=new FS(e,e.entries,n,t);if(t.enableMnemonics)if((a=i.getMnemonic())&&i.isEnabled()){var o=[];this.mnemonics.has(a)&&(o=this.mnemonics.get(a)),o.push(i),this.mnemonics.set(a,o);}return i;}var r={enableMnemonics:t.enableMnemonics};if(t.getKeyBinding){var s=t.getKeyBinding(e);s&&(r.keybinding=s.getLabel());}var a;i=new PS(t.context,e,r);if(t.enableMnemonics&&(a=i.getMnemonic())&&i.isEnabled()){o=[];this.mnemonics.has(a)&&(o=this.mnemonics.get(a)),o.push(i),this.mnemonics.set(a,o);}return i;},t.prototype.focus=function(t){void 0===t&&(t=!0),e.prototype.focus.call(this,t);},t;}(mC),PS=function(e){function t(t,n,i){void 0===i&&(i={});var o=this;if(i.isMenu=!0,(o=e.call(this,n,n,i)||this).options=i,o.options.icon=void 0!==i.icon&&i.icon,o.options.label=void 0===i.label||i.label,o.cssClass="",o.options.label&&i.enableMnemonics){var r=o.getAction().label;if(r){var s=DS.exec(r);s&&(o.mnemonic=ze.fromString((s[1]?s[1]:s[2]).toLocaleLowerCase()));}}return o;}return OS(t,e),t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t),this.container=t,this.item=Vi(this.element,ji("a.action-menu-item")),this._action.id===pC.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Vi(this.item,ji("span.menu-item-check")),this.check.setAttribute("role","none"),this.label=Vi(this.item,ji("span.action-label")),this.options.label&&this.options.keybinding&&(Vi(this.item,ji("span.keybinding")).textContent=this.options.keybinding),this._register(ni(this.element,Pi.MOUSE_UP,function(e){Fi.stop(e,!0),n.onClick(e);})),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked();},t.prototype.blur=function(){e.prototype.blur.call(this),this.applyStyle();},t.prototype.focus=function(){e.prototype.focus.call(this),this.item.focus(),this.applyStyle();},t.prototype.updateLabel=function(){if(this.options.label){var e=this.getAction().label;if(e){var t=function(e){var t=DS,n=t.exec(e);if(!n)return e;var i="&"===n[0].charAt(0);return e.replace(t,i?"$2":"").trim();}(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t);var n=DS.exec(e);n&&(e=no(e).replace(RS,'<u aria-hidden="true">$1</u>'),this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[2]).toLocaleLowerCase()));}this.label.innerHTML=e.trim();}},t.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=ie({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&(this.item.title=e);},t.prototype.updateClass=function(){this.cssClass&&Jn(this.item,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,Xn(this.label,"icon"),this.cssClass&&Zn(this.label,this.cssClass),this.updateEnabled()):Qn(this.label,"icon");},t.prototype.updateEnabled=function(){this.getAction().enabled?(Qn(this.element,"disabled"),Qn(this.item,"disabled"),this.item.tabIndex=0):(Xn(this.element,"disabled"),Xn(this.item,"disabled"),qi(this.item));},t.prototype.updateChecked=function(){this.getAction().checked?(Xn(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Qn(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false"));},t.prototype.getMnemonic=function(){return this.mnemonic;},t.prototype.applyStyle=function(){var e=Yn(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:this.menuStyle.backgroundColor,i=e&&this.menuStyle.selectionBorderColor?"1px solid "+this.menuStyle.selectionBorderColor:null;this.item.style.color=t?""+t:null,this.check.style.backgroundColor=t?""+t:null,this.item.style.backgroundColor=n?""+n:null,this.container.style.border=i;},t.prototype.style=function(e){this.menuStyle=e,this.applyStyle();},t;}(hC),FS=function(e){function t(t,n,i,o){var r=e.call(this,t,t,o)||this;return r.submenuActions=n,r.parentData=i,r.submenuOptions=o,r.submenuDisposables=[],r.showScheduler=new ee(function(){r.mouseOver&&(r.cleanupExistingSubmenu(!1),r.createSubmenu(!1));},250),r.hideScheduler=new ee(function(){ki(document.activeElement,r.element)||r.parentData.submenu!==r.mysubmenu||(r.parentData.parent.focus(!1),r.cleanupExistingSubmenu(!0));},750),r;}return OS(t,e),t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t),Xn(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.submenuIndicator=Vi(this.item,ji("span.submenu-indicator")),this.submenuIndicator.setAttribute("aria-hidden","true"),this._register(ni(this.element,Pi.KEY_UP,function(e){var t=new Rn(e);(t.equals(17)||t.equals(3))&&(Fi.stop(e,!0),n.createSubmenu(!0));})),this._register(ni(this.element,Pi.KEY_DOWN,function(e){var t=new Rn(e);(t.equals(17)||t.equals(3))&&Fi.stop(e,!0);})),this._register(ni(this.element,Pi.MOUSE_OVER,function(e){n.mouseOver||(n.mouseOver=!0,n.showScheduler.schedule());})),this._register(ni(this.element,Pi.MOUSE_LEAVE,function(e){n.mouseOver=!1;})),this._register(ni(this.element,Pi.FOCUS_OUT,function(e){ki(document.activeElement,n.element)||n.hideScheduler.schedule();}));},t.prototype.onClick=function(e){Fi.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!1);},t.prototype.cleanupExistingSubmenu=function(e){this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=null,this.submenuContainer&&(this.submenuDisposables=f(this.submenuDisposables),this.submenuContainer=null));},t.prototype.createSubmenu=function(e){var t=this;void 0===e&&(e=!0),this.parentData.submenu?this.parentData.submenu.focus(!1):(this.submenuContainer=Vi(this.element,ji("div.monaco-submenu")),Zn(this.submenuContainer,"menubar-menu-items-holder","context-view"),this.submenuContainer.style.left=function(e){if(e!==document.body)return new wi(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new wi(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new wi(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new wi(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height");}(this.element).width+"px",this.submenuDisposables.push(ni(this.submenuContainer,Pi.KEY_UP,function(e){new Rn(e).equals(15)&&(Fi.stop(e,!0),t.parentData.parent.focus(),t.parentData.submenu.dispose(),t.parentData.submenu=null,t.submenuDisposables=f(t.submenuDisposables),t.submenuContainer=null);})),this.submenuDisposables.push(ni(this.submenuContainer,Pi.KEY_DOWN,function(e){new Rn(e).equals(15)&&Fi.stop(e,!0);})),this.parentData.submenu=new MS(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle),this.submenuDisposables.push(this.parentData.submenu.onDidCancel(function(){t.parentData.parent.focus(),t.parentData.submenu.dispose(),t.parentData.submenu=null,t.submenuDisposables=f(t.submenuDisposables),t.submenuContainer=null;})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu);},t.prototype.applyStyle=function(){e.prototype.applyStyle.call(this);var t=Yn(this.element,"focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator.style.backgroundColor=t?""+t:null,this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle);},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuDisposables=f(this.submenuDisposables),this.submenuContainer=null);},t;}(PS),WS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return OS(t,e),t.prototype.style=function(e){this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:null;},t;}(fC);var BS=function(){return(BS=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e;}).apply(this,arguments);};function VS(e,t){var n=Object.create(null);for(var i in t){var o=t[i];"string"==typeof o?n[i]=e.getColor(o):"function"==typeof o&&(n[i]=o(e));}return n;}function HS(e,t,n){function i(i){var o=VS(e.getTheme(),t);"function"==typeof n?n(o):n.style(o);}return i(e.getTheme()),e.onThemeChange(i);}function US(e,t,n){return HS(t,Ie(n||Object.create(null),jS,!1),e);}var jS={listFocusBackground:op,listFocusForeground:rp,listActiveSelectionBackground:sp,listActiveSelectionForeground:ap,listFocusAndSelectionBackground:sp,listFocusAndSelectionForeground:ap,listInactiveSelectionBackground:up,listInactiveSelectionForeground:lp,listInactiveFocusBackground:cp,listHoverBackground:dp,listHoverForeground:hp,listDropBackground:pp,listFocusOutline:Bh,listSelectionOutline:Bh,listHoverOutline:Bh},zS={shadowColor:Uh,borderColor:xp,foregroundColor:Ep,backgroundColor:Lp,selectionForegroundColor:Tp,selectionBackgroundColor:Ip,selectionBorderColor:Np,separatorColor:kp};var KS,qS=function(){function e(e,t,n,i,o,r){this.contextViewService=t,this.telemetryService=n,this.notificationService=i,this.keybindingService=o,this.themeService=r,this.setContainer(e);}return e.prototype.setContainer=function(e){var t=this;this.element&&(this.elementDisposable=f(this.elementDisposable),this.element=null),e&&(this.element=e,this.elementDisposable=ni(this.element,Pi.MOUSE_DOWN,function(e){return t.onMouseDown(e);}));},e.prototype.showContextMenu=function(e){var t=this;e.getActions().then(function(n){n.length&&(t.focusToReturn=document.activeElement,t.contextViewService.showContextView({getAnchor:function(){return e.getAnchor();},canRelayout:!1,render:function(i){t.menuContainerElement=i;var o=e.getMenuClassName?e.getMenuClassName():"";o&&(i.className+=" "+o);var r=[],s=e.actionRunner||new Sl();s.onDidBeforeRun(t.onActionRun,t,r),s.onDidRun(t.onDidActionRun,t,r);var a,u,l,c,d,h=new MS(i,n,{actionItemProvider:e.getActionItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:s,getKeyBinding:e.getKeyBinding?e.getKeyBinding:function(e){return t.keybindingService.lookupKeybinding(e.id);}});return r.push((a=h,u=t.themeService,c=BS({},zS,l),d={foregroundColor:c.foregroundColor&&u&&u.getTheme().getColor(c.foregroundColor)?c.foregroundColor:Mh},HS(u,BS({},c,d),a))),h.onDidCancel(function(){return t.contextViewService.hideContextView(!0);},null,r),h.onDidBlur(function(){return t.contextViewService.hideContextView(!0);},null,r),Tn(window,Pi.BLUR)(function(){t.contextViewService.hideContextView(!0);},null,r),h.focus(!!e.autoSelectFirstItem),g(r.concat([h]));},onHide:function(n){e.onHide&&e.onHide(n),t.menuContainerElement=null;}}));});},e.prototype.onActionRun=function(e){this.telemetryService&&this.telemetryService.publicLog("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus();},e.prototype.onDidActionRun=function(e){e.error&&this.notificationService&&this.notificationService.error(e.error);},e.prototype.onMouseDown=function(e){if(this.menuContainerElement){for(var t=new Vn(e).target;t;){if(t===this.menuContainerElement)return;t=t.parentElement;}this.contextViewService.hideContextView();}},e.prototype.dispose=function(){this.setContainer(null);},e;}(),GS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),$S=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},YS=function(e,t){return function(n,i){t(n,i,e);};},XS=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;return a._onDidContextMenu=a._register(new N()),a.contextMenuHandler=a._register(new qS(t,o,n,i,r,s)),a;}return GS(t,e),t.prototype.dispose=function(){this.contextMenuHandler.dispose();},t.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire();},t=$S([YS(1,$o),YS(2,sc),YS(3,UC),YS(4,zC),YS(5,Rd)],t);}(y);n("./node_modules/monaco-editor/esm/vs/base/browser/ui/contextview/contextview.css");!function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i};}function n(e){return e.end-e.start<=0;}e.intersect=t,e.isEmpty=n,e.intersects=function(e,i){return!n(t(e,i));},e.relativeComplement=function(e,t){var i=[],o={start:e.start,end:Math.min(t.start,e.end)},r={start:Math.max(t.end,e.start),end:e.end};return n(o)||i.push(o),n(r)||i.push(r),i;};}(KS||(KS={}));var ZS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();function QS(e,t,n){var i=n.offset+n.size;return 0===n.position?t<=e-i?i:t<=n.offset?n.offset-t:Math.max(e-t,0):t<=n.offset?n.offset-t:t<=e-i?i:0;}var JS=function(e){function t(t){var n=e.call(this)||this;return n.view=ji(".context-view"),Ki(n.view),n.setContainer(t),n._register(m(function(){return n.setContainer(null);})),n;}return ZS(t,e),t.prototype.setContainer=function(e){var n=this;if(this.container&&(this.toDisposeOnSetContainer=f(this.toDisposeOnSetContainer),this.container.removeChild(this.view),this.container=null),e){this.container=e,this.container.appendChild(this.view);var i=[];t.BUBBLE_UP_EVENTS.forEach(function(e){i.push(ii(n.container,e,function(e){n.onDOMEvent(e,document.activeElement,!1);}));}),t.BUBBLE_DOWN_EVENTS.forEach(function(e){i.push(ii(n.container,e,function(e){n.onDOMEvent(e,document.activeElement,!0);},!0));}),this.toDisposeOnSetContainer=g(i);}},t.prototype.show=function(e){this.isVisible()&&this.hide(),zn(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",zi(this.view),this.toDisposeOnClean=e.render(this.view),this.delegate=e,this.doLayout();},t.prototype.layout=function(){this.isVisible()&&(!1!==this.delegate.canRelayout?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide());},t.prototype.doLayout=function(){if(this.isVisible()){var e,t,n=this.delegate.getAnchor();if(t=n,"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName){var i=xi(n);e={top:i.top,left:i.left,width:i.width,height:i.height};}else{var o=n;e={top:o.y,left:o.x,width:o.width||1,height:o.height||2};}var r,s=Li(this.view),a=Ni(this.view),u=this.delegate.anchorPosition||0,l=this.delegate.anchorAlignment||0,c={offset:e.top,size:e.height,position:0===u?0:1};r=0===l?{offset:e.left,size:0,position:0}:{offset:e.left+e.width,size:0,position:1};var d=QS(window.innerHeight,a,c);KS.intersects({start:d,end:d+a},{start:c.offset,end:c.offset+c.size})&&(r.size=e.width);var h=QS(window.innerWidth,s,r);Jn(this.view,"top","bottom","left","right"),Xn(this.view,0===u?"bottom":"top"),Xn(this.view,0===l?"left":"right");var p=xi(this.container);this.view.style.top=d-p.top+"px",this.view.style.left=h-p.left+"px",this.view.style.width="initial";}},t.prototype.hide=function(e){this.delegate&&this.delegate.onHide&&this.delegate.onHide(e),this.delegate=null,this.toDisposeOnClean&&(this.toDisposeOnClean.dispose(),this.toDisposeOnClean=null),Ki(this.view);},t.prototype.isVisible=function(){return!!this.delegate;},t.prototype.onDOMEvent=function(e,t,n){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):n&&!ki(e.target,this.container)&&this.hide());},t.prototype.dispose=function(){this.hide(),e.prototype.dispose.call(this);},t.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],t.BUBBLE_DOWN_EVENTS=["click"],t;}(y),ex=dn("logService"),tx=function(){function e(){}return e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];},e.prototype.dispose=function(){},e;}(),nx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ix=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},ox=function(e,t){return function(n,i){t(n,i,e);};},rx=function(e){function t(t,n,i){var o=e.call(this)||this;return o.logService=i,o.contextView=o._register(new JS(t)),o;}return nx(t,e),t.prototype.setContainer=function(e){this.logService.trace("ContextViewService#setContainer"),this.contextView.setContainer(e);},t.prototype.showContextView=function(e){this.logService.trace("ContextViewService#showContextView"),this.contextView.show(e);},t.prototype.layout=function(){this.contextView.layout();},t.prototype.hideContextView=function(e){this.logService.trace("ContextViewService#hideContextView"),this.contextView.hide(e);},t=ix([ox(1,$o),ox(2,ex)],t);}(y),sx=dn("dialogService"),ax=Object.prototype.hasOwnProperty;function ux(e,t){var n=function(n){if(ax.call(e,n)&&!1===t({key:n,value:e[n]},function(){delete e[n];}))return{value:void 0};};for(var i in e){var o=n(i);if("object"==typeof o)return o.value;}}var lx=function(){function e(e){this._hashFn=e,this._nodes=Object.create(null);}return e.prototype.roots=function(){var e=[];return ux(this._nodes,function(t){Se(t.value.outgoing)&&e.push(t.value);}),e;},e.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=i,i.incoming[this._hashFn(e)]=n;},e.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],ux(this._nodes,function(e){delete e.value.outgoing[t],delete e.value.incoming[t];});},e.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e),n=this._nodes[t];return n||(n=function(e){return{data:e,incoming:Object.create(null),outgoing:Object.create(null)};}(e),this._nodes[t]=n),n;},e.prototype.isEmpty=function(){for(var e in this._nodes)return!1;return!0;},e.prototype.toString=function(){var e=[];return ux(this._nodes,function(t){e.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]");}),e.join("\n");},e;}(),cx=function(){return function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1),this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n;};}(),dx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),hx=function(){function e(e,t,n){void 0===e&&(e=new jb()),void 0===t&&(t=!1),this._services=e,this._strict=t,this._parent=n,this._services.set(ln,this);}return e.prototype.createChild=function(t){return new e(t,this._strict,this);},e.prototype.invokeFunction=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=px.traceInvocation(e),r=!1;try{var s={get:function(e,n){if(r)throw(i="service accessor is only valid during the invocation of its target method")?new Error("Illegal state: "+i):new Error("Illegal state");var i,s=t._getOrCreateServiceInstance(e,o);if(!s&&n!==hn)throw new Error("[invokeFunction] unknown service '"+e+"'");return s;}};return e.apply(void 0,[s].concat(n));}finally{r=!0,o.stop();}},e.prototype.createInstance=function(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return e instanceof cx?(t=px.traceCreation(e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(i),t)):(t=px.traceCreation(e),n=this._createInstance(e,i,t)),t.stop(),n;},e.prototype._createInstance=function(e,t,n){void 0===t&&(t=[]);for(var i=un.getServiceDependencies(e).sort(function(e,t){return e.index-t.index;}),o=[],r=0,s=i;r<s.length;r++){var a=s[r],u=this._getOrCreateServiceInstance(a.id,n);if(!u&&this._strict&&!a.optional)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+a.id+".");o.push(u);}var l=i.length>0?i[0].index:t.length;if(t.length!==l){console.warn("[createInstance] First service dependency of "+e.name+" at position "+(l+1)+" conflicts with "+t.length+" static arguments");var c=l-t.length;t=c>0?t.concat(new Array(c)):t.slice(0,l);}return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Object.create(e.prototype);return e.apply(i,t),i;}.apply(null,[e].concat(t,o));},e.prototype._setServiceInstance=function(e,t){if(this._services.get(e)instanceof cx)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t);}},e.prototype._getServiceInstanceOrDescriptor=function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t;},e.prototype._getOrCreateServiceInstance=function(e,t){var n=this._getServiceInstanceOrDescriptor(e);return n instanceof cx?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n);},e.prototype._createAndCacheServiceInstance=function(e,t,n){var i=new lx(function(e){return e.id.toString();});function o(){var e=new Error("[createInstance] cyclic dependency between services");throw e.message=i.toString(),e;}for(var r=0,s=[{id:e,desc:t,_trace:n}];s.length;){var a=s.pop();i.lookupOrInsertNode(a),r++>100&&o();for(var u=0,l=un.getServiceDependencies(a.desc.ctor);u<l.length;u++){var c=l[u],d=this._getServiceInstanceOrDescriptor(c.id);if(d||c.optional||console.warn("[createInstance] "+e+" depends on "+c.id+" which is NOT registered."),d instanceof cx){var h={id:c.id,desc:d,_trace:a._trace.branch(c.id,!0)};i.insertEdge(a,h),s.push(h);}}}for(;;){var p=i.roots();if(0===p.length){i.isEmpty()||o();break;}for(var f=0,g=p;f<g.length;f++){var m=g[f].data,_=this._createServiceInstanceWithOwner(m.id,m.desc.ctor,m.desc.staticArguments,!1,m._trace);this._setServiceInstance(m.id,_),i.removeNode(m);}}return this._getServiceInstanceOrDescriptor(e);},e.prototype._createServiceInstanceWithOwner=function(e,t,n,i,o){if(void 0===n&&(n=[]),this._services.get(e)instanceof cx)return this._createServiceInstance(t,n,i,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,i,o);throw new Error("illegalState - creating UNKNOWN service instance");},e.prototype._createServiceInstance=function(e,t,n,i){return void 0===t&&(t=[]),this._createInstance(e,t,i);},e;}(),px=function(){function e(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[];}return e.traceInvocation=function(t){return e._None;},e.traceCreation=function(t){return e._None;},e.prototype.branch=function(t,n){var i=new e(2,t.toString());return this._dep.push([t,n,i]),i;},e.prototype.stop=function(){var t=Date.now()-this._start;e._totals+=t;var n=!1;var i=[(0===this.type?"CREATE":"CALL")+" "+this.name,""+function e(t,i){for(var o=[],r=new Array(t+1).join("\t"),s=0,a=i._dep;s<a.length;s++){var u=a[s],l=u[0],c=u[1],d=u[2];if(c&&d){n=!0,o.push(r+"CREATES -> "+l);var h=e(t+1,d);h&&o.push(h);}else o.push(r+"uses -> "+l);}return o.join("\n");}(1,this),"DONE, took "+t.toFixed(2)+"ms (grand total "+e._totals.toFixed(2)+"ms)"];(t>2||n)&&console.log(i.join("\n"));},e._None=new(function(e){function t(){return e.call(this,-1,null)||this;}return dx(t,e),t.prototype.stop=function(){},t.prototype.branch=function(){return this;},t;}(e))(),e._totals=0,e;}(),fx=dn("label"),gx=function(){function e(){this._arr=[];}return e.prototype.set=function(e,t){this._arr.push({keybinding:nt(e,o.a),callback:t});},e.prototype.dispatch=function(e){for(var t=this._arr.length-1;t>=0;t--){var n=this._arr[t];if(e.equals(n.keybinding))return n.callback;}return null;},e;}(),mx=function(){function e(e){void 0===e&&(e={clickBehavior:0,keyboardSupport:!0,openMode:0});var t=this;this.options=e,this.downKeyBindingDispatcher=new gx(),this.upKeyBindingDispatcher=new gx(),("boolean"!=typeof e.keyboardSupport||e.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(e,n){return t.onUp(e,n);}),this.downKeyBindingDispatcher.set(18,function(e,n){return t.onDown(e,n);}),this.downKeyBindingDispatcher.set(15,function(e,n){return t.onLeft(e,n);}),this.downKeyBindingDispatcher.set(17,function(e,n){return t.onRight(e,n);}),o.d&&(this.downKeyBindingDispatcher.set(2064,function(e,n){return t.onLeft(e,n);}),this.downKeyBindingDispatcher.set(300,function(e,n){return t.onDown(e,n);}),this.downKeyBindingDispatcher.set(302,function(e,n){return t.onUp(e,n);})),this.downKeyBindingDispatcher.set(11,function(e,n){return t.onPageUp(e,n);}),this.downKeyBindingDispatcher.set(12,function(e,n){return t.onPageDown(e,n);}),this.downKeyBindingDispatcher.set(14,function(e,n){return t.onHome(e,n);}),this.downKeyBindingDispatcher.set(13,function(e,n){return t.onEnd(e,n);}),this.downKeyBindingDispatcher.set(10,function(e,n){return t.onSpace(e,n);}),this.downKeyBindingDispatcher.set(9,function(e,n){return t.onEscape(e,n);}),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2051,this.onEnter.bind(this)));}return e.prototype.onMouseDown=function(e,t,n,i){if(void 0===i&&(i="mouse"),0===this.options.clickBehavior&&(n.leftButton||n.middleButton)){if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(Oi(n.target,"scrollbar","monaco-tree"))return!1;if(Oi(n.target,"monaco-action-bar","row"))return!1;}return this.onLeftClick(e,t,n,i);}return!1;},e.prototype.onClick=function(e,t,n){return o.d&&n.ctrlKey?(n.preventDefault(),n.stopPropagation(),!1):(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&(0!==this.options.clickBehavior||!n.leftButton&&!n.middleButton)&&this.onLeftClick(e,t,n);},e.prototype.onLeftClick=function(e,t,n,i){void 0===i&&(i="mouse");var o=n,r={origin:i,originalEvent:n,didClickOnTwistie:this.isClickOnTwistie(o)};e.getInput()===t?(e.clearFocus(r),e.clearSelection(r)):(n&&o.browserEvent&&"mousedown"===o.browserEvent.type&&1===o.browserEvent.detail||n.preventDefault(),n.stopPropagation(),e.domFocus(),e.setSelection([t],r),e.setFocus(t,r),this.shouldToggleExpansion(t,o,i)&&(e.isExpanded(t)?e.collapse(t).then(null,a):e.expand(t).then(null,a)));return!0;},e.prototype.shouldToggleExpansion=function(e,t,n){var i="mouse"===n&&2===t.detail;return this.openOnSingleClick||i||this.isClickOnTwistie(t);},e.prototype.setOpenMode=function(e){this.options.openMode=e;},Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return 0===this.options.openMode;},enumerable:!0,configurable:!0}),e.prototype.isClickOnTwistie=function(e){var t=e.target;if(!Yn(t,"content"))return!1;var n=window.getComputedStyle(t,":before");if("none"===n.backgroundImage||"none"===n.display)return!1;var i=parseInt(n.width)+parseInt(n.paddingRight);return e.browserEvent.offsetX<=i;},e.prototype.onContextMenu=function(e,t,n){return(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&(n&&(n.preventDefault(),n.stopPropagation()),!1);},e.prototype.onTap=function(e,t,n){var i=n.initialTarget;return(!i||!i.tagName||"input"!==i.tagName.toLowerCase())&&this.onLeftClick(e,t,n,"touch");},e.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t);},e.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t);},e.prototype.onKey=function(e,t,n){var i=e.dispatch(n.toKeybinding());return!(!i||!i(t,n))&&(n.preventDefault(),n.stopPropagation(),!0);},e.prototype.onUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPrevious(1,n),e.reveal(e.getFocus()).then(null,a)),!0;},e.prototype.onPageUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPreviousPage(n),e.reveal(e.getFocus()).then(null,a)),!0;},e.prototype.onDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNext(1,n),e.reveal(e.getFocus()).then(null,a)),!0;},e.prototype.onPageDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNextPage(n),e.reveal(e.getFocus()).then(null,a)),!0;},e.prototype.onHome=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusFirst(n),e.reveal(e.getFocus()).then(null,a)),!0;},e.prototype.onEnd=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusLast(n),e.reveal(e.getFocus()).then(null,a)),!0;},e.prototype.onLeft=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.collapse(i).then(function(t){if(i&&!t)return e.focusParent(n),e.reveal(e.getFocus());}).then(null,a);}return!0;},e.prototype.onRight=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.expand(i).then(function(t){if(i&&!t)return e.focusFirstChild(n),e.reveal(e.getFocus());}).then(null,a);}return!0;},e.prototype.onEnter=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())return!1;var i=e.getFocus();return i&&e.setSelection([i],n),!0;},e.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();return n&&e.toggleExpansion(n),!0;},e.prototype.onEscape=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?(e.clearHighlight(n),!0):e.getSelection().length?(e.clearSelection(n),!0):!!e.getFocus()&&(e.clearFocus(n),!0);},e;}(),_x=function(){function e(){}return e.prototype.getDragURI=function(e,t){return null;},e.prototype.onDragStart=function(e,t,n){},e.prototype.onDragOver=function(e,t,n,i){return null;},e.prototype.drop=function(e,t,n,i){},e;}(),vx=function(){function e(){}return e.prototype.isVisible=function(e,t){return!0;},e;}(),yx=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return null;},e;}(),bx=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t;}return e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }"),e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }"),e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }"),e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i);},e;}(),Cx=(n("./node_modules/monaco-editor/esm/vs/base/parts/tree/browser/tree.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),wx=function(){function e(e){this._onDispose=new N(),this.onDispose=this._onDispose.event,this._item=e;}return Object.defineProperty(e.prototype,"item",{get:function(){return this._item;},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=null);},e;}(),Sx=function(){function e(){this.locks=Object.create({});}return e.prototype.isLocked=function(e){return!!this.locks[e.id];},e.prototype.run=function(e,t){var n=this,o=this.getLock(e);return o?new i.b(function(i,r){O(o.onDispose)(function(){return n.run(e,t).then(i,r);});}):new i.b(function(i,o){if(e.isDisposed())return o(new Error("Item is disposed."));var r=n.locks[e.id]=new wx(e);return t().then(function(t){return delete n.locks[e.id],r.dispose(),t;}).then(i,o);});},e.prototype.getLock=function(e){var t;for(t in this.locks){var n=this.locks[t];if(e.intersects(n.item))return n;}return null;},e;}(),xx=function(){function e(){this._isDisposed=!1,this._onDidRevealItem=new k(),this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new k(),this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new k(),this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new k(),this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new k(),this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new k(),this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new k(),this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new k(),this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new k(),this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new k(),this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new k(),this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={};}return e.prototype.register=function(e){Jo(!this.isRegistered(e.id),"item already registered: "+e.id);var t=g([this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose)]);this.items[e.id]={item:e,disposable:t};},e.prototype.deregister=function(e){Jo(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id];},e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e);},e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null;},e.prototype.dispose=function(){this.items=null,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;},e.prototype.isDisposed=function(){return this._isDisposed;},e;}(),Ex=function(){function e(e,t,n,i,o){this._onDidCreate=new N(),this._onDidReveal=new N(),this.onDidReveal=this._onDidReveal.event,this._onExpand=new N(),this.onExpand=this._onExpand.event,this._onDidExpand=new N(),this.onDidExpand=this._onDidExpand.event,this._onCollapse=new N(),this.onCollapse=this._onCollapse.event,this._onDidCollapse=new N(),this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new N(),this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new N(),this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new N(),this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new N(),this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new N(),this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new N(),this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=n,this.lock=i,this.element=o,this.id=e,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,o),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1;}return e.prototype.getElement=function(){return this.element;},e.prototype.hasChildren=function(){return this.doesHaveChildren;},e.prototype.getDepth=function(){return this.depth;},e.prototype.isVisible=function(){return this.visible;},e.prototype.setVisible=function(e){this.visible=e;},e.prototype.isExpanded=function(){return this.expanded;},e.prototype._setExpanded=function(e){this.expanded=e;},e.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t);},e.prototype.expand=function(){var e=this;return this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this)?i.b.as(!1):this.lock.run(this,function(){if(e.isExpanded()||!e.doesHaveChildren)return i.b.as(!1);var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):i.b.as(null)).then(function(){return e._setExpanded(!0),e._onDidExpand.fire(t),!0;});}).then(function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then(function(){return!0;}):t);});},e.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=i.b.as(null);return this.forEachChild(function(e){n=n.then(function(){return e.collapse(!0);});}),n.then(function(){return t.collapse(!1);});}return!this.isExpanded()||this.lock.isLocked(this)?i.b.as(!1):this.lock.run(this,function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),i.b.as(!0);});},e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t);},e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t);},e.prototype.hasTrait=function(e){return this.traits[e]||!1;},e.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t;},e.prototype.getHeight=function(){return this.height;},e.prototype.refreshChildren=function(t,n,o){var r=this;if(void 0===n&&(n=!1),void 0===o&&(o=!1),!o&&!this.isExpanded()){var s=function(e){e.needsChildrenRefresh=!0,e.forEachChild(s);};return s(this),i.b.as(this);}this.needsChildrenRefresh=!1;var u=function(){var o={item:r,isNested:n};return r._onRefreshChildren.fire(o),(r.doesHaveChildren?r.context.dataSource.getChildren(r.context.tree,r.element):i.b.as([])).then(function(n){if(r.isDisposed()||r.registry.isDisposed())return i.b.as(null);if(!Array.isArray(n))return i.b.wrapError(new Error("Please return an array of children."));n=n?n.slice(0):[],n=r.sort(n);for(var o={};null!==r.firstChild;)o[r.firstChild.id]=r.firstChild,r.removeChild(r.firstChild);for(var s=0,a=n.length;s<a;s++){var u=n[s],l=r.context.dataSource.getId(r.context.tree,u),c=o[l]||new e(l,r.registry,r.context,r.lock,u);c.element=u,t&&(c.needsChildrenRefresh=t),delete o[l],r.addChild(c);}for(var d in o)o.hasOwnProperty(d)&&o[d].dispose();return t?i.a.join(r.mapEachChild(function(e){return e.doRefresh(t,!0);})):i.a.join(r.mapEachChild(function(e){return e.isExpanded()&&e.needsChildrenRefresh?e.doRefresh(t,!0):(e.updateVisibility(),i.b.as(null));}));}).then(null,a).then(function(){return r._onDidRefreshChildren.fire(o);});};return n?u():this.lock.run(this,u);},e.prototype.doRefresh=function(e,t){return void 0===t&&(t=!1),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.height=this._getHeight(),this.updateVisibility(),this._onDidRefresh.fire(this),this.refreshChildren(e,t);},e.prototype.updateVisibility=function(){this.setVisible(this._isVisible());},e.prototype.refresh=function(e){return this.doRefresh(e);},e.prototype.getNavigator=function(){return new Tx(this);},e.prototype.intersects=function(e){return this.isAncestorOf(e)||e.isAncestorOf(this);},e.prototype.isAncestorOf=function(e){for(;e;){if(e.id===this.id)return!0;e=e.parent;}return!1;},e.prototype.addChild=function(e,t){void 0===t&&(t=this.lastChild);var n=null===this.firstChild,i=null===t,o=t===this.lastChild;n?(this.firstChild=this.lastChild=e,e.next=e.previous=null):i?(this.firstChild.previous=e,e.next=this.firstChild,e.previous=null,this.firstChild=e):o?(this.lastChild.next=e,e.next=null,e.previous=this.lastChild,this.lastChild=e):(e.previous=t,e.next=t.next,t.next.previous=e,t.next=e),e.parent=this,e.depth=this.depth+1;},e.prototype.removeChild=function(e){var t=this.firstChild===e,n=this.lastChild===e;t&&n?this.firstChild=this.lastChild=null:t?(e.next.previous=null,this.firstChild=e.next):n?(e.previous.next=null,this.lastChild=e.previous):(e.next.previous=e.previous,e.previous.next=e.next),e.parent=null,e.depth=null;},e.prototype.forEachChild=function(e){for(var t,n=this.firstChild;n;)t=n.next,e(n),n=t;},e.prototype.mapEachChild=function(e){var t=[];return this.forEachChild(function(n){t.push(e(n));}),t;},e.prototype.sort=function(e){var t=this;return this.context.sorter?e.sort(function(e,n){return t.context.sorter.compare(t.context.tree,e,n);}):e;},e.prototype._getHeight=function(){return this.context.renderer.getHeight(this.context.tree,this.element);},e.prototype._isVisible=function(){return this.context.filter.isVisible(this.context.tree,this.element);},e.prototype.isDisposed=function(){return this._isDisposed;},e.prototype.dispose=function(){this.forEachChild(function(e){return e.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;},e;}(),Lx=function(e){function t(t,n,i,o,r){return e.call(this,t,n,i,o,r)||this;}return Cx(t,e),t.prototype.isVisible=function(){return!1;},t.prototype.setVisible=function(e){},t.prototype.isExpanded=function(){return!0;},t.prototype._setExpanded=function(e){},t.prototype._getHeight=function(){return 0;},t.prototype._isVisible=function(){return!1;},t;}(Ex),Tx=function(){function e(e,t){void 0===t&&(t=!0),this.item=e,this.start=t?e:null;}return e.lastDescendantOf=function(t){return t?t instanceof Lx?e.lastDescendantOf(t.lastChild):t.isVisible()?t.isExpanded()&&null!==t.lastChild?e.lastDescendantOf(t.lastChild):t:e.lastDescendantOf(t.previous):null;},e.prototype.current=function(){return this.item||null;},e.prototype.next=function(){if(this.item)do{if((this.item instanceof Lx||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;},e.prototype.previous=function(){if(this.item)do{var t=e.lastDescendantOf(this.item.previous);t?this.item=t: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;},e.prototype.parent=function(){if(this.item){var e=this.item.parent;e&&e!==this.start&&e.isVisible()?this.item=e:this.item=null;}return this.item||null;},e.prototype.first=function(){return this.item=this.start,this.next(),this.item||null;},e.prototype.last=function(){return e.lastDescendantOf(this.start);},e;}(),Ix=function(){function e(e){this._onSetInput=new N(),this.onSetInput=this._onSetInput.event,this._onDidSetInput=new N(),this.onDidSetInput=this._onDidSetInput.event,this._onRefresh=new N(),this.onRefresh=this._onRefresh.event,this._onDidRefresh=new N(),this.onDidRefresh=this._onDidRefresh.event,this._onDidHighlight=new N(),this.onDidHighlight=this._onDidHighlight.event,this._onDidSelect=new N(),this.onDidSelect=this._onDidSelect.event,this._onDidFocus=new N(),this.onDidFocus=this._onDidFocus.event,this._onDidRevealItem=new V(),this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new V(),this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new V(),this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new V(),this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new V(),this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new V(),this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new V(),this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new V(),this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new V(),this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new V(),this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new V(),this.context=e,this.input=null,this.traitsToItems={};}return e.prototype.setInput=function(e){var t=this,n={item:this.input};this._onSetInput.fire(n),this.setSelection([]),this.setFocus(),this.setHighlight(),this.lock=new Sx(),this.input&&this.input.dispose(),this.registry&&(this.registry.dispose(),this.registryDisposable.dispose()),this.registry=new xx(),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(e){return e.getAllTraits().forEach(function(n){return delete t.traitsToItems[n][e.id];});});var i=this.context.dataSource.getId(this.context.tree,e);return this.input=new Lx(i,this.registry,this.context,this.lock,e),n={item:this.input},this._onDidSetInput.fire(n),this.refresh(this.input);},e.prototype.getInput=function(){return this.input?this.input.getElement():null;},e.prototype.refresh=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=!0);var o=this.getItem(e);if(!o)return i.b.as(null);var r={item:o,recursive:t};return this._onRefresh.fire(r),o.refresh(t).then(function(){n._onDidRefresh.fire(r);});},e.prototype.expand=function(e){var t=this.getItem(e);return t?t.expand():i.b.as(!1);},e.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getItem(e);return n?n.collapse(t):i.b.as(!1);},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.isExpanded(e)?this.collapse(e,t):this.expand(e);},e.prototype.isExpanded=function(e){var t=this.getItem(e);return!!t&&t.isExpanded();},e.prototype.reveal=function(e,t){var n=this;return void 0===t&&(t=null),this.resolveUnknownParentChain(e).then(function(e){var t=i.b.as(null);return e.forEach(function(e){t=t.then(function(){return n.expand(e);});}),t;}).then(function(){var i=n.getItem(e);if(i)return i.reveal(t);});},e.prototype.resolveUnknownParentChain=function(e){var t=this;return this.context.dataSource.getParent(this.context.tree,e).then(function(e){return e?t.resolveUnknownParentChain(e).then(function(t){return t.push(e),t;}):i.b.as([]);});},e.prototype.setHighlight=function(e,t){this.setTraits("highlighted",e?[e]:[]);var n={highlight:this.getHighlight(),payload:t};this._onDidHighlight.fire(n);},e.prototype.getHighlight=function(e){var t=this.getElementsWithTrait("highlighted",e);return 0===t.length?null:t[0];},e.prototype.setSelection=function(e,t){this.setTraits("selected",e);var n={selection:this.getSelection(),payload:t};this._onDidSelect.fire(n);},e.prototype.getSelection=function(e){return this.getElementsWithTrait("selected",e);},e.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var n={focus:this.getFocus(),payload:t};this._onDidFocus.fire(n);},e.prototype.getFocus=function(e){var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0];},e.prototype.focusNext=function(e,t){void 0===e&&(e=1);for(var n,i=this.getFocus()||this.input,o=this.getNavigator(i,!1),r=0;r<e&&(n=o.next());r++)i=n;this.setFocus(i,t);},e.prototype.focusPrevious=function(e,t){void 0===e&&(e=1);for(var n,i=this.getFocus()||this.input,o=this.getNavigator(i,!1),r=0;r<e&&(n=o.previous());r++)i=n;this.setFocus(i,t);},e.prototype.focusParent=function(e){var t=this.getFocus()||this.input,n=this.getNavigator(t,!1).parent();n&&this.setFocus(n,e);},e.prototype.focusFirstChild=function(e){var t=this.getItem(this.getFocus()||this.input),n=this.getNavigator(t,!1),i=n.next();n.parent()===t&&this.setFocus(i,e);},e.prototype.focusFirst=function(e,t){this.focusNth(0,e,t);},e.prototype.focusNth=function(e,t,n){for(var i=this.getParent(n),o=this.getNavigator(i),r=o.first(),s=0;s<e;s++)r=o.next();r&&this.setFocus(r,t);},e.prototype.focusLast=function(e,t){var n,i=this.getParent(t);t?n=i.lastChild:n=this.getNavigator(i).last();n&&this.setFocus(n,e);},e.prototype.getParent=function(e){if(e){var t=this.getItem(e);if(t&&t.parent)return t.parent;}return this.getItem(this.input);},e.prototype.getNavigator=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),new Tx(this.getItem(e),t);},e.prototype.getItem=function(e){return void 0===e&&(e=null),null===e?this.input:e instanceof Ex?e:"string"==typeof e?this.registry.getItem(e):this.registry.getItem(this.context.dataSource.getId(this.context.tree,e));},e.prototype.removeTraits=function(e,t){var n,i,o=this.traitsToItems[e]||{};if(0===t.length){for(i in o)o.hasOwnProperty(i)&&(n=o[i]).removeTrait(e);delete this.traitsToItems[e];}else for(var r=0,s=t.length;r<s;r++)(n=this.getItem(t[r]))&&(n.removeTrait(e),delete o[n.id]);},e.prototype.setTraits=function(e,t){if(0===t.length)this.removeTraits(e,t);else{for(var n,i={},o=0,r=t.length;o<r;o++)(n=this.getItem(t[o]))&&(i[n.id]=n);var s,a=this.traitsToItems[e]||{},u=[];for(s in a)a.hasOwnProperty(s)&&(i.hasOwnProperty(s)?delete i[s]:u.push(a[s]));for(o=0,r=u.length;o<r;o++)(n=u[o]).removeTrait(e),delete a[n.id];for(s in i)i.hasOwnProperty(s)&&((n=i[s]).addTrait(e),a[s]=n);this.traitsToItems[e]=a;}},e.prototype.getElementsWithTrait=function(e,t){var n,i=[],o=this.traitsToItems[e]||{};for(n in o)o.hasOwnProperty(n)&&(o[n].isVisible()||t)&&i.push(o[n].getElement());return i;},e.prototype.dispose=function(){this.registry&&(this.registry.dispose(),this.registry=null),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();},e;}(),Nx=function(){function e(e){this.elements=e;}return e.prototype.update=function(e){},e;}(),kx=function(){function e(e){this.elements=e;}return e.prototype.update=function(e){},e;}(),Ox=function(){function e(){this.types=[],this.files=[];}return e.prototype.update=function(e){e.dataTransfer.types&&(this.types=[],Array.prototype.push.apply(this.types,e.dataTransfer.types)),e.dataTransfer.files&&(this.files=[],Array.prototype.push.apply(this.files,e.dataTransfer.files),this.files=this.files.filter(function(e){return e.size||e.type;}));},e;}(),Dx=function(){function e(){this.heightMap=[],this.indexes={};}return e.prototype.getContentHeight=function(){var e=this.heightMap[this.heightMap.length-1];return e?e.top+e.height:0;},e.prototype.onInsertItems=function(e,t){var n,i,o,r,s;void 0===t&&(t=null);var a=0;if(null===t)o=0,s=0;else{if(o=this.indexes[t]+1,!(i=this.heightMap[o-1]))return void console.error("view item doesnt exist");s=i.top+i.height;}for(var u=this.heightMap.splice.bind(this.heightMap,o,0),l=[];n=e.next();)(i=this.createViewItem(n)).top=s+a,this.indexes[n.id]=o++,l.push(i),a+=i.height;for(u.apply(this.heightMap,l),r=o;r<this.heightMap.length;r++)(i=this.heightMap[r]).top+=a,this.indexes[i.model.id]=r;for(r=l.length-1;r>=0;r--)this.onInsertItem(l[r]);for(r=this.heightMap.length-1;r>=o;r--)this.onRefreshItem(this.heightMap[r]);return a;},e.prototype.onInsertItem=function(e){},e.prototype.onRemoveItems=function(e){for(var t,n,i,o=null,r=0;t=e.next();){if(i=this.indexes[t],!(n=this.heightMap[i]))return void console.error("view item doesnt exist");r-=n.height,delete this.indexes[t],this.onRemoveItem(n),null===o&&(o=i);}if(0!==r)for(this.heightMap.splice(o,i-o+1),i=o;i<this.heightMap.length;i++)(n=this.heightMap[i]).top+=r,this.indexes[n.model.id]=i,this.onRefreshItem(n);},e.prototype.onRemoveItem=function(e){},e.prototype.onRefreshItemSet=function(e){var t=this,n=e.sort(function(e,n){return t.indexes[e.id]-t.indexes[n.id];});this.onRefreshItems(new x(n));},e.prototype.onRefreshItems=function(e){for(var t,n,i,o,r=null,s=0;t=e.next();){for(o=this.indexes[t.id];0!==s&&null!==r&&r<o;r++)(n=this.heightMap[r]).top+=s,this.onRefreshItem(n);n=this.heightMap[o],i=t.getHeight(),n.top+=s,s+=i-n.height,n.height=i,this.onRefreshItem(n,!0),r=o+1;}if(0!==s&&null!==r)for(;r<this.heightMap.length;r++)(n=this.heightMap[r]).top+=s,this.onRefreshItem(n);},e.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1);},e.prototype.indexAt=function(e){for(var t,n,i=0,o=this.heightMap.length;i<o;)if(t=Math.floor((i+o)/2),e<(n=this.heightMap[t]).top)o=t;else{if(!(e>=n.top+n.height))return t;if(i===t)break;i=t;}return this.heightMap.length;},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length);},e.prototype.itemAtIndex=function(e){return this.heightMap[e];},e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null;},e.prototype.createViewItem=function(e){throw new Error("not implemented");},e.prototype.dispose=function(){this.heightMap=null,this.indexes=null;},e;}(),Rx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Ax=function(){function e(e,t,n){this._posx=e,this._posy=t,this._target=n;}return e.prototype.preventDefault=function(){},e.prototype.stopPropagation=function(){},Object.defineProperty(e.prototype,"target",{get:function(){return this._target;},enumerable:!0,configurable:!0}),e;}(),Mx=function(e){function t(t){var n=e.call(this,t.posx,t.posy,t.target)||this;return n.originalEvent=t,n;}return Rx(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault();},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation();},t;}(Ax),Px=function(e){function t(t,n,i){var o=e.call(this,t,n,i.target)||this;return o.originalEvent=i,o;}return Rx(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault();},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation();},t;}(Ax),Fx="ResourceURLs",Wx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();var Bx=function(){function e(e){this.context=e,this._cache={"":[]};}return e.prototype.alloc=function(e){var t=this.cache(e).pop();if(!t){var n=document.createElement("div");n.className="content";var i=document.createElement("div");i.appendChild(n);var o=null;try{o=this.context.renderer.renderTemplate(this.context.tree,e,n);}catch(e){console.error("Tree usage error: exception while rendering template"),console.error(e);}t={element:i,templateId:e,templateData:o};}return t;},e.prototype.release=function(e,t){!function(e){try{e.parentElement.removeChild(e);}catch(e){}}(t.element),this.cache(e).push(t);},e.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[]);},e.prototype.garbageCollect=function(){var e=this;this._cache&&Object.keys(this._cache).forEach(function(t){e._cache[t].forEach(function(n){e.context.renderer.disposeTemplate(e.context.tree,t,n.templateData),n.element=null,n.templateData=null;}),delete e._cache[t];});},e.prototype.dispose=function(){this.garbageCollect(),this._cache=null,this.context=null;},e;}(),Vx=function(){function e(e,t){var n=this;this.width=0,this.context=e,this.model=t,this.id=this.model.id,this.row=null,this.top=0,this.height=t.getHeight(),this._styles={},t.getAllTraits().forEach(function(e){return n._styles[e]=!0;}),t.isExpanded()&&this.addClass("expanded");}return Object.defineProperty(e.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded");},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loading",{set:function(e){e?this.addClass("loading"):this.removeClass("loading");},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable;},set:function(e){this._draggable=e,this.render(!0);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target");},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.row&&this.row.element;},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.prototype.addClass=function(e){this._styles[e]=!0,this.render(!0);},e.prototype.removeClass=function(e){delete this._styles[e],this.render(!0);},e.prototype.render=function(e){var t=this;if(void 0===e&&(e=!1),this.model&&this.element){var n=["monaco-tree-row"];n.push.apply(n,Object.keys(this._styles)),this.model.hasChildren()&&n.push("has-children"),this.element.className=n.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var i=this.context.accessibilityProvider,o=i.getAriaLabel(this.context.tree,this.model.getElement());if(o&&this.element.setAttribute("aria-label",o),i.getPosInSet&&i.getSetSize&&(this.element.setAttribute("aria-setsize",i.getSetSize()),this.element.setAttribute("aria-posinset",i.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var r=ko(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",r);}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 s=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(s!==this.uri&&(this.unbindDragStart&&(this.unbindDragStart.dispose(),this.unbindDragStart=null),s?(this.uri=s,this.draggable=!0,this.unbindDragStart=ni(this.element,"dragstart",function(e){t.onDragStart(e);})):this.uri=null),!e&&this.element){var a=window.getComputedStyle(this.element),u=parseFloat(a.paddingLeft);this.context.horizontalScrolling&&(this.element.style.width="fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData);}catch(e){console.error("Tree usage error: exception while rendering element"),console.error(e);}this.context.horizontalScrolling&&(this.width=Ti(this.element)+u,this.element.style.width="");}}},e.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[jx.BINDING]=this),!this.element.parentElement){if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t);}catch(t){console.warn("Failed to locate previous tree element"),e.appendChild(this.element);}this.render();}},e.prototype.removeFromDOM=function(){this.row&&(this.unbindDragStart&&(this.unbindDragStart.dispose(),this.unbindDragStart=null),this.uri=null,this.element[jx.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null);},e.prototype.dispose=function(){this.row=null,this.model=null;},e;}(),Hx=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.row={element:i,templateData:null,templateId:null},o;}return Wx(t,e),t.prototype.render=function(){if(this.model&&this.element){var e=["monaco-tree-wrapper"];e.push.apply(e,Object.keys(this._styles)),this.model.hasChildren()&&e.push("has-children"),this.element.className=e.join(" ");}},t.prototype.insertInDOM=function(e,t){},t.prototype.removeFromDOM=function(){},t;}(Vx);var Ux,jx=function(e){function t(n,i){var o=e.call(this)||this;o.lastClickTimeStamp=0,o.contentWidthUpdateDelayer=new G(50),o.isRefreshing=!1,o.refreshingPreviousChildrenIds={},o.currentDropDisposable=y.None,o._onDOMFocus=new N(),o._onDOMBlur=new N(),o._onDidScroll=new N(),t.counter++,o.instance=t.counter;var r=void 0===n.options.horizontalScrollMode?2:n.options.horizontalScrollMode;o.horizontalScrolling=2!==r,o.context={dataSource:n.dataSource,renderer:n.renderer,controller:n.controller,dnd:n.dnd,filter:n.filter,sorter:n.sorter,tree:n.tree,accessibilityProvider:n.accessibilityProvider,options:n.options,cache:new Bx(n),horizontalScrolling:o.horizontalScrolling},o.modelListeners=[],o.viewListeners=[],o.model=null,o.items={},o.domNode=document.createElement("div"),o.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+o.instance,o.domNode.tabIndex=n.options.preventRootFocus?-1:0,o.styleElement=Di(o.domNode),o.treeStyler=n.styler,o.treeStyler||(o.treeStyler=new bx(o.styleElement,"monaco-tree-instance-"+o.instance)),o.domNode.setAttribute("role","tree"),o.context.options.ariaLabel&&o.domNode.setAttribute("aria-label",o.context.options.ariaLabel),o.context.options.alwaysFocused&&Xn(o.domNode,"focused"),o.context.options.paddingOnRow||Xn(o.domNode,"no-row-padding"),o.wrapper=document.createElement("div"),o.wrapper.className="monaco-tree-wrapper",o.scrollableElement=new Uv(o.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:r,vertical:void 0!==n.options.verticalScrollMode?n.options.verticalScrollMode:1,useShadows:n.options.useShadows}),o.scrollableElement.onScroll(function(e){o.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth),o._onDidScroll.fire();}),vn?(o.wrapper.style.msTouchAction="none",o.wrapper.style.msContentZooming="none"):cd.addTarget(o.wrapper),o.rowsContainer=document.createElement("div"),o.rowsContainer.className="monaco-tree-rows",n.options.showTwistie&&(o.rowsContainer.className+=" show-twisties");var s=Bi(o.domNode);return o.viewListeners.push(s.onDidFocus(function(){return o.onFocus();})),o.viewListeners.push(s.onDidBlur(function(){return o.onBlur();})),o.viewListeners.push(s),o.viewListeners.push(ni(o.domNode,"keydown",function(e){return o.onKeyDown(e);})),o.viewListeners.push(ni(o.domNode,"keyup",function(e){return o.onKeyUp(e);})),o.viewListeners.push(ni(o.domNode,"mousedown",function(e){return o.onMouseDown(e);})),o.viewListeners.push(ni(o.domNode,"mouseup",function(e){return o.onMouseUp(e);})),o.viewListeners.push(ni(o.wrapper,"auxclick",function(e){e&&1===e.button&&o.onMouseMiddleClick(e);})),o.viewListeners.push(ni(o.wrapper,"click",function(e){return o.onClick(e);})),o.viewListeners.push(ni(o.domNode,"contextmenu",function(e){return o.onContextMenu(e);})),o.viewListeners.push(ni(o.wrapper,ad.Tap,function(e){return o.onTap(e);})),o.viewListeners.push(ni(o.wrapper,ad.Change,function(e){return o.onTouchChange(e);})),vn&&(o.viewListeners.push(ni(o.wrapper,"MSPointerDown",function(e){return o.onMsPointerDown(e);})),o.viewListeners.push(ni(o.wrapper,"MSGestureTap",function(e){return o.onMsGestureTap(e);})),o.viewListeners.push(_i(o.wrapper,"MSGestureChange",function(e){return o.onThrottledMsGestureChange(e);},function(e,t){t.stopPropagation(),t.preventDefault();var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n;}))),o.viewListeners.push(ni(window,"dragover",function(e){return o.onDragOver(e);})),o.viewListeners.push(ni(o.wrapper,"drop",function(e){return o.onDrop(e);})),o.viewListeners.push(ni(window,"dragend",function(e){return o.onDragEnd(e);})),o.viewListeners.push(ni(window,"dragleave",function(e){return o.onDragOver(e);})),o.wrapper.appendChild(o.rowsContainer),o.domNode.appendChild(o.scrollableElement.getDomNode()),i.appendChild(o.domNode),o.lastRenderTop=0,o.lastRenderHeight=0,o.didJustPressContextMenuKey=!1,o.currentDropTarget=null,o.currentDropTargets=[],o.shouldInvalidateDropReaction=!1,o.dragAndDropScrollInterval=null,o.dragAndDropScrollTimeout=null,o.onHiddenScrollTop=null,o.onRowsChanged(),o.layout(),o.setupMSGesture(),o.applyStyles(n.options),o;}return Wx(t,e),Object.defineProperty(t.prototype,"onDOMFocus",{get:function(){return this._onDOMFocus.event;},enumerable:!0,configurable:!0}),t.prototype.applyStyles=function(e){this.treeStyler.style(e);},t.prototype.createViewItem=function(e){return new Vx(this.context,e);},t.prototype.getHTMLElement=function(){return this.domNode;},t.prototype.focus=function(){this.domNode.focus();},t.prototype.isFocused=function(){return document.activeElement===this.domNode;},t.prototype.blur=function(){this.domNode.blur();},t.prototype.setupMSGesture=function(){var e=this;window.MSGesture&&(this.msGesture=new MSGesture(),setTimeout(function(){return e.msGesture.target=e.wrapper;},100));},t.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop;},t.prototype.layout=function(e,t){this.isTreeVisible()&&(this.viewHeight=e||Ii(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||Ti(this.wrapper)));},t.prototype.render=function(e,t,n,i,o){var r,s,a=e,u=e+t,l=this.lastRenderTop+this.lastRenderHeight;for(r=this.indexAfter(u)-1,s=this.indexAt(Math.max(l,a));r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(u))-1,s=this.indexAt(a);r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),s=Math.min(this.indexAt(a),this.indexAfter(l));r<s;r++)this.removeItemFromDOM(this.itemAtIndex(r));for(r=Math.max(this.indexAfter(u),this.indexAt(this.lastRenderTop)),s=this.indexAfter(l);r<s;r++)this.removeItemFromDOM(this.itemAtIndex(r));var c=this.itemAtIndex(this.indexAt(a));c&&(this.rowsContainer.style.top=c.top-a+"px"),this.horizontalScrolling&&(this.rowsContainer.style.left=-n+"px",this.rowsContainer.style.width=Math.max(o,i)+"px"),this.lastRenderTop=a,this.lastRenderHeight=u-a;},t.prototype.setModel=function(e){this.releaseModel(),this.model=e,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);},t.prototype.onRefreshing=function(){this.isRefreshing=!0;},t.prototype.onRefreshed=function(){this.isRefreshing=!1,this.onRowsChanged();},t.prototype.onRowsChanged=function(e){void 0===e&&(e=this.scrollTop),this.isRefreshing||(this.scrollTop=e,this.updateScrollWidth());},t.prototype.updateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.contentWidthUpdateDelayer.trigger(function(){for(var t=0,n=0,i=Object.keys(e.items);n<i.length;n++){var o=i[n];t=Math.max(t,e.items[o].width);}e.scrollWidth=t+10;});},t.prototype.focusNextPage=function(e){var t=this,n=this.indexAt(this.scrollTop+this.viewHeight);n=0===n?0:n-1;var i=this.itemAtIndex(n).model.getElement();if(this.model.getFocus()!==i)this.model.setFocus(i,e);else{var o=this.scrollTop;this.scrollTop+=this.viewHeight,this.scrollTop!==o&&setTimeout(function(){t.focusNextPage(e);},0);}},t.prototype.focusPreviousPage=function(e){var t,n=this;t=0===this.scrollTop?this.indexAt(this.scrollTop):this.indexAfter(this.scrollTop-1);var i=this.itemAtIndex(t).model.getElement();if(this.model.getFocus()!==i)this.model.setFocus(i,e);else{var o=this.scrollTop;this.scrollTop-=this.viewHeight,this.scrollTop!==o&&setTimeout(function(){n.focusPreviousPage(e);},0);}},Object.defineProperty(t.prototype,"viewHeight",{get:function(){return this.scrollableElement.getScrollDimensions().height;},set:function(e){this.scrollableElement.setScrollDimensions({height:e});},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollHeight",{set:function(e){this.scrollableElement.setScrollDimensions({scrollHeight:e});},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWidth",{get:function(){return this.scrollableElement.getScrollDimensions().width;},set:function(e){this.scrollableElement.setScrollDimensions({width:e});},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollWidth",{set:function(e){this.scrollableElement.setScrollDimensions({scrollWidth:e});},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollTop",{get:function(){return this.scrollableElement.getScrollPosition().scrollTop;},set:function(e){this.scrollableElement.setScrollDimensions({scrollHeight:this.getContentHeight()}),this.scrollableElement.setScrollPosition({scrollTop:e});},enumerable:!0,configurable:!0}),t.prototype.onClearingInput=function(e){var t=e.item;t&&(this.onRemoveItems(new L(t.getNavigator(),function(e){return e&&e.id;})),this.onRowsChanged());},t.prototype.onSetInput=function(e){this.context.cache.garbageCollect(),this.inputItem=new Hx(this.context,e.item,this.wrapper);},t.prototype.onItemChildrenRefreshing=function(e){var n=e.item,i=this.items[n.id];if(i&&this.context.options.showLoading&&(i.loadingTimer=setTimeout(function(){i.loadingTimer=0,i.loading=!0;},t.LOADING_DECORATION_DELAY)),!e.isNested){for(var o,r=[],s=n.getNavigator();o=s.next();)r.push(o.id);this.refreshingPreviousChildrenIds[n.id]=r;}},t.prototype.onItemChildrenRefreshed=function(e){var t=this,n=e.item,i=this.items[n.id];if(i&&(i.loadingTimer&&(clearTimeout(i.loadingTimer),i.loadingTimer=0),i.loading=!1),!e.isNested){for(var o,r=this.refreshingPreviousChildrenIds[n.id],s=[],a=n.getNavigator();o=a.next();)s.push(o);var u=Math.abs(r.length-s.length)>1e3,l=void 0,c=void 0;if(!u)c=(l=new ma({getLength:function(){return r.length;},getElementAtIndex:function(e){return r[e];}},{getLength:function(){return s.length;},getElementAtIndex:function(e){return s[e].id;}},null).ComputeDiff(!1)).some(function(e){if(e.modifiedLength>0)for(var n=e.modifiedStart,i=e.modifiedStart+e.modifiedLength;n<i;n++)if(t.items.hasOwnProperty(s[n].id))return!0;return!1;});if(!u&&!c&&l.length<50)for(var d=0,h=l.length;d<h;d++){var p=l[d];if(p.originalLength>0&&this.onRemoveItems(new x(r,p.originalStart,p.originalStart+p.originalLength)),p.modifiedLength>0){var f=s[p.modifiedStart-1]||n;f=f.getDepth()>0?f:null,this.onInsertItems(new x(s,p.modifiedStart,p.modifiedStart+p.modifiedLength),f?f.id:null);}}else(u||l.length)&&(this.onRemoveItems(new x(r)),this.onInsertItems(new x(s),n.getDepth()>0?n.id:null));(u||l.length)&&this.onRowsChanged();}},t.prototype.onItemRefresh=function(e){this.onItemsRefresh([e]);},t.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter(function(e){return t.items.hasOwnProperty(e.id);})),this.onRowsChanged();},t.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0);},t.prototype.onItemExpanded=function(e){var t=e.item,n=this.items[t.id];if(n){n.expanded=!0;var i=this.onInsertItems(t.getNavigator(),t.id),o=this.scrollTop;n.top+n.height<=this.scrollTop&&(o+=i),this.onRowsChanged(o);}},t.prototype.onItemCollapsing=function(e){var t=e.item,n=this.items[t.id];n&&(n.expanded=!1,this.onRemoveItems(new L(t.getNavigator(),function(e){return e&&e.id;})),this.onRowsChanged());},t.prototype.onItemReveal=function(e){var t=e.item,n=e.relativeTop,i=this.items[t.id];if(i)if(null!==n){n=(n=n<0?0:n)>1?1:n;var o=i.height-this.viewHeight;this.scrollTop=o*n+i.top;}else{var r=i.top+i.height,s=this.scrollTop+this.viewHeight;i.top<this.scrollTop?this.scrollTop=i.top:r>=s&&(this.scrollTop=r-this.viewHeight);}},t.prototype.onItemAddTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.addClass(n),"highlighted"===n&&(Xn(this.domNode,n),i&&(this.highlightedItemWasDraggable=!!i.draggable,i.draggable&&(i.draggable=!1)));},t.prototype.onItemRemoveTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.removeClass(n),"highlighted"===n&&(Qn(this.domNode,n),this.highlightedItemWasDraggable&&(i.draggable=!0),this.highlightedItemWasDraggable=!1);},t.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();ei(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",ko(this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant");},t.prototype.onInsertItem=function(e){var t=this;e.onDragStart=function(n){t.onDragStart(e,n);},e.needsRender=!0,this.refreshViewItem(e),this.items[e.id]=e;},t.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1),e.needsRender=e.needsRender||t,this.refreshViewItem(e);},t.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e),e.dispose(),delete this.items[e.id];},t.prototype.refreshViewItem=function(e){e.render(),this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e);},t.prototype.onClick=function(e){if(!this.lastPointerType||"mouse"===this.lastPointerType){var t=new Vn(e),n=this.getItemAround(t.target);n&&(vn&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,n.model.getElement(),t));}},t.prototype.onMouseMiddleClick=function(e){if(this.context.controller.onMouseMiddleClick){var t=new Vn(e),n=this.getItemAround(t.target);n&&this.context.controller.onMouseMiddleClick(this.context.tree,n.model.getElement(),t);}},t.prototype.onMouseDown=function(e){if(this.didJustPressContextMenuKey=!1,this.context.controller.onMouseDown&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new Vn(e);if(!(t.ctrlKey&&o.e&&o.d)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseDown(this.context.tree,n.model.getElement(),t);}}},t.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new Vn(e);if(!(t.ctrlKey&&o.e&&o.d)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseUp(this.context.tree,n.model.getElement(),t);}}},t.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);t&&this.context.controller.onTap(this.context.tree,t.model.getElement(),e);},t.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY;},t.prototype.onContextMenu=function(e){var t,n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var i,o=new Rn(e);if(n=this.model.getFocus()){var r=this.context.dataSource.getId(this.context.tree,n);i=xi(this.items[r].element);}else n=this.model.getInput(),i=xi(this.inputItem.element);t=new Px(i.left+i.width,i.top,o);}else{var s=new Vn(e),a=this.getItemAround(s.target);if(!a)return;n=a.model.getElement(),t=new Mx(s);}this.context.controller.onContextMenu(this.context.tree,n,t);},t.prototype.onKeyDown=function(e){var t=new Rn(e);this.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode,t.target&&t.target.tagName&&"input"===t.target.tagName.toLowerCase()||(this.didJustPressContextMenuKey&&(t.preventDefault(),t.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,t));},t.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new Rn(e));},t.prototype.onDragStart=function(e,n){if(!this.model.getHighlight()){var i,o=e.model.getElement(),r=this.model.getSelection();if(i=r.indexOf(o)>-1?r:[o],n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(Fx,JSON.stringify([e.uri])),n.dataTransfer.setDragImage){var s=void 0;s=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,i):String(i.length);var a=document.createElement("div");a.className="monaco-tree-drag-image",a.textContent=s,document.body.appendChild(a),n.dataTransfer.setDragImage(a,-10,-10),setTimeout(function(){return document.body.removeChild(a);},0);}this.currentDragAndDropData=new Nx(i),t.currentExternalDragAndDropData=new kx(i),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new Hn(n));}},t.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=Si(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(void 0!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.viewHeight-35;n<35?i=Math.max(-14,.2*(n-35)):n>o&&(i=Math.min(14,.2*(n-o))),e.scrollTop+=i;}},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null;},1e3));},t.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout();},t.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null);},t.prototype.onDragOver=function(e){var n,i=this,o=new Hn(e),r=this.getItemAround(o.target);if(!r||0===o.posx&&0===o.posy&&o.browserEvent.type===Pi.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1;}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=o.posy,!this.currentDragAndDropData)if(t.currentExternalDragAndDropData)this.currentDragAndDropData=t.currentExternalDragAndDropData;else{if(!o.dataTransfer.types)return!1;this.currentDragAndDropData=new Ox();}this.currentDragAndDropData.update(o);var s,a=r.model;do{if(n=a?a.getElement():this.model.getInput(),!(s=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,n,o))||1!==s.bubble)break;a=a&&a.parent;}while(a);if(!a)return this.currentDropElement=null,!1;var u=s&&s.accept;u?(this.currentDropElement=a.getElement(),o.preventDefault(),o.dataTransfer.dropEffect=0===s.effect?"copy":"move"):this.currentDropElement=null;var l,c,d=a.id===this.inputItem.id?this.inputItem:this.items[a.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==d||(l=this.currentDropElementReaction,c=s,!(!l&&!c||l&&c&&l.accept===c.accept&&l.bubble===c.bubble&&l.effect===c.effect)))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1;}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=d,this.currentDropElementReaction=s,u)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),0===s.bubble)for(var h,p=a.getNavigator();h=p.next();)(r=this.items[h.id])&&(r.dropTarget=!0,this.currentDropTargets.push(r));if(s.autoExpand){var f=$(500);this.currentDropDisposable=m(function(){return f.cancel();}),f.then(function(){return i.context.tree.expand(i.currentDropElement);}).then(function(){return i.shouldInvalidateDropReaction=!0;});}}return!0;},t.prototype.onDrop=function(e){if(this.currentDropElement){var t=new Hn(e);t.preventDefault(),this.currentDragAndDropData.update(t),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,t),this.onDragEnd(e);}this.cancelDragAndDropScrollInterval();},t.prototype.onDragEnd=function(e){this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1;}),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,t.currentExternalDragAndDropData=null,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null;},t.prototype.onFocus=function(){this.context.options.alwaysFocused||Xn(this.domNode,"focused"),this._onDOMFocus.fire();},t.prototype.onBlur=function(){this.context.options.alwaysFocused||Qn(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire();},t.prototype.onMsPointerDown=function(e){if(this.msGesture){var t=e.pointerType;t!==(e.MSPOINTER_TYPE_MOUSE||"mouse")?t===(e.MSPOINTER_TYPE_TOUCH||"touch")&&(this.lastPointerType="touch",e.stopPropagation(),e.preventDefault(),this.msGesture.addPointer(e.pointerId)):this.lastPointerType="mouse";}},t.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY;},t.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY),this.onTap(e);},t.prototype.insertItemInDOM=function(e){var t=null,n=this.itemAfter(e);n&&n.element&&(t=n.element),e.insertInDOM(this.rowsContainer,t);},t.prototype.removeItemFromDOM=function(e){e&&e.removeFromDOM();},t.prototype.shouldBeRendered=function(e){return e.top<this.lastRenderTop+this.lastRenderHeight&&e.top+e.height>this.lastRenderTop;},t.prototype.getItemAround=function(e){var n=this.inputItem;do{if(e[t.BINDING]&&(n=e[t.BINDING]),e===this.wrapper||e===this.domNode)return n;if(e===this.scrollableElement.getDomNode()||e===document.body)return null;}while(e=e.parentElement);},t.prototype.releaseModel=function(){this.model&&(this.modelListeners=f(this.modelListeners),this.model=null);},t.prototype.dispose=function(){var t=this;this.scrollableElement.dispose(),this.releaseModel(),this.modelListeners=null,this.viewListeners=f(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.domNode=null,this.items&&(Object.keys(this.items).forEach(function(e){return t.items[e].removeFromDOM();}),this.items=null),this.context.cache&&(this.context.cache.dispose(),this.context.cache=null),e.prototype.dispose.call(this);},t.BINDING="monaco-tree-row",t.LOADING_DECORATION_DELAY=800,t.counter=0,t.currentExternalDragAndDropData=null,t;}(Dx),zx=function(){return function(e,t,n){if(void 0===n&&(n={}),this.tree=e,this.configuration=t,this.options=n,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new mx({clickBehavior:1,keyboardSupport:"boolean"!=typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new _x(),this.filter=t.filter||new vx(),this.sorter=t.sorter||null,this.accessibilityProvider=t.accessibilityProvider||new yx(),this.styler=t.styler||null;};}(),Kx={listFocusBackground:Oh.fromHex("#073655"),listActiveSelectionBackground:Oh.fromHex("#0E639C"),listActiveSelectionForeground:Oh.fromHex("#FFFFFF"),listFocusAndSelectionBackground:Oh.fromHex("#094771"),listFocusAndSelectionForeground:Oh.fromHex("#FFFFFF"),listInactiveSelectionBackground:Oh.fromHex("#3F3F46"),listHoverBackground:Oh.fromHex("#2A2D2E"),listDropBackground:Oh.fromHex("#383B3D")},qx=function(){function e(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new V(),this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new V(),this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new V(),this._onDidExpandItem=new V(),this._onDidCollapseItem=new V(),this._onDispose=new N(),this.onDidDispose=this._onDispose.event,this.container=e,Ie(n,Kx,!1),n.twistiePixels="number"==typeof n.twistiePixels?n.twistiePixels:32,n.showTwistie=!1!==n.showTwistie,n.indentPixels="number"==typeof n.indentPixels?n.indentPixels:12,n.alwaysFocused=!0===n.alwaysFocused,n.useShadows=!1!==n.useShadows,n.paddingOnRow=!1!==n.paddingOnRow,n.showLoading=!1!==n.showLoading,this.context=new zx(this,t,n),this.model=new Ix(this.context),this.view=new jx(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 e.prototype.style=function(e){this.view.applyStyles(e);},Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view&&this.view.onDOMFocus;},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement();},e.prototype.layout=function(e,t){this.view.layout(e,t);},e.prototype.domFocus=function(){this.view.focus();},e.prototype.isDOMFocused=function(){return this.view.isFocused();},e.prototype.domBlur=function(){this.view.blur();},e.prototype.setInput=function(e){return this.model.setInput(e);},e.prototype.getInput=function(){return this.model.getInput();},e.prototype.refresh=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),this.model.refresh(e,t);},e.prototype.expand=function(e){return this.model.expand(e);},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t);},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t);},e.prototype.isExpanded=function(e){return this.model.isExpanded(e);},e.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t);},e.prototype.getHighlight=function(){return this.model.getHighlight();},e.prototype.clearHighlight=function(e){this.model.setHighlight(null,e);},e.prototype.setSelection=function(e,t){this.model.setSelection(e,t);},e.prototype.getSelection=function(){return this.model.getSelection();},e.prototype.clearSelection=function(e){this.model.setSelection([],e);},e.prototype.setFocus=function(e,t){this.model.setFocus(e,t);},e.prototype.getFocus=function(){return this.model.getFocus();},e.prototype.focusNext=function(e,t){this.model.focusNext(e,t);},e.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t);},e.prototype.focusParent=function(e){this.model.focusParent(e);},e.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e);},e.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t);},e.prototype.focusNth=function(e,t){this.model.focusNth(e,t);},e.prototype.focusLast=function(e,t){this.model.focusLast(e,t);},e.prototype.focusNextPage=function(e){this.view.focusNextPage(e);},e.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e);},e.prototype.clearFocus=function(e){this.model.setFocus(null,e);},e.prototype.dispose=function(){this._onDispose.fire(),null!==this.model&&(this.model.dispose(),this.model=null),null!==this.view&&(this.view.dispose(),this.view=null),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose();},e;}(),Gx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),$x=function(){return($x=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e;}).apply(this,arguments);},Yx=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},Xx=function(e,t){return function(n,i){t(n,i,e);};},Zx=dn("listService"),Qx=function(){function e(e){this.lists=[],this._lastFocusedWidget=void 0;}return Object.defineProperty(e.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget;},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this;if(this.lists.some(function(t){return t.widget===e;}))throw new Error("Cannot register the same widget multiple times");var i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),g([e.onDidFocus(function(){return n._lastFocusedWidget=e;}),m(function(){return n.lists.splice(n.lists.indexOf(i),1);}),e.onDidDispose(function(){n.lists=n.lists.filter(function(e){return e!==i;}),n._lastFocusedWidget===e&&(n._lastFocusedWidget=void 0);})]);},e=Yx([Xx(0,bl)],e);}(),Jx=new yl("listFocus",!0),eE=new yl("listSupportsMultiselect",!0),tE=new yl("listHasSelectionOrFocus",!1),nE=new yl("listDoubleSelection",!1),iE=new yl("listMultiSelection",!1);var oE,rE="workbench.list.multiSelectModifier",sE="workbench.list.openMode",aE="workbench.tree.horizontalScrolling";function uE(e){return"alt"===e.getValue(rE);}function lE(e){return"doubleClick"!==e.getValue(sE);}function cE(e,t){return e.controller||(e.controller=t.createInstance(pE,{})),e.styler||(e.styler=new bx((oE||(oE=Di()),oE))),e;}var dE=function(e){function t(t,n,i,o,r,s,a,u){var l=this,c=cE(n,a),d=u.getValue(aE)?1:2,h=$x({horizontalScrollMode:d,keyboardSupport:!1},VS(s.getTheme(),jS),i);return(l=e.call(this,t,c,h)||this).disposables=[],l.contextKeyService=function(e,t){var n=e.createScoped(t.getHTMLElement());return Jx.bindTo(n),n;}(o,l),eE.bindTo(l.contextKeyService),l.listHasSelectionOrFocus=tE.bindTo(l.contextKeyService),l.listDoubleSelection=nE.bindTo(l.contextKeyService),l.listMultiSelection=iE.bindTo(l.contextKeyService),l._openOnSingleClick=lE(u),l._useAltAsMultipleSelectionModifier=uE(u),l.disposables.push(l.contextKeyService,r.register(l),US(l,s)),l.disposables.push(l.onDidChangeSelection(function(){var e=l.getSelection(),t=l.getFocus();l.listHasSelectionOrFocus.set(e&&e.length>0||!!t),l.listDoubleSelection.set(e&&2===e.length),l.listMultiSelection.set(e&&e.length>1);})),l.disposables.push(l.onDidChangeFocus(function(){var e=l.getSelection(),t=l.getFocus();l.listHasSelectionOrFocus.set(e&&e.length>0||!!t);})),l.disposables.push(u.onDidChangeConfiguration(function(e){e.affectsConfiguration(sE)&&(l._openOnSingleClick=lE(u)),e.affectsConfiguration(rE)&&(l._useAltAsMultipleSelectionModifier=uE(u));})),l;}return Gx(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.disposables=f(this.disposables);},t=Yx([Xx(3,bl),Xx(4,Zx),Xx(5,Rd),Xx(6,ln),Xx(7,Fl)],t);}(qx);var hE,pE=function(e){function t(t,n){var i=e.call(this,function(e){return"boolean"!=typeof e.keyboardSupport&&(e.keyboardSupport=!1),"number"!=typeof e.clickBehavior&&(e.clickBehavior=0),e;}(t))||this;return i.configurationService=n,i.disposables=[],Ce(t.openMode)&&(i.setOpenMode(i.getOpenModeSetting()),i.registerListeners()),i;}return Gx(t,e),t.prototype.registerListeners=function(){var e=this;this.disposables.push(this.configurationService.onDidChangeConfiguration(function(t){t.affectsConfiguration(sE)&&e.setOpenMode(e.getOpenModeSetting());}));},t.prototype.getOpenModeSetting=function(){return lE(this.configurationService)?0:1;},t.prototype.dispose=function(){this.disposables=f(this.disposables);},t=Yx([Xx(1,Fl)],t);}(mx);Au.as(Fu.Configuration).registerConfiguration({id:"workbench",order:7,title:ie("workbenchConfigurationTitle","Workbench"),type:"object",properties:(Ux={},Ux[rE]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[ie("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),ie("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:ie({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.")},Ux[sE]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:ie({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. ")},Ux[aE]={type:"boolean",default:!1,description:ie("horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench.")},Ux)}),function(e){e.get=function(e,t,n){if(e[t])return e[t][n];},e.set=function(e,t,n,i){e[t]||(e[t]=Object.create(null)),e[t][n]=i;},e.remove=function(e,t,n){return!(!e[t]||!e[t][n]||(delete e[t][n],Se(e[t])&&delete e[t],0));};}(hE||(hE={}));var fE,gE=function(){function e(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=e,this._subscription=e.onMarkerChanged(this._update,this);}return e.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0;},e.prototype._update=function(e){if(this._data)for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.toString(),r=this._data[o];r&&this._substract(r);var s=this._resourceStats(i);this._add(s),this._data[o]=s;}},e.prototype._resourceStats=function(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Hi.inMemory||e.scheme===Hi.walkThrough||e.scheme===Hi.walkThroughSnippet)return t;for(var n=0,i=this._service.read({resource:e});n<i.length;n++){var o=i[n].severity;o===fw.Error?t.errors+=1:o===fw.Warning?t.warnings+=1:o===fw.Info?t.infos+=1:t.unknowns+=1;}return t;},e.prototype._substract=function(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns;},e.prototype._add=function(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns;},e;}(),mE=function(){function e(){this._onMarkerChanged=new N(),this._onMarkerChangedEvent=R(this._onMarkerChanged.event,e._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new gE(this);}return e.prototype.dispose=function(){this._stats.dispose();},Object.defineProperty(e.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent;},enumerable:!0,configurable:!0}),e.prototype.remove=function(e,t){if(!ce(t))for(var n=0,i=t;n<i.length;n++){var o=i[n];this.changeOne(e,o,[]);}},e.prototype.changeOne=function(t,n,i){if(ce(i)){var o=hE.remove(this._byResource,n.toString(),t),r=hE.remove(this._byOwner,t,n.toString());if(o!==r)throw new Error("invalid marker service state");o&&r&&this._onMarkerChanged.fire([n]);}else{for(var s=[],a=0,u=i;a<u.length;a++){var l=u[a],c=e._toMarker(t,n,l);c&&s.push(c);}hE.set(this._byResource,n.toString(),t,s),hE.set(this._byOwner,t,n.toString(),s),this._onMarkerChanged.fire([n]);}},e._toMarker=function(e,t,n){var i=n.code,o=n.severity,r=n.message,s=n.source,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn,d=n.relatedInformation,h=n.tags;if(r)return{resource:t,owner:e,code:i||void 0,severity:o,message:r,source:s,startLineNumber:a=a>0?a:1,startColumn:u=u>0?u:1,endLineNumber:l=l>=a?l:a,endColumn:c=c>0?c:u,relatedInformation:d,tags:h};},e.prototype.read=function(t){void 0===t&&(t=Object.create(null));var n=t.owner,i=t.resource,o=t.severities,r=t.take;if((!r||r<0)&&(r=-1),n&&i){if(y=hE.get(this._byResource,i.toString(),n)){for(var s=[],a=0,u=y;a<u.length;a++){var l=u[a];if(e._accept(l,o)){var c=s.push(l);if(r>0&&c===r)break;}}return s;}return[];}if(n||i){var d=n?this._byOwner[n]:i?this._byResource[i.toString()]:void 0;if(!d)return[];s=[];for(var h in d)for(var p=0,f=d[h];p<f.length;p++){y=f[p];if(e._accept(y,o)){c=s.push(y);if(r>0&&c===r)return s;}}return s;}var s=[];for(var g in this._byResource)for(var m in this._byResource[g])for(var _=0,v=this._byResource[g][m];_<v.length;_++){var y=v[_];if(e._accept(y,o)){var c=s.push(y);if(r>0&&c===r)return s;}}return s;},e._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity;},e._debouncer=function(t,n){t||(e._dedupeMap=Object.create(null),t=[]);for(var i=0,o=n;i<o.length;i++){var r=o[i];void 0===e._dedupeMap[r.toString()]&&(e._dedupeMap[r.toString()]=!0,t.push(r));}return t;},e;}(),_E=dn("progressService"),vE=dn("storageService"),yE=new(function(){function e(){this._serviceBrand=void 0,this.onDidChangeStorage=S.None,this.onWillSaveState=S.None;}return e.prototype.get=function(e,t,n){return n;},e.prototype.getBoolean=function(e,t,n){return n;},e.prototype.getInteger=function(e,t,n){return n;},e.prototype.store=function(e,t,n){return Promise.resolve();},e.prototype.remove=function(e,t){return Promise.resolve();},e;}())(),bE=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();!function(e){var t=new jb(),n=function(){function e(e,t){this._serviceId=e,this._factory=t,this._value=null;}return Object.defineProperty(e.prototype,"id",{get:function(){return this._serviceId;},enumerable:!0,configurable:!0}),e.prototype.get=function(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value);}return this._value;},e;}();e.LazyStaticService=n;var i=[];function o(e,t){var o=new n(e,t);return i.push(o),o;}e.init=function(e){var t=new jb();for(var n in e)e.hasOwnProperty(n)&&t.set(dn(n),e[n]);i.forEach(function(n){return t.set(n.id,n.get(e));});var o=new hx(t,!0);return t.set(ln,o),[t,o];},e.instantiationService=o(ln,function(){return new hx(t,!0);});var r=new Cc();e.configurationService=o(Fl,function(){return r;}),e.resourceConfigurationService=o(Ua,function(){return new wc(r);}),e.resourcePropertiesService=o(ja,function(){return new Sc(r);}),e.contextService=o(uc,function(){return new Lc();}),e.labelService=o(fx,function(){return new Dc();}),e.telemetryService=o($o,function(){return new Ec();}),e.dialogService=o(sx,function(){return new mc();}),e.notificationService=o(sc,function(){return new _c();}),e.markerService=o(Tw,function(){return new mE();}),e.modeService=o(tw,function(e){return new Cw();}),e.modelService=o(Gr,function(t){return new Mw(e.markerService.get(t),e.configurationService.get(t),e.resourcePropertiesService.get(t));}),e.editorWorkerService=o(Os,function(t){return new Xa(e.modelService.get(t),e.resourceConfigurationService.get(t));}),e.standaloneThemeService=o(HC,function(){return new vS();}),e.codeEditorService=o(pn,function(t){return new $w(e.standaloneThemeService.get(t));}),e.progressService=o(_E,function(){return new gc();}),e.storageService=o(vE,function(){return yE;}),e.logService=o(ex,function(){return new tx();});}(fE||(fE={}));var CE=function(e){function t(t,n){var i=e.call(this)||this,o=fE.init(n),r=o[0],s=o[1];i._serviceCollection=r,i._instantiationService=s;var a=i.get(Fl),u=i.get(sc),l=i.get($o),c=i.get(Rd),d=function(e,t){var o=null;return n&&(o=n[e.toString()]),o||(o=t()),i._serviceCollection.set(e,o),o;},h=d(bl,function(){return i._register(new NS(a));});d(Zx,function(){return new Qx(h);});var p=d(qo,function(){return new vc(i._instantiationService);}),f=d(zC,function(){return i._register(new yc(h,p,l,u,t));}),g=d(UC,function(){return i._register(new rx(t,l,new tx()));});return d(jC,function(){return i._register(new XS(t,l,u,g,f,c));}),d(Nl,function(){return new xc(p);}),d(ew,function(){return new Oc(fE.modelService.get(Gr));}),i;}return bE(t,e),t.prototype.get=function(e){var t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t;},t.prototype.set=function(e,t){this._serviceCollection.set(e,t);},t.prototype.has=function(e){return this._serviceCollection.has(e);},t;}(y),wE=dn("openerService"),SE=Object.freeze({_serviceBrand:void 0,open:function(){return Promise.resolve(void 0);}});function xE(e,t,n){var i=new CE(e,t),o=null;i.has(Ds)||(o=new fc(),i.set(Ds,o)),i.has(wE)||i.set(wE,new Qo(i.get(pn),i.get(qo)));var r=n(i);return o&&o.setEditor(r),r;}function EE(e,t,n){return xE(e,n||{},function(n){return new QC(e,t,n,n.get(ln),n.get(pn),n.get(qo),n.get(bl),n.get(zC),n.get(UC),n.get(HC),n.get(sc),n.get(Fl));});}function LE(e){return fE.codeEditorService.get().onCodeEditorAdd(function(t){e(t);});}function TE(e,t,n){return xE(e,n,function(n){return new JC(e,t,n,n.get(ln),n.get(bl),n.get(zC),n.get(UC),n.get(Os),n.get(pn),n.get(HC),n.get(sc),n.get(Fl));});}function IE(e,t){return new tr(e,t);}function NE(e,t,n){return fE.modelService.get().createModel(e,t,n);}function kE(e,t,n){if(e=e||"",!t){var i=n?n.path:null,o=e.indexOf("\n"),r=e;return-1!==o&&(r=e.substring(0,o)),NE(e,fE.modeService.get().createByFilepathOrFirstLine(i,r),n);}return NE(e,fE.modeService.get().create(t),n);}function OE(e,t){fE.modelService.get().setMode(e,fE.modeService.get().create(t));}function DE(e,t,n){e&&fE.markerService.get().changeOne(t,e.uri,n);}function RE(e){return fE.markerService.get().read(e);}function AE(e){return fE.modelService.get().getModel(e);}function ME(){return fE.modelService.get().getModels();}function PE(e){return fE.modelService.get().onModelAdded(e);}function FE(e){return fE.modelService.get().onModelRemoved(e);}function WE(e){return fE.modelService.get().onModelModeChanged(function(t){e({model:t.model,oldLanguage:t.oldModeId});});}function BE(e){return function(e,t){return new ou(e,t);}(fE.modelService.get(),e);}function VE(e,t){return Nu.colorizeElement(fE.standaloneThemeService.get(),fE.modeService.get(),e,t);}function HE(e,t,n){return Nu.colorize(fE.modeService.get(),e,t,n);}function UE(e,t,n){return void 0===n&&(n=4),Nu.colorizeModelLine(e,t,n);}function jE(e,t){fE.modeService.get().triggerMode(t);for(var n=function(e){var t=Ls.get(e);return t||{getInitialState:function(){return Ts;},tokenize:function(t,n,i){return Ns(e,0,n,i);},tokenize2:void 0};}(t),i=e.split(/\r\n|\r|\n/),o=[],r=n.getInitialState(),s=0,a=i.length;s<a;s++){var u=i[s],l=n.tokenize(u,r,0);o[s]=l.tokens,r=l.endState;}return o;}function zE(e,t){fE.standaloneThemeService.get().defineTheme(e,t);}function KE(e){fE.standaloneThemeService.get().setTheme(e);}function qE(e){return!function(e){return Array.isArray(e);}(e);}function GE(e){return"string"==typeof e;}function $E(e){return!GE(e);}function YE(e){return!e;}function XE(e,t){return e.ignoreCase&&t?t.toLowerCase():t;}function ZE(e){return e.replace(/[&<>'"_]/g,"-");}function QE(e,t){return new Error(e.languageId+": "+t);}function JE(e,t,n,i,o){var r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,s,a,u,l,c,d,h,p){return YE(a)?YE(u)?!YE(l)&&l<i.length?XE(e,i[l]):!YE(d)&&e&&"string"==typeof e[d]?e[d]:(null===r&&(r=o.split(".")).unshift(o),!YE(c)&&c<r.length?XE(e,r[c]):""):XE(e,n):"$";});}function eL(e,t){for(var n=t;n&&n.length>0;){var i=e.tokenizer[n];if(i)return i;var o=n.lastIndexOf(".");n=o<0?null:n.substr(0,o);}return null;}function tL(e,t){return"boolean"==typeof e?e:t;}function nL(e,t){return"string"==typeof e?e:t;}function iL(e,t){for(var n=0;t.indexOf("@")>=0&&n<5;)n++,t=t.replace(/@(\w+)/g,function(n,i){var o="";if("string"==typeof e[i])o=e[i];else{if(!(e[i]&&e[i]instanceof RegExp))throw void 0===e[i]?QE(e,"language definition does not contain attribute '"+i+"', used at: "+t):QE(e,"attribute reference '"+i+"' must be a string, used at: "+t);o=e[i].source;}return YE(o)?"":"(?:"+o+")";});return new RegExp(t,e.ignoreCase?"i":"");}function oL(e,t,n,i){var o=-1,r=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(o=parseInt(s[3]),s[2]&&(o+=100)),r=s[4]);var a,u="~",l=r;if(r&&0!==r.length?/^\w*$/.test(l)?u="==":(s=r.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(u=s[1],l=s[2]):(u="!=",l=""),"~"!==u&&"!~"!==u||!/^(\w|\|)*$/.test(l)){if("@"===u||"!@"===u){var c=e[l];if(!c)throw QE(e,"the @ match target '"+l+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e(t[n]))return!1;return!0;}(function(e){return"string"==typeof e;},c))throw QE(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);var d=ke(c,e.ignoreCase);a=function(e){return"@"===u?d(e):!d(e);};}else if("~"===u||"!~"===u){if(l.indexOf("$")<0){var h=iL(e,"^"+l+"$");a=function(e){return"~"===u?h.test(e):!h.test(e);};}else a=function(t,n,i,o){return iL(e,"^"+JE(e,l,n,i,o)+"$").test(t);};}else if(l.indexOf("$")<0){var p=XE(e,l);a=function(e){return"=="===u?e===p:e!==p;};}else{var f=XE(e,l);a=function(t,n,i,o,r){var s=JE(e,f,n,i,o);return"=="===u?t===s:t!==s;};}}else{var g=ke(l.split("|"),e.ignoreCase);a=function(e){return"~"===u?g(e):!g(e);};}return-1===o?{name:n,value:i,test:function(e,t,n,i){return a(e,e,t,n,i);}}:{name:n,value:i,test:function(e,t,n,i){var r=function(e,t,n,i){if(i<0)return e;if(i<t.length)return t[i];if(i>=100){i-=100;var o=n.split(".");if(o.unshift(n),i<o.length)return o[i];}return null;}(e,t,n,o);return a(r||"",e,t,n,i);}};}var rL=function(){function e(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e;}return e.prototype.setRegex=function(e,t){var n;if("string"==typeof t)n=t;else{if(!(t instanceof RegExp))throw QE(e,"rules must start with a match string or regular expression: "+this.name);n=t.source;}this.matchOnlyAtLineStart=n.length>0&&"^"===n[0],this.name=this.name+": "+n,this.regex=iL(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")");},e.prototype.setAction=function(e,t){this.action=function e(t,n,i){if(i){if("string"==typeof i)return i;if(i.token||""===i.token){if("string"!=typeof i.token)throw QE(t,"a 'token' attribute must be of type string, in rule: "+n);var o={token:i.token};if(i.token.indexOf("$")>=0&&(o.tokenSubst=!0),"string"==typeof i.bracket)if("@open"===i.bracket)o.bracket=1;else{if("@close"!==i.bracket)throw QE(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+n);o.bracket=-1;}if(i.next){if("string"!=typeof i.next)throw QE(t,"the next state must be a string value in rule: "+n);var r=i.next;if(!/^(@pop|@push|@popall)$/.test(r)&&("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&!function(e,t){for(var n=t;n&&n.length>0;){if(e.stateNames[n])return!0;var i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i);}return!1;}(t,JE(t,r,"",[],""))))throw QE(t,"the next state '"+i.next+"' is not defined in rule: "+n);o.next=r;}return"number"==typeof i.goBack&&(o.goBack=i.goBack),"string"==typeof i.switchTo&&(o.switchTo=i.switchTo),"string"==typeof i.log&&(o.log=i.log),"string"==typeof i.nextEmbedded&&(o.nextEmbedded=i.nextEmbedded,t.usesEmbedded=!0),o;}if(Array.isArray(i)){var s=[];for(var a in i)i.hasOwnProperty(a)&&(s[a]=e(t,n,i[a]));return{group:s};}if(i.cases){var u=[];for(var l in i.cases)if(i.cases.hasOwnProperty(l)){var c=e(t,n,i.cases[l]);"@default"===l||"@"===l||""===l?u.push({test:void 0,value:c,name:l}):"@eos"===l?u.push({test:function(e,t,n,i){return i;},value:c,name:l}):u.push(oL(t,n,l,c));}var d=t.defaultToken;return{test:function(e,t,n,i){for(var o in u)if(u.hasOwnProperty(o)){var r=u[o];if(!r.test||r.test(e,t,n,i))return r.value;}return d;}};}throw QE(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+n);}return{token:""};}(e,this.name,t);},e;}();var sL=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null);}return e.create=function(e,t){return this._INSTANCE.create(e,t);},e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new aL(e,t);var n=aL.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var i=this._entries[n];return i||(i=new aL(e,t),this._entries[n]=i,i);},e._INSTANCE=new e(5),e;}(),aL=function(){function e(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1;}return e.getStackElementId=function(e){for(var t="";null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t;},e._equals=function(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent;}return null===e&&null===t;},e.prototype.equals=function(t){return e._equals(this,t);},e.prototype.push=function(e){return sL.create(this,e);},e.prototype.pop=function(){return this.parent;},e.prototype.popall=function(){for(var e=this;e.parent;)e=e.parent;return e;},e.prototype.switchTo=function(e){return sL.create(this.parent,e);},e;}(),uL=function(){function e(e,t){this.modeId=e,this.state=t;}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state);},e.prototype.clone=function(){return this.state.clone()===this.state?this:new e(this.modeId,this.state);},e;}(),lL=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null);}return e.create=function(e,t){return this._INSTANCE.create(e,t);},e.prototype.create=function(e,t){if(null!==t)return new cL(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new cL(e,t);var n=aL.getStackElementId(e),i=this._entries[n];return i||(i=new cL(e,null),this._entries[n]=i,i);},e._INSTANCE=new e(5),e;}(),cL=function(){function e(e,t){this.stack=e,this.embeddedModeData=t;}return e.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:lL.create(this.stack,this.embeddedModeData);},e.prototype.equals=function(t){return t instanceof e&&!!this.stack.equals(t.stack)&&(null===this.embeddedModeData&&null===t.embeddedModeData||null!==this.embeddedModeData&&null!==t.embeddedModeData&&this.embeddedModeData.equals(t.embeddedModeData));},e;}(),dL=Object.hasOwnProperty,hL=function(){function e(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null;}return e.prototype.enterMode=function(e,t){this._language=t;},e.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new nn(e,t,this._language)));},e.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,o=t.state,r=Ls.get(i);if(!r)return this.enterMode(n,i),this.emit(n,""),o;var s=r.tokenize(e,o,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState;},e.prototype.finalize=function(e){return new on(this._tokens,e);},e;}(),pL=function(){function e(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0;}return e.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id;},e.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n));},e._merge=function(e,t,n){var i=null!==e?e.length:0,o=t.length,r=null!==n?n.length:0;if(0===i&&0===o&&0===r)return new Uint32Array(0);if(0===i&&0===o)return n;if(0===o&&0===r)return e;var s=new Uint32Array(i+o+r);null!==e&&s.set(e);for(var a=0;a<o;a++)s[i+a]=t[a];return null!==n&&s.set(n,i+o),s;},e.prototype.nestedModeTokenize=function(t,n,i){var o=n.modeId,r=n.state,s=Ls.get(o);if(!s)return this.enterMode(i,o),this.emit(i,""),r;var a=s.tokenize2(t,r,i);return this._prependTokens=e._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState;},e.prototype.finalize=function(t){return new rn(e._merge(this._prependTokens,this._tokens,null),t);},e;}(),fL=function(){function e(e,t,n,i){var o=this;this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=i,this._embeddedModes=Object.create(null);var r=!1;this._tokenizationRegistryListener=Ls.onDidChange(function(e){if(!r){for(var t=!1,n=0,i=e.changedLanguages.length;n<i;n++){var s=e.changedLanguages[n];if(o._embeddedModes[s]){t=!0;break;}}t&&(r=!0,Ls.fire([o._modeId]),r=!1);}});}return e.prototype.dispose=function(){this._tokenizationRegistryListener.dispose();},e.prototype.getInitialState=function(){var e=sL.create(null,this._lexer.start);return lL.create(e,null);},e.prototype.tokenize=function(e,t,n){var i=new hL(),o=this._tokenize(e,t,n,i);return i.finalize(o);},e.prototype.tokenize2=function(e,t,n){var i=new pL(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),o=this._tokenize(e,t,n,i);return i.finalize(o);},e.prototype._tokenize=function(e,t,n,i){return t.embeddedModeData?this._nestedTokenize(e,t,n,i):this._myTokenize(e,t,n,i);},e.prototype._findLeavingNestedModeOffset=function(e,t){var n=this._lexer.tokenizer[t.stack.state];if(!n&&!(n=eL(this._lexer,t.stack.state)))throw QE(this._lexer,"tokenizer state is not defined: "+t.stack.state);var i=-1,o=!1;for(var r in n)if(dL.call(n,r)){var s=n[r];if($E(s.action)&&"@pop"===s.action.nextEmbedded){o=!0;var a=s.regex,u=s.regex.source;"^(?:"===u.substr(0,4)&&")"===u.substr(u.length-1,1)&&(a=new RegExp(u.substr(4,u.length-5),a.ignoreCase?"i":""));var l=e.search(a);-1!==l&&(-1===i||l<i)&&(i=l);}}if(!o)throw QE(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return i;},e.prototype._nestedTokenize=function(e,t,n,i){var o=this._findLeavingNestedModeOffset(e,t);if(-1===o){var r=i.nestedModeTokenize(e,t.embeddedModeData,n);return lL.create(t.stack,new uL(t.embeddedModeData.modeId,r));}var s=e.substring(0,o);s.length>0&&i.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(o);return this._myTokenize(a,t,n+o,i);},e.prototype._myTokenize=function(e,t,n,i){i.enterMode(n,this._modeId);for(var o,r,s=e.length,a=t.embeddedModeData,u=t.stack,l=0,c=null;l<s;){var d=l,h=u.depth,p=c?c.groups.length:0,f=u.state,g=null,m=null,_=null,v=null,y=null;if(c){g=c.matches;var b=c.groups.shift();m=b.matched,_=b.action,v=c.rule,0===c.groups.length&&(c=null);}else{if(l>=s)break;var C=this._lexer.tokenizer[f];if(!C&&!(C=eL(this._lexer,f)))throw QE(this._lexer,"tokenizer state is not defined: "+f);var w=e.substr(l);for(var S in C)if(dL.call(C,S)){var x=C[S];if((0===l||!x.matchOnlyAtLineStart)&&(g=w.match(x.regex))){m=g[0],_=x.action;break;}}}for(g||(g=[""],m=""),_||(l<s&&(m=(g=[e.charAt(l)])[0]),_=this._lexer.defaultToken),l+=m.length;qE(_)&&$E(_)&&_.test;)_=_.test(m,g,f,l===s);var E=null;if("string"==typeof _||Array.isArray(_))E=_;else if(_.group)E=_.group;else if(null!==_.token&&void 0!==_.token){if(E=_.tokenSubst?JE(this._lexer,_.token,m,g,f):_.token,_.nextEmbedded)if("@pop"===_.nextEmbedded){if(!a)throw QE(this._lexer,"cannot pop embedded mode if not inside one");a=null;}else{if(a)throw QE(this._lexer,"cannot enter embedded mode from within an embedded mode");y=JE(this._lexer,_.nextEmbedded,m,g,f);}if(_.goBack&&(l=Math.max(0,l-_.goBack)),_.switchTo&&"string"==typeof _.switchTo){if("@"===(L=JE(this._lexer,_.switchTo,m,g,f))[0]&&(L=L.substr(1)),!eL(this._lexer,L))throw QE(this._lexer,"trying to switch to a state '"+L+"' that is undefined in rule: "+v.name);u=u.switchTo(L);}else{if(_.transform&&"function"==typeof _.transform)throw QE(this._lexer,"action.transform not supported");if(_.next)if("@push"===_.next){if(u.depth>=this._lexer.maxStack)throw QE(this._lexer,"maximum tokenizer stack size reached: ["+u.state+","+u.parent.state+",...]");u=u.push(f);}else if("@pop"===_.next){if(u.depth<=1)throw QE(this._lexer,"trying to pop an empty stack in rule: "+v.name);u=u.pop();}else if("@popall"===_.next)u=u.popall();else{var L;if("@"===(L=JE(this._lexer,_.next,m,g,f))[0]&&(L=L.substr(1)),!eL(this._lexer,L))throw QE(this._lexer,"trying to set a next state '"+L+"' that is undefined in rule: "+v.name);u=u.push(L);}}_.log&&"string"==typeof _.log&&(o=this._lexer,r=this._lexer.languageId+": "+JE(this._lexer,_.log,m,g,f),console.log(o.languageId+": "+r));}if(null===E)throw QE(this._lexer,"lexer rule has no well-defined action in rule: "+v.name);if(Array.isArray(E)){if(c&&c.groups.length>0)throw QE(this._lexer,"groups cannot be nested: "+v.name);if(g.length!==E.length+1)throw QE(this._lexer,"matched number of groups does not match the number of actions in rule: "+v.name);for(var T=0,I=1;I<g.length;I++)T+=g[I].length;if(T!==m.length)throw QE(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+v.name);c={rule:v,matches:g,groups:[]};for(I=0;I<E.length;I++)c.groups[I]={action:E[I],matched:g[I+1]};l-=m.length;}else{if("@rematch"===E&&(l-=m.length,m="",g=null,E=""),0===m.length){if(h!==u.depth||f!==u.state||(c?c.groups.length:0)!==p)continue;throw QE(this._lexer,"no progress in tokenizer in rule: "+v.name);}var N=null;if(GE(E)&&0===E.indexOf("@brackets")){var k=E.substr("@brackets".length),O=gL(this._lexer,m);if(!O)throw QE(this._lexer,"@brackets token returned but no bracket defined as: "+m);N=ZE(O.token+k);}else{N=ZE(""===E?"":E+this._lexer.tokenPostfix);}if(i.emit(d+n,N),null!==y){var D=this._modeService.getModeIdForLanguageName(y);D&&(y=D);var R=this._getNestedEmbeddedModeData(y);if(l<s){w=e.substr(l);return this._nestedTokenize(w,lL.create(u,R),n+l,i);}return lL.create(u,R);}}}return lL.create(u,a);},e.prototype._getNestedEmbeddedModeData=function(e){var t=this._locateMode(e);if(t){var n=Ls.get(t);if(n)return new uL(t,n.getInitialState());}return new uL(t||"vs.editor.nullMode",Ts);},e.prototype._locateMode=function(e){if(!e||!this._modeService.isRegisteredMode(e))return null;var t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t;},e;}();function gL(e,t){if(!t)return null;t=XE(e,t);for(var n=e.brackets,i=0;i<n.length;i++){var o=n[i];if(o.open===t)return{token:o.token,bracketType:1};if(o.close===t)return{token:o.token,bracketType:-1};}return null;}function mL(e){dw.registerLanguage(e);}function _L(){var e=[];return e=e.concat(dw.getLanguages());}function vL(e){var t=fE.modeService.get().getLanguageIdentifier(e);return t?t.id:0;}function yL(e,t){var n=fE.modeService.get().onDidCreateMode(function(i){i.getId()===e&&(n.dispose(),t());});return n;}function bL(e,t){var n=fE.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return la.register(n,t);}var CL=function(){function e(e){this._actual=e;}return e.prototype.getInitialState=function(){return this._actual.getInitialState();},e.prototype.tokenize=function(e,t,n){throw new Error("Not supported!");},e.prototype.tokenize2=function(e,t){var n=this._actual.tokenizeEncoded(e,t);return new rn(n.tokens,n.endState);},e;}(),wL=function(){function e(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n;}return e.prototype.getInitialState=function(){return this._actual.getInitialState();},e.prototype._toClassicTokens=function(e,t,n){for(var i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r],u=a.startIndex;0===r?u=0:u<o&&(u=o),i[r]=new nn(u+n,a.scopes,t),o=u;}return i;},e.prototype.tokenize=function(e,t,n){var i,o=this._actual.tokenize(e,t),r=this._toClassicTokens(o.tokens,this._languageIdentifier.language,n);return i=o.endState.equals(t)?t:o.endState,new on(r,i);},e.prototype._toBinaryTokens=function(e,t){for(var n=this._languageIdentifier.id,i=this._standaloneThemeService.getTheme().tokenTheme,o=[],r=0,s=0,a=0,u=e.length;a<u;a++){var l=e[a],c=i.match(n,l.scopes);if(!(r>0&&o[r-1]===c)){var d=l.startIndex;0===a?d=0:d<s&&(d=s),o[r++]=d+t,o[r++]=c,s=d;}}var h=new Uint32Array(r);for(a=0;a<r;a++)h[a]=o[a];return h;},e.prototype.tokenize2=function(e,t,n){var i,o=this._actual.tokenize(e,t),r=this._toBinaryTokens(o.tokens,n);return i=o.endState.equals(t)?t:o.endState,new rn(r,i);},e;}();function SL(e,t){var n,i=fE.modeService.get().getLanguageIdentifier(e);if(!i)throw new Error("Cannot set tokens provider for unknown language "+e);return n=function(e){return e.tokenizeEncoded;}(t)?new CL(t):new wL(fE.standaloneThemeService.get(),i,t),Ls.register(e,n);}function xL(e,t){var n=function(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=e,n.noThrow=!1,n.maxStack=100,n.start="string"==typeof t.start?t.start:null,n.ignoreCase=tL(t.ignoreCase,!1),n.tokenPostfix=nL(t.tokenPostfix,"."+n.languageId),n.defaultToken=nL(t.defaultToken,"source"),n.usesEmbedded=!1;var i=t;function o(e,r,s){for(var a in s)if(s.hasOwnProperty(a)){var u=s[a],l=u.include;if(l){if("string"!=typeof l)throw QE(n,"an 'include' attribute must be a string at: "+e);if("@"===l[0]&&(l=l.substr(1)),!t.tokenizer[l])throw QE(n,"include target '"+l+"' is not defined at: "+e);o(e+"."+l,r,t.tokenizer[l]);}else{var c=new rL(e);if(Array.isArray(u)&&u.length>=1&&u.length<=3){if(c.setRegex(i,u[0]),u.length>=3){if("string"==typeof u[1])c.setAction(i,{token:u[1],next:u[2]});else{if("object"!=typeof u[1])throw QE(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: "+e);var d=u[1];d.next=u[2],c.setAction(i,d);}}else c.setAction(i,u[1]);}else{if(!u.regex)throw QE(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);u.name&&"string"==typeof u.name&&(c.name=u.name),u.matchOnlyAtStart&&(c.matchOnlyAtLineStart=tL(u.matchOnlyAtLineStart,!1)),c.setRegex(i,u.regex),c.setAction(i,u.action);}r.push(c);}}}if(i.languageId=e,i.ignoreCase=n.ignoreCase,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=t.tokenizer,i.defaultToken=n.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw QE(n,"a language definition must define the 'tokenizer' attribute as an object");for(var r in n.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(r)){n.start||(n.start=r);var s=t.tokenizer[r];n.tokenizer[r]=new Array(),o("tokenizer."+r,n.tokenizer[r],s);}if(n.usesEmbedded=i.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw QE(n,"the 'brackets' attribute must be defined as an array");}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];var a=[];for(var u in t.brackets)if(t.brackets.hasOwnProperty(u)){var l=t.brackets[u];if(l&&Array.isArray(l)&&3===l.length&&(l={token:l[2],open:l[0],close:l[1]}),l.open===l.close)throw QE(n,"open and close brackets in a 'brackets' attribute must be different: "+l.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof l.open||"string"!=typeof l.token||"string"!=typeof l.close)throw QE(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");a.push({token:l.token+n.tokenPostfix,open:XE(n,l.open),close:XE(n,l.close)});}return n.brackets=a,n.noThrow=!0,n;}(e,t),i=function(e,t,n,i){return new fL(e,t,n,i);}(fE.modeService.get(),fE.standaloneThemeService.get(),e,n);return Ls.register(e,i);}function EL(e,t){return us.register(e,t);}function LL(e,t){return ls.register(e,t);}function TL(e,t){return ds.register(e,t);}function IL(e,t){return hs.register(e,{provideHover:function(e,n,i){var o=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,i)).then(function(e){if(e)return!e.range&&o&&(e.range=new Jt(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn)),e.range||(e.range=new Jt(n.lineNumber,n.column,n.lineNumber,n.column)),e;});}});}function NL(e,t){return ps.register(e,t);}function kL(e,t){return fs.register(e,t);}function OL(e,t){return gs.register(e,t);}function DL(e,t){return ms.register(e,t);}function RL(e,t){return _s.register(e,t);}function AL(e,t){return vs.register(e,t);}function ML(e,t){return ys.register(e,{provideCodeActions:function(e,n,i,o){var r=fE.markerService.get().read({resource:e.uri}).filter(function(e){return Jt.areIntersectingOrTouching(e,n);});return t.provideCodeActions(e,n,{markers:r,only:i.only},o);}});}function PL(e,t){return bs.register(e,t);}function FL(e,t){return Cs.register(e,t);}function WL(e,t){return ws.register(e,t);}function BL(e,t){return Ss.register(e,t);}function VL(e,t){return cs.register(e,t);}function HL(e,t){return xs.register(e,t);}function UL(e,t){return Es.register(e,t);}var jL=self;void 0===jL.Promise&&(jL.Promise=ne),Xe.wrappingIndent=0,Xe.viewInfo.glyphMargin=!1,Xe.autoIndent=!1;var zL=an();zL.editor={create:EE,onDidCreateEditor:LE,createDiffEditor:TE,createDiffNavigator:IE,createModel:kE,setModelLanguage:OE,setModelMarkers:DE,getModelMarkers:RE,getModels:ME,getModel:AE,onDidCreateModel:PE,onWillDisposeModel:FE,onDidChangeModelLanguage:WE,createWebWorker:BE,colorizeElement:VE,colorize:HE,colorizeModelLine:UE,tokenize:jE,defineTheme:zE,setTheme:KE,ScrollbarVisibility:Nt,WrappingIndent:Wt,OverviewRulerLane:kt,EndOfLinePreference:Ot,DefaultEndOfLine:Dt,EndOfLineSequence:Rt,TrackedRangeStickiness:At,CursorChangeReason:Pt,MouseTargetType:zt,TextEditorCursorStyle:Vt,TextEditorCursorBlinkingStyle:Bt,ContentWidgetPositionPreference:Ut,OverlayWidgetPositionPreference:jt,RenderMinimap:Ft,ScrollType:Mt,RenderLineNumbersType:Ht,InternalEditorOptions:We,BareFontInfo:ur,FontInfo:lr,TextModelResolvedOptions:pr,FindMatch:fr,EditorType:dr},zL.languages={register:mL,getLanguages:_L,onLanguage:yL,getEncodedLanguageId:vL,setLanguageConfiguration:bL,setTokensProvider:SL,setMonarchTokensProvider:xL,registerReferenceProvider:EL,registerRenameProvider:LL,registerCompletionItemProvider:VL,registerSignatureHelpProvider:TL,registerHoverProvider:IL,registerDocumentSymbolProvider:NL,registerDocumentHighlightProvider:kL,registerDefinitionProvider:OL,registerImplementationProvider:DL,registerTypeDefinitionProvider:RL,registerCodeLensProvider:AL,registerCodeActionProvider:ML,registerDocumentFormattingEditProvider:PL,registerDocumentRangeFormattingEditProvider:FL,registerOnTypeFormattingEditProvider:WL,registerLinkProvider:BL,registerColorProvider:HL,registerFoldingRangeProvider:UL,DocumentHighlightKind:Xt,CompletionItemKind:qt,CompletionItemInsertTextRule:Gt,SymbolKind:Zt,IndentAction:Kt,CompletionTriggerKind:$t,SignatureHelpTriggerReason:Yt,FoldingRangeKind:as};zL.CancellationTokenSource,zL.Emitter,zL.KeyCode,zL.KeyMod,zL.Position,zL.Range,zL.Selection,zL.SelectionDirection,zL.MarkerSeverity,zL.MarkerTag,zL.Promise,zL.Uri,zL.Token,zL.editor,zL.languages;jL.monaco=zL,void 0!==jL.require&&"function"==typeof jL.require.config&&jL.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"]});var KL,qL,GL,$L,YL,XL=monaco.Emitter,ZL=function(){function e(e,t){this._onDidChange=new XL(),this._extraLibs=Object.create(null),this._workerMaxIdleTime=12e4,this.setCompilerOptions(e),this.setDiagnosticsOptions(t);}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event;},enumerable:!0,configurable:!0}),e.prototype.getExtraLibs=function(){var e=Object.create(null);for(var t in this._extraLibs)e[t]=this._extraLibs[t];return Object.freeze(e);},e.prototype.addExtraLib=function(e,t){var n=this;if(void 0===t&&(t="ts:extralib-"+Date.now()),this._extraLibs[t])throw new Error(t+" already a extra lib");return this._extraLibs[t]=e,this._onDidChange.fire(this),{dispose:function(){delete n._extraLibs[t]&&n._onDidChange.fire(n);}};},e.prototype.getCompilerOptions=function(){return this._compilerOptions;},e.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(this);},e.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions;},e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this);},e.prototype.setMaximumWorkerIdleTime=function(e){this._workerMaxIdleTime=e;},e.prototype.getWorkerMaxIdleTime=function(){return this._workerMaxIdleTime;},e.prototype.setEagerModelSync=function(e){this._eagerModelSync=e;},e.prototype.getEagerModelSync=function(){return this._eagerModelSync;},e;}();!function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=6]="ESNext";}(KL||(KL={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative";}(qL||(qL={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed";}(GL||(GL={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ESNext=6]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=6]="Latest";}($L||($L={})),function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs";}(YL||(YL={}));var QL=new ZL({allowNonTsExtensions:!0,target:$L.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),JL=new ZL({allowNonTsExtensions:!0,allowJs:!0,target:$L.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function eT(){return nT().then(function(e){return e.getTypeScriptWorker();});}function tT(){return nT().then(function(e){return e.getJavaScriptWorker();});}function nT(){return monaco.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/language/typescript/tsMode.js")));}monaco.languages.typescript={ModuleKind:KL,JsxEmit:qL,NewLineKind:GL,ScriptTarget:$L,ModuleResolutionKind:YL,typescriptDefaults:QL,javascriptDefaults:JL,getTypeScriptWorker:eT,getJavaScriptWorker:tT},monaco.languages.onLanguage("typescript",function(){return nT().then(function(e){return e.setupTypeScript(QL);});}),monaco.languages.onLanguage("javascript",function(){return nT().then(function(e){return e.setupJavaScript(JL);});});var iT=monaco.Emitter,oT=function(){function e(e,t){this._onDidChange=new iT(),this._languageId=e,this.setDiagnosticsOptions(t);}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions;},enumerable:!0,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this);},e;}(),rT={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"}},sT=new oT("css",rT),aT=new oT("scss",rT),uT=new oT("less",rT);function lT(){return monaco.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/language/css/cssMode.js")));}monaco.languages.css={cssDefaults:sT,lessDefaults:uT,scssDefaults:aT},monaco.languages.onLanguage("less",function(){lT().then(function(e){return e.setupMode(uT);});}),monaco.languages.onLanguage("scss",function(){lT().then(function(e){return e.setupMode(aT);});}),monaco.languages.onLanguage("css",function(){lT().then(function(e){return e.setupMode(sT);});});var cT=monaco.Emitter,dT=new(function(){function e(e,t){this._onDidChange=new cT(),this._languageId=e,this.setDiagnosticsOptions(t);}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions;},enumerable:!0,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this);},e;}())("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1});monaco.languages.json={jsonDefaults:dT},monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){monaco.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/language/json/jsonMode.js"))).then(function(e){return e.setupMode(dT);});});var hT=monaco.Emitter,pT=function(){function e(e,t){this._onDidChange=new hT(),this._languageId=e,this.setOptions(t);}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options;},enumerable:!0,configurable:!0}),e.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this);},e;}(),fT={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"},gT={format:fT,suggest:{html5:!0}},mT={format:fT,suggest:{html5:!0,razor:!0}},_T=new pT("html",{format:fT,suggest:{html5:!0,angular1:!0,ionic:!0}}),vT=new pT("handlebars",gT),yT=new pT("razor",mT);function bT(){return monaco.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/language/html/htmlMode.js")));}monaco.languages.html={htmlDefaults:_T,razorDefaults:yT,handlebarDefaults:vT},monaco.languages.onLanguage("html",function(){bT().then(function(e){return e.setupMode(_T);});}),monaco.languages.onLanguage("handlebars",function(){bT().then(function(e){return e.setupMode(vT);});}),monaco.languages.onLanguage("razor",function(){bT().then(function(e){return e.setupMode(yT);});});var CT="undefined"==typeof monaco?self.monaco:monaco,wT={};var ST={};function xT(e){return ST[e]||(ST[e]=function(e){return(0,wT[e].loader)().then(function(t){CT.languages.setMonarchTokensProvider(e,t.language),CT.languages.setLanguageConfiguration(e,t.conf);});}(e)),ST[e];}function ET(e){var t=e.id;wT[t]=e,CT.languages.register(e),CT.languages.onLanguage(t,function(){xT(t);});}var LT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return LT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/bat/bat.js")));}});var TT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return TT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.js")));}});var IT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return IT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js")));}}),ET({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return IT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js")));}});var NT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return NT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/csharp/csharp.js")));}});var kT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return kT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/csp/csp.js")));}});var OT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return OT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/css/css.js")));}});var DT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return DT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.js")));}});var RT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return RT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/fsharp/fsharp.js")));}});var AT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return AT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/go/go.js")));}});var MT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return MT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/handlebars/handlebars.js")));}});var PT="undefined"==typeof monaco?self.monaco:monaco;ET({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 PT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/html/html.js")));}});var FT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return FT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/ini/ini.js")));}});var WT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return WT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/java/java.js")));}});var BT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return BT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.js")));}});var VT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return VT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/less/less.js")));}});var HT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return HT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/lua/lua.js")));}});var UT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return UT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/markdown/markdown.js")));}});var jT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return jT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/msdax/msdax.js")));}});var zT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return zT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/mysql/mysql.js")));}});var KT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return KT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/objective-c/objective-c.js")));}});var qT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return qT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/pgsql/pgsql.js")));}});var GT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return GT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/php/php.js")));}});var $T="undefined"==typeof monaco?self.monaco:monaco;ET({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return $T.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/postiats/postiats.js")));}});var YT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return YT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/powerquery/powerquery.js")));}});var XT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return XT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/powershell/powershell.js")));}});var ZT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return ZT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/pug/pug.js")));}});var QT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return QT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/python/python.js")));}});var JT="undefined"==typeof monaco?self.monaco:monaco;ET({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return JT.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/r/r.js")));}});var eI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return eI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/razor/razor.js")));}});var tI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return tI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/redis/redis.js")));}});var nI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return nI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/redshift/redshift.js")));}});var iI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return iI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/ruby/ruby.js")));}});var oI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return oI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/rust/rust.js")));}});var rI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return rI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/sb/sb.js")));}});var sI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return sI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/scss/scss.js")));}});var aI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return aI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/solidity/solidity.js")));}});var uI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return uI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/sql/sql.js")));}});var lI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return lI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/st/st.js")));}});var cI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return cI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/swift/swift.js")));}});var dI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return dI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.js")));}});var hI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return hI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/vb/vb.js")));}});var pI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return pI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/xml/xml.js")));}});var fI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return fI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/yaml/yaml.js")));}});var gI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return gI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/scheme/scheme.js")));}});var mI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"clojure",extensions:[".clj",".clojure"],aliases:["clojure","Clojure"],loader:function(){return mI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/clojure/clojure.js")));}});var _I="undefined"==typeof monaco?self.monaco:monaco;ET({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return _I.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/shell/shell.js")));}});var vI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return vI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/perl/perl.js")));}});var yI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return yI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/azcli/azcli.js")));}});var bI="undefined"==typeof monaco?self.monaco:monaco;ET({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return bI.Promise.wrap(Promise.resolve().then(n.bind(null,"./node_modules/monaco-editor/esm/vs/basic-languages/apex/apex.js")));}});n("./node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/bracketMatching.css");var CI=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),wI=Ah("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},ie("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),SI=function(e){function t(){return e.call(this,{id:"editor.action.jumpToBracket",label:ie("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:3160,weight:100}})||this;}return CI(t,e),t.prototype.run=function(e,t){var n=LI.get(t);n&&n.jumpToBracket();},t;}(Zc),xI=function(e){function t(){return e.call(this,{id:"editor.action.selectToBracket",label:ie("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:null})||this;}return CI(t,e),t.prototype.run=function(e,t){var n=LI.get(t);n&&n.selectToBracket();},t;}(Zc),EI=function(){return function(e,t){this.position=e,this.brackets=t;};}(),LI=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._lastBracketsData=[],n._lastVersionId=0,n._decorations=[],n._updateBracketsSoon=n._register(new ee(function(){return n._updateBrackets();},50)),n._matchBrackets=n._editor.getConfiguration().contribInfo.matchBrackets,n._updateBracketsSoon.schedule(),n._register(t.onDidChangeCursorPosition(function(e){n._matchBrackets&&n._updateBracketsSoon.schedule();})),n._register(t.onDidChangeModelContent(function(e){n._updateBracketsSoon.schedule();})),n._register(t.onDidChangeModel(function(e){n._lastBracketsData=[],n._decorations=[],n._updateBracketsSoon.schedule();})),n._register(t.onDidChangeModelLanguageConfiguration(function(e){n._lastBracketsData=[],n._updateBracketsSoon.schedule();})),n._register(t.onDidChangeConfiguration(function(e){n._matchBrackets=n._editor.getConfiguration().contribInfo.matchBrackets,!n._matchBrackets&&n._decorations.length>0&&(n._decorations=n._editor.deltaDecorations(n._decorations,[])),n._updateBracketsSoon.schedule();})),n;}return CI(t,e),t.get=function(e){return e.getContribution(t.ID);},t.prototype.getId=function(){return t.ID;},t.prototype.jumpToBracket=function(){if(this._editor.hasModel()){var e=this._editor.getModel(),t=this._editor.getSelections().map(function(t){var n=t.getStartPosition(),i=e.matchBracket(n),o=null;if(i)i[0].containsPosition(n)?o=i[1].getStartPosition():i[1].containsPosition(n)&&(o=i[0].getStartPosition());else{var r=e.findNextBracket(n);r&&r.range&&(o=r.range.getStartPosition());}return o?new tn(o.lineNumber,o.column,o.lineNumber,o.column):new tn(n.lineNumber,n.column,n.lineNumber,n.column);});this._editor.setSelections(t),this._editor.revealRange(t[0]);}},t.prototype.selectToBracket=function(){if(this._editor.hasModel()){var e=this._editor.getModel(),t=[];this._editor.getSelections().forEach(function(n){var i=n.getStartPosition(),o=e.matchBracket(i),r=null,s=null;if(!o){var a=e.findNextBracket(i);a&&a.range&&(o=e.matchBracket(a.range.getStartPosition()));}o&&(o[0].startLineNumber===o[1].startLineNumber?(r=o[1].startColumn<o[0].startColumn?o[1].getStartPosition():o[0].getStartPosition(),s=o[1].startColumn<o[0].startColumn?o[0].getEndPosition():o[1].getEndPosition()):(r=o[1].startLineNumber<o[0].startLineNumber?o[1].getStartPosition():o[0].getStartPosition(),s=o[1].startLineNumber<o[0].startLineNumber?o[0].getEndPosition():o[1].getEndPosition())),r&&s&&t.push(new tn(r.lineNumber,r.column,s.lineNumber,s.column));}),t.length>0&&(this._editor.setSelections(t),this._editor.revealRange(t[0]));}},t.prototype._updateBrackets=function(){if(this._matchBrackets){this._recomputeBrackets();for(var e=[],n=0,i=0,o=this._lastBracketsData.length;i<o;i++){var r=this._lastBracketsData[i].brackets;r&&(e[n++]={range:r[0],options:t._DECORATION_OPTIONS},e[n++]={range:r[1],options:t._DECORATION_OPTIONS});}this._decorations=this._editor.deltaDecorations(this._decorations,e);}},t.prototype._recomputeBrackets=function(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);var e=this._editor.getModel(),t=e.getVersionId(),n=[];this._lastVersionId===t&&(n=this._lastBracketsData);for(var i=this._editor.getSelections(),o=[],r=0,s=0,a=i.length;s<a;s++){var u=i[s];u.isEmpty()&&(o[r++]=u.getStartPosition());}o.length>1&&o.sort(Qt.compare);var l=[],c=0,d=0,h=n.length;for(s=0,a=o.length;s<a;s++){for(var p=o[s];d<h&&n[d].position.isBefore(p);)d++;if(d<h&&n[d].position.equals(p))l[c++]=n[d];else{var f=e.matchBracket(p);l[c++]=new EI(p,f);}}this._lastBracketsData=l,this._lastVersionId=t;},t.ID="editor.contrib.bracketMatchingController",t._DECORATION_OPTIONS=i_.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Ad(wI),position:cr.Center}}),t;}(y);nd(LI),td(xI),td(SI),Vd(function(e,t){var n=e.getColor(kf);n&&t.addRule(".monaco-editor .bracket-match { background-color: "+n+"; }");var i=e.getColor(Of);i&&t.addRule(".monaco-editor .bracket-match { border: 1px solid "+i+"; }");});var TI=function(){function e(e,t){this._selection=e,this._isMovingLeft=t;}return e.prototype.getEditOperations=function(e,t){var n=this._selection;if(this._selectionId=t.trackSelection(n),n.startLineNumber===n.endLineNumber&&(!this._isMovingLeft||0!==n.startColumn)&&(this._isMovingLeft||n.endColumn!==e.getLineMaxColumn(n.startLineNumber))){var i,o,r,s=n.selectionStartLineNumber,a=e.getLineContent(s);this._isMovingLeft?(i=a.substring(0,n.startColumn-2),o=a.substring(n.startColumn-1,n.endColumn-1),r=a.substring(n.startColumn-2,n.startColumn-1)+a.substring(n.endColumn-1)):(i=a.substring(0,n.startColumn-1)+a.substring(n.endColumn-1,n.endColumn),o=a.substring(n.startColumn-1,n.endColumn-1),r=a.substring(n.endColumn));var u=i+o+r;t.addEditOperation(new Jt(s,1,s,e.getLineMaxColumn(s)),null),t.addEditOperation(new Jt(s,1,s,1),u),this._cutStartIndex=n.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+n.endColumn-n.startColumn,this._moved=!0;}},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moved&&(n=(n=n.setStartPosition(n.startLineNumber,this._cutStartIndex)).setEndPosition(n.startLineNumber,this._cutEndIndex)),n;},e;}(),II=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),NI=function(e){function t(t,n){var i=e.call(this,n)||this;return i.left=t,i;}return II(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=[],i=t.getSelections(),o=0;o<i.length;o++)n.push(new TI(i[o],this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop();}},t;}(Zc),kI=function(e){function t(){return e.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:ie("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:A_.writable})||this;}return II(t,e),t;}(NI),OI=function(e){function t(){return e.call(this,!1,{id:"editor.action.moveCarretRightAction",label:ie("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:A_.writable})||this;}return II(t,e),t;}(NI);td(kI),td(OI);var DI=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();td(function(e){function t(){return e.call(this,{id:"editor.action.transposeLetters",label:ie("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:A_.writable,kbOpts:{kbExpr:A_.textInputFocus,primary:0,mac:{primary:306},weight:100}})||this;}return DI(t,e),t.prototype.positionLeftOf=function(e,t){var n=e.column,i=e.lineNumber;return n>t.getLineMinColumn(i)?Co(t.getLineContent(i).charCodeAt(n-2))?n-=2:n-=1:i>1&&(i-=1,n=t.getLineMaxColumn(i)),new Qt(i,n);},t.prototype.positionRightOf=function(e,t){var n=e.column,i=e.lineNumber;return n<t.getLineMaxColumn(i)?bo(t.getLineContent(i).charCodeAt(n-1))?n+=2:n+=1:i<t.getLineCount()&&(i+=1,n=0),new Qt(i,n);},t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),i=[],o=0,r=t.getSelections();o<r.length;o++){var s=r[o];if(s.isEmpty()){var a=s.startLineNumber,u=s.startColumn,l=n.getLineMaxColumn(a);if(1!==a||1!==u&&(2!==u||2!==l)){var c=u===l?s.getPosition():this.positionRightOf(s.getPosition(),n),d=this.positionLeftOf(c,n),h=this.positionLeftOf(d,n),p=n.getValueInRange(Jt.fromPositions(h,d)),f=n.getValueInRange(Jt.fromPositions(d,c)),g=Jt.fromPositions(h,c);i.push(new C_(g,f+p));}}}i.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop());}},t;}(Zc));n("./node_modules/monaco-editor/esm/vs/editor/contrib/clipboard/clipboard.css");var RI=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),AI="9_cutcopypaste",MI=o.e||document.queryCommandSupported("cut"),PI=o.e||document.queryCommandSupported("copy"),FI=PI&&!bn,WI=o.e||!Sn&&document.queryCommandSupported("paste"),BI=function(e){function t(t,n){var i=e.call(this,n)||this;return i.browserCommand=t,i;}return RI(t,e),t.prototype.runCommand=function(e,t){var n=e.get(pn).getFocusedCodeEditor();n&&n.hasTextFocus()?n.trigger("keyboard",this.id,t):document.execCommand(this.browserCommand);},t.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand);},t;}(Zc),VI=function(e){function t(){var t={kbExpr:A_.textInputFocus,primary:2102,win:{primary:2102,secondary:[1044]},weight:100};return o.e||(t=null),e.call(this,"cut",{id:"editor.action.clipboardCutAction",label:ie("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:A_.writable,kbOpts:t,menuOpts:{group:AI,order:1},menubarOpts:{menuId:Il.MenubarEditMenu,group:"2_ccp",title:ie({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this;}return RI(t,e),t.prototype.run=function(t,n){n.hasModel()&&(!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n));},t;}(BI),HI=function(e){function t(){var t={kbExpr:A_.textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]},weight:100};return o.e||(t=null),e.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:ie("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:null,kbOpts:t,menuOpts:{group:AI,order:2},menubarOpts:{menuId:Il.MenubarEditMenu,group:"2_ccp",title:ie({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this;}return RI(t,e),t.prototype.run=function(t,n){n.hasModel()&&(!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n));},t;}(BI),UI=function(e){function t(){var t={kbExpr:A_.textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]},weight:100};return o.e||(t=null),e.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:ie("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:A_.writable,kbOpts:t,menuOpts:{group:AI,order:3},menubarOpts:{menuId:Il.MenubarEditMenu,group:"2_ccp",title:ie({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this;}return RI(t,e),t;}(BI),jI=function(e){function t(){return e.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:ie("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:0,weight:100}})||this;}return RI(t,e),t.prototype.run=function(t,n){n.hasModel()&&(!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||(Ch.forceCopyWithSyntaxHighlighting=!0,e.prototype.run.call(this,t,n),Ch.forceCopyWithSyntaxHighlighting=!1));},t;}(BI);MI&&td(VI),PI&&td(HI),WI&&td(UI),FI&&td(jI);n("./node_modules/monaco-editor/esm/vs/editor/contrib/message/messageController.css");var zI=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),KI=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},qI=function(e,t){return function(n,i){t(n,i,e);};},GI=function(e){function t(n,i){var o=e.call(this)||this;return o._messageListeners=[],o._editor=n,o._visible=t.MESSAGE_VISIBLE.bindTo(i),o._register(o._editor.onDidAttemptReadOnlyEdit(function(){return o._onDidAttemptReadOnlyEdit();})),o;}return zI(t,e),t.get=function(e){return e.getContribution(t._id);},t.prototype.getId=function(){return t._id;},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._visible.reset();},t.prototype.showMessage=function(e,t){var n,i=this;Rc(e),this._visible.set(!0),f(this._messageWidget),this._messageListeners=f(this._messageListeners),this._messageWidget=new $I(this._editor,t,e),this._messageListeners.push(this._editor.onDidBlurEditorText(function(){return i.closeMessage();})),this._messageListeners.push(this._editor.onDidChangeCursorPosition(function(){return i.closeMessage();})),this._messageListeners.push(this._editor.onDidDispose(function(){return i.closeMessage();})),this._messageListeners.push(this._editor.onDidChangeModel(function(){return i.closeMessage();})),this._messageListeners.push(new Q(function(){return i.closeMessage();},3e3)),this._messageListeners.push(this._editor.onMouseMove(function(e){e.target.position&&(n?n.containsPosition(e.target.position)||i.closeMessage():n=new Jt(t.lineNumber-3,1,e.target.position.lineNumber+3,1));}));},t.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners=f(this._messageListeners),this._messageListeners.push($I.fadeOut(this._messageWidget));},t.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(ie("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition());},t._id="editor.contrib.messageController",t.MESSAGE_VISIBLE=new yl("messageVisible",!1),t=KI([qI(1,bl)],t);}(y);ed(new(Xc.bindToContribution(GI.get))({id:"leaveEditorMessage",precondition:GI.MESSAGE_VISIBLE,handler:function(e){return e.closeMessage();},kbOpts:{weight:130,primary:9}}));var $I=function(){function e(e,t,n){var i=t.lineNumber,o=t.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(i,i,0),this._position={lineNumber:i,column:o-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);var s=document.createElement("div");s.classList.add("anchor"),this._domNode.appendChild(s),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn");}return e.fadeOut=function(e){var t,n=function(){e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",n);};return t=setTimeout(n,110),e.getDomNode().addEventListener("animationend",n),e.getDomNode().classList.add("fadeOut"),{dispose:n};},e.prototype.dispose=function(){this._editor.removeContentWidget(this);},e.prototype.getId=function(){return"messageoverlay";},e.prototype.getDomNode=function(){return this._domNode;},e.prototype.getPosition=function(){return{position:this._position,preference:[1]};},e;}();nd(GI),Vd(function(e,t){var n=e.getColor(Yh);if(n){var i=e.type===Pd?2:1;t.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+n+"; }"),t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+i+"px solid "+n+"; }");}var o=e.getColor(Gh);o&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+o+"; }");var r=e.getColor($h);r&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+r+"; }");});var YI=function(){function e(e){this.value=e;}return e.prototype.contains=function(t){return this.value===t||so(t,this.value+e.sep);},e.sep=".",e.Empty=new e(""),e.Refactor=new e("refactor"),e.Source=new e("source"),e.SourceOrganizeImports=new e("source.organizeImports"),e;}();function XI(e,t,n,i){void 0===i&&(i=B.None);var o={only:n&&n.filter&&n.filter.kind?n.filter.kind.value:void 0,trigger:n&&"manual"===n.type?2:1},r=ys.all(e).filter(function(e){return!e.providedCodeActionKinds||e.providedCodeActionKinds.some(function(e){return ZI(n&&n.filter,e);});}).map(function(r){return Promise.resolve(r.provideCodeActions(e,t,o,i)).then(function(e){return Array.isArray(e)?e.filter(function(e){return function(e,t){return t&&ZI(e,t.kind);}(n&&n.filter,e);}):[];},function(e){if(d(e))throw e;return u(e),[];});});return Promise.all(r).then(pe).then(function(e){return ae(e,QI);});}function ZI(e,t){return!(e&&e.kind&&(!t||!e.kind.contains(t)))&&!(t&&YI.Source.contains(t)&&(!e||!e.includeSourceActions));}function QI(e,t){var n=!ce(e.diagnostics),i=!ce(t.diagnostics);return n?i?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:i?1:0;}Qc("_executeCodeActionProvider",function(e,t){var n=t.resource,i=t.range;if(!(n instanceof _t&&Jt.isIRange(i)))throw p();var o=e.get(Gr).getModel(n);if(!o)throw p();return XI(o,o.validateRange(i),{type:"manual",filter:{includeSourceActions:!0}});});var JI=new yl("supportedCodeAction",""),eN=function(){function e(e,t,n,i,o){void 0===i&&(i=250);var r=this;this._editor=e,this._markerService=t,this._signalChange=n,this._delay=i,this._progressService=o,this._disposables=[],this._autoTriggerTimer=new Q(),this._disposables.push(this._markerService.onMarkerChanged(function(e){return r._onMarkerChanges(e);}),this._editor.onDidChangeCursorPosition(function(){return r._onCursorChange();}));}return e.prototype.dispose=function(){this._disposables=f(this._disposables),this._autoTriggerTimer.cancel();},e.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t);},e.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some(function(e){return e.toString()===n.uri.toString();})&&this._autoTriggerTimer.cancelAndSet(function(){t.trigger({type:"auto"});},this._delay);},e.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet(function(){e.trigger({type:"auto"});},this._delay);},e.prototype._getRangeOfMarker=function(e){var t=this._editor.getModel();if(t)for(var n=0,i=this._markerService.read({resource:t.uri});n<i.length;n++){var o=i[n];if(Jt.intersectRanges(o,e))return Jt.lift(o);}},e.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(e){var t=this._editor.getModel(),n=this._editor.getSelection();if(t&&n&&n.isEmpty()&&(!e.filter||!e.filter.includeSourceActions)){var i=n.getPosition(),o=i.lineNumber,r=i.column,s=t.getLineContent(o);if(0===s.length)return;if(1===r){if(/\s/.test(s[0]))return;}else if(r===t.getLineMaxColumn(o)){if(/\s/.test(s[s.length-1]))return;}else if(/\s/.test(s[r-2])&&/\s/.test(s[r-1]))return;}return n||void 0;},e.prototype._createEventAndSignalChange=function(e,t){if(t){var n=this._editor.getModel();if(!n)return this._signalChange({trigger:e,rangeOrSelection:void 0,position:void 0,actions:void 0}),Promise.resolve(void 0);var i=this._getRangeOfMarker(t),o=i?i.getStartPosition():t.getStartPosition(),r=q(function(i){return XI(n,t,e,i);});return this._progressService&&"manual"===e.type&&this._progressService.showWhile(r,250),this._signalChange({trigger:e,rangeOrSelection:t,position:o,actions:r}),r;}return this._signalChange({trigger:e,rangeOrSelection:void 0,position:void 0,actions:void 0}),Promise.resolve(void 0);},e;}(),tN=function(){function e(e,t,n,i){var o=this;this._progressService=i,this._onDidChangeFixes=new N(),this._disposables=[],this._editor=e,this._markerService=t,this._supportedCodeActions=JI.bindTo(n),this._disposables.push(this._editor.onDidChangeModel(function(){return o._update();})),this._disposables.push(this._editor.onDidChangeModelLanguage(function(){return o._update();})),this._disposables.push(ys.onDidChange(this._update,this)),this._update();}return e.prototype.dispose=function(){this._disposables=f(this._disposables),f(this._codeActionOracle);},Object.defineProperty(e.prototype,"onDidChangeFixes",{get:function(){return this._onDidChangeFixes.event;},enumerable:!0,configurable:!0}),e.prototype._update=function(){var e=this;this._codeActionOracle&&(this._codeActionOracle.dispose(),this._codeActionOracle=void 0,this._onDidChangeFixes.fire(void 0));var t=this._editor.getModel();if(t&&ys.has(t)&&!this._editor.getConfiguration().readOnly){for(var n=[],i=0,o=ys.all(t);i<o.length;i++){var r=o[i];Array.isArray(r.providedCodeActionKinds)&&n.push.apply(n,r.providedCodeActionKinds);}this._supportedCodeActions.set(n.join(" ")),this._codeActionOracle=new eN(this._editor,this._markerService,function(t){return e._onDidChangeFixes.fire(t);},void 0,this._progressService),this._codeActionOracle.trigger({type:"auto"});}else this._supportedCodeActions.reset();},e.prototype.trigger=function(e){return this._codeActionOracle?this._codeActionOracle.trigger(e):Promise.resolve(void 0);},e;}(),nN=function(){function e(e,t,n){this._editor=e,this._contextMenuService=t,this._onApplyCodeAction=n,this._onDidExecuteCodeAction=new N(),this.onDidExecuteCodeAction=this._onDidExecuteCodeAction.event;}return e.prototype.show=function(e,t){var n=this,i=e?e.then(function(e){return e.map(function(e){return new wl(e.command?e.command.id:e.title,e.title,void 0,!0,function(){return Y(n._onApplyCodeAction(e),function(){return n._onDidExecuteCodeAction.fire(void 0);});});});}).then(function(e){return n._editor.getDomNode()?e:Promise.reject(h());}):Promise.resolve([]);this._contextMenuService.showContextMenu({getAnchor:function(){return Qt.isIPosition(t)&&(t=n._toCoords(t)),t;},getActions:function(){return i;},onHide:function(){n._visible=!1,n._editor.focus();},autoSelectFirstItem:!0});},Object.defineProperty(e.prototype,"isVisible",{get:function(){return this._visible;},enumerable:!0,configurable:!0}),e.prototype._toCoords=function(e){this._editor.revealPosition(e,1),this._editor.render();var t=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),n=xi(this._editor.getDomNode());return{x:n.left+t.left,y:n.top+t.top+t.height};},e;}(),iN=(n("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/lightBulbWidget.css"),function(){function e(e){var t=this;this._disposables=[],this._onClick=new N(),this.onClick=this._onClick.event,this._futureFixes=new j(),this._domNode=document.createElement("div"),this._domNode.className="lightbulb-glyph",this._editor=e,this._editor.addContentWidget(this),this._disposables.push(this._editor.onDidChangeModel(function(e){return t._futureFixes.cancel();})),this._disposables.push(this._editor.onDidChangeModelLanguage(function(e){return t._futureFixes.cancel();})),this._disposables.push(this._editor.onDidChangeModelContent(function(e){var n=t._editor.getModel();t.model&&t.model.position&&n&&!(t.model.position.lineNumber>=n.getLineCount())||t._futureFixes.cancel();})),this._disposables.push(ii(this._domNode,"click",function(e){t._editor.focus();var n=xi(t._domNode),i=n.top,o=n.height,r=t._editor.getConfiguration().lineHeight,s=Math.floor(r/3);t._position&&t._model&&t._model.position&&null!==t._position.position&&t._position.position.lineNumber<t._model.position.lineNumber&&(s+=r),t._onClick.fire({x:e.posx,y:i+o+s});})),this._disposables.push(ni(this._domNode,"mouseenter",function(e){if(1==(1&e.buttons)){t.hide();var n=new pd();n.startMonitoring(hd,function(){},function(){n.dispose();});}})),this._disposables.push(this._editor.onDidChangeConfiguration(function(e){e.contribInfo&&!t._editor.getConfiguration().contribInfo.lightbulbEnabled&&t.hide();}));}return e.prototype.dispose=function(){f(this._disposables),this._editor.removeContentWidget(this);},e.prototype.getId=function(){return"LightBulbWidget";},e.prototype.getDomNode=function(){return this._domNode;},e.prototype.getPosition=function(){return this._position;},Object.defineProperty(e.prototype,"model",{get:function(){return this._model;},set:function(e){var t=this;!e||this._position&&(!e.position||this._position.position&&this._position.position.lineNumber!==e.position.lineNumber)?this.hide():this._futureFixes&&this._futureFixes.cancel(),this._futureFixes=new j();var n=this._futureFixes.token;if(this._model=e,this._model&&this._model.actions){var i=this._model.rangeOrSelection;this._model.actions.then(function(e){!n.isCancellationRequested&&e&&e.length>0?!i||i.isEmpty()&&e.every(function(e){return!(!e.kind||!YI.Refactor.contains(e.kind));})?t.hide():t._show():t.hide();}).catch(function(){t.hide();});}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._domNode.title;},set:function(e){this._domNode.title=e;},enumerable:!0,configurable:!0}),e.prototype._show=function(){var t=this,n=this._editor.getConfiguration();if(n.contribInfo.lightbulbEnabled&&this._model&&this._model.position){var i=this._model.position,o=i.lineNumber,r=i.column,s=this._editor.getModel();if(s){var a=s.getOptions().tabSize,u=s.getLineContent(o),l=Jm.computeIndentLevel(u,a),c=function(e){return e>2&&t._editor.getTopForLineNumber(e)===t._editor.getTopForLineNumber(e-1);},d=o;if(!(n.fontInfo.spaceWidth*l>22))if(o>1&&!c(o-1))d-=1;else if(c(o+1)){if(r*n.fontInfo.spaceWidth<22)return void this.hide();}else d+=1;this._position={position:{lineNumber:d,column:1},preference:e._posPref},this._editor.layoutContentWidget(this);}}},e.prototype.hide=function(){this._position=null,this._model=null,this._futureFixes.cancel(),this._editor.layoutContentWidget(this);},e._posPref=[0],e;}()),oN=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),rN=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},sN=function(e,t){return function(n,i){t(n,i,e);};},aN=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e));}catch(e){r(e);}}function a(e){try{u(i.throw(e));}catch(e){r(e);}}function u(e){e.done?o(e.value):new n(function(t){t(e.value);}).then(s,a);}u((i=i.apply(e,t||[])).next());});},uN=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1];},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this;}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break;}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break;}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break;}o[2]&&s.ops.pop(),s.trys.pop();continue;}r=t.call(e,s);}catch(e){r=[6,e],i=0;}finally{n=o=0;}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0};}([r,a]);};}};function lN(e){return dl.regex(JI.keys()[0],new RegExp("(\\s|^)"+io(e.value)+"\\b"));}var cN=function(){function e(e,t,n,i,o,r,s,a){var u=this;this._commandService=r,this._keybindingService=s,this._bulkEditService=a,this._disposables=[],this._editor=e,this._model=new tN(this._editor,t,n,i),this._codeActionContextMenu=new nN(e,o,function(e){return u._onApplyCodeAction(e);}),this._lightBulbWidget=new iN(e),this._updateLightBulbTitle(),this._disposables.push(this._codeActionContextMenu.onDidExecuteCodeAction(function(e){return u._model.trigger({type:"auto",filter:{}});}),this._lightBulbWidget.onClick(this._handleLightBulbSelect,this),this._model.onDidChangeFixes(function(e){return u._onCodeActionsEvent(e);}),this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitle,this));}return e.get=function(t){return t.getContribution(e.ID);},e.prototype.dispose=function(){this._model.dispose(),f(this._disposables);},e.prototype._onCodeActionsEvent=function(e){var t=this;this._activeRequest&&(this._activeRequest.cancel(),this._activeRequest=void 0),e&&e.actions&&(this._activeRequest=e.actions),e&&e.actions&&e.trigger.filter&&e.trigger.filter.kind?e.actions.then(function(n){2===e.trigger.autoApply||1===e.trigger.autoApply&&1===n.length?t._onApplyCodeAction(n[0]):t._codeActionContextMenu.show(e.actions,e.position);}).catch(a):e&&"manual"===e.trigger.type?this._codeActionContextMenu.show(e.actions,e.position):e&&e.actions?this._codeActionContextMenu.isVisible?this._codeActionContextMenu.show(e.actions,e.position):this._lightBulbWidget.model=e:this._lightBulbWidget.hide();},e.prototype.getId=function(){return e.ID;},e.prototype._handleLightBulbSelect=function(e){this._lightBulbWidget.model&&this._lightBulbWidget.model.actions&&this._codeActionContextMenu.show(this._lightBulbWidget.model.actions,e);},e.prototype.triggerFromEditorSelection=function(e,t){return this._model.trigger({type:"manual",filter:e,autoApply:t});},e.prototype._updateLightBulbTitle=function(){var e,t=this._keybindingService.lookupKeybinding(hN.Id);e=t?ie("quickFixWithKb","Show Fixes ({0})",t.getLabel()):ie("quickFix","Show Fixes"),this._lightBulbWidget.title=e;},e.prototype._onApplyCodeAction=function(e){return function(e,t,n,i){return aN(this,void 0,void 0,function(){return uN(this,function(o){switch(o.label){case 0:return e.edit?[4,t.apply(e.edit,{editor:i})]:[3,2];case 1:o.sent(),o.label=2;case 2:return e.command?[4,n.executeCommand.apply(n,[e.command.id].concat(e.command.arguments))]:[3,4];case 3:o.sent(),o.label=4;case 4:return[2];}});});}(e,this._bulkEditService,this._commandService,this._editor);},e.ID="editor.contrib.quickFixController",e=rN([sN(1,Tw),sN(2,bl),sN(3,_E),sN(4,jC),sN(5,qo),sN(6,zC),sN(7,ew)],e);}();function dN(e,t,n,i){var o=cN.get(e);if(o){var r=e.getPosition();o.triggerFromEditorSelection(n,i).then(function(n){n&&n.length||GI.get(e).showMessage(t,r);});}}var hN=function(e){function t(){return e.call(this,{id:t.Id,label:ie("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix",precondition:dl.and(A_.writable,A_.hasCodeActionsProvider),kbOpts:{kbExpr:A_.editorTextFocus,primary:2132,weight:100}})||this;}return oN(t,e),t.prototype.run=function(e,t){return dN(t,ie("editor.action.quickFix.noneMessage","No code actions available"));},t.Id="editor.action.quickFix",t;}(Zc),pN=function(){function e(e,t){this.kind=e,this.apply=t;}return e.fromUser=function(t){return t&&"object"==typeof t?new e(e.getKindFromUser(t),e.getApplyFromUser(t)):new e(YI.Empty,1);},e.getApplyFromUser=function(e){switch("string"==typeof e.apply?e.apply.toLowerCase():""){case"first":return 2;case"never":return 3;case"ifsingle":default:return 1;}},e.getKindFromUser=function(e){return"string"==typeof e.kind?new YI(e.kind):YI.Empty;},e;}(),fN=function(e){function t(){return e.call(this,{id:t.Id,precondition:dl.and(A_.writable,A_.hasCodeActionsProvider)})||this;}return oN(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=pN.fromUser(n);return dN(t,ie("editor.action.quickFix.noneMessage","No code actions available"),{kind:i.kind,includeSourceActions:!0},i.apply);},t.Id="editor.action.codeAction",t;}(Xc),gN=function(e){function t(){return e.call(this,{id:t.Id,label:ie("refactor.label","Refactor..."),alias:"Refactor",precondition:dl.and(A_.writable,A_.hasCodeActionsProvider),kbOpts:{kbExpr:A_.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},menuOpts:{group:"1_modification",order:2,when:dl.and(A_.writable,lN(YI.Refactor))}})||this;}return oN(t,e),t.prototype.run=function(e,t){return dN(t,ie("editor.action.refactor.noneMessage","No refactorings available"),{kind:YI.Refactor},3);},t.Id="editor.action.refactor",t;}(Zc),mN=function(e){function t(){return e.call(this,{id:t.Id,label:ie("source.label","Source Action..."),alias:"Source Action",precondition:dl.and(A_.writable,A_.hasCodeActionsProvider),menuOpts:{group:"1_modification",order:2.1,when:dl.and(A_.writable,lN(YI.Source))}})||this;}return oN(t,e),t.prototype.run=function(e,t){return dN(t,ie("editor.action.source.noneMessage","No source actions available"),{kind:YI.Source,includeSourceActions:!0},3);},t.Id="editor.action.sourceAction",t;}(Zc),_N=function(e){function t(){return e.call(this,{id:t.Id,label:ie("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:dl.and(A_.writable,lN(YI.SourceOrganizeImports)),kbOpts:{kbExpr:A_.editorTextFocus,primary:1581,weight:100}})||this;}return oN(t,e),t.prototype.run=function(e,t){return dN(t,ie("editor.action.organize.noneMessage","No organize imports action available"),{kind:YI.SourceOrganizeImports,includeSourceActions:!0},1);},t.Id="editor.action.organizeImports",t;}(Zc);function vN(e,t){var n=[],i=vs.ordered(e),o=i.map(function(i){return Promise.resolve(i.provideCodeLenses(e,t)).then(function(e){if(Array.isArray(e))for(var t=0,o=e;t<o.length;t++){var r=o[t];n.push({symbol:r,provider:i});}}).catch(u);});return Promise.all(o).then(function(){return ae(n,function(e,t){return e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:i.indexOf(e.provider)<i.indexOf(t.provider)?-1:i.indexOf(e.provider)>i.indexOf(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0;});});}nd(cN),td(hN),td(gN),td(mN),td(_N),ed(new fN()),Qc("_executeCodeLensProvider",function(e,t){var n=t.resource,i=t.itemResolveCount;if(!(n instanceof _t))throw p();var o=e.get(Gr).getModel(n);if(!o)throw p();var r=[];return vN(o,B.None).then(function(e){for(var t=[],n=function(e){void 0===i||Boolean(e.symbol.command)?r.push(e.symbol):i-->0&&e.provider.resolveCodeLens&&t.push(Promise.resolve(e.provider.resolveCodeLens(o,e.symbol,B.None)).then(function(t){return r.push(t||e.symbol);}));},s=0,a=e;s<a.length;s++){n(a[s]);}return Promise.all(t);}).then(function(){return r;});});n("./node_modules/monaco-editor/esm/vs/editor/contrib/codelens/codelensWidget.css");var yN=function(){function e(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div");}return e.prototype.onComputedHeight=function(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight());},e;}(),bN=function(){function e(t,n,i,o){var r=this;this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._disposables=[],this._commands=Object.create(null),this._id="codeLensWidget"+ ++e._idPool,this._editor=t,this.setSymbolRange(n),this._domNode=document.createElement("span"),this._domNode.innerHTML=" ",Xn(this._domNode,"codelens-decoration"),Xn(this._domNode,"invisible-cl"),this._updateHeight(),this._disposables.push(this._editor.onDidChangeConfiguration(function(e){return e.fontInfo&&r._updateHeight();})),this._disposables.push(ni(this._domNode,"click",function(e){var n=e.target;if("A"===n.tagName&&n.id){var s=r._commands[n.id];s&&(t.focus(),i.executeCommand.apply(i,[s.id].concat(s.arguments)).then(void 0,function(e){o.error(e);}));}})),this.updateVisibility();}return e.prototype.dispose=function(){f(this._disposables);},e.prototype._updateHeight=function(){var e=this._editor.getConfiguration(),t=e.fontInfo,n=e.lineHeight;this._domNode.style.height=Math.round(1.1*n)+"px",this._domNode.style.lineHeight=n+"px",this._domNode.style.fontSize=Math.round(.9*t.fontSize)+"px",this._domNode.innerHTML=" ";},e.prototype.updateVisibility=function(){this.isVisible()&&(Qn(this._domNode,"invisible-cl"),Xn(this._domNode,"fadein"));},e.prototype.withCommands=function(e){if(this._commands=Object.create(null),ce(e=le(e)))this._domNode.innerHTML="no commands";else{for(var t=[],n=0;n<e.length;n++){var i=e[n].command,o=no(i.title),r=void 0;i.id?(r=to("<a id={0}>{1}</a>",n,o),this._commands[n]=i):r=to("<span>{0}</span>",o),t.push(r);}this._domNode.innerHTML=t.join("<span> | </span>"),this._editor.layoutContentWidget(this);}},e.prototype.getId=function(){return this._id;},e.prototype.getDomNode=function(){return this._domNode;},e.prototype.setSymbolRange=function(e){var t=e.startLineNumber,n=this._editor.getModel().getLineFirstNonWhitespaceColumn(t);this._widgetPosition={position:{lineNumber:t,column:n},preference:[1]};},e.prototype.getPosition=function(){return this._widgetPosition;},e.prototype.isVisible=function(){return this._domNode.hasAttribute("monaco-visible-content-widget");},e._idPool=0,e;}(),CN=function(){function e(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[];}return e.prototype.addDecoration=function(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t);},e.prototype.removeDecoration=function(e){this._removeDecorations.push(e);},e.prototype.commit=function(e){for(var t=e.deltaDecorations(this._removeDecorations,this._addDecorations),n=0,i=t.length;n<i;n++)this._addDecorationsCallbacks[n](t[n]);},e;}(),wN=function(){function e(e,t,n,i,o,r,s){var a,u=this;this._editor=t,this._data=e,this._decorationIds=new Array(this._data.length),this._data.forEach(function(e,t){n.addDecoration({range:e.symbol.range,options:i_.EMPTY},function(e){return u._decorationIds[t]=e;}),a=a?Jt.plusRange(a,e.symbol.range):Jt.lift(e.symbol.range);}),this._contentWidget=new bN(t,a,o,r),this._viewZone=new yN(a.startLineNumber-1,s),this._viewZoneId=i.addZone(this._viewZone),this._editor.addContentWidget(this._contentWidget);}return e.prototype.dispose=function(e,t){for(;this._decorationIds.length;)e.removeDecoration(this._decorationIds.pop());t&&t.removeZone(this._viewZoneId),this._editor.removeContentWidget(this._contentWidget),this._contentWidget.dispose();},e.prototype.isValid=function(){var e=this;return this._decorationIds.some(function(t,n){var i=e._editor.getModel().getDecorationRange(t),o=e._data[n].symbol;return i&&Jt.isEmpty(o.range)===i.isEmpty();});},e.prototype.updateCodeLensSymbols=function(e,t){for(var n=this;this._decorationIds.length;)t.removeDecoration(this._decorationIds.pop());this._data=e,this._decorationIds=new Array(this._data.length),this._data.forEach(function(e,i){t.addDecoration({range:e.symbol.range,options:i_.EMPTY},function(e){return n._decorationIds[i]=e;});});},e.prototype.computeIfNecessary=function(e){if(this._contentWidget.updateVisibility(),!this._contentWidget.isVisible())return null;for(var t=0;t<this._decorationIds.length;t++)this._data[t].symbol.range=e.getDecorationRange(this._decorationIds[t]);return this._data;},e.prototype.updateCommands=function(e){this._contentWidget.withCommands(e);},e.prototype.getLineNumber=function(){var e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1;},e.prototype.update=function(e){if(this.isValid()){var t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget.setSymbolRange(t),this._editor.layoutContentWidget(this._contentWidget);}},e;}();Vd(function(e,t){var n=e.getColor(Nf);n&&t.addRule(".monaco-editor .codelens-decoration { color: "+n+"; }");var i=e.getColor(Xp);i&&t.addRule(".monaco-editor .codelens-decoration > a:hover { color: "+i+" !important; }");});var SN=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},xN=function(e,t){return function(n,i){t(n,i,e);};};function EN(e,t){switch(void 0===t&&(t=0),typeof e){case"object":return null===e?LN(349,t):Array.isArray(e)?(n=e,i=LN(104579,i=t),n.reduce(function(e,t){return EN(t,e);},i)):function(e,t){return t=LN(181387,t),Object.keys(e).sort().reduce(function(t,n){return t=TN(n,t),EN(e[n],t);},t);}(e,t);case"string":return TN(e,t);case"boolean":return function(e,t){return LN(e?433:863,t);}(e,t);case"number":return LN(e,t);case"undefined":return LN(0,937);default:return LN(0,617);}var n,i;}function LN(e,t){return(t<<5)-t+e|0;}function TN(e,t){t=LN(149417,t);for(var n=0,i=e.length;n<i;n++)t=LN(e.charCodeAt(n),t);return t;}function IN(e,t,n,i){return Promise.resolve(n.provideColorPresentations(e,t,i));}nd(function(){function e(e,t,n){var i=this;this._editor=e,this._commandService=t,this._notificationService=n,this._isEnabled=this._editor.getConfiguration().contribInfo.codeLens,this._globalToDispose=[],this._localToDispose=[],this._lenses=[],this._currentFindCodeLensSymbolsPromise=null,this._modelChangeCounter=0,this._globalToDispose.push(this._editor.onDidChangeModel(function(){return i._onModelChange();})),this._globalToDispose.push(this._editor.onDidChangeModelLanguage(function(){return i._onModelChange();})),this._globalToDispose.push(this._editor.onDidChangeConfiguration(function(e){var t=i._isEnabled;i._isEnabled=i._editor.getConfiguration().contribInfo.codeLens,t!==i._isEnabled&&i._onModelChange();})),this._globalToDispose.push(vs.onDidChange(this._onModelChange,this)),this._onModelChange();}return e.prototype.dispose=function(){this._localDispose(),this._globalToDispose=f(this._globalToDispose);},e.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=null,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=null),this._localToDispose=f(this._localToDispose);},e.prototype.getId=function(){return e.ID;},e.prototype._onModelChange=function(){var e=this;this._localDispose();var t=this._editor.getModel();if(t&&this._isEnabled&&vs.has(t)){for(var n=0,i=vs.all(t);n<i.length;n++){var o=i[n];if("function"==typeof o.onDidChange){var r=o.onDidChange(function(){return s.schedule();});this._localToDispose.push(r);}}this._detectVisibleLenses=new ee(function(){e._onViewportChanged();},500);var s=new ee(function(){var n=++e._modelChangeCounter;e._currentFindCodeLensSymbolsPromise&&e._currentFindCodeLensSymbolsPromise.cancel(),e._currentFindCodeLensSymbolsPromise=q(function(e){return vN(t,e);}),e._currentFindCodeLensSymbolsPromise.then(function(t){n===e._modelChangeCounter&&(e._renderCodeLensSymbols(t),e._detectVisibleLenses.schedule());},a);},250);this._localToDispose.push(s),this._localToDispose.push(this._detectVisibleLenses),this._localToDispose.push(this._editor.onDidChangeModelContent(function(t){e._editor.changeDecorations(function(t){e._editor.changeViewZones(function(n){var i=[],o=-1;e._lenses.forEach(function(e){e.isValid()&&o!==e.getLineNumber()?(e.update(n),o=e.getLineNumber()):i.push(e);});var r=new CN();i.forEach(function(t){t.dispose(r,n),e._lenses.splice(e._lenses.indexOf(t),1);}),r.commit(t);});}),e._detectVisibleLenses.schedule(),s.schedule();})),this._localToDispose.push(this._editor.onDidScrollChange(function(t){t.scrollTopChanged&&e._lenses.length>0&&e._detectVisibleLenses.schedule();})),this._localToDispose.push(this._editor.onDidLayoutChange(function(t){e._detectVisibleLenses.schedule();})),this._localToDispose.push(m(function(){if(e._editor.getModel()){var t=cC.capture(e._editor);e._editor.changeDecorations(function(t){e._editor.changeViewZones(function(n){e._disposeAllLenses(t,n);});}),t.restore(e._editor);}else e._disposeAllLenses(null,null);})),s.schedule();}},e.prototype._disposeAllLenses=function(e,t){var n=new CN();this._lenses.forEach(function(e){return e.dispose(n,t);}),e&&n.commit(e),this._lenses=[];},e.prototype._renderCodeLensSymbols=function(e){var t=this;if(this._editor.getModel()){for(var n,i=this._editor.getModel().getLineCount(),o=[],r=0,s=e;r<s.length;r++){var a=s[r],u=a.symbol.range.startLineNumber;u<1||u>i||(n&&n[n.length-1].symbol.range.startLineNumber===u?n.push(a):(n=[a],o.push(n)));}var l=cC.capture(this._editor);this._editor.changeDecorations(function(e){t._editor.changeViewZones(function(n){for(var i=0,r=0,s=new CN();r<o.length&&i<t._lenses.length;){var a=o[r][0].symbol.range.startLineNumber,u=t._lenses[i].getLineNumber();u<a?(t._lenses[i].dispose(s,n),t._lenses.splice(i,1)):u===a?(t._lenses[i].updateCodeLensSymbols(o[r],s),r++,i++):(t._lenses.splice(i,0,new wN(o[r],t._editor,s,n,t._commandService,t._notificationService,function(){return t._detectVisibleLenses.schedule();})),i++,r++);}for(;i<t._lenses.length;)t._lenses[i].dispose(s,n),t._lenses.splice(i,1);for(;r<o.length;)t._lenses.push(new wN(o[r],t._editor,s,n,t._commandService,t._notificationService,function(){return t._detectVisibleLenses.schedule();})),r++;s.commit(e);});}),l.restore(this._editor);}},e.prototype._onViewportChanged=function(){var e=this;this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=null);var t=this._editor.getModel();if(t){var n=[],i=[];this._lenses.forEach(function(e){var o=e.computeIfNecessary(t);o&&(n.push(o),i.push(e));}),0!==n.length&&(this._currentResolveCodeLensSymbolsPromise=q(function(e){var o=n.map(function(n,o){var r=new Array(n.length),s=n.map(function(n,i){return"function"==typeof n.provider.resolveCodeLens?Promise.resolve(n.provider.resolveCodeLens(t,n.symbol,e)).then(function(e){r[i]=e;}):(r[i]=n.symbol,Promise.resolve(void 0));});return Promise.all(s).then(function(){i[o].updateCommands(r);});});return Promise.all(o);}),this._currentResolveCodeLensSymbolsPromise.then(function(){e._currentResolveCodeLensSymbolsPromise=null;}).catch(function(t){e._currentResolveCodeLensSymbolsPromise=null,a(t);}));}},e.ID="css.editor.codeLens",e=SN([xN(1,qo),xN(2,sc)],e);}()),Qc("_executeDocumentColorProvider",function(e,t){var n=t.resource;if(!(n instanceof _t))throw p();var i=e.get(Gr).getModel(n);if(!i)throw p();var o=[],r=xs.ordered(i).reverse().map(function(e){return Promise.resolve(e.provideDocumentColors(i,B.None)).then(function(e){if(Array.isArray(e))for(var t=0,n=e;t<n.length;t++){var i=n[t];o.push({range:i.range,color:[i.color.red,i.color.green,i.color.blue,i.color.alpha]});}});});return Promise.all(r).then(function(){return o;});}),Qc("_executeColorPresentationProvider",function(e,t){var n=t.resource,i=t.color,o=t.range;if(!(n instanceof _t&&Array.isArray(i)&&4===i.length&&Jt.isIRange(o)))throw p();var r=i[0],s=i[1],a=i[2],u=i[3],l=e.get(Gr).getModel(n);if(!l)throw p();var c={range:o,color:{red:r,green:s,blue:a,alpha:u}},d=[],h=xs.ordered(l).reverse().map(function(e){return Promise.resolve(e.provideColorPresentations(l,c,B.None)).then(function(e){Array.isArray(e)&&d.push.apply(d,e);});});return Promise.all(h).then(function(){return d;});});var NN=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},kN=function(e,t){return function(n,i){t(n,i,e);};},ON=function(){function e(e,t,n){var i=this;this._editor=e,this._codeEditorService=t,this._configurationService=n,this._globalToDispose=[],this._localToDispose=[],this._decorationsIds=[],this._colorDatas=new Map(),this._colorDecoratorIds=[],this._decorationsTypes={},this._globalToDispose.push(e.onDidChangeModel(function(e){i._isEnabled=i.isEnabled(),i.onModelChanged();})),this._globalToDispose.push(e.onDidChangeModelLanguage(function(e){return i.onModelChanged();})),this._globalToDispose.push(xs.onDidChange(function(e){return i.onModelChanged();})),this._globalToDispose.push(e.onDidChangeConfiguration(function(e){var t=i._isEnabled;i._isEnabled=i.isEnabled(),t!==i._isEnabled&&(i._isEnabled?i.onModelChanged():i.removeAllDecorations());})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged();}return e.prototype.isEnabled=function(){var e=this._editor.getModel();if(!e)return!1;var t=e.getLanguageIdentifier(),n=this._configurationService.getValue(t.language);if(n){var i=n.colorDecorators;if(i&&void 0!==i.enable&&!i.enable)return i.enable;}return this._editor.getConfiguration().contribInfo.colorDecorators;},e.prototype.getId=function(){return e.ID;},e.get=function(e){return e.getContribution(this.ID);},e.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),this._globalToDispose=f(this._globalToDispose);},e.prototype.onModelChanged=function(){var t=this;if(this.stop(),this._isEnabled){var n=this._editor.getModel();n&&xs.has(n)&&(this._localToDispose.push(this._editor.onDidChangeModelContent(function(n){t._timeoutTimer||(t._timeoutTimer=new Q(),t._timeoutTimer.cancelAndSet(function(){t._timeoutTimer=null,t.beginCompute();},e.RECOMPUTE_TIME));})),this.beginCompute());}},e.prototype.beginCompute=function(){var e=this;this._computePromise=q(function(t){var n=e._editor.getModel();return n?function(e,t){var n=[],i=xs.ordered(e).reverse().map(function(i){return Promise.resolve(i.provideDocumentColors(e,t)).then(function(e){if(Array.isArray(e))for(var t=0,o=e;t<o.length;t++){var r=o[t];n.push({colorInfo:r,provider:i});}});});return Promise.all(i).then(function(){return n;});}(n,t):Promise.resolve([]);}),this._computePromise.then(function(t){e.updateDecorations(t),e.updateColorDecorators(t),e._computePromise=null;},a);},e.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose=f(this._localToDispose);},e.prototype.updateDecorations=function(e){var t=this,n=e.map(function(e){return{range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:i_.EMPTY};});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,n),this._colorDatas=new Map(),this._decorationsIds.forEach(function(n,i){return t._colorDatas.set(n,e[i]);});},e.prototype.updateColorDecorators=function(e){for(var t=[],n={},i=0;i<e.length&&t.length<500;i++){var o=e[i].colorInfo.color,r=o.red,s=o.green,a=o.blue,u=o.alpha,l=new Ih(Math.round(255*r),Math.round(255*s),Math.round(255*a),u),c=EN(l).toString(16),d="rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")",h="colorBox-"+c;this._decorationsTypes[h]||n[h]||this._codeEditorService.registerDecorationType(h,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:d},dark:{before:{border:"solid 0.1em #eee"}}}),n[h]=!0,t.push({range:{startLineNumber:e[i].colorInfo.range.startLineNumber,startColumn:e[i].colorInfo.range.startColumn,endLineNumber:e[i].colorInfo.range.endLineNumber,endColumn:e[i].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(h,!0)});}for(var p in this._decorationsTypes)n[p]||this._codeEditorService.removeDecorationType(p);this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,t);},e.prototype.removeAllDecorations=function(){for(var e in this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes)this._codeEditorService.removeDecorationType(e);},e.prototype.getColorData=function(e){var t=this,n=this._editor.getModel();if(!n)return null;var i=n.getDecorationsInRange(Jt.fromPositions(e,e)).filter(function(e){return t._colorDatas.has(e.id);});return 0===i.length?null:this._colorDatas.get(i[0].id);},e.ID="editor.contrib.colorDetector",e.RECOMPUTE_TIME=1e3,e=NN([kN(1,pn),kN(2,Fl)],e);}();nd(ON);var DN=function(){function e(e){this._selection=e,this._usedEndToken=null;}return e._haystackHasNeedleAtOffset=function(e,t,n){if(n<0)return!1;var i=t.length;if(n+i>e.length)return!1;for(var o=0;o<i;o++){var r=e.charCodeAt(n+o),s=t.charCodeAt(o);if(r!==s&&!(r>=65&&r<=90&&r+32===s||s>=65&&s<=90&&s+32===r))return!1;}return!0;},e.prototype._createOperationsForBlockComment=function(t,n,i,o,r){var s,a=t.startLineNumber,u=t.startColumn,l=t.endLineNumber,c=t.endColumn,d=o.getLineContent(a),h=o.getLineContent(l),p=d.lastIndexOf(n,u-1+n.length),f=h.indexOf(i,c-1-i.length);if(-1!==p&&-1!==f)if(a===l){d.substring(p+n.length,f).indexOf(i)>=0&&(p=-1,f=-1);}else{var g=d.substring(p+n.length),m=h.substring(0,f);(g.indexOf(i)>=0||m.indexOf(i)>=0)&&(p=-1,f=-1);}-1!==p&&-1!==f?(p+n.length<d.length&&32===d.charCodeAt(p+n.length)&&(n+=" "),f>0&&32===h.charCodeAt(f-1)&&(i=" "+i,f-=1),s=e._createRemoveBlockCommentOperations(new Jt(a,p+n.length+1,l,f+1),n,i)):(s=e._createAddBlockCommentOperations(t,n,i),this._usedEndToken=1===s.length?i:null);for(var _=0;_<s.length;_++)r.addTrackedEditOperation(s[_].range,s[_].text);},e._createRemoveBlockCommentOperations=function(e,t,n){var i=[];return Jt.isEmpty(e)?i.push(ll.delete(new Jt(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(ll.delete(new Jt(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(ll.delete(new Jt(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i;},e._createAddBlockCommentOperations=function(e,t,n){var i=[];return Jt.isEmpty(e)?i.push(ll.replace(new Jt(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(i.push(ll.insert(new Qt(e.startLineNumber,e.startColumn),t+" ")),i.push(ll.insert(new Qt(e.endLineNumber,e.endColumn)," "+n))),i;},e.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenizeIfCheap(n);var o=e.getLanguageIdAtPosition(n,i),r=la.getComments(o);r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,e,t);},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations();if(2===n.length){var i=n[0],o=n[1];return new tn(i.range.endLineNumber,i.range.endColumn,o.range.startLineNumber,o.range.startColumn);}var r=n[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new tn(r.endLineNumber,r.endColumn+s,r.endLineNumber,r.endColumn+s);},e;}(),RN=function(){function e(e,t,n){this._selection=e,this._tabSize=t,this._type=n,this._deltaColumn=0;}return e._gatherPreflightCommentStrings=function(e,t,n){e.tokenizeIfCheap(t);var i=e.getLanguageIdAtPosition(t,1),o=la.getComments(i),r=o?o.lineCommentToken:null;if(!r)return null;for(var s=[],a=0,u=n-t+1;a<u;a++)s[a]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return s;},e._analyzeLines=function(e,t,n,i){var o,r=!0;o=0===e||1!==e;for(var s=0,a=n.length;s<a;s++){var u=n[s],l=i+s,c=t.getLineContent(l),d=lo(c);if(-1!==d){if(r=!1,u.ignore=!1,u.commentStrOffset=d,o&&!DN._haystackHasNeedleAtOffset(c,u.commentStr,d)&&(0===e?o=!1:1===e||(u.ignore=!0)),o){var h=d+u.commentStrLength;h<c.length&&32===c.charCodeAt(h)&&(u.commentStrLength+=1);}}else u.ignore=!0,u.commentStrOffset=c.length;}if(0===e&&r){o=!1;for(s=0,a=n.length;s<a;s++)n[s].ignore=!1;}return{supported:!0,shouldRemoveComments:o,lines:n};},e._gatherPreflightData=function(t,n,i,o){var r=e._gatherPreflightCommentStrings(n,i,o);return null===r?{supported:!1}:e._analyzeLines(t,n,r,i);},e.prototype._executeLineComments=function(t,n,i,o){var r;i.shouldRemoveComments?r=e._createRemoveLineCommentsOperations(i.lines,o.startLineNumber):(e._normalizeInsertionPoint(t,i.lines,o.startLineNumber,this._tabSize),r=e._createAddLineCommentsOperations(i.lines,o.startLineNumber));for(var s=new Qt(o.positionLineNumber,o.positionColumn),a=0,u=r.length;a<u;a++){if(n.addEditOperation(r[a].range,r[a].text),r[a].range.isEmpty()&&r[a].range.getStartPosition().equals(s))t.getLineContent(s.lineNumber).length+1===s.column&&(this._deltaColumn=(r[a].text||"").length);}this._selectionId=n.trackSelection(o);},e.prototype._attemptRemoveBlockComment=function(e,t,n,i){var o=t.startLineNumber,r=t.endLineNumber,s=i.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),a=e.getLineContent(o).lastIndexOf(n,s-1),u=e.getLineContent(r).indexOf(i,t.endColumn-1-n.length);return-1!==a&&-1===u&&(u=e.getLineContent(o).indexOf(i,a+n.length),r=o),-1===a&&-1!==u&&(a=e.getLineContent(r).lastIndexOf(n,u),o=r),!t.isEmpty()||-1!==a&&-1!==u||-1!==(a=e.getLineContent(o).indexOf(n))&&(u=e.getLineContent(o).indexOf(i,a+n.length)),-1!==a&&32===e.getLineContent(o).charCodeAt(a+n.length)&&(n+=" "),-1!==u&&32===e.getLineContent(r).charCodeAt(u-1)&&(i=" "+i,u-=1),-1!==a&&-1!==u?DN._createRemoveBlockCommentOperations(new Jt(o,a+n.length+1,r,u+1),n,i):null;},e.prototype._executeBlockComment=function(e,t,n){e.tokenizeIfCheap(n.startLineNumber);var i=e.getLanguageIdAtPosition(n.startLineNumber,1),o=la.getComments(i);if(o&&o.blockCommentStartToken&&o.blockCommentEndToken){var r=o.blockCommentStartToken,s=o.blockCommentEndToken,a=this._attemptRemoveBlockComment(e,n,r,s);if(!a){if(n.isEmpty()){var u=e.getLineContent(n.startLineNumber),l=lo(u);-1===l&&(l=u.length),a=DN._createAddBlockCommentOperations(new Jt(n.startLineNumber,l+1,n.startLineNumber,u.length+1),r,s);}else a=DN._createAddBlockCommentOperations(new Jt(n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),r,s);1===a.length&&(this._deltaColumn=r.length+1);}this._selectionId=t.trackSelection(n);for(var c=0;c<a.length;c++)t.addEditOperation(a[c].range,a[c].text);}},e.prototype.getEditOperations=function(t,n){var i=this._selection;this._moveEndPositionDown=!1,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,t.getLineMaxColumn(i.endLineNumber-1)));var o=e._gatherPreflightData(this._type,t,i.startLineNumber,i.endLineNumber);return o.supported?this._executeLineComments(t,n,o,i):this._executeBlockComment(t,n,i);},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new tn(n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn);},e._createRemoveLineCommentsOperations=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];r.ignore||n.push(ll.delete(new Jt(t+i,r.commentStrOffset+1,t+i,r.commentStrOffset+r.commentStrLength+1)));}return n;},e._createAddLineCommentsOperations=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];r.ignore||n.push(ll.insert(new Qt(t+i,r.commentStrOffset+1),r.commentStr+" "));}return n;},e.nextVisibleColumn=function(e,t,n,i){return n?e+(t-e%t):e+i;},e._normalizeInsertionPoint=function(t,n,i,o){for(var r,s,a=Number.MAX_VALUE,u=0,l=n.length;u<l;u++)if(!n[u].ignore){for(var c=t.getLineContent(i+u),d=0,h=0,p=n[u].commentStrOffset;d<a&&h<p;h++)d=e.nextVisibleColumn(d,o,9===c.charCodeAt(h),1);d<a&&(a=d);}a=Math.floor(a/o)*o;for(u=0,l=n.length;u<l;u++)if(!n[u].ignore){c=t.getLineContent(i+u),d=0;for(r=0,s=n[u].commentStrOffset;d<a&&r<s;r++)d=e.nextVisibleColumn(d,o,9===c.charCodeAt(r),1);n[u].commentStrOffset=d>a?r-1:r;}},e;}(),AN=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),MN=function(e){function t(t,n){var i=e.call(this,n)||this;return i._type=t,i;}return AN(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),i=[],o=t.getSelections(),r=n.getOptions(),s=0;s<o.length;s++)i.push(new RN(o[s],r.tabSize,this._type));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop();}},t;}(Zc),PN=function(e){function t(){return e.call(this,0,{id:"editor.action.commentLine",label:ie("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:2133,weight:100},menubarOpts:{menuId:Il.MenubarEditMenu,group:"5_insert",title:ie({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this;}return AN(t,e),t;}(MN),FN=function(e){function t(){return e.call(this,1,{id:"editor.action.addCommentLine",label:ie("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2081),weight:100}})||this;}return AN(t,e),t;}(MN),WN=function(e){function t(){return e.call(this,2,{id:"editor.action.removeCommentLine",label:ie("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2099),weight:100}})||this;}return AN(t,e),t;}(MN),BN=function(e){function t(){return e.call(this,{id:"editor.action.blockComment",label:ie("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menubarOpts:{menuId:Il.MenubarEditMenu,group:"5_insert",title:ie({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this;}return AN(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=[],i=t.getSelections(),o=0;o<i.length;o++)n.push(new DN(i[o]));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop();}},t;}(Zc);td(PN),td(FN),td(WN),td(BN);var VN=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),HN=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},UN=function(e,t){return function(n,i){t(n,i,e);};},jN=function(){function e(e,t,n,i,o,r){var s=this;this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=i,this._keybindingService=o,this._menuService=r,this._toDispose=[],this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.push(this._editor.onContextMenu(function(e){return s._onContextMenu(e);})),this._toDispose.push(this._editor.onDidScrollChange(function(e){s._contextMenuIsBeingShownCount>0&&s._contextViewService.hideContextView();})),this._toDispose.push(this._editor.onKeyDown(function(e){58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),s.showContextMenu());}));}return e.get=function(t){return t.getContribution(e.ID);},e.prototype._onContextMenu=function(e){if(!this._editor.getConfiguration().contribInfo.contextmenu)return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));var t;12!==e.target.type&&(e.event.preventDefault(),(6===e.target.type||7===e.target.type||1===e.target.type)&&(this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position),1!==e.target.type&&(t={x:e.event.posx,y:e.event.posy+1}),this.showContextMenu(t)));},e.prototype.showContextMenu=function(e){if(this._editor.getConfiguration().contribInfo.contextmenu)if(this._contextMenuService){var t=this._getMenuActions();t.length>0&&this._doShowContextMenu(t,e);}else this._editor.focus();},e.prototype._getMenuActions=function(){var e=[],t=this._menuService.createMenu(Il.EditorContext,this._contextKeyService),n=t.getActions({arg:this._editor.getModel().uri});t.dispose();for(var i=0,o=n;i<o.length;i++){var r=o[i][1];e.push.apply(e,r),e.push(new pC());}return e.pop(),e;},e.prototype._doShowContextMenu=function(e,t){var n=this;void 0===t&&(t=null);var i=this._editor.getConfiguration().contribInfo.hover;this._editor.updateOptions({hover:{enabled:!1}});var o=t;if(!o){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var r=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),s=xi(this._editor.getDomNode()),a=s.left+r.left,u=s.top+r.top+r.height;o={x:a,y:u};}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return o;},getActions:function(){return Promise.resolve(e);},getActionItem:function(e){var t=n._keybindingFor(e);if(t)return new fC(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});var i=e;return"function"==typeof i.getActionItem?i.getActionItem():new fC(e,e,{icon:!0,label:!0,isMenu:!0});},getKeyBinding:function(e){return n._keybindingFor(e);},onHide:function(e){n._contextMenuIsBeingShownCount--,n._editor.focus(),n._editor.updateOptions({hover:i});}});},e.prototype._keybindingFor=function(e){return this._keybindingService.lookupKeybinding(e.id);},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose=f(this._toDispose);},e.ID="editor.contrib.contextmenu",e=HN([UN(1,jC),UN(2,UC),UN(3,bl),UN(4,zC),UN(5,Nl)],e);}(),zN=function(e){function t(){return e.call(this,{id:"editor.action.showContextMenu",label:ie("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:1092,weight:100}})||this;}return VN(t,e),t.prototype.run=function(e,t){jN.get(t).showContextMenu();},t;}(Zc);nd(jN),td(zN);var KN=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),qN=function(){function e(e){this.selections=e;}return e.prototype.equals=function(e){var t=this.selections.length;if(t!==e.selections.length)return!1;for(var n=0;n<t;n++)if(!this.selections[n].equalsSelection(e.selections[n]))return!1;return!0;},e;}(),GN=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._isCursorUndo=!1,n._undoStack=[],n._prevState=n._readState(),n._register(t.onDidChangeModel(function(e){n._undoStack=[],n._prevState=null;})),n._register(t.onDidChangeModelContent(function(e){n._undoStack=[],n._prevState=null;})),n._register(t.onDidChangeCursorSelection(function(e){!n._isCursorUndo&&n._prevState&&(n._undoStack.push(n._prevState),n._undoStack.length>50&&n._undoStack.shift()),n._prevState=n._readState();})),n;}return KN(t,e),t.get=function(e){return e.getContribution(t.ID);},t.prototype._readState=function(){return this._editor.hasModel()?new qN(this._editor.getSelections()):null;},t.prototype.getId=function(){return t.ID;},t.prototype.cursorUndo=function(){if(this._editor.hasModel())for(var e=new qN(this._editor.getSelections());this._undoStack.length>0;){var t=this._undoStack.pop();if(!t.equals(e))return this._isCursorUndo=!0,this._editor.setSelections(t.selections),this._editor.revealRangeInCenterIfOutsideViewport(t.selections[0],0),void(this._isCursorUndo=!1);}},t.ID="editor.contrib.cursorUndoController",t;}(y),$N=function(e){function t(){return e.call(this,{id:"cursorUndo",label:ie("cursor.undo","Soft Undo"),alias:"Soft Undo",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:2099,weight:100}})||this;}return KN(t,e),t.prototype.run=function(e,t,n){GN.get(t).cursorUndo();},t;}(Zc);nd(GN),td($N);n("./node_modules/monaco-editor/esm/vs/editor/contrib/dnd/dnd.css");var YN=function(){function e(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n;}return e.prototype.getEditOperations=function(e,t){var n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new Jt(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new tn(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 tn(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 tn(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 tn(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 tn(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;},e.prototype.computeCursorState=function(e,t){return this.targetSelection;},e;}();function XN(e){return o.d?e.altKey:e.ctrlKey;}nd(function(){function e(e){var t=this;this._editor=e,this._toUnhook=[],this._toUnhook.push(this._editor.onMouseDown(function(e){return t._onEditorMouseDown(e);})),this._toUnhook.push(this._editor.onMouseUp(function(e){return t._onEditorMouseUp(e);})),this._toUnhook.push(this._editor.onMouseDrag(function(e){return t._onEditorMouseDrag(e);})),this._toUnhook.push(this._editor.onMouseDrop(function(e){return t._onEditorMouseDrop(e);})),this._toUnhook.push(this._editor.onKeyDown(function(e){return t.onEditorKeyDown(e);})),this._toUnhook.push(this._editor.onKeyUp(function(e){return t.onEditorKeyUp(e);})),this._toUnhook.push(this._editor.onDidBlurEditorWidget(function(){return t.onEditorBlur();})),this._dndDecorationIds=[],this._mouseDown=!1,this._modiferPressed=!1,this._dragSelection=null;}return e.prototype.onEditorBlur=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modiferPressed=!1;},e.prototype.onEditorKeyDown=function(e){this._editor.getConfiguration().dragAndDrop&&(XN(e)&&(this._modiferPressed=!0),this._mouseDown&&XN(e)&&this._editor.updateOptions({mouseStyle:"copy"}));},e.prototype.onEditorKeyUp=function(t){this._editor.getConfiguration().dragAndDrop&&(XN(t)&&(this._modiferPressed=!1),this._mouseDown&&t.keyCode===e.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}));},e.prototype._onEditorMouseDown=function(e){this._mouseDown=!0;},e.prototype._onEditorMouseUp=function(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"});},e.prototype._onEditorMouseDrag=function(e){var t=e.target;if(null===this._dragSelection){var n=(this._editor.getSelections()||[]).filter(function(e){return t.position&&e.containsPosition(t.position);});if(1!==n.length)return;this._dragSelection=n[0];}XN(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));},e.prototype._onEditorMouseDrop=function(t){if(t.target&&(this._hitContent(t.target)||this._hitMargin(t.target))&&t.target.position){var n=new Qt(t.target.position.lineNumber,t.target.position.column);if(null===this._dragSelection){var i=null;if(t.event.shiftKey){var o=this._editor.getSelection();if(o){var r=o.selectionStartLineNumber,s=o.selectionStartColumn;i=[new tn(r,s,n.lineNumber,n.column)];}}else i=(this._editor.getSelections()||[]).map(function(e){return e.containsPosition(n)?new tn(n.lineNumber,n.column,n.lineNumber,n.column):e;});this._editor.setSelections(i||[],"mouse");}else(!this._dragSelection.containsPosition(n)||(XN(t.event)||this._modiferPressed)&&(this._dragSelection.getEndPosition().equals(n)||this._dragSelection.getStartPosition().equals(n)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(e.ID,new YN(this._dragSelection,n,XN(t.event)||this._modiferPressed)),this._editor.pushUndoStop());}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1;},e.prototype.showAt=function(t){var n=[{range:new Jt(t.lineNumber,t.column,t.lineNumber,t.column),options:e._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,n),this._editor.revealPosition(t,1);},e.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[]);},e.prototype._hitContent=function(e){return 6===e.type||7===e.type;},e.prototype._hitMargin=function(e){return 2===e.type||3===e.type||4===e.type;},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modiferPressed=!1,this._toUnhook=f(this._toUnhook);},e.ID="editor.contrib.dragAndDrop",e.TRIGGER_KEY_VALUE=o.d?6:5,e._DECORATION_OPTIONS=i_.register({className:"dnd-target"}),e;}());var ZN=function(){function e(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition();}return e.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null;},e.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null;},e.prototype.getCount=function(){return this._decorations.length;},e.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null;},e.prototype.getStartPosition=function(){return this._startPosition;},e.prototype.setStartPosition=function(e){this._startPosition=e,this.setCurrentFindMatch(null);},e.prototype._getDecorationIndex=function(e){var t=this._decorations.indexOf(e);return t>=0?t+1:1;},e.prototype.getCurrentMatchesPosition=function(t){for(var n=this._editor.getModel().getDecorationsInRange(t),i=0,o=n.length;i<o;i++){var r=n[i],s=r.options;if(s===e._FIND_MATCH_DECORATION||s===e._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(r.id);}return 1;},e.prototype.setCurrentFindMatch=function(t){var n=this,i=null,o=0;if(t)for(var r=0,s=this._decorations.length;r<s;r++){var a=this._editor.getModel().getDecorationRange(this._decorations[r]);if(t.equalsRange(a)){i=this._decorations[r],o=r+1;break;}}return null===this._highlightedDecorationId&&null===i||this._editor.changeDecorations(function(t){if(null!==n._highlightedDecorationId&&(t.changeDecorationOptions(n._highlightedDecorationId,e._FIND_MATCH_DECORATION),n._highlightedDecorationId=null),null!==i&&(n._highlightedDecorationId=i,t.changeDecorationOptions(n._highlightedDecorationId,e._CURRENT_FIND_MATCH_DECORATION)),null!==n._rangeHighlightDecorationId&&(t.removeDecoration(n._rangeHighlightDecorationId),n._rangeHighlightDecorationId=null),null!==i){var o=n._editor.getModel().getDecorationRange(i);if(o.startLineNumber!==o.endLineNumber&&1===o.endColumn){var r=o.endLineNumber-1,s=n._editor.getModel().getLineMaxColumn(r);o=new Jt(o.startLineNumber,o.startColumn,r,s);}n._rangeHighlightDecorationId=t.addDecoration(o,e._RANGE_HIGHLIGHT_DECORATION);}}),o;},e.prototype.set=function(t,n){var i=this;this._editor.changeDecorations(function(o){var r=e._FIND_MATCH_DECORATION,s=[];if(t.length>1e3){r=e._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var a=i._editor.getModel().getLineCount(),u=i._editor.getLayoutInfo().height/a,l=Math.max(2,Math.ceil(3/u)),c=t[0].range.startLineNumber,d=t[0].range.endLineNumber,h=1,p=t.length;h<p;h++){var f=t[h].range;d+l>=f.startLineNumber?f.endLineNumber>d&&(d=f.endLineNumber):(s.push({range:new Jt(c,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),c=f.startLineNumber,d=f.endLineNumber);}s.push({range:new Jt(c,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION});}var g=new Array(t.length);for(h=0,p=t.length;h<p;h++)g[h]={range:t[h].range,options:r};i._decorations=o.deltaDecorations(i._decorations,g),i._overviewRulerApproximateDecorations=o.deltaDecorations(i._overviewRulerApproximateDecorations,s),i._rangeHighlightDecorationId&&(o.removeDecoration(i._rangeHighlightDecorationId),i._rangeHighlightDecorationId=null),i._findScopeDecorationId&&(o.removeDecoration(i._findScopeDecorationId),i._findScopeDecorationId=null),n&&(i._findScopeDecorationId=o.addDecoration(n,e._FIND_SCOPE_DECORATION));});},e.prototype.matchBeforePosition=function(e){if(0===this._decorations.length)return null;for(var t=this._decorations.length-1;t>=0;t--){var n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumber<e.lineNumber)return i;if(!(i.endColumn>e.column))return i;}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1]);},e.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;t<n;t++){var i=this._decorations[t],o=this._editor.getModel().getDecorationRange(i);if(o&&!(o.startLineNumber<e.lineNumber)){if(o.startLineNumber>e.lineNumber)return o;if(!(o.startColumn<e.column))return o;}}return this._editor.getModel().getDecorationRange(this._decorations[0]);},e.prototype._allDecorations=function(){var e=[];return e=(e=e.concat(this._decorations)).concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&e.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e;},e._CURRENT_FIND_MATCH_DECORATION=i_.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Ad(cf),position:cr.Center}}),e._FIND_MATCH_DECORATION=i_.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Ad(cf),position:cr.Center}}),e._FIND_MATCH_NO_OVERVIEW_DECORATION=i_.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),e._FIND_MATCH_ONLY_OVERVIEW_DECORATION=i_.register({stickiness:1,overviewRuler:{color:Ad(cf),position:cr.Center}}),e._RANGE_HIGHLIGHT_DECORATION=i_.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),e._FIND_SCOPE_DECORATION=i_.register({className:"findScope",isWholeLine:!0}),e;}(),QN=function(){function e(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n;}return e.prototype.getEditOperations=function(e,t){if(this._ranges.length>0){for(var n=[],i=0;i<this._ranges.length;i++)n.push({range:this._ranges[i],text:this._replaceStrings[i]});n.sort(function(e,t){return Jt.compareRangesUsingStarts(e.range,t.range);});var o=[],r=n[0];for(i=1;i<n.length;i++)r.range.endLineNumber===n[i].range.startLineNumber&&r.range.endColumn===n[i].range.startColumn?(r.range=r.range.plusRange(n[i].range),r.text=r.text+n[i].text):(o.push(r),r=n[i]);o.push(r);for(i=0;i<o.length;i++)t.addEditOperation(o[i].range,o[i].text);}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection);},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId);},e;}(),JN=function(){return function(e){this.staticValue=e,this.kind=0;};}(),ek=function(){return function(e){this.pieces=e,this.kind=1;};}(),tk=function(){function e(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new JN(e[0].staticValue):this._state=new ek(e):this._state=new JN("");}return e.fromStaticValue=function(t){return new e([nk.staticValue(t)]);},Object.defineProperty(e.prototype,"hasReplacementPatterns",{get:function(){return 1===this._state.kind;},enumerable:!0,configurable:!0}),e.prototype.buildReplaceString=function(t){if(0===this._state.kind)return this._state.staticValue;for(var n="",i=0,o=this._state.pieces.length;i<o;i++){var r=this._state.pieces[i];null===r.staticValue?n+=e._substitute(r.matchIndex,t):n+=r.staticValue;}return n;},e._substitute=function(e,t){if(null===t)return"";if(0===e)return t[0];for(var n="";e>0;){if(e<t.length)return(t[e]||"")+n;n=String(e%10)+n,e=Math.floor(e/10);}return"$"+n;},e;}(),nk=function(){function e(e,t){this.staticValue=e,this.matchIndex=t;}return e.staticValue=function(t){return new e(t,-1);},e.matchIndex=function(t){return new e(null,t);},e;}(),ik=function(){function e(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece="";}return e.prototype.emitUnchanged=function(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e;},e.prototype.emitStatic=function(e,t){this._emitStatic(e),this._lastCharIndex=t;},e.prototype._emitStatic=function(e){0!==e.length&&(this._currentStaticPiece+=e);},e.prototype.emitMatchIndex=function(e,t){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=nk.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=nk.matchIndex(e),this._lastCharIndex=t;},e.prototype.finalize=function(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=nk.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new tk(this._result);},e;}();var ok=new yl("findWidgetVisible",!1),rk=new yl("findInputFocussed",!1),sk=new yl("replaceInputFocussed",!1),ak={primary:545,mac:{primary:2593}},uk={primary:565,mac:{primary:2613}},lk={primary:560,mac:{primary:2608}},ck={primary:554,mac:{primary:2602}},dk={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",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},hk=function(){function e(e,t){var n=this;this._editor=e,this._state=t,this._toDispose=[],this._isDisposed=!1,this._startSearchingTimer=new Q(),this._decorations=new ZN(e),this._toDispose.push(this._decorations),this._updateDecorationsScheduler=new ee(function(){return n.research(!1);},100),this._toDispose.push(this._updateDecorationsScheduler),this._toDispose.push(this._editor.onDidChangeCursorPosition(function(e){3!==e.reason&&5!==e.reason&&6!==e.reason||n._decorations.setStartPosition(n._editor.getPosition());})),this._ignoreModelContentChanged=!1,this._toDispose.push(this._editor.onDidChangeModelContent(function(e){n._ignoreModelContentChanged||(e.isFlush&&n._decorations.reset(),n._decorations.setStartPosition(n._editor.getPosition()),n._updateDecorationsScheduler.schedule());})),this._toDispose.push(this._state.onFindReplaceStateChange(function(e){return n._onStateChanged(e);})),this.research(!1,this._state.searchScope);}return e.prototype.dispose=function(){this._isDisposed=!0,f(this._startSearchingTimer),this._toDispose=f(this._toDispose);},e.prototype._onStateChanged=function(e){var t=this;this._isDisposed||this._editor.getModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(function(){e.searchScope?t.research(e.moveCursor,t._state.searchScope):t.research(e.moveCursor);},240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor));},e._getSearchRange=function(e,t){return t||e.getFullModelRange();},e.prototype.research=function(e,t){var n=null;null!==(n=void 0!==t?t:this._decorations.getFindScope())&&n.startLineNumber!==n.endLineNumber&&(n=1===n.endColumn?new Jt(n.startLineNumber,1,n.endLineNumber-1,this._editor.getModel().getLineMaxColumn(n.endLineNumber-1)):new Jt(n.startLineNumber,1,n.endLineNumber,this._editor.getModel().getLineMaxColumn(n.endLineNumber)));var i=this._findMatches(n,!1,19999);this._decorations.set(i,n),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),e&&this._moveToNextMatch(this._decorations.getStartPosition());},e.prototype._hasMatches=function(){return this._state.matchesCount>0;},e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0;}return!1;},e.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0);},e.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||1===i?(1===n?n=o.getLineCount():n--,i=o.getLineMaxColumn(n)):i--,new Qt(n,i);},e.prototype._moveToPrevMatch=function(t,n){if(void 0===n&&(n=!1),this._decorations.getCount()<19999){var i=this._decorations.matchBeforePosition(t);return i&&i.isEmpty()&&i.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),i=this._decorations.matchBeforePosition(t)),void(i&&this._setCurrentFindMatch(i));}if(!this._cannotFind()){var o=this._decorations.getFindScope(),r=e._getSearchRange(this._editor.getModel(),o);r.getEndPosition().isBefore(t)&&(t=r.getEndPosition()),t.isBefore(r.getStartPosition())&&(t=r.getEndPosition());var s=t.lineNumber,a=t.column,u=this._editor.getModel(),l=new Qt(s,a),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);if(c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1)),c)return n||r.containsRange(c.range)?void this._setCurrentFindMatch(c.range):this._moveToPrevMatch(c.range.getStartPosition(),!0);}},e.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition());},e.prototype._nextSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||i===o.getLineMaxColumn(n)?(n===o.getLineCount()?n=1:n++,i=1):i++,new Qt(n,i);},e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<19999){var t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t));}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range);},e.prototype._getNextMatch=function(t,n,i,o){if(void 0===o&&(o=!1),this._cannotFind())return null;var r=this._decorations.getFindScope(),s=e._getSearchRange(this._editor.getModel(),r);s.getEndPosition().isBefore(t)&&(t=s.getStartPosition()),t.isBefore(s.getStartPosition())&&(t=s.getStartPosition());var a=t.lineNumber,u=t.column,l=this._editor.getModel(),c=new Qt(a,u),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n);return i&&d&&d.range.isEmpty()&&d.range.getStartPosition().equals(c)&&(c=this._nextSearchPosition(c),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n)),d?o||s.containsRange(d.range)?d:this._getNextMatch(d.range.getEndPosition(),n,i,!0):null;},e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition());},e.prototype._getReplacePattern=function(){return this._state.isRegex?function(e){if(!e||0===e.length)return new tk(null);for(var t=new ik(e),n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);if(92!==o){if(36===o){if(++n>=i)break;if(36===(a=e.charCodeAt(n))){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue;}if(48===a||38===a){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue;}if(49<=a&&a<=57){var r=a-48;if(n+1<i){var s=e.charCodeAt(n+1);if(48<=s&&s<=57){n++,r=10*r+(s-48),t.emitUnchanged(n-2),t.emitMatchIndex(r,n+1);continue;}}t.emitUnchanged(n-1),t.emitMatchIndex(r,n+1);continue;}}}else{if(++n>=i)break;var a;switch(a=e.charCodeAt(n)){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic("\n",n+1);break;case 116:t.emitUnchanged(n-1),t.emitStatic("\t",n+1);}}}return t.finalize();}(this._state.replaceString):tk.fromStaticValue(this._state.replaceString);},e.prototype.replace=function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),e.hasReplacementPatterns,!1);if(n)if(t.equalsRange(n.range)){var i=e.buildReplaceString(n.matches),o=new C_(t,i);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new Qt(t.startLineNumber,t.startColumn+i.length)),this.research(!0);}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range);}},e.prototype._findMatches=function(t,n,i){var o=e._getSearchRange(this._editor.getModel(),t);return this._editor.getModel().findMatches(this._state.searchString,o,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n,i);},e.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=19999?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1);}},e.prototype._largeReplaceAll=function(){var e=new ym(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="m";t.ignoreCase&&(n+="i"),t.global&&(n+="g"),t=new RegExp(t.source,n);}var i,o=this._editor.getModel(),r=o.getValue(1),s=o.getFullModelRange(),a=this._getReplacePattern();i=a.hasReplacementPatterns?r.replace(t,function(){return a.buildReplaceString(arguments);}):r.replace(t,a.buildReplaceString(null));var u=new x_(s,i,this._editor.getSelection());this._executeEditorCommand("replaceAll",u);}},e.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns,1073741824),i=[],o=0,r=n.length;o<r;o++)i[o]=t.buildReplaceString(n[o].matches);var s=new QN(this._editor.getSelection(),n.map(function(e){return e.range;}),i);this._executeEditorCommand("replaceAll",s);},e.prototype.selectAllMatches=function(){if(this._hasMatches()){for(var e=this._decorations.getFindScope(),t=this._findMatches(e,!1,1073741824).map(function(e){return new tn(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);}),n=this._editor.getSelection(),i=0,o=t.length;i<o;i++){if(t[i].equalsRange(n)){t=[n].concat(t.slice(0,i)).concat(t.slice(i+1));break;}}this._editor.setSelections(t);}},e.prototype._executeEditorCommand=function(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop();}finally{this._ignoreModelContentChanged=!1;}},e;}(),pk=(n("./node_modules/monaco-editor/esm/vs/base/browser/ui/checkbox/checkbox.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),fk={inputActiveOptionBorder:Oh.fromHex("#007ACC")},gk=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new N()),n._onKeyDown=n._register(new N()),n._opts=Le(t),Ie(n._opts,fk,!1),n._checked=n._opts.isChecked,n.domNode=document.createElement("div"),n.domNode.title=n._opts.title,n.domNode.className="monaco-custom-checkbox "+n._opts.actionClassName+" "+(n._checked?"checked":"unchecked"),n.domNode.tabIndex=0,n.domNode.setAttribute("role","checkbox"),n.domNode.setAttribute("aria-checked",String(n._checked)),n.domNode.setAttribute("aria-label",n._opts.title),n.applyStyles(),n.onclick(n.domNode,function(e){n.checked=!n._checked,n._onChange.fire(!1),e.preventDefault();}),n.onkeydown(n.domNode,function(e){if(10===e.keyCode||3===e.keyCode)return n.checked=!n._checked,n._onChange.fire(!0),void e.preventDefault();n._onKeyDown.fire(e);}),n;}return pk(t,e),Object.defineProperty(t.prototype,"onChange",{get:function(){return this._onChange.event;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onKeyDown",{get:function(){return this._onKeyDown.event;},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.domNode.focus();},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked;},set:function(e){this._checked=e,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}),t.prototype.width=function(){return 22;},t.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),this.applyStyles();},t.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent");},t.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1));},t.prototype.disable=function(){qi(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0));},t;}(yv),mk=(n("./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInputCheckboxes.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),_k=ie("caseDescription","Match Case"),vk=ie("wordsDescription","Match Whole Word"),yk=ie("regexDescription","Use Regular Expression"),bk=function(e){function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:_k+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this;}return mk(t,e),t;}(gk),Ck=function(e){function t(t){return e.call(this,{actionClassName:"monaco-whole-word",title:vk+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this;}return mk(t,e),t;}(gk),wk=function(e){function t(t){return e.call(this,{actionClassName:"monaco-regex",title:yk+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this;}return mk(t,e),t;}(gk),Sk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),xk=function(e){function t(t,n,i,o){var r=e.call(this)||this;r._hideSoon=r._register(new ee(function(){return r._hide();},2e3)),r._isVisible=!1,r._editor=t,r._state=n,r._keybindingService=i,r._domNode=document.createElement("div"),r._domNode.className="findOptionsWidget",r._domNode.style.display="none",r._domNode.style.top="10px",r._domNode.setAttribute("role","presentation"),r._domNode.setAttribute("aria-hidden","true");var s=o.getTheme().getColor(qh);return r.caseSensitive=r._register(new bk({appendTitle:r._keybindingLabelFor(dk.ToggleCaseSensitiveCommand),isChecked:r._state.matchCase,inputActiveOptionBorder:s})),r._domNode.appendChild(r.caseSensitive.domNode),r._register(r.caseSensitive.onChange(function(){r._state.change({matchCase:r.caseSensitive.checked},!1);})),r.wholeWords=r._register(new Ck({appendTitle:r._keybindingLabelFor(dk.ToggleWholeWordCommand),isChecked:r._state.wholeWord,inputActiveOptionBorder:s})),r._domNode.appendChild(r.wholeWords.domNode),r._register(r.wholeWords.onChange(function(){r._state.change({wholeWord:r.wholeWords.checked},!1);})),r.regex=r._register(new wk({appendTitle:r._keybindingLabelFor(dk.ToggleRegexCommand),isChecked:r._state.isRegex,inputActiveOptionBorder:s})),r._domNode.appendChild(r.regex.domNode),r._register(r.regex.onChange(function(){r._state.change({isRegex:r.regex.checked},!1);})),r._editor.addOverlayWidget(r),r._register(r._state.onFindReplaceStateChange(function(e){var t=!1;e.isRegex&&(r.regex.checked=r._state.isRegex,t=!0),e.wholeWord&&(r.wholeWords.checked=r._state.wholeWord,t=!0),e.matchCase&&(r.caseSensitive.checked=r._state.matchCase,t=!0),!r._state.isRevealed&&t&&r._revealTemporarily();})),r._register(oi(r._domNode,function(e){return r._onMouseOut();})),r._register(ni(r._domNode,"mouseover",function(e){return r._onMouseOver();})),r._applyTheme(o.getTheme()),r._register(o.onThemeChange(r._applyTheme.bind(r))),r;}return Sk(t,e),t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":"";},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this);},t.prototype.getId=function(){return t.ID;},t.prototype.getDomNode=function(){return this._domNode;},t.prototype.getPosition=function(){return{preference:0};},t.prototype.highlightFindOptions=function(){this._revealTemporarily();},t.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule();},t.prototype._onMouseOut=function(){this._hideSoon.schedule();},t.prototype._onMouseOver=function(){this._hideSoon.cancel();},t.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block");},t.prototype._hide=function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none");},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(qh)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t);},t.ID="editor.contrib.findOptionsWidget",t;}(yv);function Ek(e,t){return 1===e||2!==e&&t;}Vd(function(e,t){var n=e.getColor(Rp);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var i=e.getColor(Uh);i&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(Wh);o&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+o+"; }");});var Lk=function(){function e(){this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._onFindReplaceStateChange=new N();}return Object.defineProperty(e.prototype,"searchString",{get:function(){return this._searchString;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"replaceString",{get:function(){return this._replaceString;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRevealed",{get:function(){return this._isRevealed;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRegex",{get:function(){return Ek(this._isRegexOverride,this._isRegex);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wholeWord",{get:function(){return Ek(this._wholeWordOverride,this._wholeWord);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchCase",{get:function(){return Ek(this._matchCaseOverride,this._matchCase);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualIsRegex",{get:function(){return this._isRegex;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualWholeWord",{get:function(){return this._wholeWord;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualMatchCase",{get:function(){return this._matchCase;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"searchScope",{get:function(){return this._searchScope;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchesPosition",{get:function(){return this._matchesPosition;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchesCount",{get:function(){return this._matchesCount;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentMatch",{get:function(){return this._currentMatch;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onFindReplaceStateChange",{get:function(){return this._onFindReplaceStateChange.event;},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){},e.prototype.changeMatchInfo=function(e,t,n){var i={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,i.matchesCount=!0,o=!0),void 0!==n&&(Jt.equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(i);},e.prototype.change=function(e,t,n){void 0===n&&(n=!0);var i={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1,r=this.isRegex,s=this.wholeWord,a=this.matchCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,i.searchString=!0,o=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,i.replaceString=!0,o=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,i.isRevealed=!0,o=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,i.isReplaceRevealed=!0,o=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.searchScope&&(Jt.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,i.searchScope=!0,o=!0)),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,r!==this.isRegex&&(o=!0,i.isRegex=!0),s!==this.wholeWord&&(o=!0,i.wholeWord=!0),a!==this.matchCase&&(o=!0,i.matchCase=!0),o&&this._onFindReplaceStateChange.fire(i);},e;}(),Tk=(n("./node_modules/monaco-editor/esm/vs/editor/contrib/find/findWidget.css"),n("./node_modules/monaco-editor/esm/vs/base/browser/ui/inputbox/inputBox.css"),function(){function e(e){this._prefix=e,this._lastId=0;}return e.prototype.nextId=function(){return this._prefix+ ++this._lastId;},e;}()),Ik=new Tk("id#"),Nk=n("./node_modules/monaco-editor/esm/vs/base/common/marked/marked.js");function kk(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n;}function Ok(e,t){void 0===t&&(t={});var n=kk(t);return function e(t,n,i){var o;if(2===n.type)o=document.createTextNode(n.content||"");else if(3===n.type)o=document.createElement("b");else if(4===n.type)o=document.createElement("i");else if(5===n.type&&i){var r=document.createElement("a");r.href="#",i.disposeables.push(ii(r,"click",function(e){i.callback(String(n.index),e);})),o=r;}else 7===n.type?o=document.createElement("br"):1===n.type&&(o=t);o&&t!==o&&t.appendChild(o);o&&Array.isArray(n.children)&&n.children.forEach(function(t){e(o,t,i);});}(n,function(e){var t={type:1,children:[]},n=0,i=t,o=[],r=new Dk(e);for(;!r.eos();){var s=r.next(),a="\\"===s&&0!==Rk(r.peek());if(a&&(s=r.next()),a||0===Rk(s)||s!==r.peek()){if("\n"===s)2===i.type&&(i=o.pop()),i.children.push({type:7});else if(2!==i.type){var u={type:2,content:s};i.children.push(u),o.push(i),i=u;}else i.content+=s;}else{r.advance(),2===i.type&&(i=o.pop());var l=Rk(s);if(i.type===l||5===i.type&&6===l)i=o.pop();else{var c={type:l,children:[]};5===l&&(c.index=n,n++),i.children.push(c),o.push(i),i=c;}}}2===i.type&&(i=o.pop());o.length;return t;}(e),t.actionHandler),n;}var Dk=function(){function e(e){this.source=e,this.index=0;}return e.prototype.eos=function(){return this.index>=this.source.length;},e.prototype.next=function(){var e=this.peek();return this.advance(),e;},e.prototype.peek=function(){return this.source[this.index];},e.prototype.advance=function(){this.index++;},e;}();function Rk(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0;}}var Ak=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._initialize(e),this._limit=t,this._onChange();}return e.prototype.add=function(e){this._history.delete(e),this._history.add(e),this._onChange();},e.prototype.next=function(){return this._navigator.next();},e.prototype.previous=function(){return this._navigator.previous();},e.prototype.current=function(){return this._navigator.current();},e.prototype.parent=function(){return null;},e.prototype.first=function(){return this._navigator.first();},e.prototype.last=function(){return this._navigator.last();},e.prototype.has=function(e){return this._history.has(e);},e.prototype._onChange=function(){this._reduceToLimit(),this._navigator=new E(this._elements,0,this._elements.length,this._elements.length);},e.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit));},e.prototype._initialize=function(e){this._history=new Set();for(var t=0,n=e;t<n.length;t++){var i=n[t];this._history.add(i);}},Object.defineProperty(e.prototype,"_elements",{get:function(){var e=[];return this._history.forEach(function(t){return e.push(t);}),e;},enumerable:!0,configurable:!0}),e;}(),Mk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Pk=ji,Fk={inputBackground:Oh.fromHex("#3C3C3C"),inputForeground:Oh.fromHex("#CCCCCC"),inputValidationInfoBorder:Oh.fromHex("#55AAFF"),inputValidationInfoBackground:Oh.fromHex("#063B49"),inputValidationWarningBorder:Oh.fromHex("#B89500"),inputValidationWarningBackground:Oh.fromHex("#352A05"),inputValidationErrorBorder:Oh.fromHex("#BE1100"),inputValidationErrorBackground:Oh.fromHex("#5A1D1D")},Wk=function(e){function t(t,n,i){var o=e.call(this)||this;o.state="idle",o._onDidChange=o._register(new N()),o.onDidChange=o._onDidChange.event,o._onDidHeightChange=o._register(new N()),o.contextViewProvider=n,o.options=i||Object.create(null),Ie(o.options,Fk,!1),o.message=null,o.cachedHeight=null,o.placeholder=o.options.placeholder||"",o.ariaLabel=o.options.ariaLabel||"",o.inputBackground=o.options.inputBackground,o.inputForeground=o.options.inputForeground,o.inputBorder=o.options.inputBorder,o.inputValidationInfoBorder=o.options.inputValidationInfoBorder,o.inputValidationInfoBackground=o.options.inputValidationInfoBackground,o.inputValidationInfoForeground=o.options.inputValidationInfoForeground,o.inputValidationWarningBorder=o.options.inputValidationWarningBorder,o.inputValidationWarningBackground=o.options.inputValidationWarningBackground,o.inputValidationWarningForeground=o.options.inputValidationWarningForeground,o.inputValidationErrorBorder=o.options.inputValidationErrorBorder,o.inputValidationErrorBackground=o.options.inputValidationErrorBackground,o.inputValidationErrorForeground=o.options.inputValidationErrorForeground,o.options.validationOptions&&(o.validation=o.options.validationOptions.validation),o.element=Vi(t,Pk(".monaco-inputbox.idle"));var r=o.options.flexibleHeight?"textarea":"input",s=Vi(o.element,Pk(".wrapper"));return o.input=Vi(s,Pk(r+".input")),o.input.setAttribute("autocorrect","off"),o.input.setAttribute("autocapitalize","off"),o.input.setAttribute("spellcheck","false"),o.onfocus(o.input,function(){return Xn(o.element,"synthetic-focus");}),o.onblur(o.input,function(){return Qn(o.element,"synthetic-focus");}),o.options.flexibleHeight?o.mirror=Vi(s,Pk("div.mirror")):(o.input.type=o.options.type||"text",o.input.setAttribute("wrap","off")),o.ariaLabel&&o.input.setAttribute("aria-label",o.ariaLabel),o.placeholder&&o.setPlaceHolder(o.placeholder),o.oninput(o.input,function(){return o.onValueChange();}),o.onblur(o.input,function(){return o.onBlur();}),o.onfocus(o.input,function(){return o.onFocus();}),o.placeholder&&vn&&o.onclick(o.input,function(e){Fi.stop(e,!0),o.input.focus();}),setTimeout(function(){o.input&&o.updateMirror();},0),o.options.actions&&(o.actionbar=o._register(new mC(o.element)),o.actionbar.push(o.options.actions,{icon:!0,label:!1})),o.applyStyles(),o;}return Mk(t,e),t.prototype.onBlur=function(){this._hideMessage();},t.prototype.onFocus=function(){this._showMessage();},t.prototype.setPlaceHolder=function(e){this.input&&(this.input.setAttribute("placeholder",e),this.input.title=e);},t.prototype.setAriaLabel=function(e){this.ariaLabel=e,this.input&&(e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label"));},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value;},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange());},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input.focus();},t.prototype.blur=function(){this.input.blur();},t.prototype.hasFocus=function(){return document.activeElement===this.input;},t.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end);},t.prototype.enable=function(){this.input.removeAttribute("disabled");},t.prototype.disable=function(){this.input.disabled=!0,this._hideMessage();},t.prototype.setEnabled=function(e){e?this.enable():this.disable();},Object.defineProperty(t.prototype,"width",{get:function(){return Li(this.input);},set:function(e){this.input.style.width=e+"px";},enumerable:!0,configurable:!0}),t.prototype.showMessage=function(e,t){this.message=e,Qn(this.element,"idle"),Qn(this.element,"info"),Qn(this.element,"warning"),Qn(this.element,"error"),Xn(this.element,this.classForType(e.type));var n=this.stylesForType(this.message.type);this.element.style.border=n.border?"1px solid "+n.border:null,Rc(3===e.type?ie("alertErrorMessage","Error: {0}",e.content):2===e.type?ie("alertWarningMessage","Warning: {0}",e.content):ie("alertInfoMessage","Info: {0}",e.content)),(this.hasFocus()||t)&&this._showMessage();},t.prototype.hideMessage=function(){this.message=null,Qn(this.element,"info"),Qn(this.element,"warning"),Qn(this.element,"error"),Xn(this.element,"idle"),this._hideMessage(),this.applyStyles();},t.prototype.validate=function(){var e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e;},t.prototype.stylesForType=function(e){switch(e){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};}},t.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error";}},t.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=Li(e.element)+"px";};this.state="open",this.contextViewProvider.showContextView({getAnchor:function(){return e.element;},anchorAlignment:1,render:function(i){t=Vi(i,Pk(".monaco-inputbox-container")),n();var o={inline:!0,className:"monaco-inputbox-message"},r=e.message.formatContent?Ok(e.message.content,o):function(e,t){void 0===t&&(t={});var n=kk(t);return n.textContent=e,n;}(e.message.content,o);Xn(r,e.classForType(e.message.type));var s=e.stylesForType(e.message.type);return r.style.backgroundColor=s.background?s.background.toString():null,r.style.color=s.foreground?s.foreground.toString():null,r.style.border=s.border?"1px solid "+s.border:null,Vi(t,r),null;},layout:n});}},t.prototype._hideMessage=function(){this.contextViewProvider&&"open"===this.state&&(this.state="idle",this.contextViewProvider.hideContextView());},t.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),"open"===this.state&&this.contextViewProvider.layout();},t.prototype.updateMirror=function(){if(this.mirror){var e=this.value||this.placeholder,t=10===e.charCodeAt(e.length-1)?" ":"";this.mirror.textContent=e+t,this.layout();}},t.prototype.style=function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles();},t.prototype.applyStyles=function(){if(this.element){var e=this.inputBackground?this.inputBackground.toString():null,t=this.inputForeground?this.inputForeground.toString():null,n=this.inputBorder?this.inputBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n;}},t.prototype.layout=function(){if(this.mirror){var e=this.cachedHeight;this.cachedHeight=Ni(this.mirror),e!==this.cachedHeight&&(this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedHeight));}},t.prototype.dispose=function(){this._hideMessage(),this.element=null,this.input=null,this.contextViewProvider=null,this.message=null,this.placeholder=null,this.ariaLabel=null,this.validation=null,this.state=null,this.actionbar=null,e.prototype.dispose.call(this);},t;}(yv),Bk=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.history=new Ak(i.history,100),o;}return Mk(t,e),t.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value);},t.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,Ac(this.value));},t.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,Ac(this.value));},t.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e;},t.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first();},t.prototype.getNextValue=function(){return this.history.next()||this.history.last();},t;}(Wk),Vk=(n("./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInput.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),Hk=ie("defaultLabel","input"),Uk=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._showOptionButtons=i,r.fixFocusOnOptionClickEnabled=!0,r._onDidOptionChange=r._register(new N()),r.onDidOptionChange=r._onDidOptionChange.event,r._onKeyDown=r._register(new N()),r.onKeyDown=r._onKeyDown.event,r._onMouseDown=r._register(new N()),r.onMouseDown=r._onMouseDown.event,r._onInput=r._register(new N()),r._onKeyUp=r._register(new N()),r._onCaseSensitiveKeyDown=r._register(new N()),r.onCaseSensitiveKeyDown=r._onCaseSensitiveKeyDown.event,r._onRegexKeyDown=r._register(new N()),r._lastHighlightFindOptions=0,r.contextViewProvider=n,r.width=o.width||100,r.placeholder=o.placeholder||"",r.validation=o.validation,r.label=o.label||Hk,r.inputActiveOptionBorder=o.inputActiveOptionBorder,r.inputBackground=o.inputBackground,r.inputForeground=o.inputForeground,r.inputBorder=o.inputBorder,r.inputValidationInfoBorder=o.inputValidationInfoBorder,r.inputValidationInfoBackground=o.inputValidationInfoBackground,r.inputValidationInfoForeground=o.inputValidationInfoForeground,r.inputValidationWarningBorder=o.inputValidationWarningBorder,r.inputValidationWarningBackground=o.inputValidationWarningBackground,r.inputValidationWarningForeground=o.inputValidationWarningForeground,r.inputValidationErrorBorder=o.inputValidationErrorBorder,r.inputValidationErrorBackground=o.inputValidationErrorBackground,r.inputValidationErrorForeground=o.inputValidationErrorForeground,r.regex=null,r.wholeWords=null,r.caseSensitive=null,r.domNode=null,r.inputBox=null,r.buildDomNode(o.appendCaseSensitiveLabel||"",o.appendWholeWordsLabel||"",o.appendRegexLabel||"",o.history),Boolean(t)&&t.appendChild(r.domNode),r.onkeydown(r.inputBox.inputElement,function(e){return r._onKeyDown.fire(e);}),r.onkeyup(r.inputBox.inputElement,function(e){return r._onKeyUp.fire(e);}),r.oninput(r.inputBox.inputElement,function(e){return r._onInput.fire();}),r.onmousedown(r.inputBox.inputElement,function(e){return r._onMouseDown.fire(e);}),r;}return Vk(t,e),t.prototype.enable=function(){Qn(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable();},t.prototype.disable=function(){Xn(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable();},t.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e;},t.prototype.setEnabled=function(e){e?this.enable():this.disable();},t.prototype.getValue=function(){return this.inputBox.value;},t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e);},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles();},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);var t={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(t);}},t.prototype.select=function(){this.inputBox.select();},t.prototype.focus=function(){this.inputBox.focus();},t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked;},t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e,this.setInputWidth();},t.prototype.getWholeWords=function(){return this.wholeWords.checked;},t.prototype.setWholeWords=function(e){this.wholeWords.checked=e,this.setInputWidth();},t.prototype.getRegex=function(){return this.regex.checked;},t.prototype.setRegex=function(e){this.regex.checked=e,this.setInputWidth(),this.validate();},t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus();},t.prototype.highlightFindOptions=function(){Qn(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,Xn(this.domNode,"highlight-"+this._lastHighlightFindOptions);},t.prototype.setInputWidth=function(){var e=this.width-this.caseSensitive.width()-this.wholeWords.width()-this.regex.width();this.inputBox.width=e;},t.prototype.buildDomNode=function(e,t,n,i){var o=this;this.domNode=document.createElement("div"),this.domNode.style.width=this.width+"px",Xn(this.domNode,"monaco-findInput"),this.inputBox=this._register(new Bk(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation||null},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,history:i})),this.regex=this._register(new wk({appendTitle:n,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.regex.onChange(function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.setInputWidth(),o.validate();})),this._register(this.regex.onKeyDown(function(e){o._onRegexKeyDown.fire(e);})),this.wholeWords=this._register(new Ck({appendTitle:t,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.wholeWords.onChange(function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.setInputWidth(),o.validate();})),this.caseSensitive=this._register(new bk({appendTitle:e,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.caseSensitive.onChange(function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.setInputWidth(),o.validate();})),this._register(this.caseSensitive.onKeyDown(function(e){o._onCaseSensitiveKeyDown.fire(e);}));var r=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=r.indexOf(document.activeElement);if(t>=0){var n=void 0;e.equals(17)?n=(t+1)%r.length:e.equals(15)&&(n=0===t?r.length-1:t-1),e.equals(9)?r[t].blur():n>=0&&r[n].focus(),Fi.stop(e,!0);}}}),this.setInputWidth();var s=document.createElement("div");s.className="controls",s.style.display=this._showOptionButtons?"block":"none",s.appendChild(this.caseSensitive.domNode),s.appendChild(this.wholeWords.domNode),s.appendChild(this.regex.domNode),this.domNode.appendChild(s);},t.prototype.validate=function(){this.inputBox.validate();},t.prototype.clearMessage=function(){this.inputBox.hideMessage();},t.prototype.dispose=function(){e.prototype.dispose.call(this);},t;}(yv);function jk(e,t){return e.getContext(document.activeElement).getValue(t);}var zk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Kk=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},qk=function(e,t){return function(n,i){t(n,i,e);};},Gk="historyNavigationWidget",$k="historyNavigationEnabled";function Yk(e,t){var n=function(e,t){return e.createScoped(t.target);}(e,t);return function(e,t,n){new yl(n,t).bindTo(e);}(n,t,Gk),{scopedContextKeyService:n,historyNavigationEnablement:new yl($k,!0).bindTo(n)};}var Xk=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r._register(Yk(o,{target:r.element,historyNavigator:r}).scopedContextKeyService),r;}return zk(t,e),t=Kk([qk(3,bl)],t);}(Bk),Zk=function(e){function t(t,n,i,o,r){void 0===r&&(r=!1);var s=e.call(this,t,n,r,i)||this;return s._register(Yk(o,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s;}return zk(t,e),t=Kk([qk(3,bl)],t);}(Uk);Yl.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:dl.and(new pl(Gk),new fl($k,!0)),primary:16,secondary:[528],handler:function(e,t){jk(e.get(bl),Gk).historyNavigator.showPreviousValue();}}),Yl.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:new vl([new pl(Gk),new fl($k,!0)]),primary:18,secondary:[530],handler:function(e,t){jk(e.get(bl),Gk).historyNavigator.showNextValue();}});var Qk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),Jk=ie("label.find","Find"),eO=ie("placeholder.find","Find"),tO=ie("label.previousMatchButton","Previous match"),nO=ie("label.nextMatchButton","Next match"),iO=ie("label.toggleSelectionFind","Find in selection"),oO=ie("label.closeButton","Close"),rO=ie("label.replace","Replace"),sO=ie("placeholder.replace","Replace"),aO=ie("label.replaceButton","Replace"),uO=ie("label.replaceAllButton","Replace All"),lO=ie("label.toggleReplaceButton","Toggle Replace mode"),cO=ie("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",19999),dO=ie("label.matchesLocation","{0} of {1}"),hO=ie("label.noResults","No Results"),pO=69,fO=17+(pO+3+1)+92+2,gO=34,mO=function(){return function(e){this.afterLineNumber=e,this.heightInPx=gO,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone";};}(),_O=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this)||this;return u._codeEditor=t,u._controller=n,u._state=i,u._contextViewProvider=o,u._keybindingService=r,u._contextKeyService=s,u._isVisible=!1,u._isReplaceVisible=!1,u._ignoreChangeEvent=!1,u._updateHistoryDelayer=new G(500),u._register(m(function(){return u._updateHistoryDelayer.cancel();})),u._register(u._state.onFindReplaceStateChange(function(e){return u._onStateChanged(e);})),u._buildDomNode(),u._updateButtons(),u._tryUpdateWidgetWidth(),u._register(u._codeEditor.onDidChangeConfiguration(function(e){e.readOnly&&(u._codeEditor.getConfiguration().readOnly&&u._state.change({isReplaceRevealed:!1},!1),u._updateButtons()),e.layoutInfo&&u._tryUpdateWidgetWidth(),e.accessibilitySupport&&u.updateAccessibilitySupport();})),u.updateAccessibilitySupport(),u._register(u._codeEditor.onDidChangeCursorSelection(function(){u._isVisible&&u._updateToggleSelectionFindButton();})),u._register(u._codeEditor.onDidFocusEditorWidget(function(){if(u._isVisible){var e=u._controller.getGlobalBufferTerm();e&&e!==u._state.searchString&&(u._state.change({searchString:e},!0),u._findInput.select());}})),u._findInputFocused=rk.bindTo(s),u._findFocusTracker=u._register(Bi(u._findInput.inputBox.inputElement)),u._register(u._findFocusTracker.onDidFocus(function(){u._findInputFocused.set(!0),u._updateSearchScope();})),u._register(u._findFocusTracker.onDidBlur(function(){u._findInputFocused.set(!1);})),u._replaceInputFocused=sk.bindTo(s),u._replaceFocusTracker=u._register(Bi(u._replaceInputBox.inputElement)),u._register(u._replaceFocusTracker.onDidFocus(function(){u._replaceInputFocused.set(!0),u._updateSearchScope();})),u._register(u._replaceFocusTracker.onDidBlur(function(){u._replaceInputFocused.set(!1);})),u._codeEditor.addOverlayWidget(u),u._viewZone=new mO(0),u._applyTheme(a.getTheme()),u._register(a.onThemeChange(u._applyTheme.bind(u))),u._register(u._codeEditor.onDidChangeModel(function(){u._isVisible&&void 0!==u._viewZoneId&&u._codeEditor.changeViewZones(function(e){e.removeZone(u._viewZoneId),u._viewZoneId=void 0;});})),u._register(u._codeEditor.onDidScrollChange(function(e){e.scrollTopChanged?u._layoutViewZone():setTimeout(function(){u._layoutViewZone();},0);})),u;}return Qk(t,e),t.prototype.getId=function(){return t.ID;},t.prototype.getDomNode=function(){return this._domNode;},t.prototype.getPosition=function(){return this._isVisible?{preference:0}:null;},t.prototype._onStateChanged=function(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString);}finally{this._ignoreChangeEvent=!1;}this._updateButtons();}if(e.replaceString&&(this._replaceInputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getConfiguration().readOnly||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInputBox.width=this._findInput.inputBox.width,this._updateButtons()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){var t=this._state.searchString.length>0&&0===this._state.matchesCount;ei(this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons();}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory();},t.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this));},t.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInputBox.addToHistory();},t.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=pO+"px",this._state.matchesCount>=19999?this._matchesCount.title=cO:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=19999&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=to(dO,n,t);}else e=hO;this._matchesCount.appendChild(document.createTextNode(e)),pO=Math.max(pO,this._matchesCount.clientWidth);},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._toggleSelectionFind.setEnabled(this._isVisible&&(n||t));},t.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInputBox.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t),this._nextBtn.setEnabled(this._isVisible&&e&&t),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),ei(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getConfiguration().readOnly;this._toggleReplaceBtn.setEnabled(this._isVisible&&n);},t.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();!!t&&(t.startLineNumber!==t.endLineNumber||t.startColumn!==t.endColumn)&&this._codeEditor.getConfiguration().contribInfo.find.autoFindInSelection?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){Xn(e._domNode,"visible"),e._domNode.setAttribute("aria-hidden","false");},0),setTimeout(function(){e._findInput.validate();},200),this._codeEditor.layoutOverlayWidget(this);var n=!0;if(this._codeEditor.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&t){var i=xi(this._codeEditor.getDomNode()),o=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),r=i.left+o.left;if(o.top<this._viewZone.heightInPx){t.endLineNumber>t.startLineNumber&&(n=!1);var s=Si(this._domNode).left;r>s&&(n=!1);var a=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition());i.left+a.left>s&&(n=!1);}}this._showViewZone(n);}},t.prototype._hide=function(e){var t=this;this._isVisible&&(this._isVisible=!1,this._updateButtons(),Qn(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._codeEditor.changeViewZones(function(e){void 0!==t._viewZoneId&&(e.removeZone(t._viewZoneId),t._viewZoneId=void 0,t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()-t._viewZone.heightInPx));}));},t.prototype._layoutViewZone=function(){var e=this;this._isVisible&&void 0===this._viewZoneId&&this._codeEditor.changeViewZones(function(t){e._state.isReplaceRevealed?e._viewZone.heightInPx=64:e._viewZone.heightInPx=gO,e._viewZoneId=t.addZone(e._viewZone),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+e._viewZone.heightInPx);});},t.prototype._showViewZone=function(e){var t=this;void 0===e&&(e=!0),this._isVisible&&this._codeEditor.changeViewZones(function(n){var i=gO;void 0!==t._viewZoneId?(t._state.isReplaceRevealed?(t._viewZone.heightInPx=64,i=64-gO):(t._viewZone.heightInPx=gO,i=gO-64),n.removeZone(t._viewZoneId)):t._viewZone.heightInPx=gO,t._viewZoneId=n.addZone(t._viewZone),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+i);});},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(qh),inputBackground:e.getColor(jh),inputForeground:e.getColor(zh),inputBorder:e.getColor(Kh),inputValidationInfoBackground:e.getColor(Gh),inputValidationInfoForeground:e.getColor($h),inputValidationInfoBorder:e.getColor(Yh),inputValidationWarningBackground:e.getColor(Xh),inputValidationWarningForeground:e.getColor(Zh),inputValidationWarningBorder:e.getColor(Qh),inputValidationErrorBackground:e.getColor(Jh),inputValidationErrorForeground:e.getColor(ep),inputValidationErrorBorder:e.getColor(tp)};this._findInput.style(t),this._replaceInputBox.style(t);},t.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible){var e=this._codeEditor.getConfiguration().layoutInfo.width,t=this._codeEditor.getConfiguration().layoutInfo.minimapWidth,n=!1,i=!1,o=!1;if(this._resized)if(Li(this._domNode)>411)return this._domNode.style.maxWidth=e-28-t-15+"px",void(this._replaceInputBox.inputElement.style.width=Li(this._findInput.inputBox.inputElement)+"px");if(439+t>=e&&(i=!0),439+t-pO>=e&&(o=!0),439+t-pO>=e+50&&(n=!0),ei(this._domNode,"collapsed-find-widget",n),ei(this._domNode,"narrow-find-widget",o),ei(this._domNode,"reduced-find-widget",i),o||n||(this._domNode.style.maxWidth=e-28-t-15+"px"),this._resized){var r=Li(this._findInput.inputBox.inputElement);r>0&&(this._replaceInputBox.inputElement.style.width=r+"px");}}},t.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus();},t.prototype.focusReplaceInput=function(){this._replaceInputBox.select(),this._replaceInputBox.focus();},t.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions();},t.prototype._updateSearchScope=function(){if(this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));var t=this._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(Jt.equalsRange(e,t)||this._state.change({searchScope:e},!0));}},t.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation();},t.prototype._onFindInputKeyDown=function(e){return e.equals(3)?(this._codeEditor.getAction(dk.NextMatchFindAction).run().then(null,a),void e.preventDefault()):e.equals(1027)?(this._codeEditor.getAction(dk.PreviousMatchFindAction).run().then(null,a),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInputBox.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0;},t.prototype._onReplaceInputKeyDown=function(e){return e.equals(3)?(this._controller.replace(),void e.preventDefault()):e.equals(2051)?(this._controller.replaceAll(),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0;},t.prototype.getHorizontalSashTop=function(e){return 0;},t.prototype.getHorizontalSashLeft=function(e){return 0;},t.prototype.getHorizontalSashWidth=function(e){return 500;},t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":"";},t.prototype._buildFindPart=function(){var e=this;this._findInput=this._register(new Zk(null,this._contextViewProvider,{width:221,label:Jk,placeholder:eO,appendCaseSensitiveLabel:this._keybindingLabelFor(dk.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(dk.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(dk.ToggleRegexCommand),validation:function(t){if(0===t.length)return null;if(!e._findInput.getRegex())return null;try{return new RegExp(t),null;}catch(e){return{content:e.message};}}},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(t){return e._onFindInputKeyDown(t);})),this._register(this._findInput.inputBox.onDidChange(function(){e._ignoreChangeEvent||e._state.change({searchString:e._findInput.getValue()},!0);})),this._register(this._findInput.onDidOptionChange(function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0);})),this._register(this._findInput.onCaseSensitiveKeyDown(function(t){t.equals(1026)&&e._isReplaceVisible&&(e._replaceInputBox.focus(),t.preventDefault());})),o.c&&this._register(this._findInput.onMouseDown(function(t){return e._onFindInputMouseDown(t);})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new yO({label:tO+this._keybindingLabelFor(dk.PreviousMatchFindAction),className:"previous",onTrigger:function(){e._codeEditor.getAction(dk.PreviousMatchFindAction).run().then(null,a);}})),this._nextBtn=this._register(new yO({label:nO+this._keybindingLabelFor(dk.NextMatchFindAction),className:"next",onTrigger:function(){e._codeEditor.getAction(dk.NextMatchFindAction).run().then(null,a);}}));var t=document.createElement("div");return t.className="find-part",t.appendChild(this._findInput.domNode),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new vO({parent:t,title:iO+this._keybindingLabelFor(dk.ToggleSearchScopeCommand),onChange:function(){if(e._toggleSelectionFind.checked){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()||e._state.change({searchScope:t},!0);}else e._state.change({searchScope:null},!0);}})),this._closeBtn=this._register(new yO({label:oO+this._keybindingLabelFor(dk.CloseFindWidgetCommand),className:"close-fw",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1);},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault());}})),t.appendChild(this._closeBtn.domNode),t;},t.prototype._buildReplacePart=function(){var e=this,t=document.createElement("div");t.className="replace-input",t.style.width="221px",this._replaceInputBox=this._register(new Xk(t,null,{ariaLabel:rO,placeholder:sO,history:[]},this._contextKeyService)),this._register(ii(this._replaceInputBox.inputElement,"keydown",function(t){return e._onReplaceInputKeyDown(t);})),this._register(this._replaceInputBox.onDidChange(function(){e._state.change({replaceString:e._replaceInputBox.value},!1);})),this._replaceBtn=this._register(new yO({label:aO+this._keybindingLabelFor(dk.ReplaceOneAction),className:"replace",onTrigger:function(){e._controller.replace();},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault());}})),this._replaceAllBtn=this._register(new yO({label:uO+this._keybindingLabelFor(dk.ReplaceAllAction),className:"replace-all",onTrigger:function(){e._controller.replaceAll();}}));var n=document.createElement("div");return n.className="replace-part",n.appendChild(t),n.appendChild(this._replaceBtn.domNode),n.appendChild(this._replaceAllBtn.domNode),n;},t.prototype._buildDomNode=function(){var e=this,t=this._buildFindPart(),n=this._buildReplacePart();this._toggleReplaceBtn=this._register(new yO({label:lO,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInputBox.width=e._findInput.inputBox.width),e._showViewZone();}})),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!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="411px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(n),this._buildSash();},t.prototype._buildSash=function(){var e=this;this._resizeSash=new uC(this._domNode,this,{orientation:0}),this._resized=!1;var t=411;this._register(this._resizeSash.onDidStart(function(){t=Li(e._domNode);})),this._register(this._resizeSash.onDidChange(function(n){e._resized=!0;var i=t+n.startX-n.currentX;if(!(i<411)){var o=i-fO;i>(parseFloat(vi(e._domNode).maxWidth)||0)||(e._domNode.style.width=i+"px",e._isReplaceVisible&&(e._replaceInputBox.width=o));}}));},t.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getConfiguration().accessibilitySupport;this._findInput.setFocusInputOnOptionClick(2!==e);},t.ID="editor.contrib.findWidget",t;}(yv),vO=function(e){function t(n){var i=e.call(this)||this;return i._opts=n,i._domNode=document.createElement("div"),i._domNode.className="monaco-checkbox",i._domNode.title=i._opts.title,i._domNode.tabIndex=0,i._checkbox=document.createElement("input"),i._checkbox.type="checkbox",i._checkbox.className="checkbox",i._checkbox.id="checkbox-"+t._COUNTER++,i._checkbox.tabIndex=-1,i._label=document.createElement("label"),i._label.className="label",i._label.htmlFor=i._checkbox.id,i._label.tabIndex=-1,i._domNode.appendChild(i._checkbox),i._domNode.appendChild(i._label),i._opts.parent.appendChild(i._domNode),i.onchange(i._checkbox,function(){i._opts.onChange();}),i;}return Qk(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checkbox.checked;},set:function(e){this._checkbox.checked=e;},enumerable:!0,configurable:!0}),t.prototype.enable=function(){this._checkbox.removeAttribute("disabled");},t.prototype.disable=function(){this._checkbox.disabled=!0;},t.prototype.setEnabled=function(e){e?(this.enable(),this.domNode.tabIndex=0):(this.disable(),this.domNode.tabIndex=-1);},t._COUNTER=0,t;}(yv),yO=function(e){function t(t){var n=e.call(this)||this;return n._opts=t,n._domNode=document.createElement("div"),n._domNode.title=n._opts.label,n._domNode.tabIndex=0,n._domNode.className="button "+n._opts.className,n._domNode.setAttribute("role","button"),n._domNode.setAttribute("aria-label",n._opts.label),n.onclick(n._domNode,function(e){n._opts.onTrigger(),e.preventDefault();}),n.onkeydown(n._domNode,function(e){if(e.equals(10)||e.equals(3))return n._opts.onTrigger(),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e);}),n;}return Qk(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode;},enumerable:!0,configurable:!0}),t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0;},t.prototype.focus=function(){this._domNode.focus();},t.prototype.setEnabled=function(e){ei(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1;},t.prototype.setExpanded=function(e){this._domNode.setAttribute("aria-expanded",String(!!e));},t.prototype.toggleClass=function(e,t){ei(this._domNode,e,t);},t;}(yv);Vd(function(e,t){var n=function(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }");};n(".findMatch",e.getColor(Up)),n(".currentFindMatch",e.getColor(Hp)),n(".findScope",e.getColor(jp)),n(".find-widget",e.getColor(Rp));var i=e.getColor(Uh);i&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(Kp);o&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+o+"; box-sizing: border-box; }");var r=e.getColor(zp);r&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+r+"; padding: 1px; box-sizing: border-box; }");var s=e.getColor(qp);s&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; }");var a=e.getColor(Wh);a&&t.addRule(".monaco-editor .find-widget { border: 2px solid "+a+"; }");var u=e.getColor(Ph);u&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+u+"; }");var l=e.getColor(Mp);if(l)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+l+"; width: 3px !important; margin-left: -4px;}");else{var c=e.getColor(Ap);c&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+c+"; width: 3px !important; margin-left: -4px;}");}var d=e.getColor(qh);d&&t.addRule(".monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { border: 1px solid "+d.toString()+"; }");});var bO=dn("clipboardService"),CO=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),wO=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},SO=function(e,t){return function(n,i){t(n,i,e);};},xO=524288;function EO(e){var t=e.getSelection();if(t.startLineNumber===t.endLineNumber)if(t.isEmpty()){var n=e.getModel().getWordAtPosition(t.getStartPosition());if(n)return n.word;}else if(e.getModel().getValueLengthInRange(t)<xO)return e.getModel().getValueInRange(t);return null;}var LO=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._editor=t,r._findWidgetVisible=ok.bindTo(n),r._contextKeyService=n,r._storageService=i,r._clipboardService=o,r._updateHistoryDelayer=new G(500),r._state=r._register(new Lk()),r.loadQueryState(),r._register(r._state.onFindReplaceStateChange(function(e){return r._onStateChanged(e);})),r._model=null,r._register(r._editor.onDidChangeModel(function(){var e=r._editor.getModel()&&r._state.isRevealed;r.disposeModel(),r._state.change({searchScope:null,matchCase:r._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:r._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:r._storageService.getBoolean("editor.isRegex",1,!1)},!1),e&&r._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1});})),r;}return CO(t,e),t.get=function(e){return e.getContribution(t.ID);},t.prototype.dispose=function(){this.disposeModel(),e.prototype.dispose.call(this);},t.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null);},t.prototype.getId=function(){return t.ID;},t.prototype._onStateChanged=function(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString);},t.prototype.saveQueryState=function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1);},t.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)},!1);},t.prototype.isFindInputFocused=function(){return rk.getValue(this._contextKeyService);},t.prototype.getState=function(){return this._state;},t.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus();},t.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions();},t.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions();},t.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions();},t.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else{var e=this._editor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()||this._state.change({searchScope:e},!0);}},t.prototype.setSearchString=function(e){this._state.isRegex&&(e=io(e)),this._state.change({searchString:e},!1);},t.prototype.highlightFindOptions=function(){},t.prototype._start=function(e){if(this.disposeModel(),this._editor.getModel()){var t,n={isRevealed:!0};if(e.seedSearchStringFromSelection)(t=EO(this._editor))&&(this._state.isRegex?n.searchString=io(t):n.searchString=t);if(!n.searchString&&e.seedSearchStringFromGlobalClipboard)(t=this.getGlobalBufferTerm())&&(n.searchString=t);if(e.forceRevealReplace?n.isReplaceRevealed=!0:this._findWidgetVisible.get()||(n.isReplaceRevealed=!1),e.updateSearchScope){var i=this._editor.getSelection();i.isEmpty()||(n.searchScope=i);}this._state.change(n,!1),this._model||(this._model=new hk(this._editor,this._state));}},t.prototype.start=function(e){this._start(e);},t.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0);},t.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0);},t.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0);},t.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0);},t.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0);},t.prototype.getGlobalBufferTerm=function(){return this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():"";},t.prototype.setGlobalBufferTerm=function(e){this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e);},t.ID="editor.contrib.findController",t=wO([SO(1,bl),SO(2,vE),SO(3,bO)],t);}(y),TO=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this,t,i,s,a)||this;return u._contextViewService=n,u._keybindingService=o,u._themeService=r,u;}return CO(t,e),t.prototype._start=function(t){this._widget||this._createFindWidget(),!this._widget.getPosition()&&this._editor.getConfiguration().contribInfo.find.autoFindInSelection&&(t.updateSearchScope=!0),e.prototype._start.call(this,t),2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput();},t.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions();},t.prototype._createFindWidget=function(){this._widget=this._register(new _O(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService)),this._findOptionsWidget=this._register(new xk(this._editor,this._state,this._keybindingService,this._themeService));},t=wO([SO(1,UC),SO(2,bl),SO(3,zC),SO(4,Rd),SO(5,vE),SO(6,hn(bO))],t);}(LO),IO=function(e){function t(){return e.call(this,{id:dk.StartFindAction,label:ie("startFindAction","Find"),alias:"Find",precondition:null,kbOpts:{kbExpr:null,primary:2084,weight:100},menubarOpts:{menuId:Il.MenubarEditMenu,group:"3_find",title:ie({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this;}return CO(t,e),t.prototype.run=function(e,t){var n=LO.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1});},t;}(Zc),NO=function(e){function t(){return e.call(this,{id:dk.StartFindWithSelection,label:ie("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:null,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this;}return CO(t,e),t.prototype.run=function(e,t){var n=LO.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString));},t;}(Zc),kO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return CO(t,e),t.prototype.run=function(e,t){var n=LO.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n));},t;}(Zc),OO=function(e){function t(){return e.call(this,{id:dk.NextMatchFindAction,label:ie("findNextMatchAction","Find Next"),alias:"Find Next",precondition:null,kbOpts:{kbExpr:A_.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this;}return CO(t,e),t.prototype._run=function(e){return e.moveToNextMatch();},t;}(kO),DO=function(e){function t(){return e.call(this,{id:dk.PreviousMatchFindAction,label:ie("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:null,kbOpts:{kbExpr:A_.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this;}return CO(t,e),t.prototype._run=function(e){return e.moveToPrevMatch();},t;}(kO),RO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return CO(t,e),t.prototype.run=function(e,t){var n=LO.get(t);if(n){var i=EO(t);i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n));}},t;}(Zc),AO=function(e){function t(){return e.call(this,{id:dk.NextSelectionMatchFindAction,label:ie("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:null,kbOpts:{kbExpr:A_.focus,primary:2109,weight:100}})||this;}return CO(t,e),t.prototype._run=function(e){return e.moveToNextMatch();},t;}(RO),MO=function(e){function t(){return e.call(this,{id:dk.PreviousSelectionMatchFindAction,label:ie("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:null,kbOpts:{kbExpr:A_.focus,primary:3133,weight:100}})||this;}return CO(t,e),t.prototype._run=function(e){return e.moveToPrevMatch();},t;}(RO),PO=function(e){function t(){return e.call(this,{id:dk.StartFindReplaceAction,label:ie("startReplace","Replace"),alias:"Replace",precondition:null,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menubarOpts:{menuId:Il.MenubarEditMenu,group:"3_find",title:ie({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this;}return CO(t,e),t.prototype.run=function(e,t){if(!t.getConfiguration().readOnly){var n=LO.get(t),i=t.getSelection(),o=n.isFindInputFocused(),r=!i.isEmpty()&&i.startLineNumber===i.endLineNumber&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&!o,s=o||r?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,shouldFocus:s,shouldAnimate:!0,updateSearchScope:!1});}},t;}(Zc);nd(TO),td(IO),td(NO),td(OO),td(DO),td(AO),td(MO),td(PO);var FO=Xc.bindToContribution(LO.get);ed(new FO({id:dk.CloseFindWidgetCommand,precondition:ok,handler:function(e){return e.closeFindWidget();},kbOpts:{weight:105,kbExpr:A_.focus,primary:9,secondary:[1033]}})),ed(new FO({id:dk.ToggleCaseSensitiveCommand,precondition:null,handler:function(e){return e.toggleCaseSensitive();},kbOpts:{weight:105,kbExpr:A_.focus,primary:ak.primary,mac:ak.mac,win:ak.win,linux:ak.linux}})),ed(new FO({id:dk.ToggleWholeWordCommand,precondition:null,handler:function(e){return e.toggleWholeWords();},kbOpts:{weight:105,kbExpr:A_.focus,primary:uk.primary,mac:uk.mac,win:uk.win,linux:uk.linux}})),ed(new FO({id:dk.ToggleRegexCommand,precondition:null,handler:function(e){return e.toggleRegex();},kbOpts:{weight:105,kbExpr:A_.focus,primary:lk.primary,mac:lk.mac,win:lk.win,linux:lk.linux}})),ed(new FO({id:dk.ToggleSearchScopeCommand,precondition:null,handler:function(e){return e.toggleSearchScope();},kbOpts:{weight:105,kbExpr:A_.focus,primary:ck.primary,mac:ck.mac,win:ck.win,linux:ck.linux}})),ed(new FO({id:dk.ReplaceOneAction,precondition:ok,handler:function(e){return e.replace();},kbOpts:{weight:105,kbExpr:A_.focus,primary:3094}})),ed(new FO({id:dk.ReplaceAllAction,precondition:ok,handler:function(e){return e.replaceAll();},kbOpts:{weight:105,kbExpr:A_.focus,primary:2563}})),ed(new FO({id:dk.SelectAllMatchesAction,precondition:ok,handler:function(e){return e.selectAllMatches();},kbOpts:{weight:105,kbExpr:A_.focus,primary:515}}));n("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/folding.css");var WO=65535,BO=function(){function e(e,t,n){if(e.length!==t.length||e.length>WO)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n;}return e.prototype.ensureParentIndices=function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var t=[],n=function(n,i){var o=t[t.length-1];return e.getStartLineNumber(o)<=n&&e.getEndLineNumber(o)>=i;},i=0,o=this._startIndexes.length;i<o;i++){var r=this._startIndexes[i],s=this._endIndexes[i];if(r>16777215||s>16777215)throw new Error("startLineNumber or endLineNumber must not exceed 16777215");for(;t.length>0&&!n(r,s);)t.pop();var a=t.length>0?t[t.length-1]:-1;t.push(i),this._startIndexes[i]=r+((255&a)<<24),this._endIndexes[i]=s+((65280&a)<<16);}}},Object.defineProperty(e.prototype,"length",{get:function(){return this._startIndexes.length;},enumerable:!0,configurable:!0}),e.prototype.getStartLineNumber=function(e){return 16777215&this._startIndexes[e];},e.prototype.getEndLineNumber=function(e){return 16777215&this._endIndexes[e];},e.prototype.getType=function(e){return this._types?this._types[e]:void 0;},e.prototype.hasTypes=function(){return!!this._types;},e.prototype.isCollapsed=function(e){var t=e/32|0,n=e%32;return 0!=(this._collapseStates[t]&1<<n);},e.prototype.setCollapsed=function(e,t){var n=e/32|0,i=e%32,o=this._collapseStates[n];this._collapseStates[n]=t?o|1<<i:o&~(1<<i);},e.prototype.toRegion=function(e){return new VO(this,e);},e.prototype.getParentIndex=function(e){this.ensureParentIndices();var t=((4278190080&this._startIndexes[e])>>>24)+((4278190080&this._endIndexes[e])>>>16);return t===WO?-1:t;},e.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t;},e.prototype.findIndex=function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;for(;t<n;){var i=Math.floor((t+n)/2);e<this.getStartLineNumber(i)?n=i:t=i+1;}return t-1;},e.prototype.findRange=function(e){var t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t);}}return-1;},e.prototype.toString=function(){for(var e=[],t=0;t<this.length;t++)e[t]="["+(this.isCollapsed(t)?"+":"-")+"] "+this.getStartLineNumber(t)+"/"+this.getEndLineNumber(t);return e.join(", ");},e;}(),VO=function(){function e(e,t){this.ranges=e,this.index=t;}return Object.defineProperty(e.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"regionIndex",{get:function(){return this.index;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index);},enumerable:!0,configurable:!0}),e.prototype.containedBy=function(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber;},e.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber;},e;}(),HO=function(){function e(e,t){this._updateEventEmitter=new N(),this._textModel=e,this._decorationProvider=t,this._regions=new BO(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1;}return Object.defineProperty(e.prototype,"regions",{get:function(){return this._regions;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textModel",{get:function(){return this._textModel;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this._isInitialized;},enumerable:!0,configurable:!0}),e.prototype.toggleCollapseState=function(e){var t=this;if(e.length){var n={};this._decorationProvider.changeDecorations(function(i){for(var o=0,r=e;o<r.length;o++){var s=r[o].regionIndex,a=t._editorDecorationIds[s];if(a&&!n[a]){n[a]=!0;var u=!t._regions.isCollapsed(s);t._regions.setCollapsed(s,u),i.changeDecorationOptions(a,t._decorationProvider.getDecorationOption(u));}}}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e});}},e.prototype.update=function(e,t){var n=this;void 0===t&&(t=[]);for(var i=[],o=function(o,r){var s=e.getStartLineNumber(o);r&&function(e,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(e<r&&r<=n)return!0;}return!1;}(s,e.getEndLineNumber(o))&&(r=!1),e.setCollapsed(o,r);var a=n._textModel.getLineMaxColumn(s),u={startLineNumber:s,startColumn:a,endLineNumber:s,endColumn:a};i.push({range:u,options:n._decorationProvider.getDecorationOption(r)});},r=0,s=function(){for(;r<n._regions.length;){var e=n._regions.isCollapsed(r);if(r++,e)return r-1;}return-1;},a=0,u=s();-1!==u&&a<e.length;){var l=this._textModel.getDecorationRange(this._editorDecorationIds[u]);if(l){var c=l.startLineNumber;if(this._textModel.getLineMaxColumn(c)===l.startColumn)for(;a<e.length;){var d=e.getStartLineNumber(a);if(!(c>=d))break;o(a,c===d),a++;}}u=s();}for(;a<e.length;)o(a,!1),a++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,i),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this});},e.prototype.getMemento=function(){for(var e=[],t=0;t<this._regions.length;t++)if(this._regions.isCollapsed(t)){var n=this._textModel.getDecorationRange(this._editorDecorationIds[t]);if(n){var i=n.startLineNumber,o=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:i,endLineNumber:o});}}if(e.length>0)return e;},e.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n],r=this.getRegionAtLine(o.startLineNumber);r&&!r.isCollapsed&&t.push(r);}this.toggleCollapseState(t);}},e.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[]);},e.prototype.getAllRegionsAtLine=function(e,t){var n=[];if(this._regions)for(var i=this._regions.findRange(e),o=1;i>=0;){var r=this._regions.toRegion(i);t&&!t(r,o)||n.push(r),o++,i=r.parentIndex;}return n;},e.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t);}return null;},e.prototype.getRegionsInside=function(e,t){var n=[],i=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length)for(var r=[],s=i,a=this._regions.length;s<a;s++){var u=this._regions.toRegion(s);if(!(this._regions.getStartLineNumber(s)<o))break;for(;r.length>0&&!u.containedBy(r[r.length-1]);)r.pop();r.push(u),t(u,r.length)&&n.push(u);}else for(s=i,a=this._regions.length;s<a;s++){u=this._regions.toRegion(s);if(!(this._regions.getStartLineNumber(s)<o))break;t&&!t(u)||n.push(u);}return n;},e;}();function UO(e,t,n,i){void 0===n&&(n=Number.MAX_VALUE);var o=[];if(i&&i.length>0)for(var r=0,s=i;r<s.length;r++){var a=s[r],u=e.getRegionAtLine(a);if(u&&(u.isCollapsed!==t&&o.push(u),n>1)){var l=e.getRegionsInside(u,function(e,i){return e.isCollapsed!==t&&i<n;});o.push.apply(o,l);}}else{l=e.getRegionsInside(null,function(e,i){return e.isCollapsed!==t&&i<n;});o.push.apply(o,l);}e.toggleCollapseState(o);}function jO(e,t,n,i){for(var o=[],r=0,s=i;r<s.length;r++){var a=s[r],u=e.getAllRegionsAtLine(a,function(e,i){return e.isCollapsed!==t&&i<=n;});o.push.apply(o,u);}e.toggleCollapseState(o);}function zO(e,t,n){for(var i=e.textModel,o=e.regions,r=[],s=o.length-1;s>=0;s--)if(n!==o.isCollapsed(s)){var a=o.getStartLineNumber(s);t.test(i.getLineContent(a))&&r.push(o.toRegion(s));}e.toggleCollapseState(r);}function KO(e,t,n){for(var i=e.regions,o=[],r=i.length-1;r>=0;r--)n!==i.isCollapsed(r)&&t===i.getType(r)&&o.push(i.toRegion(r));e.toggleCollapseState(o);}var qO=function(){function e(e){this.editor=e,this.autoHideFoldingControls=!0;}return e.prototype.getDecorationOption=function(t){return t?e.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:e.EXPANDED_VISUAL_DECORATION;},e.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t);},e.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e);},e.COLLAPSED_VISUAL_DECORATION=i_.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"folding collapsed"}),e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=i_.register({stickiness:1,linesDecorationsClassName:"folding"}),e.EXPANDED_VISUAL_DECORATION=i_.register({stickiness:1,linesDecorationsClassName:"folding alwaysShowFoldIcons"}),e;}(),GO=function(){function e(e){var t=this;this._updateEventEmitter=new N(),this._foldingModel=e,this._foldingModelListener=e.onDidChange(function(e){return t.updateHiddenRanges();}),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges();}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges;},enumerable:!0,configurable:!0}),e.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],n=0,i=0,o=Number.MAX_VALUE,r=-1,s=this._foldingModel.regions;n<s.length;n++)if(s.isCollapsed(n)){var a=s.getStartLineNumber(n)+1,u=s.getEndLineNumber(n);o<=a&&u<=r||(!e&&i<this._hiddenRanges.length&&this._hiddenRanges[i].startLineNumber===a&&this._hiddenRanges[i].endLineNumber===u?(t.push(this._hiddenRanges[i]),i++):(e=!0,t.push(new Jt(a,1,u,1))),o=a,r=u);}(e||i<this._hiddenRanges.length)&&this.applyHiddenRanges(t);},e.prototype.applyMemento=function(e){if(!Array.isArray(e)||0===e.length)return!1;for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];if(!o.startLineNumber||!o.endLineNumber)return!1;t.push(new Jt(o.startLineNumber+1,1,o.endLineNumber,1));}return this.applyHiddenRanges(t),!0;},e.prototype.getMemento=function(){return this._hiddenRanges.map(function(e){return{startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber};});},e.prototype.applyHiddenRanges=function(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e);},e.prototype.hasRanges=function(){return this._hiddenRanges.length>0;},e.prototype.isHidden=function(e){return null!==$O(this._hiddenRanges,e);},e.prototype.adjustSelections=function(e){for(var t=this,n=!1,i=this._foldingModel.textModel,o=null,r=function(e){return o&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber;}(e,o)||(o=$O(t._hiddenRanges,e)),o?o.startLineNumber-1:null;},s=0,a=e.length;s<a;s++){var u=e[s],l=r(u.startLineNumber);l&&(u=u.setStartPosition(l,i.getLineMaxColumn(l)),n=!0);var c=r(u.endLineNumber);c&&(u=u.setEndPosition(c,i.getLineMaxColumn(c)),n=!0),e[s]=u;}return n;},e.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null);},e;}();function $O(e,t){var n=function(e,t){var n=0,i=e.length;if(0===i)return 0;for(;n<i;){var o=Math.floor((n+i)/2);t(e[o])?i=o:n=o+1;}return n;}(e,function(e){return t<e.startLineNumber;})-1;return n>=0&&e[n].endLineNumber>=t?e[n]:null;}var YO=5e3,XO="indent",ZO=function(){function e(e){this.editorModel=e,this.id=XO;}return e.prototype.dispose=function(){},e.prototype.compute=function(e){var t=la.getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&!!t.offSide,i=t&&t.markers;return Promise.resolve(function(e,t,n,i){void 0===i&&(i=YO);var o=e.getOptions().tabSize,r=new QO(i),s=void 0;n&&(s=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var a=[];a.push({indent:-1,line:e.getLineCount()+1,marker:!1});for(var u=e.getLineCount();u>0;u--){var l=e.getLineContent(u),c=Jm.computeIndentLevel(l,o),d=a[a.length-1];if(-1!==c){var h=void 0;if(s&&(h=l.match(s))){if(!h[1]){a.push({indent:-2,line:u,marker:!0});continue;}for(var p=a.length-1;p>0&&!a[p].marker;)p--;if(p>0){a.length=p+1,d=a[p],r.insertFirst(u,d.line,c),d.marker=!1,d.indent=c,d.line=u;continue;}}if(d.indent>c){do{a.pop(),d=a[a.length-1];}while(d.indent>c);var f=d.line-1;f-u>=1&&r.insertFirst(u,f,c);}d.indent===c?d.line=u:a.push({indent:c,line:u,marker:!1});}else t&&!d.marker&&(d.line=u);}return r.toIndentRanges(e);}(this.editorModel,n,i));},e;}(),QO=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e;}return e.prototype.insertFirst=function(e,t,n){if(!(e>16777215||t>16777215)){var i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1);}},e.prototype.toIndentRanges=function(e){if(this._length<=this._foldingRangesLimit){for(var t=new Uint32Array(this._length),n=new Uint32Array(this._length),i=this._length-1,o=0;i>=0;i--,o++)t[o]=this._startIndexes[i],n[o]=this._endIndexes[i];return new BO(t,n);}var r=0,s=this._indentOccurrences.length;for(i=0;i<this._indentOccurrences.length;i++){var a=this._indentOccurrences[i];if(a){if(a+r>this._foldingRangesLimit){s=i;break;}r+=a;}}var u=e.getOptions().tabSize;for(t=new Uint32Array(this._foldingRangesLimit),n=new Uint32Array(this._foldingRangesLimit),i=this._length-1,o=0;i>=0;i--){var l=this._startIndexes[i],c=e.getLineContent(l),d=Jm.computeIndentLevel(c,u);(d<s||d===s&&r++<this._foldingRangesLimit)&&(t[o]=l,n[o]=this._endIndexes[i],o++);}return new BO(t,n);},e;}();var JO=5e3,eD={},tD="syntax",nD=function(){function e(e,t,n){void 0===n&&(n=JO),this.editorModel=e,this.providers=t,this.limit=n,this.id=tD;}return e.prototype.compute=function(e){var t=this;return function(e,t,n){var i=null,o=e.map(function(e,o){return Promise.resolve(e.provideFoldingRanges(t,eD,n)).then(function(e){if(!n.isCancellationRequested&&Array.isArray(e)){Array.isArray(i)||(i=[]);for(var r=t.getLineCount(),s=0,a=e;s<a.length;s++){var u=a[s];u.start>0&&u.end>u.start&&u.end<=r&&i.push({start:u.start,end:u.end,rank:o,kind:u.kind});}}},u);});return Promise.all(o).then(function(e){return i;});}(this.providers,this.editorModel,e).then(function(e){return e?oD(e,t.limit):null;});},e.prototype.dispose=function(){},e;}();var iD=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e;}return e.prototype.add=function(e,t,n,i){if(!(e>16777215||t>16777215)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=i,this._types[o]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1);}},e.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var e=new Uint32Array(this._length),t=new Uint32Array(this._length),n=0;n<this._length;n++)e[n]=this._startIndexes[n],t[n]=this._endIndexes[n];return new BO(e,t,this._types);}var i=0,o=this._nestingLevelCounts.length;for(n=0;n<this._nestingLevelCounts.length;n++){var r=this._nestingLevelCounts[n];if(r){if(r+i>this._foldingRangesLimit){o=n;break;}i+=r;}}e=new Uint32Array(this._foldingRangesLimit),t=new Uint32Array(this._foldingRangesLimit);for(var s=[],a=(n=0,0);n<this._length;n++){var u=this._nestingLevels[n];(u<o||u===o&&i++<this._foldingRangesLimit)&&(e[a]=this._startIndexes[n],t[a]=this._endIndexes[n],s[a]=this._types[n],a++);}return new BO(e,t,s);},e;}();function oD(e,t){for(var n=e.sort(function(e,t){var n=e.start-t.start;return 0===n&&(n=e.rank-t.rank),n;}),i=new iD(t),o=void 0,r=[],s=0,a=n;s<a.length;s++){var u=a[s];if(o){if(u.start>o.start)if(u.end<=o.end)r.push(o),o=u,i.add(u.start,u.end,u.kind&&u.kind.value,r.length);else{if(u.start>o.end){do{o=r.pop();}while(o&&u.start>o.end);o&&r.push(o),o=u;}i.add(u.start,u.end,u.kind&&u.kind.value,r.length);}}else o=u,i.add(u.start,u.end,u.kind&&u.kind.value,r.length);}return i.toIndentRanges();}var rD="init",sD=function(){function e(e,t,n,i){if(this.editorModel=e,this.id=rD,t.length){this.decorationIds=e.deltaDecorations([],t.map(function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}};})),this.timeout=setTimeout(n,i);}}return e.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"==typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0);},e.prototype.compute=function(e){var t=[];if(this.decorationIds)for(var n=0,i=this.decorationIds;n<i.length;n++){var o=i[n],r=this.editorModel.getDecorationRange(o);r&&t.push({start:r.startLineNumber,end:r.endLineNumber,rank:1});}return Promise.resolve(oD(t,Number.MAX_VALUE));},e;}(),aD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),uD="editor.contrib.folding",lD=function(){function e(e){var t=this;this.editor=e,this._isEnabled=this.editor.getConfiguration().contribInfo.folding,this._autoHideFoldingControls="mouseover"===this.editor.getConfiguration().contribInfo.showFoldingControls,this._useFoldingProviders="indentation"!==this.editor.getConfiguration().contribInfo.foldingStrategy,this.globalToDispose=[],this.localToDispose=[],this.foldingDecorationProvider=new qO(e),this.foldingDecorationProvider.autoHideFoldingControls=this._autoHideFoldingControls,this.globalToDispose.push(this.editor.onDidChangeModel(function(){return t.onModelChanged();})),this.globalToDispose.push(Es.onDidChange(function(){return t.onFoldingStrategyChanged();})),this.globalToDispose.push(this.editor.onDidChangeConfiguration(function(e){if(e.contribInfo){var n=t._isEnabled;t._isEnabled=t.editor.getConfiguration().contribInfo.folding,n!==t._isEnabled&&t.onModelChanged();var i=t._autoHideFoldingControls;t._autoHideFoldingControls="mouseover"===t.editor.getConfiguration().contribInfo.showFoldingControls,i!==t._autoHideFoldingControls&&(t.foldingDecorationProvider.autoHideFoldingControls=t._autoHideFoldingControls,t.onModelContentChanged());var o=t._useFoldingProviders;t._useFoldingProviders="indentation"!==t.editor.getConfiguration().contribInfo.foldingStrategy,o!==t._useFoldingProviders&&t.onFoldingStrategyChanged();}})),this.globalToDispose.push({dispose:function(){return f(t.localToDispose);}}),this.onModelChanged();}return e.get=function(e){return e.getContribution(uD);},e.prototype.getId=function(){return uD;},e.prototype.dispose=function(){this.globalToDispose=f(this.globalToDispose);},e.prototype.saveViewState=function(){var e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){var t=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n};}},e.prototype.restoreViewState=function(e){var t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&e.collapsedRegions&&e.lineCount===t.getLineCount()){e.provider!==tD&&e.provider!==rD||(this.foldingStateMemento=e);var n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){var i=this.getFoldingModel();i&&i.then(function(e){e&&e.applyMemento(n);}).then(void 0,a);}}},e.prototype.onModelChanged=function(){var e=this;this.localToDispose=f(this.localToDispose);var t=this.editor.getModel();this._isEnabled&&t&&!t.isTooLargeForTokenization()&&(this.foldingModel=new HO(t,this.foldingDecorationProvider),this.localToDispose.push(this.foldingModel),this.hiddenRangeModel=new GO(this.foldingModel),this.localToDispose.push(this.hiddenRangeModel),this.localToDispose.push(this.hiddenRangeModel.onDidChange(function(t){return e.onHiddenRangesChanges(t);})),this.updateScheduler=new G(200),this.cursorChangedScheduler=new ee(function(){return e.revealCursor();},200),this.localToDispose.push(this.cursorChangedScheduler),this.localToDispose.push(this.editor.onDidChangeModelLanguageConfiguration(function(){return e.onModelContentChanged();})),this.localToDispose.push(this.editor.onDidChangeModelContent(function(){return e.onModelContentChanged();})),this.localToDispose.push(this.editor.onDidChangeCursorPosition(function(){return e.onCursorPositionChanged();})),this.localToDispose.push(this.editor.onMouseDown(function(t){return e.onEditorMouseDown(t);})),this.localToDispose.push(this.editor.onMouseUp(function(t){return e.onEditorMouseUp(t);})),this.localToDispose.push({dispose:function(){e.foldingRegionPromise&&(e.foldingRegionPromise.cancel(),e.foldingRegionPromise=null),e.updateScheduler&&e.updateScheduler.cancel(),e.updateScheduler=null,e.foldingModel=null,e.foldingModelPromise=null,e.hiddenRangeModel=null,e.cursorChangedScheduler=null,e.foldingStateMemento=null,e.rangeProvider&&e.rangeProvider.dispose(),e.rangeProvider=null;}}),this.onModelContentChanged());},e.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged();},e.prototype.getRangeProvider=function(e){var t=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new ZO(e),this._useFoldingProviders&&this.foldingModel){var n=Es.ordered(this.foldingModel.textModel);if(0===n.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions)return this.rangeProvider=new sD(e,this.foldingStateMemento.collapsedRegions,function(){t.foldingStateMemento=null,t.onFoldingStrategyChanged();},3e4);n.length>0&&(this.rangeProvider=new nD(e,n));}return this.foldingStateMemento=null,this.rangeProvider;},e.prototype.getFoldingModel=function(){return this.foldingModelPromise;},e.prototype.onModelContentChanged=function(){var e=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){var t=e.foldingModel;if(!t)return null;var n=e.foldingRegionPromise=q(function(n){return e.getRangeProvider(t.textModel).compute(n);});return n.then(function(i){if(i&&n===e.foldingRegionPromise){var o=e.editor.getSelections(),r=o?o.map(function(e){return e.startLineNumber;}):[];t.update(i,r);}return t;});}));},e.prototype.onHiddenRangesChanges=function(e){if(this.hiddenRangeModel&&e.length){var t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t);}this.editor.setHiddenAreas(e);},e.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule();},e.prototype.revealCursor=function(){var e=this,t=this.getFoldingModel();t&&t.then(function(t){if(t){var n=e.editor.getSelections();if(n&&n.length>0){for(var i=[],o=function(n){var o=n.selectionStartLineNumber;e.hiddenRangeModel&&e.hiddenRangeModel.isHidden(o)&&i.push.apply(i,t.getAllRegionsAtLine(o,function(e){return e.isCollapsed&&o>e.startLineNumber;}));},r=0,s=n;r<s.length;r++){o(s[r]);}i.length&&(t.toggleCollapseState(i),e.reveal(n[0].getPosition()));}}}).then(void 0,a);},e.prototype.onEditorMouseDown=function(e){if(this.mouseDownInfo=null,this.hiddenRangeModel&&e.target&&e.target.range&&(e.event.leftButton||e.event.middleButton)){var t=e.target.range,n=!1;switch(e.target.type){case 4:var i=e.target.detail,o=e.target.element.offsetLeft;if(i.offsetX-o<5)return;n=!0;break;case 7:if(this.hiddenRangeModel.hasRanges())if(!e.target.detail.isAfterLines)break;return;case 6:if(this.hiddenRangeModel.hasRanges()){var r=this.editor.getModel();if(r&&t.startColumn===r.getLineMaxColumn(t.startLineNumber))break;}return;default:return;}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n};}},e.prototype.onEditorMouseUp=function(e){var t=this,n=this.getFoldingModel();if(n&&this.mouseDownInfo&&e.target){var i=this.mouseDownInfo.lineNumber,o=this.mouseDownInfo.iconClicked,r=e.target.range;if(r&&r.startLineNumber===i){if(o){if(4!==e.target.type)return;}else{var s=this.editor.getModel();if(!s||r.startColumn!==s.getLineMaxColumn(i))return;}n.then(function(n){if(n){var r=n.getRegionAtLine(i);if(r&&r.startLineNumber===i){var s=r.isCollapsed;if(o||s){var a=[r];(e.event.middleButton||e.event.shiftKey)&&a.push.apply(a,n.getRegionsInside(r,function(e){return e.isCollapsed===s;})),n.toggleCollapseState(a),t.reveal({lineNumber:i,column:1});}}}}).then(void 0,a);}}},e.prototype.reveal=function(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0);},e;}(),cD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return aD(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this,o=lD.get(t);if(o){var r=o.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then(function(e){if(e){i.invoke(o,e,t,n);var r=t.getSelection();r&&o.reveal(r.getStartPosition());}})):void 0;}},t.prototype.getSelectedLines=function(e){var t=e.getSelections();return t?t.map(function(e){return e.startLineNumber;}):[];},t.prototype.getLineNumbers=function(e,t){return e&&e.selectionLines?e.selectionLines.map(function(e){return e+1;}):this.getSelectedLines(t);},t.prototype.run=function(e,t){},t;}(Zc);function dD(e){if(!be(e)){if(!_e(e))return!1;var t=e;if(!be(t.levels)&&!ve(t.levels))return!1;if(!be(t.direction)&&!me(t.direction))return!1;if(!be(t.selectionLines)&&(n=t.selectionLines,!(Array.isArray?Array.isArray(n):n&&typeof n.length===ge.number&&n.constructor===Array)||!t.selectionLines.every(ve)))return!1;}var n;return!0;}var hD,pD=function(e){function t(){return e.call(this,{id:"editor.unfold",label:ie("unfoldAction.label","Unfold"),alias:"Unfold",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:3161,mac:{primary:2649},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:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* '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.\n\t\t\t\t\t\t",constraint:dD}]}})||this;}return aD(t,e),t.prototype.invoke=function(e,t,n,i){var o=i&&i.levels||1,r=this.getLineNumbers(i,n);i&&"up"===i.direction?jO(t,!1,o,r):UO(t,!1,o,r);},t;}(cD),fD=function(e){function t(){return e.call(this,{id:"editor.unfoldRecursively",label:ie("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2137),weight:100}})||this;}return aD(t,e),t.prototype.invoke=function(e,t,n,i){UO(t,!1,Number.MAX_VALUE,this.getSelectedLines(n));},t;}(cD),gD=function(e){function t(){return e.call(this,{id:"editor.fold",label:ie("foldAction.label","Fold"),alias:"Fold",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:3159,mac:{primary:2647},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:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold. Defaults to 1.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* '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.\n\t\t\t\t\t\t",constraint:dD}]}})||this;}return aD(t,e),t.prototype.invoke=function(e,t,n,i){var o=i&&i.levels||1,r=this.getLineNumbers(i,n);i&&"up"===i.direction?jO(t,!0,o,r):UO(t,!0,o,r);},t;}(cD),mD=function(e){function t(){return e.call(this,{id:"editor.foldRecursively",label:ie("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2135),weight:100}})||this;}return aD(t,e),t.prototype.invoke=function(e,t,n){var i=this.getSelectedLines(n);UO(t,!0,Number.MAX_VALUE,i);},t;}(cD),_D=function(e){function t(){return e.call(this,{id:"editor.foldAllBlockComments",label:ie("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2133),weight:100}})||this;}return aD(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())KO(t,as.Comment.value,!0);else{var i=n.getModel();if(!i)return;var o=la.getComments(i.getLanguageIdentifier().id);if(o&&o.blockCommentStartToken)zO(t,new RegExp("^\\s*"+io(o.blockCommentStartToken)),!0);}},t;}(cD),vD=function(e){function t(){return e.call(this,{id:"editor.foldAllMarkerRegions",label:ie("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2077),weight:100}})||this;}return aD(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())KO(t,as.Region.value,!0);else{var i=n.getModel();if(!i)return;var o=la.getFoldingRules(i.getLanguageIdentifier().id);if(o&&o.markers&&o.markers.start)zO(t,new RegExp(o.markers.start),!0);}},t;}(cD),yD=function(e){function t(){return e.call(this,{id:"editor.unfoldAllMarkerRegions",label:ie("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2078),weight:100}})||this;}return aD(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())KO(t,as.Region.value,!1);else{var i=n.getModel();if(!i)return;var o=la.getFoldingRules(i.getLanguageIdentifier().id);if(o&&o.markers&&o.markers.start)zO(t,new RegExp(o.markers.start),!1);}},t;}(cD),bD=function(e){function t(){return e.call(this,{id:"editor.foldAll",label:ie("foldAllAction.label","Fold All"),alias:"Fold All",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2069),weight:100}})||this;}return aD(t,e),t.prototype.invoke=function(e,t,n){UO(t,!0);},t;}(cD),CD=function(e){function t(){return e.call(this,{id:"editor.unfoldAll",label:ie("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2088),weight:100}})||this;}return aD(t,e),t.prototype.invoke=function(e,t,n){UO(t,!1);},t;}(cD),wD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return aD(t,e),t.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(t.ID_PREFIX.length));},t.prototype.invoke=function(e,t,n){!function(e,t,n,i){var o=e.getRegionsInside(null,function(e,o){return o===t&&e.isCollapsed!==n&&!i.some(function(t){return e.containsLine(t);});});e.toggleCollapseState(o);}(t,this.getFoldingLevel(),!0,this.getSelectedLines(n));},t.ID_PREFIX="editor.foldLevel",t.ID=function(e){return t.ID_PREFIX+e;},t;}(cD);nd(lD),td(pD),td(fD),td(gD),td(mD),td(bD),td(CD),td(_D),td(vD),td(yD);for(var SD=1;SD<=7;SD++)hD=new wD({id:wD.ID(SD),label:ie("foldLevelAction.label","Fold Level {0}",SD),alias:"Fold Level "+SD,precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2048|21+SD),weight:100}}),id.INSTANCE.registerEditorAction(hD);var xD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ED=function(e){function t(){return e.call(this,{id:"editor.action.fontZoomIn",label:ie("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:null})||this;}return xD(t,e),t.prototype.run=function(e,t){nr.setZoomLevel(nr.getZoomLevel()+1);},t;}(Zc),LD=function(e){function t(){return e.call(this,{id:"editor.action.fontZoomOut",label:ie("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:null})||this;}return xD(t,e),t.prototype.run=function(e,t){nr.setZoomLevel(nr.getZoomLevel()-1);},t;}(Zc),TD=function(e){function t(){return e.call(this,{id:"editor.action.fontZoomReset",label:ie("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:null})||this;}return xD(t,e),t.prototype.run=function(e,t){nr.setZoomLevel(0);},t;}(Zc);td(ED),td(LD),td(TD);var ID=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ND=function(e){function t(n){var i=e.call(this)||this;return i.name=t.Name,i.message=n,i;}return ID(t,e),t.Name="NOPRO",t;}(Error);function kD(e,t,n,i){var o=Cs.ordered(e);return 0===o.length?Promise.reject(new ND()):X(o.map(function(o){return function(){return Promise.resolve(o.provideDocumentRangeFormattingEdits(e,t,n,i)).then(void 0,u);};}),function(e){return!ce(e);});}function OD(e,t,n){var i=bs.ordered(e);return 0===i.length?kD(e,e.getFullModelRange(),t,n):X(i.map(function(i){return function(){return Promise.resolve(i.provideDocumentFormattingEdits(e,t,n)).then(void 0,u);};}),function(e){return!ce(e);});}function DD(e,t,n,i){var o=ws.ordered(e)[0];return o?o.autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(o.provideOnTypeFormattingEdits(e,t,n,i,B.None)).then(function(e){return e;},u):Promise.resolve(void 0);}Qc("_executeFormatRangeProvider",function(e,t){var n=t.resource,i=t.range,o=t.options;if(!(n instanceof _t&&Jt.isIRange(i)))throw p();var r=e.get(Gr).getModel(n);if(!r)throw p("resource");return kD(r,Jt.lift(i),o,B.None);}),Qc("_executeFormatDocumentProvider",function(e,t){var n=t.resource,i=t.options;if(!(n instanceof _t))throw p("resource");var o=e.get(Gr).getModel(n);if(!o)throw p("resource");return OD(o,i,B.None);}),Jc("_executeFormatOnTypeProvider",function(e,t,n){var i=n.ch,o=n.options;if("string"!=typeof i)throw p("ch");return DD(e,t,i,o);});var RD=function(){function e(){}return e._handleEolEdits=function(e,t){for(var n=void 0,i=[],o=0,r=t;o<r.length;o++){var s=r[o];"number"==typeof s.eol&&(n=s.eol),s.range&&"string"==typeof s.text&&i.push(s);}return"number"==typeof n&&e.getModel().pushEOL(n),i;},e._isFullModelReplaceEdit=function(e,t){var n=e.getModel(),i=n.validateRange(t.range);return n.getFullModelRange().equalsRange(i);},e.execute=function(t,n){t.pushUndoStop();var i=e._handleEolEdits(t,n);1===i.length&&e._isFullModelReplaceEdit(t,i[0])?t.executeEdits("formatEditsCommand",i.map(function(e){return ll.replace(Jt.lift(e.range),e.text);})):t.executeEdits("formatEditsCommand",i.map(function(e){return ll.replaceMove(Jt.lift(e.range),e.text);})),t.pushUndoStop();},e;}(),AD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),MD=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},PD=function(e,t){return function(n,i){t(n,i,e);};};function FD(e){if((e=e.filter(function(e){return e.range;})).length){for(var t=e[0].range,n=1;n<e.length;n++)t=Jt.plusRange(t,e[n].range);var i=t.startLineNumber,o=t.endLineNumber;i===o?1===e.length?Rc(ie("hint11","Made 1 formatting edit on line {0}",i)):Rc(ie("hintn1","Made {0} formatting edits on line {1}",e.length,i)):1===e.length?Rc(ie("hint1n","Made 1 formatting edit between lines {0} and {1}",i,o)):Rc(ie("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,i,o));}}var WD=function(){function e(e,t){var n=this;this.editor=e,this.workerService=t,this.callOnDispose=[],this.callOnModel=[],this.callOnDispose.push(e.onDidChangeConfiguration(function(){return n.update();})),this.callOnDispose.push(e.onDidChangeModel(function(){return n.update();})),this.callOnDispose.push(e.onDidChangeModelLanguage(function(){return n.update();})),this.callOnDispose.push(ws.onDidChange(this.update,this));}return e.prototype.update=function(){var e=this;if(this.callOnModel=f(this.callOnModel),this.editor.getConfiguration().contribInfo.formatOnType&&this.editor.getModel()){var t=this.editor.getModel(),n=ws.ordered(t)[0];if(n&&n.autoFormatTriggerCharacters){for(var i=new Ra(),o=0,r=n.autoFormatTriggerCharacters;o<r.length;o++){var s=r[o];i.add(s.charCodeAt(0));}this.callOnModel.push(this.editor.onDidType(function(t){var n=t.charCodeAt(t.length-1);i.has(n)&&e.trigger(String.fromCharCode(n));}));}}},e.prototype.trigger=function(e){var t=this;if(!(this.editor.getSelections().length>1)){var n=this.editor.getModel(),i=this.editor.getPosition(),o=!1,r=this.editor.onDidChangeModelContent(function(e){if(e.isFlush)return o=!0,void r.dispose();for(var t=0,n=e.changes.length;t<n;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return o=!0,void r.dispose();}}),s=n.getOptions();DD(n,i,e,{tabSize:s.tabSize,insertSpaces:s.insertSpaces}).then(function(e){return t.workerService.computeMoreMinimalEdits(n.uri,e);}).then(function(e){r.dispose(),o||ce(e)||(RD.execute(t.editor,e),FD(e));},function(e){throw r.dispose(),e;});}},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this.callOnDispose=f(this.callOnDispose),this.callOnModel=f(this.callOnModel);},e.ID="editor.contrib.autoFormat",e=MD([PD(1,Os)],e);}(),BD=function(){function e(e,t){var n=this;this.editor=e,this.workerService=t,this.callOnDispose=[],this.callOnModel=[],this.callOnDispose.push(e.onDidChangeConfiguration(function(){return n.update();})),this.callOnDispose.push(e.onDidChangeModel(function(){return n.update();})),this.callOnDispose.push(e.onDidChangeModelLanguage(function(){return n.update();})),this.callOnDispose.push(Cs.onDidChange(this.update,this));}return e.prototype.update=function(){var e=this;if(this.callOnModel=f(this.callOnModel),this.editor.getConfiguration().contribInfo.formatOnPaste&&this.editor.getModel()){var t=this.editor.getModel(),n=Cs.ordered(t)[0];n&&n.provideDocumentRangeFormattingEdits&&this.callOnModel.push(this.editor.onDidPaste(function(t){e.trigger(t);}));}},e.prototype.trigger=function(e){var t=this;if(!(this.editor.getSelections().length>1)){var n=this.editor.getModel(),i=n.getOptions(),o=i.tabSize,r=i.insertSpaces,s=new lC(this.editor,5);kD(n,e,{tabSize:o,insertSpaces:r},B.None).then(function(e){return t.workerService.computeMoreMinimalEdits(n.uri,e);}).then(function(e){s.validate(t.editor)&&!ce(e)&&(RD.execute(t.editor,e),FD(e));});}},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this.callOnDispose=f(this.callOnDispose),this.callOnModel=f(this.callOnModel);},e.ID="editor.contrib.formatOnPaste",e=MD([PD(1,Os)],e);}(),VD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return AD(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(Os),o=e.get(sc),r=this._getFormattingEdits(t,B.None);if(!r)return Promise.resolve(void 0);var s=new lC(t,5);return r.then(function(e){return i.computeMoreMinimalEdits(t.getModel().uri,e);}).then(function(e){s.validate(t)&&!ce(e)&&(RD.execute(t,e),FD(e),t.focus(),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));},function(e){if(!(e instanceof Error&&e.name===ND.Name))throw e;n._notifyNoProviderError(o,t.getModel().getLanguageIdentifier().language);});},t.prototype._notifyNoProviderError=function(e,t){e.info(ie("no.provider","There is no formatter for '{0}'-files installed.",t));},t;}(Zc),HD=function(e){function t(){return e.call(this,{id:"editor.action.formatDocument",label:ie("formatDocument.label","Format Document"),alias:"Format Document",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},menuOpts:{when:A_.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this;}return AD(t,e),t.prototype._getFormattingEdits=function(e,t){var n=e.getModel(),i=n.getOptions();return OD(n,{tabSize:i.tabSize,insertSpaces:i.insertSpaces},t);},t.prototype._notifyNoProviderError=function(e,t){e.info(ie("no.documentprovider","There is no document formatter for '{0}'-files installed.",t));},t;}(VD),UD=function(e){function t(){return e.call(this,{id:"editor.action.formatSelection",label:ie("formatSelection.label","Format Selection"),alias:"Format Code",precondition:dl.and(A_.writable),kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2084),weight:100},menuOpts:{when:dl.and(A_.hasDocumentSelectionFormattingProvider,A_.hasNonEmptySelection),group:"1_modification",order:1.31}})||this;}return AD(t,e),t.prototype._getFormattingEdits=function(e,t){var n=e.getModel(),i=e.getSelection();if(i.isEmpty()){var o=n.getLineMaxColumn(i.startLineNumber);i=(i=i.setStartPosition(i.startLineNumber,1)).setEndPosition(i.endLineNumber,o);}var r=n.getOptions();return kD(n,i,{tabSize:r.tabSize,insertSpaces:r.insertSpaces},t);},t.prototype._notifyNoProviderError=function(e,t){e.info(ie("no.selectionprovider","There is no selection formatter for '{0}'-files installed.",t));},t;}(VD);nd(WD),nd(BD),td(HD),td(UD),Go.registerCommand("editor.action.format",function(e){var t=e.get(pn).getFocusedCodeEditor();if(t)return new(function(e){function t(){return e.call(this,{})||this;}return AD(t,e),t.prototype._getFormattingEdits=function(e,t){var n=e.getModel(),i=e.getSelection(),o=n.getOptions(),r=o.tabSize,s=o.insertSpaces;return i.isEmpty()?OD(n,{tabSize:r,insertSpaces:s},t):kD(n,i,{tabSize:r,insertSpaces:s},t);},t;}(VD))().run(e,t);});n("./node_modules/monaco-editor/esm/vs/editor/contrib/referenceSearch/media/peekViewWidget.css");var jD,zD,KD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),qD=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},GD=function(e,t){return function(n,i){t(n,i,e);};},$D=function(e){function t(t,n,i,o,r,s,a,u,l){var c=e.call(this,t,i.getRawConfiguration(),{},o,r,s,a,u,l)||this;return c._parentEditor=i,c._overwriteOptions=n,e.prototype.updateOptions.call(c,c._overwriteOptions),c._register(i.onDidChangeConfiguration(function(e){return c._onParentConfigurationChanged(e);})),c;}return KD(t,e),t.prototype.getParentEditor=function(){return this._parentEditor;},t.prototype._onParentConfigurationChanged=function(t){e.prototype.updateOptions.call(this,this._parentEditor.getRawConfiguration()),e.prototype.updateOptions.call(this,this._overwriteOptions);},t.prototype.updateOptions=function(t){Ie(this._overwriteOptions,t,!0),e.prototype.updateOptions.call(this,this._overwriteOptions);},t=qD([GD(3,ln),GD(4,pn),GD(5,qo),GD(6,bl),GD(7,Rd),GD(8,sc)],t);}(Xb),YD=(n("./node_modules/monaco-editor/esm/vs/editor/contrib/zoneWidget/zoneWidget.css"),new Oh(new Ih(0,122,204))),XD={showArrow:!0,showFrame:!0,className:"",frameColor:YD,arrowColor:YD,keepEditorSelection:!1},ZD=function(){function e(e,t,n,i,o,r){this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this._onDomNodeTop=o,this._onComputedHeight=r;}return e.prototype.onDomNodeTop=function(e){this._onDomNodeTop(e);},e.prototype.onComputedHeight=function(e){this._onComputedHeight(e);},e;}(),QD=function(){function e(e,t){this._id=e,this._domNode=t;}return e.prototype.getId=function(){return this._id;},e.prototype.getDomNode=function(){return this._domNode;},e.prototype.getPosition=function(){return null;},e;}(),JD=function(){function e(t){this._editor=t,this._ruleName=e._IdGenerator.nextId(),this._decorations=[];}return e.prototype.dispose=function(){this.hide(),Mi(this._ruleName);},Object.defineProperty(e.prototype,"color",{set:function(e){this._color!==e&&(this._color=e,this._updateStyle());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{set:function(e){this._height!==e&&(this._height=e,this._updateStyle());},enumerable:!0,configurable:!0}),e.prototype._updateStyle=function(){var e,t,n;Mi(this._ruleName),e=".monaco-editor "+this._ruleName,t="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; ",void 0===n&&(n=Ai()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0);},e.prototype.show=function(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:Jt.fromPositions(e),options:{className:this._ruleName,stickiness:1}}]);},e.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[]);},e._IdGenerator=new Tk(".arrow-decoration-"),e;}(),eR=function(){function e(e,t){void 0===t&&(t={});var n=this;this._positionMarkerId=[],this._disposables=[],this._isShowing=!1,this.editor=e,this.options=Le(t),Ie(this.options,XD,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.push(this.editor.onDidLayoutChange(function(e){var t=n._getWidth(e);n.domNode.style.width=t+"px",n.domNode.style.left=n._getLeft(e)+"px",n._onWidth(t);}));}return e.prototype.dispose=function(){var e=this;f(this._disposables),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(t){e._viewZone&&t.removeZone(e._viewZone.id),e._viewZone=null;}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[];},e.prototype.create=function(){Xn(this.domNode,"zone-widget"),this.options.className&&Xn(this.domNode,this.options.className),this.container=document.createElement("div"),Xn(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new JD(this.editor),this._disposables.push(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles();},e.prototype.style=function(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles();},e.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e;}if(this._arrow&&this.options.arrowColor){var t=this.options.arrowColor.toString();this._arrow.color=t;}},e.prototype._getWidth=function(e){return e.width-e.minimapWidth-e.verticalScrollbarWidth;},e.prototype._getLeft=function(e){return e.minimapWidth>0&&0===e.minimapLeft?e.minimapWidth:0;},e.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px";},e.prototype._onViewZoneHeight=function(e){this.domNode.style.height=e+"px";var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n)),this._resizeSash.layout();},Object.defineProperty(e.prototype,"position",{get:function(){var e=this._positionMarkerId[0];if(e){var t=this.editor.getModel();if(t){var n=t.getDecorationRange(e);if(n)return n.getStartPosition();}}},enumerable:!0,configurable:!0}),e.prototype.show=function(e,t){var n=Jt.isIRange(e)?e:new Jt(e.lineNumber,e.column,e.lineNumber,e.column);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:i_.EMPTY}]);},e.prototype.hide=function(){var e=this;this._viewZone&&(this.editor.changeViewZones(function(t){e._viewZone&&t.removeZone(e._viewZone.id);}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide();},e.prototype._decoratingElementsHeight=function(){var e=this.editor.getConfiguration().lineHeight,t=0;this.options.showArrow&&(t+=2*Math.round(e/3));this.options.showFrame&&(t+=2*Math.round(e/9));return t;},e.prototype._showImpl=function(e,t){var n=this,i={lineNumber:e.startLineNumber,column:e.startColumn},o=this.editor.getLayoutInfo(),r=this._getWidth(o);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(o)+"px";var s=document.createElement("div");s.style.overflow="hidden";var a=this.editor.getConfiguration().lineHeight,u=this.editor.getLayoutInfo().height/a*.8;t>=u&&(t=u);var l=0,c=0;if(this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(function(e){n._viewZone&&e.removeZone(n._viewZone.id),n._overlayWidget&&(n.editor.removeOverlayWidget(n._overlayWidget),n._overlayWidget=null),n.domNode.style.top="-1000px",n._viewZone=new ZD(s,i.lineNumber,i.column,t,function(e){return n._onViewZoneTop(e);},function(e){return n._onViewZoneHeight(e);}),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new QD("vs.editor.contrib.zoneWidget"+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget);}),this.options.showFrame){var d=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px";}var h=t*a-this._decoratingElementsHeight();this.container.style.top=l+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden",this._doLayout(h,r),this.options.keepEditorSelection||this.editor.setSelection(e);var p=this.editor.getModel();if(p){var f=Math.min(p.getLineCount(),Math.max(1,e.endLineNumber+1));this.revealLine(f);}},e.prototype.revealLine=function(e){this.editor.revealLine(e,0);},e.prototype.setCssClass=function(e,t){t&&this.container.classList.remove(t),Xn(this.container,e);},e.prototype._onWidth=function(e){},e.prototype._doLayout=function(e,t){},e.prototype._relayout=function(e){var t=this;this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(function(n){t._viewZone&&(t._viewZone.heightInLines=e,n.layoutZone(t._viewZone.id));});},e.prototype._initSash=function(){var e,t=this;this._resizeSash=new uC(this.domNode,this,{orientation:1}),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.push(this._resizeSash.onDidStart(function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines});})),this._disposables.push(this._resizeSash.onDidEnd(function(){e=void 0;})),this._disposables.push(this._resizeSash.onDidChange(function(n){if(e){var i=(n.currentY-e.startY)/t.editor.getConfiguration().lineHeight,o=i<0?Math.ceil(i):Math.floor(i),r=e.heightInLines+o;r>5&&r<35&&t._relayout(r);}}));},e.prototype.getHorizontalSashLeft=function(){return 0;},e.prototype.getHorizontalSashTop=function(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2;},e.prototype.getHorizontalSashWidth=function(){var e=this.editor.getLayoutInfo();return e.width-e.minimapWidth;},e;}(),tR=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();(zD=jD||(jD={})).inPeekEditor=new yl("inReferenceSearchEditor",!0),zD.notInPeekEditor=zD.inPeekEditor.toNegated();var nR={headerBackgroundColor:Oh.white,primaryHeadingColor:Oh.fromHex("#333333"),secondaryHeadingColor:Oh.fromHex("#6c6c6cb3")},iR=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this,t,n)||this;return i._onDidClose=new N(),Ie(i.options,nR,!1),i;}return tR(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._onDidClose.fire(this);},Object.defineProperty(t.prototype,"onDidClose",{get:function(){return this._onDidClose.event;},enumerable:!0,configurable:!0}),t.prototype.style=function(t){var n=this.options;t.headerBackgroundColor&&(n.headerBackgroundColor=t.headerBackgroundColor),t.primaryHeadingColor&&(n.primaryHeadingColor=t.primaryHeadingColor),t.secondaryHeadingColor&&(n.secondaryHeadingColor=t.secondaryHeadingColor),e.prototype.style.call(this,t);},t.prototype._applyStyles=function(){e.prototype._applyStyles.call(this);var t=this.options;this._headElement&&(this._headElement.style.backgroundColor=t.headerBackgroundColor.toString()),this._primaryHeading&&(this._primaryHeading.style.color=t.primaryHeadingColor.toString()),this._secondaryHeading&&(this._secondaryHeading.style.color=t.secondaryHeadingColor.toString()),this._bodyElement&&(this._bodyElement.style.borderColor=t.frameColor.toString());},t.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=ji(".head"),this._bodyElement=ji(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement);},t.prototype._fillHead=function(e){var t=this,n=ji(".peekview-title");Vi(this._headElement,n),ii(n,"click",function(e){return t._onTitleClick(e);}),this._primaryHeading=ji("span.filename"),this._secondaryHeading=ji("span.dirname"),this._metaHeading=ji("span.meta"),Vi(n,this._primaryHeading,this._secondaryHeading,this._metaHeading);var i=ji(".peekview-actions");Vi(this._headElement,i);var o=this._getActionBarOptions();this._actionbarWidget=new mC(i,o),this._disposables.push(this._actionbarWidget),this._actionbarWidget.push(new wl("peekview.close",ie("label.close","Close"),"close-peekview-action",!0,function(){return t.dispose(),null;}),{label:!1,icon:!0});},t.prototype._getActionBarOptions=function(){return{};},t.prototype._onTitleClick=function(e){},t.prototype.setTitle=function(e,t){this._primaryHeading.innerHTML=no(e),this._primaryHeading.setAttribute("aria-label",e),t?this._secondaryHeading.innerHTML=no(t):zn(this._secondaryHeading);},t.prototype.setMetaTitle=function(e){e?this._metaHeading.innerHTML=no(e):zn(this._metaHeading);},t.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getConfiguration().lineHeight),i=e-(n+2);this._doLayoutHead(n,t),this._doLayoutBody(i,t);}},t.prototype._doLayoutHead=function(e,t){this._headElement.style.height=to("{0}px",e),this._headElement.style.lineHeight=this._headElement.style.height;},t.prototype._doLayoutBody=function(e,t){this._bodyElement.style.height=to("{0}px",e);},t;}(eR),oR=(n("./node_modules/monaco-editor/esm/vs/base/browser/ui/countBadge/countBadge.css"),{badgeBackground:Oh.fromHex("#4D4D4D"),badgeForeground:Oh.fromHex("#FFFFFF")}),rR=function(){function e(e,t){this.options=t||Object.create(null),Ie(this.options,oR,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Vi(e,ji(".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(e){this.count=e,this.render();},e.prototype.setTitleFormat=function(e){this.titleFormat=e,this.render();},e.prototype.render=function(){this.element.textContent=to(this.countFormat,this.count),this.element.title=to(this.titleFormat,this.count),this.applyStyles();},e.prototype.style=function(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles();},e.prototype.applyStyles=function(){if(this.element){var e=this.badgeBackground?this.badgeBackground.toString():null,t=this.badgeForeground?this.badgeForeground.toString():null,n=this.badgeBorder?this.badgeBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n;}},e;}();n("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconlabel.css");function sR(e){return no(e);}var aR=function(){function e(e,t){this.supportOcticons=t,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",this.didEverRender=!1,e.appendChild(this.domNode);}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode;},enumerable:!0,configurable:!0}),e.prototype.set=function(t,n,i,o){void 0===n&&(n=[]),void 0===i&&(i=""),t||(t=""),o&&(t=e.escapeNewLines(t,n)),this.didEverRender&&this.text===t&&this.title===i&&Ne(this.highlights,n)||(Array.isArray(n)||(n=[]),this.text=t,this.title=i,this.highlights=n,this.render());},e.prototype.render=function(){zn(this.domNode);for(var e,t=[],n=0,i=0;i<this.highlights.length;i++)if((e=this.highlights[i]).end!==e.start){if(n<e.start){t.push("<span>");var o=this.text.substring(n,e.start);t.push(this.supportOcticons?sR(o):o),t.push("</span>"),n=e.end;}t.push('<span class="highlight">');var r=this.text.substring(e.start,e.end);t.push(this.supportOcticons?sR(r):r),t.push("</span>"),n=e.end;}if(n<this.text.length){t.push("<span>");r=this.text.substring(n);t.push(this.supportOcticons?sR(r):r),t.push("</span>");}this.domNode.innerHTML=t.join(""),this.domNode.title=this.title,this.didEverRender=!0;},e.prototype.dispose=function(){this.text=null,this.highlights=null;},e.escapeNewLines=function(e,t){var n=0,i=0;return e.replace(/\r\n|\r|\n/,function(e,o){i="\r\n"===e?-1:0,o+=n;for(var r=0,s=t;r<s.length;r++){var a=s[r];a.end<=o||(a.start>=o&&(a.start+=i),a.end>=o&&(a.end+=i));}return n+=i,"⏎";});},e;}(),uR=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),lR=function(){function e(e){this._element=e;}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"));},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":null);},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposed=!0;},e;}(),cR=function(e){function t(t,n){var i=e.call(this)||this;return i.domNode=i._register(new lR(Vi(t,ji(".monaco-icon-label")))),i.labelDescriptionContainer=i._register(new lR(Vi(i.domNode.element,ji(".monaco-icon-label-description-container")))),n&&n.supportHighlights?i.labelNode=i._register(new aR(Vi(i.labelDescriptionContainer.element,ji("a.label-name")),!n.donotSupportOcticons)):i.labelNode=i._register(new lR(Vi(i.labelDescriptionContainer.element,ji("a.label-name")))),n&&n.supportDescriptionHighlights?i.descriptionNodeFactory=function(){return i._register(new aR(Vi(i.labelDescriptionContainer.element,ji("span.label-description")),!n.donotSupportOcticons));}:i.descriptionNodeFactory=function(){return i._register(new lR(Vi(i.labelDescriptionContainer.element,ji("span.label-description"))));},i;}return uR(t,e),t.prototype.setValue=function(e,t,n){var i=["monaco-icon-label"];n&&(n.extraClasses&&i.push.apply(i,n.extraClasses),n.italic&&i.push("italic")),this.domNode.className=i.join(" "),this.domNode.title=n&&n.title?n.title:"",this.labelNode instanceof aR?this.labelNode.set(e||"",n?n.matches:void 0,n&&n.title?n.title:void 0,n&&n.labelEscapeNewLines):this.labelNode.textContent=e||"",(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof aR?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),n&&n.descriptionTitle?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=n&&n.descriptionTitle?n.descriptionTitle:"",this.descriptionNode.empty=!t));},t;}(y);function dR(e,t,n){if("string"==typeof e&&(e=_t.file(e)),n){var i=n.getWorkspaceFolder(e);if(i){var r=n.getWorkspace().folders.length>1,s=void 0;if(s=jo(i.uri,e,!o.c)?"":Wo(oo(e.path.substr(i.uri.path.length),Oo),!0),r){var a=i&&i.name?i.name:Ao(i.uri.fsPath);s=s?a+" • "+s:a;}return s;}}if(e.scheme!==Hi.file&&e.scheme!==Hi.untitled)return e.with({query:null,fragment:null}).toString(!0);if(pR(e.fsPath))return Wo(fR(e.fsPath),!0);var u=Wo(e.fsPath,!0);return!o.g&&t&&(u=function(e,t){if(o.g||!e||!t)return e;var n=gR.original===t?gR.normalized:void 0;n||(n=""+ro(t,Oo)+Oo,gR={original:t,normalized:n});(o.c?so(e,n):vo(e,n))&&(e="~/"+e.substr(n.length));return e;}(u,t.userHome)),u;}function hR(e){if(e){"string"==typeof e&&(e=_t.file(e));var t=Ao(e.path)||(e.scheme===Hi.file?e.fsPath:e.path);return pR(t)?fR(t):t;}}function pR(e){return!(!o.g||!e||":"!==e[1]);}function fR(e){return pR(e)?e.charAt(0).toUpperCase()+e.slice(1):e;}var gR=Object.create(null);n("./node_modules/monaco-editor/esm/vs/editor/contrib/referenceSearch/media/referencesWidget.css");var mR=function(){function e(e,t){this.parent=e,this._range=t,this._onRefChanged=new N(),this.onRefChanged=this._onRefChanged.event,this.id=Ik.nextId();}return Object.defineProperty(e.prototype,"uri",{get:function(){return this.parent.uri;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range;},set:function(e){this._range=e,this._onRefChanged.fire(this);},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){return ie("aria.oneReference","symbol in {0} on line {1} at column {2}",Ao(this.uri.fsPath),this.range.startLineNumber,this.range.startColumn);},e;}(),_R=function(){function e(e){this._modelReference=e;}return e.prototype.dispose=function(){f(this._modelReference);},e.prototype.preview=function(e,t){void 0===t&&(t=8);var n=this._modelReference.object.textEditorModel;if(n){var i=e.startLineNumber,o=e.startColumn,r=e.endLineNumber,s=e.endColumn,a=n.getWordUntilPosition({lineNumber:i,column:o-t}),u=new Jt(i,a.startColumn,i,o),l=new Jt(r,s,r,Number.MAX_VALUE);return{before:n.getValueInRange(u).replace(/^\s+/,Zi),inside:n.getValueInRange(e),after:n.getValueInRange(l).replace(/\s+$/,Zi)};}},e;}(),vR=function(){function e(e,t){this._parent=e,this._uri=t,this._children=[];}return Object.defineProperty(e.prototype,"id",{get:function(){return this._uri.toString();},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preview",{get:function(){return this._preview;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failure",{get:function(){return this._loadFailure;},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){var e=this.children.length;return 1===e?ie("aria.fileReferences.1","1 symbol in {0}, full path {1}",Ao(this.uri.fsPath),this.uri.fsPath):ie("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Ao(this.uri.fsPath),this.uri.fsPath);},e.prototype.resolve=function(e){var t=this;return this._resolved?Promise.resolve(this):Promise.resolve(e.createModelReference(this._uri).then(function(e){if(!e.object)throw e.dispose(),new Error();return t._preview=new _R(e),t._resolved=!0,t;},function(e){return t._children=[],t._resolved=!0,t._loadFailure=e,t;}));},e.prototype.dispose=function(){this._preview&&(this._preview.dispose(),this._preview=void 0);},e;}(),yR=function(){function e(t){var n,i=this;this.groups=[],this.references=[],this._onDidChangeReferenceRange=new N(),this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._disposables=[],t.sort(e._compareReferences);for(var o=0,r=t;o<r.length;o++){var s=r[o];if(n&&n.uri.toString()===s.uri.toString()||(n=new vR(this,s.uri),this.groups.push(n)),0===n.children.length||!Jt.equalsRange(s.range,n.children[n.children.length-1].range)){var a=new mR(n,s.range);this._disposables.push(a.onRefChanged(function(e){return i._onDidChangeReferenceRange.fire(e);})),this.references.push(a),n.children.push(a);}}}return Object.defineProperty(e.prototype,"empty",{get:function(){return 0===this.groups.length;},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){return this.empty?ie("aria.result.0","No results found"):1===this.references.length?ie("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?ie("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):ie("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length);},e.prototype.nextOrPreviousReference=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.length,r=n.parent.groups.length;return 1===r||t&&i+1<o||!t&&i>0?(i=t?(i+1)%o:(i+o-1)%o,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%r,n.parent.groups[i].children[0]):(i=(i+r-1)%r,n.parent.groups[i].children[n.parent.groups[i].children.length-1]));},e.prototype.nearestReference=function(e,t){var n=this.references.map(function(n,i){return{idx:i,prefixLen:yo(n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)};}).sort(function(e,t){return e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0;})[0];if(n)return this.references[n.idx];},e.prototype.dispose=function(){f(this.groups),f(this._disposables),this.groups.length=0,this._disposables.length=0;},e._compareReferences=function(e,t){var n=e.uri.toString(),i=t.uri.toString();return n<i?-1:n>i?1:Jt.compareRangesUsingStarts(e.range,t.range);},e;}(),bR=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),CR=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},wR=function(e,t){return function(n,i){t(n,i,e);};},SR=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e));}catch(e){r(e);}}function a(e){try{u(i.throw(e));}catch(e){r(e);}}function u(e){e.done?o(e.value):new n(function(t){t(e.value);}).then(s,a);}u((i=i.apply(e,t||[])).next());});},xR=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1];},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this;}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break;}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break;}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break;}o[2]&&s.ops.pop(),s.trys.pop();continue;}r=t.call(e,s);}catch(e){r=[6,e],i=0;}finally{n=o=0;}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0};}([r,a]);};}},ER=function(){function e(e,t){var n=this;this._editor=e,this._model=t,this._decorations=new Map(),this._decorationIgnoreSet=new Set(),this._callOnDispose=[],this._callOnModelChange=[],this._callOnDispose.push(this._editor.onDidChangeModel(function(){return n._onModelChanged();})),this._onModelChanged();}return e.prototype.dispose=function(){this._callOnModelChange=f(this._callOnModelChange),this._callOnDispose=f(this._callOnDispose),this.removeDecorations();},e.prototype._onModelChanged=function(){this._callOnModelChange=f(this._callOnModelChange);var e=this._editor.getModel();if(e)for(var t=0,n=this._model.groups;t<n.length;t++){var i=n[t];if(i.uri.toString()===e.uri.toString())return void this._addDecorations(i);}},e.prototype._addDecorations=function(t){var n=this;this._callOnModelChange.push(this._editor.getModel().onDidChangeDecorations(function(e){return n._onDecorationChanged();}));for(var i=[],o=[],r=0,s=t.children.length;r<s;r++){var a=t.children[r];this._decorationIgnoreSet.has(a.id)||(i.push({range:a.range,options:e.DecorationOptions}),o.push(r));}var u=this._editor.deltaDecorations([],i);for(r=0;r<u.length;r++)this._decorations.set(u[r],t.children[o[r]]);},e.prototype._onDecorationChanged=function(){var e=this,t=[];this._decorations.forEach(function(n,i){var o=e._editor.getModel().getDecorationRange(i);if(o){var r=!1;if(!Jt.equalsRange(o,n.range))Jt.spansMultipleLines(o)?r=!0:n.range.endColumn-n.range.startColumn!==o.endColumn-o.startColumn&&(r=!0),r?(e._decorationIgnoreSet.add(n.id),t.push(i)):n.range=o;}});for(var n=0,i=t.length;n<i;n++)this._decorations.delete(t[n]);this._editor.deltaDecorations(t,[]);},e.prototype.removeDecorations=function(){var e=[];this._decorations.forEach(function(t,n){e.push(n);}),this._editor.deltaDecorations(e,[]),this._decorations.clear();},e.DecorationOptions=i_.register({stickiness:1,className:"reference-decoration"}),e;}(),LR=function(){function e(e){this._textModelResolverService=e;}return e.prototype.getId=function(e,t){return t instanceof yR?"root":t instanceof vR?t.id:t instanceof mR?t.id:void 0;},e.prototype.hasChildren=function(e,t){return t instanceof yR||t instanceof vR&&!t.failure;},e.prototype.getChildren=function(e,t){return t instanceof yR?Promise.resolve(t.groups):t instanceof vR?t.resolve(this._textModelResolverService).then(function(n){return t.failure?e.refresh(t).then(function(){return n.children;}):n.children;}):Promise.resolve([]);},e.prototype.getParent=function(e,t){var n=null;return t instanceof vR?n=t.parent:t instanceof mR&&(n=t.parent),Promise.resolve(n);},e=CR([wR(0,Ds)],e);}(),TR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidFocus=new N(),t.onDidFocus=t._onDidFocus.event,t._onDidSelect=new N(),t.onDidSelect=t._onDidSelect.event,t._onDidOpenToSide=new N(),t.onDidOpenToSide=t._onDidOpenToSide.event,t;}return bR(t,e),t.prototype.onTap=function(t,n,i){if(n instanceof vR)return i.preventDefault(),i.stopPropagation(),this._expandCollapse(t,n);var o=e.prototype.onTap.call(this,t,n,i);return this._onDidFocus.fire(n),o;},t.prototype.onMouseDown=function(t,n,i){var o=2===i.detail;if(i.leftButton){if(n instanceof vR&&(this.openOnSingleClick||o||this.isClickOnTwistie(i)))return i.preventDefault(),i.stopPropagation(),this._expandCollapse(t,n);var r=e.prototype.onClick.call(this,t,n,i);return(i.ctrlKey||i.metaKey||i.altKey)&&(o||this.openOnSingleClick)?this._onDidOpenToSide.fire(n):o?this._onDidSelect.fire(n):this.openOnSingleClick&&this._onDidFocus.fire(n),r;}return!1;},t.prototype.onClick=function(t,n,i){return!i.leftButton&&e.prototype.onClick.call(this,t,n,i);},t.prototype._expandCollapse=function(e,t){return e.isExpanded(t)?e.collapse(t).then(null,a):e.expand(t).then(null,a),!0;},t.prototype.onEscape=function(e,t){return!1;},t.prototype.dispose=function(){this._onDidFocus.dispose(),this._onDidSelect.dispose(),this._onDidOpenToSide.dispose();},t;}(pE),IR=function(){function e(e,t,n){var i=this;this._uriLabel=t;var o=document.createElement("div");Xn(o,"reference-file"),e.appendChild(o),this.file=new cR(o),this.badge=new rR(Vi(o,ji(".count")));var r=function(e,t,n){return HS(t,{badgeBackground:n&&n.badgeBackground||_p,badgeForeground:n&&n.badgeForeground||vp,badgeBorder:Wh},e);}(this.badge,n);this.dispose=function(){i.file.dispose(),r.dispose();};}return e.prototype.set=function(e){var t=zo(e.uri);this.file.setValue(hR(e.uri),t?this._uriLabel.getUriLabel(t,{relative:!0}):void 0,{title:this._uriLabel.getUriLabel(e.uri)});var n=e.children.length;this.badge.setCount(n),e.failure?this.badge.setTitleFormat(ie("referencesFailre","Failed to resolve file.")):n>1?this.badge.setTitleFormat(ie("referencesCount","{0} references",n)):this.badge.setTitleFormat(ie("referenceCount","{0} reference",n));},e=CR([wR(1,fx),wR(2,Rd)],e);}(),NR=function(){function e(e){var t=document.createElement("div");this.before=document.createElement("span"),this.inside=document.createElement("span"),this.after=document.createElement("span"),Xn(this.inside,"referenceMatch"),Xn(t,"reference"),t.appendChild(this.before),t.appendChild(this.inside),t.appendChild(this.after),e.appendChild(t);}return e.prototype.set=function(e){var t=e.parent.preview.preview(e.range),n=t.before,i=t.inside,o=t.after;this.before.innerHTML=no(n),this.inside.innerHTML=no(i),this.after.innerHTML=no(o);},e;}(),kR=function(){function e(e,t){this._themeService=e,this._uriLabel=t;}return e.prototype.getHeight=function(e,t){return 23;},e.prototype.getTemplateId=function(t,n){if(n instanceof vR)return e._ids.FileReferences;if(n instanceof mR)return e._ids.OneReference;throw n;},e.prototype.renderTemplate=function(t,n,i){if(n===e._ids.FileReferences)return new IR(i,this._uriLabel,this._themeService);if(n===e._ids.OneReference)return new NR(i);throw n;},e.prototype.renderElement=function(e,t,n,i){if(t instanceof vR)i.set(t);else{if(!(t instanceof mR))throw n;i.set(t);}},e.prototype.disposeTemplate=function(e,t,n){n instanceof IR&&n.dispose();},e._ids={FileReferences:"FileReferences",OneReference:"OneReference"},e=CR([wR(0,Rd),wR(1,fx)],e);}(),OR=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return t instanceof vR?t.getAriaMessage():t instanceof mR?t.getAriaMessage():void 0;},e;}(),DR=function(){function e(e,t){var n,i=this;this._disposables=[],this._onDidChangePercentages=new N(),this._ratio=t,this._sash=new uC(e,{getVerticalSashLeft:function(){return i._width*i._ratio;},getVerticalSashHeight:function(){return i._height;}}),this._disposables.push(this._sash.onDidStart(function(e){n=e.startX-i._width*i.ratio;})),this._disposables.push(this._sash.onDidChange(function(e){var t=e.currentX-n;t>20&&t+20<i._width&&(i._ratio=t/i._width,i._sash.layout(),i._onDidChangePercentages.fire(i));}));}return e.prototype.dispose=function(){this._sash.dispose(),this._onDidChangePercentages.dispose(),f(this._disposables);},Object.defineProperty(e.prototype,"onDidChangePercentages",{get:function(){return this._onDidChangePercentages.event;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{set:function(e){this._width=e,this._sash.layout();},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{set:function(e){this._height=e,this._sash.layout();},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"percentages",{get:function(){var e=100*this._ratio;return[e+"%",100-e+"%"];},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ratio",{get:function(){return this._ratio;},enumerable:!0,configurable:!0}),e;}(),RR=new yl("referenceSearchTreeFocused",!0),AR=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this,t,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return u._defaultTreeKeyboardSupport=n,u.layoutData=i,u._textModelResolverService=r,u._instantiationService=s,u._uriLabel=a,u._disposeOnNewModel=[],u._callOnDispose=[],u._onDidSelectReference=new N(),u._applyTheme(o.getTheme()),u._callOnDispose.push(o.onThemeChange(u._applyTheme.bind(u))),u.create(),u;}return bR(t,e),t.prototype._applyTheme=function(e){var t=e.getColor(WR)||Oh.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(MR)||Oh.transparent,primaryHeadingColor:e.getColor(PR),secondaryHeadingColor:e.getColor(FR)});},t.prototype.dispose=function(){this.setModel(null),this._callOnDispose=f(this._callOnDispose),f(this._preview,this._previewNotAvailableMessage,this._tree,this._sash,this._previewModelReference),e.prototype.dispose.call(this);},Object.defineProperty(t.prototype,"onDidSelectReference",{get:function(){return this._onDidSelectReference.event;},enumerable:!0,configurable:!0}),t.prototype.show=function(t){this.editor.revealRangeInCenterIfOutsideViewport(t,0),e.prototype.show.call(this,t,this.layoutData.heightInLines||18);},t.prototype.focus=function(){this._tree.domFocus();},t.prototype._onTitleClick=function(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"});},t.prototype._fillBody=function(e){var t=this;this.setCssClass("reference-zone-widget"),this._messageContainer=Vi(e,ji("div.messages")),Ki(this._messageContainer),this._previewContainer=Vi(e,ji("div.preview.inline"));this._preview=this._instantiationService.createInstance($D,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),Ki(this._previewContainer),this._previewNotAvailableMessage=Jm.createFromString(ie("missingPreviewMessage","no preview available")),this._sash=new DR(e,this.layoutData.ratio||.8),this._sash.onDidChangePercentages(function(){var e=t._sash.percentages,n=e[0],i=e[1];t._previewContainer.style.width=n,t._treeContainer.style.width=i,t._preview.layout(),t._tree.layout(),t.layoutData.ratio=t._sash.ratio;}),this._treeContainer=Vi(e,ji("div.ref-tree.inline"));var n=this._instantiationService.createInstance(TR,{keyboardSupport:this._defaultTreeKeyboardSupport,clickBehavior:1});this._callOnDispose.push(n);var i={dataSource:this._instantiationService.createInstance(LR),renderer:this._instantiationService.createInstance(kR),controller:n,accessibilityProvider:new OR()},o={twistiePixels:20,ariaLabel:ie("treeAriaLabel","References")};this._tree=this._instantiationService.createInstance(dE,this._treeContainer,i,o),RR.bindTo(this._tree.contextKeyService);var r=function(e,n){e instanceof mR&&("show"===n&&t._revealReference(e,!1),t._onDidSelectReference.fire({element:e,kind:n,source:"tree"}));};this._disposables.push(this._tree.onDidChangeFocus(function(e){e&&e.payload&&"keyboard"===e.payload.origin&&r(e.focus,"show");})),this._disposables.push(this._tree.onDidChangeSelection(function(e){e&&e.payload&&"keyboard"===e.payload.origin&&r(e.selection[0],"goto");})),this._disposables.push(n.onDidFocus(function(e){return r(e,"show");})),this._disposables.push(n.onDidSelect(function(e){return r(e,"goto");})),this._disposables.push(n.onDidOpenToSide(function(e){return r(e,"side");})),Ki(this._treeContainer);},t.prototype._doLayoutBody=function(t,n){e.prototype._doLayoutBody.call(this,t,n);var i=t+"px";this._sash.height=t,this._sash.width=n;var o=this._sash.percentages,r=o[0],s=o[1];this._previewContainer.style.height=i,this._previewContainer.style.width=r,this._treeContainer.style.height=i,this._treeContainer.style.width=s,this._tree.layout(t),this._preview.layout(),this.layoutData={heightInLines:this._viewZone.heightInLines,ratio:this._sash.ratio};},t.prototype._onWidth=function(e){this._sash.width=e,this._preview.layout();},t.prototype.setSelection=function(e){var t=this;return this._revealReference(e,!0).then(function(){t._model&&(t._tree.setSelection([e]),t._tree.setFocus(e));});},t.prototype.setModel=function(e){if(this._disposeOnNewModel=f(this._disposeOnNewModel),this._model=e,this._model)return this._onNewModel();},t.prototype._onNewModel=function(){var e=this;if(this._model.empty)return this.setTitle(""),this._messageContainer.innerHTML=ie("noResults","No results"),zi(this._messageContainer),Promise.resolve(void 0);Ki(this._messageContainer),this._decorationsManager=new ER(this._preview,this._model),this._disposeOnNewModel.push(this._decorationsManager),this._disposeOnNewModel.push(this._model.onDidChangeReferenceRange(function(t){return e._tree.refresh(t);})),this._disposeOnNewModel.push(this._preview.onMouseDown(function(t){var n=t.event,i=t.target;2===n.detail&&e._onDidSelectReference.fire({element:{uri:e._getFocusedReference().uri,range:i.range},kind:n.ctrlKey||n.metaKey||n.altKey?"side":"open",source:"editor"});})),Xn(this.container,"results-loaded"),zi(this._treeContainer),zi(this._previewContainer),this._preview.layout(),this._tree.layout(),this.focus();var t=1===this._model.groups.length?this._model.groups[0]:this._model;return this._tree.setInput(t);},t.prototype._getFocusedReference=function(){var e=this._tree.getFocus();return e instanceof mR?e:e instanceof vR&&e.children.length>0?e.children[0]:void 0;},t.prototype._revealReference=function(e,t){return SR(this,void 0,void 0,function(){var n,i=this;return xR(this,function(o){switch(o.label){case 0:return e.uri.scheme!==Hi.inMemory?this.setTitle(Uo(e.uri),this._uriLabel.getUriLabel(zo(e.uri))):this.setTitle(ie("peekView.alternateTitle","References")),n=this._textModelResolverService.createModelReference(e.uri),t?[4,this._tree.reveal(e.parent)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2,Promise.all([n,this._tree.reveal(e)]).then(function(t){var n=t[0];if(i._model){f(i._previewModelReference);var o=n.object;if(o){i._previewModelReference=n;var r=i._preview.getModel()===o.textEditorModel;i._preview.setModel(o.textEditorModel);var s=Jt.lift(e.range).collapseToStart();i._preview.setSelection(s),i._preview.revealRangeInCenter(s,r?0:1);}else i._preview.setModel(i._previewNotAvailableMessage),n.dispose();}else n.dispose();},a)];}});});},t=CR([wR(3,Rd),wR(4,Ds),wR(5,ln),wR(6,fx)],t);}(iR),MR=Ah("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},ie("peekViewTitleBackground","Background color of the peek view title area.")),PR=Ah("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},ie("peekViewTitleForeground","Color of the peek view title.")),FR=Ah("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#6c6c6cb3",hc:"#FFFFFF99"},ie("peekViewTitleInfoForeground","Color of the peek view title info.")),WR=Ah("peekView.border",{dark:"#007acc",light:"#007acc",hc:Wh},ie("peekViewBorder","Color of the peek view borders and arrow.")),BR=Ah("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:Oh.black},ie("peekViewResultsBackground","Background color of the peek view result list.")),VR=Ah("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:Oh.white},ie("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),HR=Ah("peekViewResult.fileForeground",{dark:Oh.white,light:"#1E1E1E",hc:Oh.white},ie("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),UR=Ah("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},ie("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),jR=Ah("peekViewResult.selectionForeground",{dark:Oh.white,light:"#6C6C6C",hc:Oh.white},ie("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),zR=Ah("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:Oh.black},ie("peekViewEditorBackground","Background color of the peek view editor.")),KR=Ah("peekViewEditorGutter.background",{dark:zR,light:zR,hc:zR},ie("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),qR=Ah("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},ie("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),GR=Ah("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},ie("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),$R=Ah("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:Bh},ie("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));Vd(function(e,t){var n=e.getColor(qR);n&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch { background-color: "+n+"; }");var i=e.getColor(GR);i&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+i+"; }");var o=e.getColor($R);o&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+o+"; box-sizing: border-box; }");var r=e.getColor(Bh);r&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch { border: 1px dotted "+r+"; box-sizing: border-box; }");var s=e.getColor(BR);s&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+s+"; }");var a=e.getColor(VR);a&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+a+"; }");var u=e.getColor(HR);u&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+u+"; }");var l=e.getColor(UR);l&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+l+"; }");var c=e.getColor(jR);c&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+c+" !important; }");var d=e.getColor(zR);d&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: "+d+";}");var h=e.getColor(KR);h&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+h+";}");});var YR=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},XR=function(e,t){return function(n,i){t(n,i,e);};},ZR=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e));}catch(e){r(e);}}function a(e){try{u(i.throw(e));}catch(e){r(e);}}function u(e){e.done?o(e.value):new n(function(t){t(e.value);}).then(s,a);}u((i=i.apply(e,t||[])).next());});},QR=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1];},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this;}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break;}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break;}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break;}o[2]&&s.ops.pop(),s.trys.pop();continue;}r=t.call(e,s);}catch(e){r=[6,e],i=0;}finally{n=o=0;}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0};}([r,a]);};}},JR=new yl("referenceSearchVisible",!1),eA=function(){function e(e,t,n,i,o,r,s,a){this._defaultTreeKeyboardSupport=e,this._editorService=i,this._notificationService=o,this._instantiationService=r,this._storageService=s,this._configurationService=a,this._requestIdPool=0,this._disposables=[],this._ignoreModelChangeEvent=!1,this._editor=t,this._referenceSearchVisible=JR.bindTo(n);}return e.get=function(t){return t.getContribution(e.ID);},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this._referenceSearchVisible.reset(),f(this._disposables),f(this._widget),f(this._model),this._widget=null,this._model=null,this._editor=null;},e.prototype.toggleWidget=function(e,t,n){var i,o=this;if(this._widget&&(i=this._widget.position),this.closeWidget(),i&&e.containsPosition(i))return null;this._referenceSearchVisible.set(!0),this._disposables.push(this._editor.onDidChangeModelLanguage(function(){o.closeWidget();})),this._disposables.push(this._editor.onDidChangeModel(function(){o._ignoreModelChangeEvent||o.closeWidget();}));var r=JSON.parse(this._storageService.get("peekViewLayout",0,"{}"));this._widget=this._instantiationService.createInstance(AR,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(ie("labelLoading","Loading...")),this._widget.show(e),this._disposables.push(this._widget.onDidClose(function(){t.cancel(),o._storageService.store("peekViewLayout",JSON.stringify(o._widget.layoutData),0),o._widget=null,o.closeWidget();})),this._disposables.push(this._widget.onDidSelectReference(function(e){var t=e.element,i=e.kind;switch(i){case"open":if("editor"===e.source&&o._configurationService.getValue("editor.stablePeek"))break;case"side":o.openReference(t,"side"===i);break;case"goto":n.onGoto?n.onGoto(t):o._gotoReference(t);}}));var s=++this._requestIdPool;t.then(function(t){if(s===o._requestIdPool&&o._widget)return o._model&&o._model.dispose(),o._model=t,o._widget.setModel(o._model).then(function(){if(o._widget){o._widget.setMetaTitle(n.getMetaTitle(o._model));var t=o._editor.getModel().uri,i=new Qt(e.startLineNumber,e.startColumn),r=o._model.nearestReference(t,i);if(r)return o._widget.setSelection(r);}});},function(e){o._notificationService.error(e);});},e.prototype.goToNextOrPreviousReference=function(e){return ZR(this,void 0,void 0,function(){var t,n,i;return QR(this,function(o){switch(o.label){case 0:return this._model?(t=this._model.nearestReference(this._editor.getModel().uri,this._widget.position),n=this._model.nextOrPreviousReference(t,e),i=this._editor.hasTextFocus(),[4,this._widget.setSelection(n)]):[3,3];case 1:return o.sent(),[4,this._gotoReference(n)];case 2:o.sent(),i&&this._editor.focus(),o.label=3;case 3:return[2];}});});},e.prototype.closeWidget=function(){f(this._widget),this._widget=null,this._referenceSearchVisible.reset(),this._disposables=f(this._disposables),f(this._model),this._model=null,this._editor.focus(),this._requestIdPool+=1;},e.prototype._gotoReference=function(e){var t=this;this._widget.hide(),this._ignoreModelChangeEvent=!0;var n=Jt.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n}},this._editor).then(function(e){t._ignoreModelChangeEvent=!1,e&&e===t._editor?(t._widget.show(n),t._widget.focus()):t.closeWidget();},function(e){t._ignoreModelChangeEvent=!1,a(e);});},e.prototype.openReference=function(e,t){t||this.closeWidget();var n=e.uri,i=e.range;this._editorService.openCodeEditor({resource:n,options:{selection:i}},this._editor,t);},e.ID="editor.contrib.referencesController",e=YR([XR(2,bl),XR(3,pn),XR(4,sc),XR(5,ln),XR(6,vE),XR(7,Fl)],e);}();function tA(e,t,n,i){var o=n.ordered(e).map(function(n){return Promise.resolve(i(n,e,t)).then(void 0,function(e){return u(e),null;});});return Promise.all(o).then(pe).then(le);}function nA(e,t,n){return tA(e,t,gs,function(e,t,i){return e.provideDefinition(t,i,n);});}function iA(e,t,n){return tA(e,t,ms,function(e,t,i){return e.provideImplementation(t,i,n);});}function oA(e,t,n){return tA(e,t,_s,function(e,t,i){return e.provideTypeDefinition(t,i,n);});}Jc("_executeDefinitionProvider",function(e,t){return nA(e,t,B.None);}),Jc("_executeImplementationProvider",function(e,t){return iA(e,t,B.None);}),Jc("_executeTypeDefinitionProvider",function(e,t){return oA(e,t,B.None);});var rA=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),sA=function(){return function(e,t,n,i){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===i&&(i=!0),this.openToSide=e,this.openInPeek=t,this.filterCurrent=n,this.showMessage=i;};}(),aA=function(e){function t(t,n){var i=e.call(this,n)||this;return i._configuration=t,i;}return rA(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(sc),o=e.get(pn),r=e.get(_E),s=t.getModel(),a=t.getPosition(),u=this._getDeclarationsAtPosition(s,a,B.None).then(function(e){if(!s.isDisposed()&&t.getModel()===s){for(var i=-1,r=[],u=0;u<e.length;u++){var l=e[u];if(l&&l.range){var c=l.uri,d=l.range,h=r.push({uri:c,range:d});n._configuration.filterCurrent&&c.toString()===s.uri.toString()&&Jt.containsPosition(d,a)&&-1===i&&(i=h-1);}}if(0===r.length){if(n._configuration.showMessage){var p=s.getWordAtPosition(a);GI.get(t).showMessage(n._getNoResultFoundMessage(p),a);}}else if(1===r.length&&-1!==i){var f=r[0];n._openReference(t,o,f,!1);}else n._onResult(o,t,new yR(r));}},function(e){i.error(e);});return r.showWhile(u,250),u;},t.prototype._getDeclarationsAtPosition=function(e,t,n){return nA(e,t,n);},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?ie("noResultWord","No definition found for '{0}'",e.word):ie("generic.noResults","No definition found");},t.prototype._getMetaTitle=function(e){return e.references.length>1&&ie("meta.title"," – {0} definitions",e.references.length);},t.prototype._onResult=function(e,t,n){var i=this;if(Rc(n.getAriaMessage()),this._configuration.openInPeek)this._openInPeek(e,t,n);else{var o=n.nearestReference(t.getModel().uri,t.getPosition());this._openReference(t,e,o,this._configuration.openToSide).then(function(t){t&&n.references.length>1?i._openInPeek(e,t,n):n.dispose();});}},t.prototype._openReference=function(e,t,n,i){return t.openCodeEditor({resource:n.uri,options:{selection:Jt.collapseToStart(n.range),revealIfOpened:!0,revealInCenterIfOutsideViewport:!0}},e,i);},t.prototype._openInPeek=function(e,t,n){var i=this,o=eA.get(t);o?o.toggleWidget(t.getSelection(),q(function(e){return Promise.resolve(n);}),{getMetaTitle:function(e){return i._getMetaTitle(e);},onGoto:function(n){return o.closeWidget(),i._openReference(t,e,n,!1);}}):n.dispose();},t;}(Zc),uA=o.f?2118:70,lA=function(e){function t(){return e.call(this,new sA(),{id:t.ID,label:ie("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:dl.and(A_.hasDefinitionProvider,A_.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:A_.editorTextFocus,primary:uA,weight:100},menuOpts:{group:"navigation",order:1.1}})||this;}return rA(t,e),t.ID="editor.action.goToDeclaration",t;}(aA),cA=function(e){function t(){return e.call(this,new sA(!0),{id:t.ID,label:ie("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:dl.and(A_.hasDefinitionProvider,A_.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,uA),weight:100}})||this;}return rA(t,e),t.ID="editor.action.openDeclarationToTheSide",t;}(aA),dA=function(e){function t(){return e.call(this,new sA(void 0,!0,!1),{id:"editor.action.previewDeclaration",label:ie("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:dl.and(A_.hasDefinitionProvider,jD.notInPeekEditor,A_.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:A_.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menuOpts:{group:"navigation",order:1.2}})||this;}return rA(t,e),t;}(aA),hA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return rA(t,e),t.prototype._getDeclarationsAtPosition=function(e,t,n){return iA(e,t,n);},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?ie("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):ie("goToImplementation.generic.noResults","No implementation found");},t.prototype._getMetaTitle=function(e){return e.references.length>1&&ie("meta.implementations.title"," – {0} implementations",e.references.length);},t;}(aA),pA=function(e){function t(){return e.call(this,new sA(),{id:t.ID,label:ie("actions.goToImplementation.label","Go to Implementation"),alias:"Go to Implementation",precondition:dl.and(A_.hasImplementationProvider,A_.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:A_.editorTextFocus,primary:2118,weight:100}})||this;}return rA(t,e),t.ID="editor.action.goToImplementation",t;}(hA),fA=function(e){function t(){return e.call(this,new sA(!1,!0,!1),{id:t.ID,label:ie("actions.peekImplementation.label","Peek Implementation"),alias:"Peek Implementation",precondition:dl.and(A_.hasImplementationProvider,A_.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:A_.editorTextFocus,primary:3142,weight:100}})||this;}return rA(t,e),t.ID="editor.action.peekImplementation",t;}(hA),gA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return rA(t,e),t.prototype._getDeclarationsAtPosition=function(e,t,n){return oA(e,t,n);},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?ie("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):ie("goToTypeDefinition.generic.noResults","No type definition found");},t.prototype._getMetaTitle=function(e){return e.references.length>1&&ie("meta.typeDefinitions.title"," – {0} type definitions",e.references.length);},t;}(aA),mA=function(e){function t(){return e.call(this,new sA(),{id:t.ID,label:ie("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:dl.and(A_.hasTypeDefinitionProvider,A_.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:A_.editorTextFocus,primary:0,weight:100},menuOpts:{group:"navigation",order:1.4}})||this;}return rA(t,e),t.ID="editor.action.goToTypeDefinition",t;}(gA),_A=function(e){function t(){return e.call(this,new sA(!1,!0,!1),{id:t.ID,label:ie("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:dl.and(A_.hasTypeDefinitionProvider,A_.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:A_.editorTextFocus,primary:0,weight:100}})||this;}return rA(t,e),t.ID="editor.action.peekTypeDefinition",t;}(gA);td(lA),td(cA),td(dA),td(pA),td(fA),td(mA),td(_A),kl.appendMenuItem(Il.MenubarGoMenu,{group:"z_go_to",command:{id:"editor.action.goToDeclaration",title:ie({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},order:4}),kl.appendMenuItem(Il.MenubarGoMenu,{group:"z_go_to",command:{id:"editor.action.goToTypeDefinition",title:ie({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},order:5}),kl.appendMenuItem(Il.MenubarGoMenu,{group:"z_go_to",command:{id:"editor.action.goToImplementation",title:ie({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementation")},order:6});n("./node_modules/monaco-editor/esm/vs/editor/contrib/goToDefinition/goToDefinitionMouse.css");var vA=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();function yA(e,t){return!!e[t];}var bA=function(){return function(e,t){this.target=e.target,this.hasTriggerModifier=yA(e.event,t.triggerModifier),this.hasSideBySideModifier=yA(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=vn||e.event.detail<=1;};}(),CA=function(){return function(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=yA(e,t.triggerModifier);};}(),wA=function(){function e(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i;}return e.prototype.equals=function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier;},e;}();function SA(e){return"altKey"===e?o.d?new wA(57,"metaKey",6,"altKey"):new wA(5,"ctrlKey",6,"altKey"):o.d?new wA(6,"altKey",57,"metaKey"):new wA(6,"altKey",5,"ctrlKey");}var xA=function(e){function t(t){var n=e.call(this)||this;return n._onMouseMoveOrRelevantKeyDown=n._register(new N()),n.onMouseMoveOrRelevantKeyDown=n._onMouseMoveOrRelevantKeyDown.event,n._onExecute=n._register(new N()),n.onExecute=n._onExecute.event,n._onCancel=n._register(new N()),n.onCancel=n._onCancel.event,n._editor=t,n._opts=SA(n._editor.getConfiguration().multiCursorModifier),n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._register(n._editor.onDidChangeConfiguration(function(e){if(e.multiCursorModifier){var t=SA(n._editor.getConfiguration().multiCursorModifier);if(n._opts.equals(t))return;n._opts=t,n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._onCancel.fire();}})),n._register(n._editor.onMouseMove(function(e){return n.onEditorMouseMove(new bA(e,n._opts));})),n._register(n._editor.onMouseDown(function(e){return n.onEditorMouseDown(new bA(e,n._opts));})),n._register(n._editor.onMouseUp(function(e){return n.onEditorMouseUp(new bA(e,n._opts));})),n._register(n._editor.onKeyDown(function(e){return n.onEditorKeyDown(new CA(e,n._opts));})),n._register(n._editor.onKeyUp(function(e){return n.onEditorKeyUp(new CA(e,n._opts));})),n._register(n._editor.onMouseDrag(function(){return n.resetHandler();})),n._register(n._editor.onDidChangeCursorSelection(function(e){return n.onDidChangeCursorSelection(e);})),n._register(n._editor.onDidChangeModel(function(e){return n.resetHandler();})),n._register(n._editor.onDidChangeModelContent(function(){return n.resetHandler();})),n._register(n._editor.onDidScrollChange(function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&n.resetHandler();})),n;}return vA(t,e),t.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler();},t.prototype.onEditorMouseMove=function(e){this.lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null]);},t.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=e.hasTriggerModifier;},t.prototype.onEditorMouseUp=function(e){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(e);},t.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire();},t.prototype.onEditorKeyUp=function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire();},t.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire();},t;}(y),EA=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},LA=function(e,t){return function(n,i){t(n,i,e);};};nd(function(){function e(e,t,n){var i=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=[],this.decorations=[],this.editor=e,this.previousPromise=null;var o=new xA(e);this.toUnhook.push(o),this.toUnhook.push(o.onMouseMoveOrRelevantKeyDown(function(e){var t=e[0],n=e[1];i.startFindDefinition(t,n);})),this.toUnhook.push(o.onExecute(function(e){i.isEnabled(e)&&i.gotoDefinition(e.target,e.hasSideBySideModifier).then(function(){i.removeDecorations();},function(e){i.removeDecorations(),a(e);});})),this.toUnhook.push(o.onCancel(function(){i.removeDecorations(),i.currentWordUnderMouse=null;}));}return e.prototype.startFindDefinition=function(e,t){var n=this;if(!this.isEnabled(e,t))return this.currentWordUnderMouse=null,void this.removeDecorations();var i=e.target.position,o=i?this.editor.getModel().getWordAtPosition(i):null;if(!o)return this.currentWordUnderMouse=null,void this.removeDecorations();if(!this.currentWordUnderMouse||this.currentWordUnderMouse.startColumn!==o.startColumn||this.currentWordUnderMouse.endColumn!==o.endColumn||this.currentWordUnderMouse.word!==o.word){this.currentWordUnderMouse=o;var r=new lC(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=q(function(t){return n.findDefinition(e.target,t);}),this.previousPromise.then(function(e){if(e&&e.length&&r.validate(n.editor)){if(e.length>1)n.addDecoration(new Jt(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn),new ww().appendText(ie("multipleResults","Click to show {0} definitions.",e.length)));else{var t=e[0];if(!t.uri)return;n.textModelResolverService.createModelReference(t.uri).then(function(e){if(e.object&&e.object.textEditorModel){var r=e.object.textEditorModel,s=t.range.startLineNumber;if(s<1||s>r.getLineCount())e.dispose();else{var a,u=n.getPreviewValue(r,s);a=t.origin?Jt.lift(t.origin):new Jt(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn),n.addDecoration(a,new ww().appendCodeblock(n.modeService.getModeIdByFilepathOrFirstLine(r.uri.fsPath),u)),e.dispose();}}else e.dispose();});}}else n.removeDecorations();}).then(void 0,a);}},e.prototype.getPreviewValue=function(t,n){var i=this.getPreviewRangeBasedOnBrackets(t,n);return i.endLineNumber-i.startLineNumber>=e.MAX_SOURCE_PREVIEW_LINES&&(i=this.getPreviewRangeBasedOnIndentation(t,n)),this.stripIndentationFromPreviewRange(t,n,i);},e.prototype.stripIndentationFromPreviewRange=function(e,t,n){for(var i=e.getLineFirstNonWhitespaceColumn(t),o=t+1;o<n.endLineNumber;o++){var r=e.getLineFirstNonWhitespaceColumn(o);i=Math.min(i,r);}return e.getValueInRange(n).replace(new RegExp("^\\s{"+(i-1)+"}","gm"),"").trim();},e.prototype.getPreviewRangeBasedOnIndentation=function(t,n){for(var i=t.getLineFirstNonWhitespaceColumn(n),o=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),r=n+1;r<o;r++){if(i===t.getLineFirstNonWhitespaceColumn(r))break;}return new Jt(n,1,r+1,1);},e.prototype.getPreviewRangeBasedOnBrackets=function(t,n){for(var i=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),o=[],r=!0,s=t.findNextBracket(new Qt(n,1));null!==s;){if(0===o.length)o.push(s);else{var a=o[o.length-1];if(a.open===s.open&&a.isOpen&&!s.isOpen?o.pop():o.push(s),0===o.length){if(!r)return new Jt(n,1,s.range.endLineNumber+1,1);r=!1;}}var u=t.getLineMaxColumn(n),l=s.range.endLineNumber,c=s.range.endColumn;if(u===s.range.endColumn&&(l++,c=1),l>i)return new Jt(n,1,i+1,1);s=t.findNextBracket(new Qt(l,c));}return new Jt(n,1,i+1,1);},e.prototype.addDecoration=function(e,t){var n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.decorations=this.editor.deltaDecorations(this.decorations,[n]);},e.prototype.removeDecorations=function(){this.decorations.length>0&&(this.decorations=this.editor.deltaDecorations(this.decorations,[]));},e.prototype.isEnabled=function(e,t){return this.editor.getModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey)&&gs.has(this.editor.getModel());},e.prototype.findDefinition=function(e,t){var n=this.editor.getModel();return n?nA(n,e.position,t):Promise.resolve(null);},e.prototype.gotoDefinition=function(e,t){var n=this;this.editor.setPosition(e.position);var i=new aA(new sA(t,!1,!0,!1),{alias:void 0,label:void 0,id:void 0,precondition:void 0});return this.editor.invokeWithinContext(function(e){return i.run(e,n.editor);});},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this.toUnhook=f(this.toUnhook);},e.ID="editor.contrib.gotodefinitionwithmouse",e.MAX_SOURCE_PREVIEW_LINES=8,e=EA([LA(1,Ds),LA(2,tw)],e);}()),Vd(function(e,t){var n=e.getColor(Xp);n&&t.addRule(".monaco-editor .goto-definition-link { color: "+n+" !important; }");});n("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/gotoErrorWidget.css");var TA=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),IA=function(){function e(e,t,n){var i=this;this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap(),this._disposables=[],this._editor=t;var o=document.createElement("div");o.className="descriptioncontainer",o.setAttribute("aria-live","assertive"),o.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),o.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),o.appendChild(this._relatedBlock),this._disposables.push(ii(this._relatedBlock,"click",function(e){e.preventDefault();var t=i._relatedDiagnostics.get(e.target);t&&n(t);})),this._scrollable=new Uv(o,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),Xn(this._scrollable.getDomNode(),"block"),e.appendChild(this._scrollable.getDomNode()),this._disposables.push(this._scrollable.onScroll(function(e){o.style.left="-"+e.scrollLeft+"px",o.style.top="-"+e.scrollTop+"px";})),this._disposables.push(this._scrollable);}return e.prototype.dispose=function(){f(this._disposables);},e.prototype.update=function(e){var t=e.source,n=e.message,i=e.relatedInformation,o=e.code;if(t){this._lines=0,this._longestLineLength=0;for(var r=new Array(t.length+3+1).join(" "),s=n.split(/\r\n|\r|\n/g),a=0;a<s.length;a++){var u=s[a];this._lines+=1,o&&a===s.length-1&&(u+=" ["+o+"]"),this._longestLineLength=Math.max(u.length,this._longestLineLength),0===a?n="["+t+"] "+u:n+="\n"+r+u;}}else this._lines=1,o&&(n+=" ["+o+"]"),this._longestLineLength=n.length;if(zn(this._relatedBlock),!ce(i)){this._relatedBlock.style.paddingTop=Math.floor(.66*this._editor.getConfiguration().lineHeight)+"px",this._lines+=1;for(var l=0,c=i||[];l<c.length;l++){var d=c[l],h=document.createElement("div"),p=document.createElement("span");Xn(p,"filename"),p.innerHTML=hR(d.resource)+"("+d.startLineNumber+", "+d.startColumn+"): ",p.title=dR(d.resource,void 0),this._relatedDiagnostics.set(p,d);var f=document.createElement("span");f.innerText=d.message,this._editor.applyFontInfo(f),h.appendChild(p),h.appendChild(f),this._lines+=1,this._relatedBlock.appendChild(h);}}this._messageBlock.innerText=n,this._editor.applyFontInfo(this._messageBlock);var g=this._editor.getConfiguration().fontInfo,m=Math.ceil(g.typicalFullwidthCharacterWidth*this._longestLineLength*.75),_=g.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:m,scrollHeight:_});},e.prototype.layout=function(e,t){this._scrollable.getDomNode().style.height=e+"px",this._scrollable.setScrollDimensions({width:t,height:e});},e.prototype.getHeightInLines=function(){return Math.min(17,this._lines);},e;}(),NA=function(e){function t(t,n){var i=e.call(this,t,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return i._themeService=n,i._callOnDispose=[],i._onDidSelectRelatedInformation=new N(),i.onDidSelectRelatedInformation=i._onDidSelectRelatedInformation.event,i._severity=fw.Warning,i._backgroundColor=Oh.white,i._applyTheme(n.getTheme()),i._callOnDispose.push(n.onThemeChange(i._applyTheme.bind(i))),i.create(),i;}return TA(t,e),t.prototype._applyTheme=function(e){this._backgroundColor=e.getColor(PA);var t=RA;this._severity===fw.Warning?t=AA:this._severity===fw.Info&&(t=MA);var n=e.getColor(t);this.style({arrowColor:n,frameColor:n});},t.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),e.prototype._applyStyles.call(this);},t.prototype.dispose=function(){this._callOnDispose=f(this._callOnDispose),e.prototype.dispose.call(this);},t.prototype.focus=function(){this._parentContainer.focus();},t.prototype._fillContainer=function(e){var t=this;this._parentContainer=e,Xn(e,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._title=document.createElement("div"),this._title.className="block title",this._container.appendChild(this._title),this._message=new IA(this._container,this.editor,function(e){return t._onDidSelectRelatedInformation.fire(e);}),this._disposables.push(this._message);},t.prototype.show=function(e,t){throw new Error("call showAtMarker");},t.prototype.showAtMarker=function(t,n,i){this._container.classList.remove("stale"),this._title.innerHTML=ie("title.wo_source","({0}/{1})",n,i),this._message.update(t),this._severity=t.severity,this._applyTheme(this._themeService.getTheme());var o=Jt.lift(t),r=this.editor.getPosition(),s=r&&o.containsPosition(r)?r:o.getStartPosition();e.prototype.show.call(this,s,this.computeRequiredHeight()),this.editor.revealPositionInCenter(s,0),1!==this.editor.getConfiguration().accessibilitySupport&&this.focus();},t.prototype.updateMarker=function(e){this._container.classList.remove("stale"),this._message.update(e);},t.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout();},t.prototype._doLayout=function(e,t){this._message.layout(e,t),this._container.style.height=e+"px";},t.prototype._relayout=function(){e.prototype._relayout.call(this,this.computeRequiredHeight());},t.prototype.computeRequiredHeight=function(){return 1+this._message.getHeightInLines();},t;}(eR),kA=pf(Af,Mf),OA=pf(Pf,Ff),DA=pf(Wf,Bf),RA=Ah("editorMarkerNavigationError.background",{dark:kA,light:kA,hc:kA},ie("editorMarkerNavigationError","Editor marker navigation widget error color.")),AA=Ah("editorMarkerNavigationWarning.background",{dark:OA,light:OA,hc:OA},ie("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),MA=Ah("editorMarkerNavigationInfo.background",{dark:DA,light:DA,hc:DA},ie("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),PA=Ah("editorMarkerNavigation.background",{dark:"#2D2D30",light:Oh.white,hc:"#0C141F"},ie("editorMarkerNavigationBackground","Editor marker navigation widget background.")),FA=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),WA=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},BA=function(e,t){return function(n,i){t(n,i,e);};},VA=function(){function e(e,t){var n=this;this._editor=e,this._markers=null,this._nextIdx=-1,this._toUnbind=[],this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new N(),this._onMarkerSetChanged=new N(),this.setMarkers(t),this._toUnbind.push(this._editor.onDidDispose(function(){return n.dispose();})),this._toUnbind.push(this._editor.onDidChangeCursorPosition(function(){n._ignoreSelectionChange||n.currentMarker&&Jt.containsPosition(n.currentMarker,n._editor.getPosition())||(n._nextIdx=-1);}));}return Object.defineProperty(e.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event;},enumerable:!0,configurable:!0}),e.prototype.setMarkers=function(e){var t=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(UA.compareMarker),this._nextIdx=t?Math.max(-1,se(this._markers,t,UA.compareMarker)):-1,this._onMarkerSetChanged.fire(this);},e.prototype.withoutWatchingEditorPosition=function(e){this._ignoreSelectionChange=!0;try{e();}finally{this._ignoreSelectionChange=!1;}},e.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),i=0;i<this._markers.length;i++){var o=Jt.lift(this._markers[i]);if(o.isEmpty()){var r=this._editor.getModel().getWordAtPosition(o.getStartPosition());r&&(o=new Jt(o.startLineNumber,r.startColumn,o.startLineNumber,r.endColumn));}if(o.containsPosition(n)||n.isBeforeOrEqual(o.getStartPosition())){this._nextIdx=i,t=!0;break;}}t||(this._nextIdx=e?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1);},Object.defineProperty(e.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0;},enumerable:!0,configurable:!0}),e.prototype.move=function(e,t){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!t;var n=this._nextIdx,i=!1;if(-1===this._nextIdx?this._initIdx(e):e?t||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:i=!0:e||(t||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:i=!0),n!==this._nextIdx){var o=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(o);}return i;},e.prototype.canNavigate=function(){return this._markers.length>0;},e.prototype.findMarkerAtPosition=function(e){for(var t=0,n=this._markers;t<n.length;t++){var i=n[t];if(Jt.containsPosition(i,e))return i;}},Object.defineProperty(e.prototype,"total",{get:function(){return this._markers.length;},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return 1+this._markers.indexOf(e);},e.prototype.dispose=function(){this._toUnbind=f(this._toUnbind);},e;}(),HA=function(){function e(e,t,n,i,o){this._markerService=t,this._contextKeyService=n,this._themeService=i,this._editorService=o,this._disposeOnClose=[],this._editor=e,this._widgetVisible=GA.bindTo(this._contextKeyService);}return e.get=function(t){return t.getContribution(e.ID);},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this._cleanUp();},e.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose=f(this._disposeOnClose),this._widget=null,this._model=null;},e.prototype.getOrCreateModel=function(){var e=this;if(this._model)return this._model;var t=this._getMarkers();return this._model=new VA(this._editor,t),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose),this._widget=new NA(this._editor,this._themeService),this._widgetVisible.set(!0),this._disposeOnClose.push(this._model),this._disposeOnClose.push(this._widget),this._disposeOnClose.push(this._widget.onDidSelectRelatedInformation(function(t){e._editorService.openCodeEditor({resource:t.resource,options:{pinned:!0,revealIfOpened:!0,selection:Jt.lift(t).collapseToStart()}},e._editor).then(void 0,a),e.closeMarkersNavigation(!1);})),this._disposeOnClose.push(this._editor.onDidChangeModel(function(){return e._cleanUp();})),this._disposeOnClose.push(this._model.onCurrentMarkerChanged(function(t){t?e._model.withoutWatchingEditorPosition(function(){e._widget.showAtMarker(t,e._model.indexOf(t),e._model.total);}):e._cleanUp();})),this._disposeOnClose.push(this._model.onMarkerSetChanged(function(){var t=e._model.findMarkerAtPosition(e._widget.position);t?e._widget.updateMarker(t):e._widget.showStale();})),this._model;},e.prototype.closeMarkersNavigation=function(e){void 0===e&&(e=!0),this._cleanUp(),e&&this._editor.focus();},e.prototype._onMarkerChanged=function(e){var t=this;e.some(function(e){return t._editor.getModel().uri.toString()===e.toString();})&&this._model.setMarkers(this._getMarkers());},e.prototype._getMarkers=function(){return this._markerService.read({resource:this._editor.getModel().uri,severities:fw.Error|fw.Warning|fw.Info});},e.ID="editor.contrib.markerController",e=WA([BA(1,Tw),BA(2,bl),BA(3,Rd),BA(4,pn)],e);}(),UA=function(e){function t(t,n,i){var o=e.call(this,i)||this;return o._isNext=t,o._multiFile=n,o;}return FA(t,e),t.prototype.run=function(e,n){var i=this,o=e.get(Tw),r=e.get(pn),s=HA.get(n);if(s){var a=s.getOrCreateModel();if(a.move(this._isNext,!this._multiFile)&&this._multiFile){var u=o.read({severities:fw.Error|fw.Warning|fw.Info}).sort(t.compareMarker);if(0!==u.length){var l=se(u,a.currentMarker||{resource:n.getModel().uri,severity:fw.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},t.compareMarker);l<0?(l=~l,l%=u.length):l=this._isNext?(l+1)%u.length:(l+u.length-1)%u.length;var c=u[l];if(c.resource.toString()!==n.getModel().uri.toString())return s.closeMarkersNavigation(),r.openCodeEditor({resource:c.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:c}},n).then(function(e){if(e)return e.getAction(i.id).run();});a.move(this._isNext,!0);}}}},t.compareMarker=function(e,t){var n=function(e,t){return e<t?-1:e>t?1:0;}(e.resource.toString(),t.resource.toString());return 0===n&&(n=fw.compare(e.severity,t.severity)),0===n&&(n=Jt.compareRangesUsingStarts(e,t)),n;},t;}(Zc),jA=function(e){function t(){return e.call(this,!0,!1,{id:"editor.action.marker.next",label:ie("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),alias:"Go to Next Error or Warning",precondition:A_.writable})||this;}return FA(t,e),t;}(UA),zA=function(e){function t(){return e.call(this,!1,!1,{id:"editor.action.marker.prev",label:ie("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),alias:"Go to Previous Error or Warning",precondition:A_.writable})||this;}return FA(t,e),t;}(UA),KA=function(e){function t(){return e.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:ie("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Error or Warning in Files",precondition:A_.writable,kbOpts:{kbExpr:A_.focus,primary:66,weight:100}})||this;}return FA(t,e),t;}(UA),qA=function(e){function t(){return e.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:ie("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Error or Warning in Files",precondition:A_.writable,kbOpts:{kbExpr:A_.focus,primary:1090,weight:100}})||this;}return FA(t,e),t;}(UA);nd(HA),td(jA),td(zA),td(KA),td(qA);var GA=new yl("markersNavigationVisible",!1);ed(new(Xc.bindToContribution(HA.get))({id:"closeMarkersNavigation",precondition:GA,handler:function(e){return e.closeMarkersNavigation();},kbOpts:{weight:150,kbExpr:A_.focus,primary:9,secondary:[1033]}}));n("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/hover.css");var $A=function(){function e(e,t,n){this.presentationIndex=n,this._onColorFlushed=new N(),this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new N(),this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new N(),this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t;}return Object.defineProperty(e.prototype,"color",{get:function(){return this._color;},set:function(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e));},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex];},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorPresentations",{get:function(){return this._colorPresentations;},set:function(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation);},enumerable:!0,configurable:!0}),e.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation);},e.prototype.guessColorPresentation=function(e,t){for(var n=0;n<this.colorPresentations.length;n++)if(t===this.colorPresentations[n].label){this.presentationIndex=n,this._onDidChangePresentation.fire(this.presentation);break;}},e.prototype.flushColor=function(){this._onColorFlushed.fire(this._color);},e;}(),YA=(n("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/colorPicker.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),XA=ji,ZA=function(e){function t(t,n,i){var o=e.call(this)||this;o.model=n,o.domNode=XA(".colorpicker-header"),Vi(t,o.domNode),o.pickedColorNode=Vi(o.domNode,XA(".picked-color"));var r=Vi(o.domNode,XA(".original-color"));return r.style.backgroundColor=Oh.Format.CSS.format(o.model.originalColor),o.backgroundColor=i.getTheme().getColor($p)||Oh.white,o._register(Vd(function(e,t){o.backgroundColor=e.getColor($p)||Oh.white;})),o._register(ni(o.pickedColorNode,Pi.CLICK,function(){return o.model.selectNextColorPresentation();})),o._register(ni(r,Pi.CLICK,function(){o.model.color=o.model.originalColor,o.model.flushColor();})),o._register(n.onDidChangeColor(o.onDidChangeColor,o)),o._register(n.onDidChangePresentation(o.onDidChangePresentation,o)),o.pickedColorNode.style.backgroundColor=Oh.Format.CSS.format(n.color),ei(o.pickedColorNode,"light",n.color.rgba.a<.5?o.backgroundColor.isLighter():n.color.isLighter()),o;}return YA(t,e),t.prototype.onDidChangeColor=function(e){this.pickedColorNode.style.backgroundColor=Oh.Format.CSS.format(e),ei(this.pickedColorNode,"light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation();},t.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"";},t;}(y),QA=function(e){function t(t,n,i){var o=e.call(this)||this;return o.model=n,o.pixelRatio=i,o.domNode=XA(".colorpicker-body"),Vi(t,o.domNode),o.saturationBox=new JA(o.domNode,o.model,o.pixelRatio),o._register(o.saturationBox),o._register(o.saturationBox.onDidChange(o.onDidSaturationValueChange,o)),o._register(o.saturationBox.onColorFlushed(o.flushColor,o)),o.opacityStrip=new tM(o.domNode,o.model),o._register(o.opacityStrip),o._register(o.opacityStrip.onDidChange(o.onDidOpacityChange,o)),o._register(o.opacityStrip.onColorFlushed(o.flushColor,o)),o.hueStrip=new nM(o.domNode,o.model),o._register(o.hueStrip),o._register(o.hueStrip.onDidChange(o.onDidHueChange,o)),o._register(o.hueStrip.onColorFlushed(o.flushColor,o)),o;}return YA(t,e),t.prototype.flushColor=function(){this.model.flushColor();},t.prototype.onDidSaturationValueChange=function(e){var t=e.s,n=e.v,i=this.model.color.hsva;this.model.color=new Oh(new kh(i.h,t,n,i.a));},t.prototype.onDidOpacityChange=function(e){var t=this.model.color.hsva;this.model.color=new Oh(new kh(t.h,t.s,t.v,e));},t.prototype.onDidHueChange=function(e){var t=this.model.color.hsva,n=360*(1-e);this.model.color=new Oh(new kh(360===n?0:n,t.s,t.v,t.a));},t.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout();},t;}(y),JA=function(e){function t(t,n,i){var o=e.call(this)||this;return o.model=n,o.pixelRatio=i,o._onDidChange=new N(),o.onDidChange=o._onDidChange.event,o._onColorFlushed=new N(),o.onColorFlushed=o._onColorFlushed.event,o.domNode=XA(".saturation-wrap"),Vi(t,o.domNode),o.canvas=document.createElement("canvas"),o.canvas.className="saturation-box",Vi(o.domNode,o.canvas),o.selection=XA(".saturation-selection"),Vi(o.domNode,o.selection),o.layout(),o._register(ni(o.domNode,Pi.MOUSE_DOWN,function(e){return o.onMouseDown(e);})),o._register(o.model.onDidChangeColor(o.onDidChangeColor,o)),o.monitor=null,o;}return YA(t,e),t.prototype.onMouseDown=function(e){var t=this;this.monitor=this._register(new pd());var n=xi(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(hd,function(e){return t.onDidChangePosition(e.posx-n.left,e.posy-n.top);},function(){return null;});var i=ni(document,Pi.MOUSE_UP,function(){t._onColorFlushed.fire(),i.dispose(),t.monitor.stopMonitoring(!0),t.monitor=null;},!0);},t.prototype.onDidChangePosition=function(e,t){var n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i});},t.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 e=this.model.color.hsva;this.paintSelection(e.s,e.v);},t.prototype.paint=function(){var e=this.model.color.hsva,t=new Oh(new kh(e.h,1,1,1)),n=this.canvas.getContext("2d"),i=n.createLinearGradient(0,0,this.canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");var o=n.createLinearGradient(0,0,0,this.canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=Oh.Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=o,n.fill();},t.prototype.paintSelection=function(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px";},t.prototype.onDidChangeColor=function(){this.monitor&&this.monitor.isMonitoring()||this.paint();},t;}(y),eM=function(e){function t(t,n){var i=e.call(this)||this;return i.model=n,i._onDidChange=new N(),i.onDidChange=i._onDidChange.event,i._onColorFlushed=new N(),i.onColorFlushed=i._onColorFlushed.event,i.domNode=Vi(t,XA(".strip")),i.overlay=Vi(i.domNode,XA(".overlay")),i.slider=Vi(i.domNode,XA(".slider")),i.slider.style.top="0px",i._register(ni(i.domNode,Pi.MOUSE_DOWN,function(e){return i.onMouseDown(e);})),i.layout(),i;}return YA(t,e),t.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var e=this.getValue(this.model.color);this.updateSliderPosition(e);},t.prototype.onMouseDown=function(e){var t=this,n=this._register(new pd()),i=xi(this.domNode);Xn(this.domNode,"grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),n.startMonitoring(hd,function(e){return t.onDidChangeTop(e.posy-i.top);},function(){return null;});var o=ni(document,Pi.MOUSE_UP,function(){t._onColorFlushed.fire(),o.dispose(),n.stopMonitoring(!0),Qn(t.domNode,"grabbing");},!0);},t.prototype.onDidChangeTop=function(e){var t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t);},t.prototype.updateSliderPosition=function(e){this.slider.style.top=(1-e)*this.height+"px";},t;}(y),tM=function(e){function t(t,n){var i=e.call(this,t,n)||this;return Xn(i.domNode,"opacity-strip"),i._register(n.onDidChangeColor(i.onDidChangeColor,i)),i.onDidChangeColor(i.model.color),i;}return YA(t,e),t.prototype.onDidChangeColor=function(e){var t=e.rgba,n=t.r,i=t.g,o=t.b,r=new Oh(new Ih(n,i,o,1)),s=new Oh(new Ih(n,i,o,0));this.overlay.style.background="linear-gradient(to bottom, "+r+" 0%, "+s+" 100%)";},t.prototype.getValue=function(e){return e.hsva.a;},t;}(eM),nM=function(e){function t(t,n){var i=e.call(this,t,n)||this;return Xn(i.domNode,"hue-strip"),i;}return YA(t,e),t.prototype.getValue=function(e){return 1-e.hsva.h/360;},t;}(eM),iM=function(e){function t(t,n,i,o){var r=e.call(this)||this;r.model=n,r.pixelRatio=i,r._register(mn(function(){return r.layout();}));var s=XA(".colorpicker-widget");t.appendChild(s);var a=new ZA(s,r.model,o);return r.body=new QA(s,r.model,r.pixelRatio),r._register(a),r._register(r.body),r;}return YA(t,e),t.prototype.layout=function(){this.body.layout();},t;}(yv);function oM(e,t,n){var i=hs.ordered(e).map(function(i){return Promise.resolve(i.provideHover(e,t,n)).then(function(e){return e&&(n=void 0!==(t=e).range,i=void 0!==t.contents&&t.contents&&t.contents.length>0,n&&i)?e:void 0;var t,n,i;},function(e){u(e);});});return Promise.all(i).then(le);}Jc("_executeHoverProvider",function(e,t){return oM(e,t,B.None);});var rM=function(){function e(t,n,i,o){var r=this;this._computer=t,this._state=0,this._hoverTime=e.HOVER_TIME,this._firstWaitScheduler=new ee(function(){return r._triggerAsyncComputation();},0),this._secondWaitScheduler=new ee(function(){return r._triggerSyncComputation();},0),this._loadingMessageScheduler=new ee(function(){return r._showLoadingMessage();},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=n,this._errorCallback=i,this._progressCallback=o;}return e.prototype.setHoverTime=function(e){this._hoverTime=e;},e.prototype._firstWaitTime=function(){return this._hoverTime/2;},e.prototype._secondWaitTime=function(){return this._hoverTime/2;},e.prototype._loadingMessageTime=function(){return 3*this._hoverTime;},e.prototype._triggerAsyncComputation=function(){var e=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=q(function(t){return e._computer.computeAsync(t);}),this._asyncComputationPromise.then(function(t){e._asyncComputationPromiseDone=!0,e._withAsyncResult(t);},function(t){return e._onError(t);})):this._asyncComputationPromiseDone=!0;},e.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()));},e.prototype._showLoadingMessage=function(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage());},e.prototype._withAsyncResult=function(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()));},e.prototype._onComplete=function(e){this._completeCallback&&this._completeCallback(e);},e.prototype._onError=function(e){this._errorCallback?this._errorCallback(e):a(e);},e.prototype._onProgress=function(e){this._progressCallback&&this._progressCallback(e);},e.prototype.start=function(e){if(0===e)0===this._state&&(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();}},e.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0;},e.HOVER_TIME=300,e;}(),sM=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),aM=function(e){function t(t,n){var i=e.call(this)||this;return i.disposables=[],i.allowEditorOverflow=!0,i._id=t,i._editor=n,i._isVisible=!1,i._containerDomNode=document.createElement("div"),i._containerDomNode.className="monaco-editor-hover hidden",i._containerDomNode.tabIndex=0,i._domNode=document.createElement("div"),i._domNode.className="monaco-editor-hover-content",i.scrollbar=new zv(i._domNode,{}),i.disposables.push(i.scrollbar),i._containerDomNode.appendChild(i.scrollbar.getDomNode()),i.onkeydown(i._containerDomNode,function(e){e.equals(9)&&i.hide();}),i._register(i._editor.onDidChangeConfiguration(function(e){e.fontInfo&&i.updateFont();})),i._editor.onDidLayoutChange(function(e){return i.updateMaxHeight();}),i.updateMaxHeight(),i._editor.addContentWidget(i),i._showAtPosition=null,i._showAtRange=null,i;}return sM(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible;},set:function(e){this._isVisible=e,ei(this._containerDomNode,"hidden",!this._isVisible);},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this._id;},t.prototype.getDomNode=function(){return this._containerDomNode;},t.prototype.showAt=function(e,t,n){this._showAtPosition=e,this._showAtRange=t,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=n,n&&this._containerDomNode.focus();},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus());},t.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null;},t.prototype.dispose=function(){this._editor.removeContentWidget(this),this.disposables=f(this.disposables),e.prototype.dispose.call(this);},t.prototype.updateFont=function(){var e=this;Array.prototype.slice.call(this._domNode.getElementsByClassName("code")).forEach(function(t){return e._editor.applyFontInfo(t);});},t.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange();},t.prototype.onContentsChange=function(){this.scrollbar.scanDomNode();},t.prototype.updateMaxHeight=function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getConfiguration().fontInfo,n=t.fontSize,i=t.lineHeight;this._domNode.style.fontSize=n+"px",this._domNode.style.lineHeight=i+"px",this._domNode.style.maxHeight=e+"px";},t;}(yv),uM=function(e){function t(t,n){var i=e.call(this)||this;return i._id=t,i._editor=n,i._isVisible=!1,i._domNode=document.createElement("div"),i._domNode.className="monaco-editor-hover hidden",i._domNode.setAttribute("aria-hidden","true"),i._domNode.setAttribute("role","presentation"),i._showAtLineNumber=-1,i._register(i._editor.onDidChangeConfiguration(function(e){e.fontInfo&&i.updateFont();})),i._editor.addOverlayWidget(i),i;}return sM(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible;},set:function(e){this._isVisible=e,ei(this._domNode,"hidden",!this._isVisible);},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this._id;},t.prototype.getDomNode=function(){return this._domNode;},t.prototype.showAt=function(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);var t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),i=this._editor.getScrollTop(),o=this._editor.getConfiguration().lineHeight,r=n-i-(this._domNode.clientHeight-o)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(r),0)+"px";},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1);},t.prototype.getPosition=function(){return null;},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this);},t.prototype.updateFont=function(){var e=this,t=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),n=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));t.concat(n).forEach(function(t){return e._editor.applyFontInfo(t);});},t.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont();},t;}(yv),lM=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),cM=ji,dM=function(){return function(e,t,n){this.range=e,this.color=t,this.provider=n;};}(),hM=function(){function e(e){this._editor=e,this._range=null;}return e.prototype.setRange=function(e){this._range=e,this._result=[];},e.prototype.clearResult=function(){this._result=[];},e.prototype.computeAsync=function(e){var t=this._editor.getModel();return hs.has(t)?oM(t,new Qt(this._range.startLineNumber,this._range.startColumn),e):Promise.resolve(null);},e.prototype.computeSync=function(){var e=this,t=this._range.startLineNumber;if(t>this._editor.getModel().getLineCount())return[];var n=ON.get(this._editor),i=this._editor.getModel().getLineMaxColumn(t),o=this._editor.getLineDecorations(t),r=!1;return o.map(function(o){var s=o.range.startLineNumber===t?o.range.startColumn:1,a=o.range.endLineNumber===t?o.range.endColumn:i;if(s>e._range.startColumn||e._range.endColumn>a)return null;var u=new Jt(e._range.startLineNumber,s,e._range.startLineNumber,a),l=n.getColorData(o.range.getStartPosition());if(!r&&l){r=!0;var c=l.colorInfo,d=c.color,h=c.range;return new dM(h,d,l.provider);}if(Sw(o.options.hoverMessage))return null;var p=void 0;return o.options.hoverMessage&&(p=Array.isArray(o.options.hoverMessage)?o.options.hoverMessage.slice():[o.options.hoverMessage]),{contents:p,range:u};}).filter(function(e){return!!e;});},e.prototype.onResult=function(e,t){this._result=t?e.concat(this._result.sort(function(e,t){return e instanceof dM?-1:t instanceof dM?1:0;})):this._result.concat(e);},e.prototype.getResult=function(){return this._result.slice(0);},e.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()]);},e.prototype._getLoadingMessage=function(){return{range:this._range,contents:[new ww().appendText(ie("modesContentHover.loading","Loading..."))]};},e;}(),pM=function(e){function t(n,i,o){var r=e.call(this,t.ID,n)||this;return r._themeService=o,r.renderDisposable=y.None,r._computer=new hM(r._editor),r._highlightDecorations=[],r._isChangingDecorations=!1,r._markdownRenderer=i,r._register(i.onDidRenderCodeBlock(r.onContentsChange,r)),r._hoverOperation=new rM(r._computer,function(e){return r._withResult(e,!0);},null,function(e){return r._withResult(e,!1);}),r._register(ii(r.getDomNode(),Pi.FOCUS,function(){r._colorPicker&&Xn(r.getDomNode(),"colorpicker-hover");})),r._register(ii(r.getDomNode(),Pi.BLUR,function(){Qn(r.getDomNode(),"colorpicker-hover");})),r._register(n.onDidChangeConfiguration(function(e){r._hoverOperation.setHoverTime(r._editor.getConfiguration().contribInfo.hover.delay);})),r;}return lM(t,e),t.prototype.dispose=function(){this.renderDisposable.dispose(),this.renderDisposable=y.None,this._hoverOperation.cancel(),e.prototype.dispose.call(this);},t.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0));},t.prototype.startShowingAt=function(e,t,n){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition.lineNumber!==e.startLineNumber)this.hide();else{for(var i=[],o=0,r=this._messages.length;o<r;o++){var s=this._messages[o],a=s.range;a.startColumn<=e.startColumn&&a.endColumn>=e.endColumn&&i.push(s);}if(i.length>0){if(function(e,t){if(!e&&t||e&&!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var i=e[n],o=t[n];if(i instanceof dM)return!1;if(o instanceof dM)return!1;if(r=i.contents,s=o.contents,!(!r&&!s||r&&s&&(Array.isArray(r)&&Array.isArray(s)?re(r,s,Ew):xw(r)&&xw(s)&&Ew(r,s))))return!1;}var r,s;return!0;}(i,this._messages))return;this._renderMessages(e,i);}else this.hide();}this._lastRange=e,this._computer.setRange(e),this._shouldFocus=n,this._hoverOperation.start(t);}},t.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),e.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.dispose(),this.renderDisposable=y.None,this._colorPicker=null;},t.prototype.isColorPickerVisible=function(){return!!this._colorPicker;},t.prototype._withResult=function(e,t){this._messages=e,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):t&&this.hide();},t.prototype._renderMessages=function(e,n){var i=this;this.renderDisposable.dispose(),this._colorPicker=null;var o,r=Number.MAX_VALUE,s=Jt.lift(n[0].range),a=document.createDocumentFragment(),u=!0,l=!1;n.forEach(function(e){if(e.range)if(r=Math.min(r,e.range.startColumn),s=Jt.plusRange(s,e.range),e instanceof dM){l=!0;var t=e.color,n=t.red,c=t.green,d=t.blue,h=t.alpha,p=new Ih(255*n,255*c,255*d,h),f=new Oh(p),m=i._editor.getModel(),_=new Jt(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn),v={range:e.range,color:e.color},y=new $A(f,[],0),b=new iM(a,y,i._editor.getConfiguration().pixelRatio,i._themeService);IN(m,v,e.provider,B.None).then(function(t){y.colorPresentations=t;var n=i._editor.getModel().getValueInRange(e.range);y.guessColorPresentation(f,n);var r=function(){var e,t;y.presentation.textEdit?(e=[y.presentation.textEdit],t=(t=new Jt(y.presentation.textEdit.range.startLineNumber,y.presentation.textEdit.range.startColumn,y.presentation.textEdit.range.endLineNumber,y.presentation.textEdit.range.endColumn)).setEndPosition(t.endLineNumber,t.startColumn+y.presentation.textEdit.text.length)):(e=[{identifier:null,range:_,text:y.presentation.label,forceMoveMarkers:!1}],t=_.setEndPosition(_.endLineNumber,_.startColumn+y.presentation.label.length)),i._editor.pushUndoStop(),i._editor.executeEdits("colorpicker",e),y.presentation.additionalTextEdits&&(e=y.presentation.additionalTextEdits.slice(),i._editor.executeEdits("colorpicker",e),i.hide()),i._editor.pushUndoStop(),_=t;},s=function(t){return IN(m,{range:_,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},e.provider,B.None).then(function(e){y.colorPresentations=e;});},u=y.onColorFlushed(function(e){s(e).then(r);}),l=y.onDidChangeColor(s);i._colorPicker=b,i.showAt(_.getStartPosition(),_,i._shouldFocus),i.updateContents(a),i._colorPicker.layout(),i.renderDisposable=g([u,l,b,o]);});}else e.contents.filter(function(e){return!Sw(e);}).forEach(function(e){var t=i._markdownRenderer.render(e);o=t,a.appendChild(cM("div.hover-row",null,t.element)),u=!1;});}),l||u||(this.showAt(new Qt(e.startLineNumber,r),s,this._shouldFocus),this.updateContents(a)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[{range:s,options:t._DECORATION_OPTIONS}]),this._isChangingDecorations=!1;},t.ID="editor.contrib.modesContentHoverWidget",t._DECORATION_OPTIONS=i_.register({className:"hoverHighlight"}),t;}(aM);var fM=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),gM=function(){function e(e){this._editor=e,this._lineNumber=-1;}return e.prototype.setLineNumber=function(e){this._lineNumber=e,this._result=[];},e.prototype.clearResult=function(){this._result=[];},e.prototype.computeSync=function(){var e=function(e){return{value:e};},t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(var i=0,o=t.length;i<o;i++){var r=t[i];if(r.options.glyphMarginClassName){var s=r.options.glyphMarginHoverMessage;s&&!Sw(s)&&(Array.isArray(s)?n=n.concat(s.map(e)):n.push(e(s)));}}return n;},e.prototype.onResult=function(e,t){this._result=this._result.concat(e);},e.prototype.getResult=function(){return this._result;},e.prototype.getResultWithLoadingMessage=function(){return this.getResult();},e;}(),mM=function(e){function t(n,i){var o=e.call(this,t.ID,n)||this;return o._lastLineNumber=-1,o._markdownRenderer=i,o._computer=new gM(o._editor),o._hoverOperation=new rM(o._computer,function(e){return o._withResult(e);},void 0,function(e){return o._withResult(e);}),o;}return fM(t,e),t.prototype.dispose=function(){this._renderDisposeables=f(this._renderDisposeables),this._hoverOperation.cancel(),e.prototype.dispose.call(this);},t.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0));},t.prototype.startShowingAt=function(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0));},t.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),e.prototype.hide.call(this);},t.prototype._withResult=function(e){this._messages=e,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide();},t.prototype._renderMessages=function(e,t){var n=this;f(this._renderDisposeables),this._renderDisposeables=[];var i=document.createDocumentFragment();t.forEach(function(e){var t=n._markdownRenderer.render(e.value);n._renderDisposeables.push(t),i.appendChild(ji("div.hover-row",void 0,t.element));}),this.updateContents(i),this.showAt(e);},t.ID="editor.contrib.modesGlyphHoverWidget",t;}(uM),_M=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},vM=function(e,t){return function(n,i){t(n,i,e);};},yM=function(){function e(e,t,n){void 0===n&&(n=SE),this._editor=e,this._modeService=t,this._openerService=n,this._onDidRenderCodeBlock=new N(),this.onDidRenderCodeBlock=this._onDidRenderCodeBlock.event;}return e.prototype.getOptions=function(e){var t=this;return{codeBlockRenderer:function(e,n){var i=null;if(e)i=t._modeService.getModeIdForLanguageName(e);else{var o=t._editor.getModel();o&&(i=o.getLanguageIdentifier().language);}return t._modeService.triggerMode(i||""),Promise.resolve(!0).then(function(e){var t=Ls.getPromise(i||"");return t?t.then(function(e){return yb(n,e);}):yb(n,void 0);}).then(function(e){return'<span style="font-family: '+t._editor.getConfiguration().fontInfo.fontFamily+'">'+e+"</span>";});},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire();},actionHandler:{callback:function(e){var n;try{n=_t.parse(e);}catch(e){}n&&t._openerService&&t._openerService.open(n).catch(a);},disposeables:e}};},e.prototype.render=function(e){var t=[];return{element:e?function(e,t){void 0===t&&(t={});var n,i=kk(t),o=new Promise(function(e){return n=e;}),r=new Nk.Renderer();r.image=function(e,t,n){var i=[];if(e){var o=e.split("|").map(function(e){return e.trim();});e=o[0];var r=o[1];if(r){var s=/height=(\d+)/.exec(r),a=/width=(\d+)/.exec(r),u=s?s[1]:"",l=a?a[1]:"",c=isFinite(parseInt(l)),d=isFinite(parseInt(u));c&&i.push('width="'+l+'"'),d&&i.push('height="'+u+'"');}}var h=[];return e&&h.push('src="'+e+'"'),n&&h.push('alt="'+n+'"'),t&&h.push('title="'+t+'"'),i.length&&(h=h.concat(i)),"<img "+h.join(" ")+">";},r.link=function(t,n,i){return t===i&&(i=Lw(i)),n=Lw(n),!(t=Lw(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?i:'<a href="#" data-href="'+t+'" title="'+(n||t)+'">'+i+"</a>";},r.paragraph=function(e){return"<p>"+e+"</p>";},t.codeBlockRenderer&&(r.code=function(e,n){var r=t.codeBlockRenderer(n,e),s=Ik.nextId(),a=Promise.all([r,o]).then(function(e){var t=e[0],n=i.querySelector('div[data-code="'+s+'"]');n&&(n.innerHTML=t);}).catch(function(e){});return t.codeBlockRenderCallback&&a.then(t.codeBlockRenderCallback),'<div class="code" data-code="'+s+'">'+no(e)+"</div>";}),t.actionHandler&&t.actionHandler.disposeables.push(ii(i,"click",function(e){var n=e.target;if("A"===n.tagName||(n=n.parentElement)&&"A"===n.tagName)try{var i=n.dataset.href;i&&t.actionHandler.callback(i,e);}catch(e){a(e);}finally{e.preventDefault();}}));var s={sanitize:!0,renderer:r};return i.innerHTML=Nk.parse(e.value,s),n(),i;}(e,this.getOptions(t)):document.createElement("span"),dispose:function(){return f(t);}};},e=_M([vM(1,tw),vM(2,hn(wE))],e);}(),bM=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),CM=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},wM=function(e,t){return function(n,i){t(n,i,e);};},SM=function(){function e(e,t,n,i){var o=this;this._editor=e,this._openerService=t,this._modeService=n,this._themeService=i,this._toUnhook=[],this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(e){e.contribInfo&&(o._hideWidgets(),o._unhookEvents(),o._hookEvents());});}return Object.defineProperty(e.prototype,"contentWidget",{get:function(){return this._contentWidget||this._createHoverWidget(),this._contentWidget;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"glyphWidget",{get:function(){return this._glyphWidget||this._createHoverWidget(),this._glyphWidget;},enumerable:!0,configurable:!0}),e.get=function(t){return t.getContribution(e.ID);},e.prototype._hookEvents=function(){var e=this,t=function(){return e._hideWidgets();},n=this._editor.getConfiguration().contribInfo.hover;this._isHoverEnabled=n.enabled,this._isHoverSticky=n.sticky,this._isHoverEnabled?(this._toUnhook.push(this._editor.onMouseDown(function(t){return e._onEditorMouseDown(t);})),this._toUnhook.push(this._editor.onMouseUp(function(t){return e._onEditorMouseUp(t);})),this._toUnhook.push(this._editor.onMouseMove(function(t){return e._onEditorMouseMove(t);})),this._toUnhook.push(this._editor.onKeyDown(function(t){return e._onKeyDown(t);})),this._toUnhook.push(this._editor.onDidChangeModelDecorations(function(){return e._onModelDecorationsChanged();}))):this._toUnhook.push(this._editor.onMouseMove(t)),this._toUnhook.push(this._editor.onMouseLeave(t)),this._toUnhook.push(this._editor.onDidChangeModel(t)),this._toUnhook.push(this._editor.onDidScrollChange(function(t){return e._onEditorScrollChanged(t);}));},e.prototype._unhookEvents=function(){this._toUnhook=f(this._toUnhook);},e.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged();},e.prototype._onEditorScrollChanged=function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets();},e.prototype._onEditorMouseDown=function(e){this._isMouseDown=!0;var t=e.target.type;9!==t||e.target.detail!==pM.ID?12===t&&e.target.detail===mM.ID||(12!==t&&e.target.detail!==mM.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0;},e.prototype._onEditorMouseUp=function(e){this._isMouseDown=!1;},e.prototype._onEditorMouseMove=function(e){var t=e.target.type,n=o.d?e.event.metaKey:e.event.ctrlKey;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())&&(!this._isHoverSticky||9!==t||e.target.detail!==pM.ID||n)&&(!this._isHoverSticky||12!==t||e.target.detail!==mM.ID||n)){if(7===t){var i=this._editor.getConfiguration().fontInfo.typicalHalfwidthCharacterWidth/2,r=e.target.detail;r&&!r.isAfterLines&&"number"==typeof r.horizontalDistanceToText&&r.horizontalDistanceToText<i&&(t=6);}6===t?(this.glyphWidget.hide(),this._isHoverEnabled&&this.contentWidget.startShowingAt(e.target.range,0,!1)):2===t?(this.contentWidget.hide(),this._isHoverEnabled&&this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets();}},e.prototype._onKeyDown=function(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets();},e.prototype._hideWidgets=function(){!this._contentWidget||this._isMouseDown&&this._hoverClicked&&this._contentWidget.isColorPickerVisible()||(this._glyphWidget.hide(),this._contentWidget.hide());},e.prototype._createHoverWidget=function(){var e=new yM(this._editor,this._modeService,this._openerService);this._contentWidget=new pM(this._editor,e,this._themeService),this._glyphWidget=new mM(this._editor,e);},e.prototype.showContentHover=function(e,t,n){this.contentWidget.startShowingAt(e,t,n);},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this._unhookEvents(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget&&(this._glyphWidget.dispose(),this._glyphWidget=null),this._contentWidget&&(this._contentWidget.dispose(),this._contentWidget=null);},e.ID="editor.contrib.hover",e=CM([wM(1,wE),wM(2,tw),wM(3,Rd)],e);}(),xM=function(e){function t(){return e.call(this,{id:"editor.action.showHover",label:ie({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:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2087),weight:100}})||this;}return bM(t,e),t.prototype.run=function(e,t){var n=SM.get(t);if(n){var i=t.getPosition(),o=new Jt(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(o,1,!0);}},t;}(Zc);nd(SM),td(xM),Vd(function(e,t){var n=e.getColor(Gp);n&&t.addRule(".monaco-editor .hoverHighlight { background-color: "+n+"; }");var i=e.getColor($p);i&&t.addRule(".monaco-editor .monaco-editor-hover { background-color: "+i+"; }");var o=e.getColor(Yp);o&&(t.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+o+"; }"),t.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+o.transparent(.5)+"; }"));var r=e.getColor(Vh);r&&t.addRule(".monaco-editor .monaco-editor-hover a { color: "+r+"; }");var s=e.getColor(Hh);s&&t.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+s+"; }");});var EM=function(){function e(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n;}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._editRange,this._text);},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new tn(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new tn(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn);},e;}(),LM=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),TM=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},IM=function(e,t){return function(n,i){t(n,i,e);};},NM=function(){function e(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t;}return e.get=function(t){return t.getContribution(e.ID);},e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID;},e.prototype.run=function(t,n){var i=this;this.currentRequest&&this.currentRequest.cancel();var o=this.editor.getSelection(),r=this.editor.getModel().uri;if(o.startLineNumber!==o.endLineNumber)return null;var s=new lC(this.editor,5);return this.editorWorkerService.canNavigateValueSet(r)?(this.currentRequest=q(function(e){return i.editorWorkerService.navigateValueSet(r,o,n);}),this.currentRequest.then(function(n){if(n&&n.range&&n.value&&s.validate(i.editor)){var r=Jt.lift(n.range),u=n.range,l=n.value.length-(o.endColumn-o.startColumn);u={startLineNumber:u.startLineNumber,startColumn:u.startColumn,endLineNumber:u.endLineNumber,endColumn:u.startColumn+n.value.length},l>1&&(o=new tn(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn+l-1));var c=new EM(r,o,n.value);i.editor.pushUndoStop(),i.editor.executeCommand(t,c),i.editor.pushUndoStop(),i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[{range:u,options:e.DECORATION}]),i.decorationRemover&&i.decorationRemover.cancel(),i.decorationRemover=$(350),i.decorationRemover.then(function(){return i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[]);}).catch(a);}}).catch(a)):void 0;},e.ID="editor.contrib.inPlaceReplaceController",e.DECORATION=i_.register({className:"valueSetReplacement"}),e=TM([IM(1,Os)],e);}(),kM=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.up",label:ie("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:3154,weight:100}})||this;}return LM(t,e),t.prototype.run=function(e,t){var n=NM.get(t);if(n)return n.run(this.id,!0);},t;}(Zc),OM=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.down",label:ie("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:3156,weight:100}})||this;}return LM(t,e),t.prototype.run=function(e,t){var n=NM.get(t);if(n)return n.run(this.id,!1);},t;}(Zc);nd(NM),td(kM),td(OM),Vd(function(e,t){var n=e.getColor(Of);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }");});var DM=function(){function e(e,t){this.selection=e,this.cursors=t;}return e.prototype.getEditOperations=function(e,t){for(var n=function(e,t){t.sort(function(e,t){return e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber;});for(var n=t.length-2;n>=0;n--)t[n].lineNumber===t[n+1].lineNumber&&t.splice(n,1);for(var i=[],o=0,r=0,s=t.length,a=1,u=e.getLineCount();a<=u;a++){var l=e.getLineContent(a),c=l.length+1,d=0;if(!(r<s&&t[r].lineNumber===a&&(d=t[r].column,r++,d===c))&&0!==l.length){var h=ho(l),p=0;if(-1===h)p=1;else{if(h===l.length-1)continue;p=h+2;}p=Math.max(d,p),i[o++]=ll.delete(new Jt(a,p,a,c));}}return i;}(e,this.cursors),i=0,o=n.length;i<o;i++){var r=n[i];t.addEditOperation(r.range,r.text);}this.selectionId=t.trackSelection(this.selection);},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this.selectionId);},e;}();var RM=function(){function e(e,t){this._selection=e,this._isCopyingDown=t;}return e.prototype.getEditOperations=function(e,t){var n=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._endLineNumberDelta=1,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));for(var i=[],o=n.startLineNumber;o<=n.endLineNumber;o++)i.push(e.getLineContent(o));var r=i.join("\n");""===r&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._isCopyingDown?t.addEditOperation(new Jt(n.startLineNumber,1,n.startLineNumber,1),r+"\n"):t.addEditOperation(new Jt(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+r),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection();},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){var i=n.startLineNumber,o=n.startColumn,r=n.endLineNumber,s=n.endColumn;0!==this._startLineNumberDelta&&(i+=this._startLineNumberDelta,o=1),0!==this._endLineNumberDelta&&(r+=this._endLineNumberDelta,s=1),n=tn.createWithDirection(i,o,r,s,this._selectionDirection);}return n;},e;}(),AM=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.restoreCursorToColumn=n;}return e.prototype.getEditOperations=function(e,t){if(1!==e.getLineCount()||1!==e.getLineMaxColumn(1)){var n=this.startLineNumber,i=this.endLineNumber,o=1,r=e.getLineMaxColumn(i);i<e.getLineCount()?(i+=1,r=1):n>1&&(n-=1,o=e.getLineMaxColumn(n)),t.addTrackedEditOperation(new Jt(n,o,i,r),null);}},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new tn(n.endLineNumber,this.restoreCursorToColumn,n.endLineNumber,this.restoreCursorToColumn);},e;}();function MM(e,t){for(var n=0,i=0;i<e.length;i++)"\t"===e.charAt(i)?n+=t:n++;return n;}function PM(e,t,n){e=e<0?0:e;var i="";if(!n){var o=Math.floor(e/t);e%=t;for(var r=0;r<o;r++)i+="\t";}for(r=0;r<e;r++)i+=" ";return i;}var FM=function(){function e(e,t,n){this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._moveEndLineSelectionShrink=!1;}return e.prototype.getEditOperations=function(e,t){var n=e.getLineCount();if((!this._isMovingDown||this._selection.endLineNumber!==n)&&(this._isMovingDown||1!==this._selection.startLineNumber)){this._moveEndPositionDown=!1;var i=this._selection;i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));var o=e.getOptions().tabSize,r=e.getOptions().insertSpaces,s=this.buildIndentConverter(o),a={getLineTokens:function(t){return e.getLineTokens(t);},getLanguageIdentifier:function(){return e.getLanguageIdentifier();},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n);},getLineContent:null};if(i.startLineNumber===i.endLineNumber&&1===e.getLineMaxColumn(i.startLineNumber)){var u=i.startLineNumber,l=this._isMovingDown?u+1:u-1;1===e.getLineMaxColumn(l)?t.addEditOperation(new Jt(1,1,1,1),null):(t.addEditOperation(new Jt(u,1,u,1),e.getLineContent(l)),t.addEditOperation(new Jt(l,1,l,e.getLineMaxColumn(l)),null)),i=new tn(l,1,l,1);}else{var c,d=void 0;if(this._isMovingDown){c=i.endLineNumber+1,d=e.getLineContent(c),t.addEditOperation(new Jt(c-1,e.getLineMaxColumn(c-1),c,e.getLineMaxColumn(c)),null);var h=d;if(this.shouldAutoIndent(e,i)){var p=this.matchEnterRule(e,s,o,c,i.startLineNumber-1);if(null!==p){var f=PM(C=p+MM(m=co(e.getLineContent(c)),o),o,r);h=f+this.trimLeft(d);}else{a.getLineContent=function(t){return t===i.startLineNumber?e.getLineContent(c):e.getLineContent(t);};var g=la.getGoodIndentForLine(a,e.getLanguageIdAtPosition(c,1),i.startLineNumber,s);if(null!==g){var m=co(e.getLineContent(c));if((C=MM(g,o))!==(w=MM(m,o))){f=PM(C,o,r);h=f+this.trimLeft(d);}}}if(t.addEditOperation(new Jt(i.startLineNumber,1,i.startLineNumber,1),h+"\n"),null!==(y=this.matchEnterRule(e,s,o,i.startLineNumber,i.startLineNumber,h)))0!==y&&this.getIndentEditsOfMovingBlock(e,t,i,o,r,y);else{a.getLineContent=function(t){return t===i.startLineNumber?h:t>=i.startLineNumber+1&&t<=i.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);};var _=la.getGoodIndentForLine(a,e.getLanguageIdAtPosition(c,1),i.startLineNumber+1,s);if(null!==_){m=co(e.getLineContent(i.startLineNumber));if((C=MM(_,o))!==(w=MM(m,o))){var v=C-w;this.getIndentEditsOfMovingBlock(e,t,i,o,r,v);}}}}else t.addEditOperation(new Jt(i.startLineNumber,1,i.startLineNumber,1),h+"\n");}else{var y;if(c=i.startLineNumber-1,d=e.getLineContent(c),t.addEditOperation(new Jt(c,1,c+1,1),null),t.addEditOperation(new Jt(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+d),this.shouldAutoIndent(e,i))if(a.getLineContent=function(t){return t===c?e.getLineContent(i.startLineNumber):e.getLineContent(t);},null!==(y=this.matchEnterRule(e,s,o,i.startLineNumber,i.startLineNumber-2)))0!==y&&this.getIndentEditsOfMovingBlock(e,t,i,o,r,y);else{var b=la.getGoodIndentForLine(a,e.getLanguageIdAtPosition(i.startLineNumber,1),c,s);if(null!==b){var C,w,S=co(e.getLineContent(i.startLineNumber));if((C=MM(b,o))!==(w=MM(S,o))){v=C-w;this.getIndentEditsOfMovingBlock(e,t,i,o,r,v);}}}}}this._selectionId=t.trackSelection(i);}},e.prototype.buildIndentConverter=function(e){return{shiftIndent:function(t){for(var n=P_.shiftIndentCount(t,t.length+1,e),i="",o=0;o<n;o++)i+="\t";return i;},unshiftIndent:function(t){for(var n=P_.unshiftIndentCount(t,t.length+1,e),i="",o=0;o<n;o++)i+="\t";return i;}};},e.prototype.matchEnterRule=function(e,t,n,i,o,r){for(var s=o;s>=1;){if(ho(s===o&&void 0!==r?r:e.getLineContent(s))>=0)break;s--;}if(s<1||i>e.getLineCount())return null;var a=e.getLineMaxColumn(s),u=la.getEnterAction(e,new Jt(s,a,s,a));if(u){var l=u.indentation,c=u.enterAction;c.indentAction===Vs.None?l=u.indentation+c.appendText:c.indentAction===Vs.Indent?l=u.indentation+c.appendText:c.indentAction===Vs.IndentOutdent?l=u.indentation:c.indentAction===Vs.Outdent&&(l=t.unshiftIndent(u.indentation)+c.appendText);var d=e.getLineContent(i);if(this.trimLeft(d).indexOf(this.trimLeft(l))>=0){var h=co(e.getLineContent(i)),p=co(l),f=la.getIndentMetadata(e,i);return null!==f&&2&f&&(p=t.unshiftIndent(p)),MM(p,n)-MM(h,n);}}return null;},e.prototype.trimLeft=function(e){return e.replace(/^\s+/,"");},e.prototype.shouldAutoIndent=function(e,t){if(!this._autoIndent)return!1;if(!e.isCheapToTokenize(t.startLineNumber))return!1;var n=e.getLanguageIdAtPosition(t.startLineNumber,1);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==la.getIndentRulesSupport(n);},e.prototype.getIndentEditsOfMovingBlock=function(e,t,n,i,o,r){for(var s=n.startLineNumber;s<=n.endLineNumber;s++){var a=co(e.getLineContent(s)),u=PM(MM(a,i)+r,i,o);u!==a&&(t.addEditOperation(new Jt(s,1,s,a.length+1),u),s===n.endLineNumber&&n.endColumn<=a.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0));}},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber<n.endLineNumber&&(n=n.setEndPosition(n.endLineNumber,2)),n;},e;}(),WM=function(){function e(e,t){this.selection=e,this.descending=t;}return e.prototype.getEditOperations=function(e,t){var n=function(e,t,n){var i=BM(e,t,n);if(!i)return null;return ll.replace(new Jt(i.startLineNumber,1,i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),i.after.join("\n"));}(e,this.selection,this.descending);n&&t.addEditOperation(n.range,n.text),this.selectionId=t.trackSelection(this.selection);},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this.selectionId);},e.canRun=function(e,t,n){var i=BM(e,t,n);if(!i)return!1;for(var o=0,r=i.before.length;o<r;o++)if(i.before[o]!==i.after[o])return!0;return!1;},e;}();function BM(e,t,n){var i=t.startLineNumber,o=t.endLineNumber;if(1===t.endColumn&&o--,i>=o)return null;for(var r=[],s=i;s<=o;s++)r.push(e.getLineContent(s));var a=r.slice(0);return a.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase());}),!0===n&&(a=a.reverse()),{startLineNumber:i,endLineNumber:o,before:r,after:a};}var VM=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),HM=function(e){function t(t,n){var i=e.call(this,n)||this;return i.down=t,i;}return VM(t,e),t.prototype.run=function(e,t){for(var n=[],i=t.getSelections()||[],o=0;o<i.length;o++)n.push(new RM(i[o],this.down));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop();},t;}(Zc),UM=function(e){function t(){return e.call(this,!1,{id:"editor.action.copyLinesUpAction",label:ie("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"2_line",title:ie({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})||this;}return VM(t,e),t;}(HM),jM=function(e){function t(){return e.call(this,!0,{id:"editor.action.copyLinesDownAction",label:ie("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"2_line",title:ie({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})||this;}return VM(t,e),t;}(HM),zM=function(e){function t(t,n){var i=e.call(this,n)||this;return i.down=t,i;}return VM(t,e),t.prototype.run=function(e,t){for(var n=[],i=t.getSelections()||[],o=t.getConfiguration().autoIndent,r=0;r<i.length;r++)n.push(new FM(i[r],this.down,o));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop();},t;}(Zc),KM=function(e){function t(){return e.call(this,!1,{id:"editor.action.moveLinesUpAction",label:ie("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:528,linux:{primary:528},weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"2_line",title:ie({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})||this;}return VM(t,e),t;}(zM),qM=function(e){function t(){return e.call(this,!0,{id:"editor.action.moveLinesDownAction",label:ie("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:530,linux:{primary:530},weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"2_line",title:ie({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})||this;}return VM(t,e),t;}(zM),GM=function(e){function t(t,n){var i=e.call(this,n)||this;return i.descending=t,i;}return VM(t,e),t.prototype.run=function(e,t){for(var n=t.getSelections()||[],i=0,o=n.length;i<o;i++){var r=n[i];if(!WM.canRun(t.getModel(),r,this.descending))return;}var s=[];for(i=0,o=n.length;i<o;i++)s[i]=new WM(n[i],this.descending);t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop();},t;}(Zc),$M=function(e){function t(){return e.call(this,!1,{id:"editor.action.sortLinesAscending",label:ie("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:A_.writable})||this;}return VM(t,e),t;}(GM),YM=function(e){function t(){return e.call(this,!0,{id:"editor.action.sortLinesDescending",label:ie("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:A_.writable})||this;}return VM(t,e),t;}(GM),XM=function(e){function t(){return e.call(this,{id:t.ID,label:ie("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:tt(2089,2102),weight:100}})||this;}return VM(t,e),t.prototype.run=function(e,t,n){var i=[];"auto-save"===n.reason&&(i=(t.getSelections()||[]).map(function(e){return new Qt(e.positionLineNumber,e.positionColumn);}));var o=new DM(t.getSelection(),i);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop();},t.ID="editor.action.trimTrailingWhitespace",t;}(Zc),ZM=function(e){function t(){return e.call(this,{id:"editor.action.deleteLines",label:ie("lines.delete","Delete Line"),alias:"Delete Line",precondition:A_.writable,kbOpts:{kbExpr:A_.textInputFocus,primary:3113,weight:100}})||this;}return VM(t,e),t.prototype.run=function(e,t){var n=this._getLinesToRemove(t).map(function(e){return new AM(e.startLineNumber,e.endLineNumber,e.positionColumn);});t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop();},t.prototype._getLinesToRemove=function(e){var t=e.getSelections().map(function(e){var t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,endLineNumber:t,positionColumn:e.positionColumn};});t.sort(function(e,t){return e.startLineNumber-t.startLineNumber;});for(var n=[],i=t[0],o=1;o<t.length;o++)i.endLineNumber+1===t[o].startLineNumber?i.endLineNumber=t[o].endLineNumber:(n.push(i),i=t[o]);return n.push(i),n;},t;}(Zc),QM=function(e){function t(){return e.call(this,{id:"editor.action.indentLines",label:ie("lines.indent","Indent Line"),alias:"Indent Line",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:2137,weight:100}})||this;}return VM(t,e),t.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,W_.indent(n.context.config,t.getModel(),t.getSelections())),t.pushUndoStop());},t;}(Zc),JM=function(e){function t(){return e.call(this,{id:"editor.action.outdentLines",label:ie("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:2135,weight:100}})||this;}return VM(t,e),t.prototype.run=function(e,t){j_.Outdent.runEditorCommand(null,t,null);},t;}(Zc),eP=function(e){function t(){return e.call(this,{id:"editor.action.insertLineBefore",label:ie("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:3075,weight:100}})||this;}return VM(t,e),t.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,W_.lineInsertBefore(n.context.config,t.getModel(),t.getSelections())));},t;}(Zc),tP=function(e){function t(){return e.call(this,{id:"editor.action.insertLineAfter",label:ie("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:2051,weight:100}})||this;}return VM(t,e),t.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,W_.lineInsertAfter(n.context.config,t.getModel(),t.getSelections())));},t;}(Zc),nP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return VM(t,e),t.prototype.run=function(e,t){for(var n=t.getSelection(),i=this._getRangesToDelete(t),o=[],r=0,s=i.length-1;r<s;r++){var a=i[r],u=i[r+1];null===Jt.intersectRanges(a,u)?o.push(a):i[r+1]=Jt.plusRange(a,u);}o.push(i[i.length-1]);var l=this._getEndCursorState(n,o),c=o.map(function(e){return ll.replace(e,"");});t.pushUndoStop(),t.executeEdits(this.id,c,l),t.pushUndoStop();},t;}(Zc),iP=function(e){function t(){return e.call(this,{id:"deleteAllLeft",label:ie("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:A_.writable,kbOpts:{kbExpr:A_.textInputFocus,primary:0,mac:{primary:2049},weight:100}})||this;}return VM(t,e),t.prototype._getEndCursorState=function(e,t){var n,i=[],o=0;return t.forEach(function(t){var r;if(1===t.endColumn&&o>0){var s=t.startLineNumber-o;r=new tn(s,t.startColumn,s,t.startColumn);}else r=new tn(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);o+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?n=r:i.push(r);}),n&&i.unshift(n),i;},t.prototype._getRangesToDelete=function(e){var t=e.getSelections(),n=e.getModel();return t.sort(Jt.compareRangesUsingStarts),t=t.map(function(e){if(e.isEmpty()){if(1===e.startColumn){var t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:n.getLineContent(t).length+1;return new Jt(t,i,e.startLineNumber,1);}return new Jt(e.startLineNumber,1,e.startLineNumber,e.startColumn);}return e;});},t;}(nP),oP=function(e){function t(){return e.call(this,{id:"deleteAllRight",label:ie("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:A_.writable,kbOpts:{kbExpr:A_.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})||this;}return VM(t,e),t.prototype._getEndCursorState=function(e,t){for(var n,i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=new tn(s.startLineNumber-0,s.startColumn,s.startLineNumber-0,s.startColumn);s.intersectRanges(e)?n=a:i.push(a);}return n&&i.unshift(n),i;},t.prototype._getRangesToDelete=function(e){var t=e.getModel(),n=e.getSelections().map(function(e){if(e.isEmpty()){var n=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===n?new Jt(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new Jt(e.startLineNumber,e.startColumn,e.startLineNumber,n);}return e;});return n.sort(Jt.compareRangesUsingStarts),n;},t;}(nP),rP=function(e){function t(){return e.call(this,{id:"editor.action.joinLines",label:ie("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:0,mac:{primary:296},weight:100}})||this;}return VM(t,e),t.prototype.run=function(e,t){var n=t.getSelections(),i=t.getSelection();n.sort(Jt.compareRangesUsingStarts);var o=[],r=n.reduce(function(e,t){return e.isEmpty()?e.endLineNumber===t.startLineNumber?(i.equalsSelection(e)&&(i=t),t):t.startLineNumber>e.endLineNumber+1?(o.push(e),t):new tn(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new tn(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn);});o.push(r);for(var s=t.getModel(),a=[],u=[],l=i,c=0,d=0,h=o.length;d<h;d++){var p=o[d],f=p.startLineNumber,g=0,m=void 0,_=void 0,v=s.getLineContent(p.endLineNumber).length-p.endColumn;if(p.isEmpty()||p.startLineNumber===p.endLineNumber){var y=p.getStartPosition();y.lineNumber<s.getLineCount()?(m=f+1,_=s.getLineMaxColumn(m)):(m=y.lineNumber,_=s.getLineMaxColumn(y.lineNumber));}else m=p.endLineNumber,_=s.getLineMaxColumn(m);for(var b=s.getLineContent(f),C=f+1;C<=m;C++){var w=s.getLineContent(C),S=s.getLineFirstNonWhitespaceColumn(C);if(S>=1){var x=!0;""===b&&(x=!1),!x||" "!==b.charAt(b.length-1)&&"\t"!==b.charAt(b.length-1)||(x=!1,b=b.replace(/[\s\uFEFF\xA0]+$/g," "));var E=w.substr(S-1);b+=(x?" ":"")+E,g=x?E.length+1:E.length;}else g=0;}var L=new Jt(f,1,m,_);if(!L.isEmpty()){var T=void 0;p.isEmpty()?(a.push(ll.replace(L,b)),T=new tn(L.startLineNumber-c,b.length-g+1,f-c,b.length-g+1)):p.startLineNumber===p.endLineNumber?(a.push(ll.replace(L,b)),T=new tn(p.startLineNumber-c,p.startColumn,p.endLineNumber-c,p.endColumn)):(a.push(ll.replace(L,b)),T=new tn(p.startLineNumber-c,p.startColumn,p.startLineNumber-c,b.length-v)),null!==Jt.intersectRanges(L,i)?l=T:u.push(T);}c+=L.endLineNumber-L.startLineNumber;}u.unshift(l),t.pushUndoStop(),t.executeEdits(this.id,a,u),t.pushUndoStop();},t;}(Zc),sP=function(e){function t(){return e.call(this,{id:"editor.action.transpose",label:ie("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:A_.writable})||this;}return VM(t,e),t.prototype.run=function(e,t){for(var n=t.getSelections(),i=t.getModel(),o=[],r=0,s=n.length;r<s;r++){var a=n[r];if(a.isEmpty()){var u=a.getStartPosition(),l=i.getLineMaxColumn(u.lineNumber);if(u.column>=l){if(u.lineNumber===i.getLineCount())continue;var c=new Jt(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),d=i.getValueInRange(c).split("").reverse().join("");o.push(new C_(new tn(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),d));}else{c=new Jt(u.lineNumber,Math.max(1,u.column-1),u.lineNumber,u.column+1),d=i.getValueInRange(c).split("").reverse().join("");o.push(new x_(c,d,new tn(u.lineNumber,u.column+1,u.lineNumber,u.column+1)));}}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop();},t;}(Zc),aP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return VM(t,e),t.prototype.run=function(e,t){for(var n=t.getSelections(),i=t.getModel(),o=[],r=0,s=n.length;r<s;r++){var a=n[r];if(a.isEmpty()){var u=a.getStartPosition(),l=i.getWordAtPosition(u);if(!l)continue;var c=new Jt(u.lineNumber,l.startColumn,u.lineNumber,l.endColumn),d=i.getValueInRange(c);o.push(new x_(c,this._modifyText(d),new tn(u.lineNumber,u.column,u.lineNumber,u.column)));}else{d=i.getValueInRange(a);o.push(new x_(a,this._modifyText(d),a));}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop();},t;}(Zc),uP=function(e){function t(){return e.call(this,{id:"editor.action.transformToUppercase",label:ie("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:A_.writable})||this;}return VM(t,e),t.prototype._modifyText=function(e){return e.toLocaleUpperCase();},t;}(aP),lP=function(e){function t(){return e.call(this,{id:"editor.action.transformToLowercase",label:ie("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:A_.writable})||this;}return VM(t,e),t.prototype._modifyText=function(e){return e.toLocaleLowerCase();},t;}(aP);td(UM),td(jM),td(KM),td(qM),td($M),td(YM),td(XM),td(ZM),td(QM),td(JM),td(eP),td(tP),td(iP),td(oP),td(rP),td(sP),td(uP),td(lP);n("./node_modules/monaco-editor/esm/vs/editor/contrib/links/links.css");var cP=function(){function e(e,t){this._link=e,this._provider=t;}return e.prototype.toJSON=function(){return{range:this.range,url:this.url};},Object.defineProperty(e.prototype,"range",{get:function(){return this._link.range;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._link.url;},enumerable:!0,configurable:!0}),e.prototype.resolve=function(e){var t=this;if(this._link.url)try{return Promise.resolve(_t.parse(this._link.url));}catch(e){return Promise.reject(new Error("invalid"));}return"function"==typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then(function(n){return t._link=n||t._link,t._link.url?t.resolve(e):Promise.reject(new Error("missing"));}):Promise.reject(new Error("missing"));},e;}();function dP(e,t){var n=[],i=Ss.ordered(e).reverse().map(function(i){return Promise.resolve(i.provideLinks(e,t)).then(function(e){if(Array.isArray(e)){var t=e.map(function(e){return new cP(e,i);});n=function(e,t){var n,i,o,r,s=[];for(n=0,o=0,i=e.length,r=t.length;n<i&&o<r;){var a=e[n],u=t[o];if(Jt.areIntersectingOrTouching(a.range,u.range))n++;else{var l=Jt.compareRangesUsingStarts(a.range,u.range);l<0?(s.push(a),n++):(s.push(u),o++);}}for(;n<i;n++)s.push(e[n]);for(;o<r;o++)s.push(t[o]);return s;}(n,t);}},u);});return Promise.all(i).then(function(){return n;});}Go.registerCommand("_executeLinkProvider",function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=t[0];if(i instanceof _t){var o=e.get(Gr).getModel(i);if(o)return dP(o,B.None);}});var hP=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),pP=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},fP=function(e,t){return function(n,i){t(n,i,e);};},gP=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e));}catch(e){r(e);}}function a(e){try{u(i.throw(e));}catch(e){r(e);}}function u(e){e.done?o(e.value):new n(function(t){t(e.value);}).then(s,a);}u((i=i.apply(e,t||[])).next());});},mP=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1];},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this;}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break;}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break;}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break;}o[2]&&s.ops.pop(),s.trys.pop();continue;}r=t.call(e,s);}catch(e){r=[6,e],i=0;}finally{n=o=0;}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0};}([r,a]);};}},_P=new ww().appendText(o.d?ie("links.navigate.mac","Cmd + click to follow link"):ie("links.navigate","Ctrl + click to follow link")),vP=new ww().appendText(o.d?ie("links.command.mac","Cmd + click to execute command"):ie("links.command","Ctrl + click to execute command")),yP=new ww().appendText(o.d?ie("links.navigate.al.mac","Option + click to follow link"):ie("links.navigate.al","Alt + click to follow link")),bP=new ww().appendText(o.d?ie("links.command.al.mac","Option + click to execute command"):ie("links.command.al","Alt + click to execute command")),CP={meta:i_.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link",hoverMessage:_P}),metaActive:i_.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active",hoverMessage:_P}),alt:i_.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link",hoverMessage:yP}),altActive:i_.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active",hoverMessage:yP}),altCommand:i_.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link",hoverMessage:bP}),altCommandActive:i_.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active",hoverMessage:bP}),metaCommand:i_.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link",hoverMessage:vP}),metaCommandActive:i_.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active",hoverMessage:vP})},wP=function(){function e(e,t){this.link=e,this.decorationId=t;}return e.decoration=function(t,n){return{range:t.range,options:e._getOptions(t,n,!1)};},e._getOptions=function(e,t,n){return e.url&&/^command:/i.test(e.url)?t?n?CP.metaCommandActive:CP.metaCommand:n?CP.altCommandActive:CP.altCommand:t?n?CP.metaActive:CP.meta:n?CP.altActive:CP.alt;},e.prototype.activate=function(t,n){t.changeDecorationOptions(this.decorationId,e._getOptions(this.link,n,!0));},e.prototype.deactivate=function(t,n){t.changeDecorationOptions(this.decorationId,e._getOptions(this.link,n,!1));},e;}(),SP=function(){function e(e,t,n){var i=this;this.editor=e,this.openerService=t,this.notificationService=n,this.listenersToRemove=[];var o=new xA(e);this.listenersToRemove.push(o),this.listenersToRemove.push(o.onMouseMoveOrRelevantKeyDown(function(e){var t=e[0],n=e[1];i._onEditorMouseMove(t,n);})),this.listenersToRemove.push(o.onExecute(function(e){i.onEditorMouseUp(e);})),this.listenersToRemove.push(o.onCancel(function(e){i.cleanUpActiveLinkDecoration();})),this.enabled=e.getConfiguration().contribInfo.links,this.listenersToRemove.push(e.onDidChangeConfiguration(function(t){var n=e.getConfiguration().contribInfo.links;i.enabled!==n&&(i.enabled=n,i.updateDecorations([]),i.stop(),i.beginCompute());})),this.listenersToRemove.push(e.onDidChangeModelContent(function(e){return i.onChange();})),this.listenersToRemove.push(e.onDidChangeModel(function(e){return i.onModelChanged();})),this.listenersToRemove.push(e.onDidChangeModelLanguage(function(e){return i.onModelModeChanged();})),this.listenersToRemove.push(Ss.onDidChange(function(e){return i.onModelModeChanged();})),this.timeout=new Q(),this.computePromise=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute();}return e.get=function(t){return t.getContribution(e.ID);},e.prototype.getId=function(){return e.ID;},e.prototype.onModelChanged=function(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute();},e.prototype.onModelModeChanged=function(){this.stop(),this.beginCompute();},e.prototype.onChange=function(){var t=this;this.timeout.setIfNotSet(function(){return t.beginCompute();},e.RECOMPUTE_TIME);},e.prototype.beginCompute=function(){return gP(this,void 0,void 0,function(){var e,t;return mP(this,function(n){switch(n.label){case 0:if(!this.editor.hasModel()||!this.enabled)return[2];if(e=this.editor.getModel(),!Ss.has(e))return[2];this.computePromise=q(function(t){return dP(e,t);}),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.computePromise];case 2:return t=n.sent(),this.updateDecorations(t),[3,5];case 3:return a(n.sent()),[3,5];case 4:return this.computePromise=null,[7];case 5:return[2];}});});},e.prototype.updateDecorations=function(e){for(var t="altKey"===this.editor.getConfiguration().multiCursorModifier,n=[],i=Object.keys(this.currentOccurrences),o=0,r=i.length;o<r;o++){var s=i[o],a=this.currentOccurrences[s];n.push(a.decorationId);}var u=[];if(e)for(o=0;o<e.length;o++)u.push(wP.decoration(e[o],t));var l=this.editor.deltaDecorations(n,u);this.currentOccurrences={},this.activeLinkDecorationId=null;for(o=0,r=l.length;o<r;o++){a=new wP(e[o],l[o]);this.currentOccurrences[a.decorationId]=a;}},e.prototype._onEditorMouseMove=function(e,t){var n=this,i="altKey"===this.editor.getConfiguration().multiCursorModifier;if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();var o=this.getLinkOccurrence(e.target.position);o&&this.editor.changeDecorations(function(e){o.activate(e,i),n.activeLinkDecorationId=o.decorationId;});}else this.cleanUpActiveLinkDecoration();},e.prototype.cleanUpActiveLinkDecoration=function(){var e="altKey"===this.editor.getConfiguration().multiCursorModifier;if(this.activeLinkDecorationId){var t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(function(n){t.deactivate(n,e);}),this.activeLinkDecorationId=null;}},e.prototype.onEditorMouseUp=function(e){if(this.isEnabled(e)){var t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier);}},e.prototype.openLinkOccurrence=function(e,t){var n=this;if(this.openerService){var i=e.link;i.resolve(B.None).then(function(e){return n.openerService.open(e,{openToSide:t});},function(e){"invalid"===e?n.notificationService.warn(ie("invalid.url","Failed to open this link because it is not well-formed: {0}",i.url)):"missing"===e?n.notificationService.warn(ie("missing.url","Failed to open this link because its target is missing.")):a(e);});}},e.prototype.getLinkOccurrence=function(e){if(!this.editor.hasModel()||!e)return null;for(var t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0),n=0;n<t.length;n++){var i=t[n],o=this.currentOccurrences[i.id];if(o)return o;}return null;},e.prototype.isEnabled=function(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey));},e.prototype.stop=function(){this.timeout.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null);},e.prototype.dispose=function(){this.listenersToRemove=f(this.listenersToRemove),this.stop(),this.timeout.dispose();},e.ID="editor.linkDetector",e.RECOMPUTE_TIME=1e3,e=pP([fP(1,wE),fP(2,sc)],e);}(),xP=function(e){function t(){return e.call(this,{id:"editor.action.openLink",label:ie("label","Open Link"),alias:"Open Link",precondition:null})||this;}return hP(t,e),t.prototype.run=function(e,t){var n=SP.get(t);if(n&&t.hasModel())for(var i=0,o=t.getSelections();i<o.length;i++){var r=o[i],s=n.getLinkOccurrence(r.getEndPosition());s&&n.openLinkOccurrence(s,!1);}},t;}(Zc);nd(SP),td(xP),Vd(function(e,t){var n=e.getColor(Xp);n&&t.addRule(".monaco-editor .detected-link-active { color: "+n+" !important; }");});var EP=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),LP=function(e){function t(){return e.call(this,{id:"editor.action.insertCursorAbove",label:ie("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"3_multi",title:ie({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})||this;}return EP(t,e),t.prototype.run=function(e,t,n){var i=n&&!0===n.logicalLine,o=t._getCursors(),r=o.context;r.config.readOnly||(r.model.pushStackElement(),o.setStates(n.source,3,R_.addCursorUp(r,o.getAll(),i)),o.reveal(!0,1,0));},t;}(Zc),TP=function(e){function t(){return e.call(this,{id:"editor.action.insertCursorBelow",label:ie("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"3_multi",title:ie({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})||this;}return EP(t,e),t.prototype.run=function(e,t,n){var i=n&&!0===n.logicalLine,o=t._getCursors(),r=o.context;r.config.readOnly||(r.model.pushStackElement(),o.setStates(n.source,3,R_.addCursorDown(r,o.getAll(),i)),o.reveal(!0,2,0));},t;}(Zc),IP=function(e){function t(){return e.call(this,{id:"editor.action.insertCursorAtEndOfEachLineSelected",label:ie("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:1575,weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"3_multi",title:ie({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})||this;}return EP(t,e),t.prototype.getCursorsForSelection=function(e,t,n){if(!e.isEmpty()){for(var i=e.startLineNumber;i<e.endLineNumber;i++){var o=t.getLineMaxColumn(i);n.push(new tn(i,o,i,o));}e.endColumn>1&&n.push(new tn(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn));}},t.prototype.run=function(e,t){var n=this,i=t.getModel(),o=t.getSelections(),r=[];o.forEach(function(e){return n.getCursorsForSelection(e,i,r);}),r.length>0&&t.setSelections(r);},t;}(Zc),NP=function(){return function(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n;};}(),kP=function(){function e(e,t,n,i,o,r,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=i,this.wholeWord=o,this.matchCase=r,this.currentMatch=s;}return e.create=function(t,n){var i=n.getState();if(!t.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new e(t,n,!1,i.searchString,i.wholeWord,i.matchCase,null);var o,r,s=!1,a=t.getSelections();1===a.length&&a[0].isEmpty()?(s=!0,o=!0,r=!0):(o=i.wholeWord,r=i.matchCase);var u,l=t.getSelection(),c=null;if(l.isEmpty()){var d=t.getModel().getWordAtPosition(l.getStartPosition());if(!d)return null;u=d.word,c=new tn(l.startLineNumber,d.startColumn,l.startLineNumber,d.endColumn);}else u=t.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new e(t,n,s,u,o,r,c);},e.prototype.addSelectionToNextFindMatch=function(){var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new NP(t.concat(e),e,0);},e.prototype.moveSelectionToNextFindMatch=function(){var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new NP(t.slice(0,t.length-1).concat(e),e,0);},e.prototype._getNextMatch=function(){if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e;}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findNextMatch(this.searchText,n.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new tn(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null;},e.prototype.addSelectionToPreviousFindMatch=function(){var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new NP(t.concat(e),e,0);},e.prototype.moveSelectionToPreviousFindMatch=function(){var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new NP(t.slice(0,t.length-1).concat(e),e,0);},e.prototype._getPreviousMatch=function(){if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e;}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,n.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new tn(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null;},e.prototype.selectAll=function(){return this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824);},e;}(),OP=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._ignoreSelectionChange=!1,n._session=null,n._sessionDispose=[],n;}return EP(t,e),t.get=function(e){return e.getContribution(t.ID);},t.prototype.dispose=function(){this._endSession(),e.prototype.dispose.call(this);},t.prototype.getId=function(){return t.ID;},t.prototype._beginSessionIfNeeded=function(e){var t=this;if(!this._session){var n=kP.create(this._editor,e);if(!n)return;this._session=n;var i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose=[this._editor.onDidChangeCursorSelection(function(e){t._ignoreSelectionChange||t._endSession();}),this._editor.onDidBlurEditorText(function(){t._endSession();}),e.getState().onFindReplaceStateChange(function(e){(e.matchCase||e.wholeWord)&&t._endSession();})];}},t.prototype._endSession=function(){if(this._sessionDispose=f(this._sessionDispose),this._session&&this._session.isDisconnectedFromFindController){this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1);}this._session=null;},t.prototype._setSelections=function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1;},t.prototype._expandEmptyToWord=function(e,t){if(!t.isEmpty())return t;var n=e.getWordAtPosition(t.getStartPosition());return n?new tn(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t;},t.prototype._applySessionResult=function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType));},t.prototype.getSession=function(e){return this._session;},t.prototype.addSelectionToNextFindMatch=function(e){if(!this._session){var t=this._editor.getSelections();if(t.length>1){var n=e.getState().matchCase;if(!HP(this._editor.getModel(),t,n)){for(var i=this._editor.getModel(),o=[],r=0,s=t.length;r<s;r++)o[r]=this._expandEmptyToWord(i,t[r]);return void this._editor.setSelections(o);}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch());},t.prototype.addSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch());},t.prototype.moveSelectionToNextFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch());},t.prototype.moveSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch());},t.prototype.selectAll=function(e){var t=null,n=e.getState();if(n.isRevealed&&n.searchString.length>0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll();}if(t.length>0){for(var i=this._editor.getSelection(),o=0,r=t.length;o<r;o++){var s=t[o];if(s.range.intersectRanges(i)){t[o]=t[0],t[0]=s;break;}}this._setSelections(t.map(function(e){return new tn(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);}));}},t.ID="editor.contrib.multiCursorController",t;}(y),DP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return EP(t,e),t.prototype.run=function(e,t){var n=OP.get(t);if(n){var i=LO.get(t);if(!i)return null;this._run(n,i);}},t;}(Zc),RP=function(e){function t(){return e.call(this,{id:"editor.action.addSelectionToNextFindMatch",label:ie("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:null,kbOpts:{kbExpr:A_.focus,primary:2082,weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"3_multi",title:ie({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})||this;}return EP(t,e),t.prototype._run=function(e,t){e.addSelectionToNextFindMatch(t);},t;}(DP),AP=function(e){function t(){return e.call(this,{id:"editor.action.addSelectionToPreviousFindMatch",label:ie("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:null,menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"3_multi",title:ie({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})||this;}return EP(t,e),t.prototype._run=function(e,t){e.addSelectionToPreviousFindMatch(t);},t;}(DP),MP=function(e){function t(){return e.call(this,{id:"editor.action.moveSelectionToNextFindMatch",label:ie("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:null,kbOpts:{kbExpr:A_.focus,primary:tt(2089,2082),weight:100}})||this;}return EP(t,e),t.prototype._run=function(e,t){e.moveSelectionToNextFindMatch(t);},t;}(DP),PP=function(e){function t(){return e.call(this,{id:"editor.action.moveSelectionToPreviousFindMatch",label:ie("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:null})||this;}return EP(t,e),t.prototype._run=function(e,t){e.moveSelectionToPreviousFindMatch(t);},t;}(DP),FP=function(e){function t(){return e.call(this,{id:"editor.action.selectHighlights",label:ie("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:null,kbOpts:{kbExpr:A_.focus,primary:3114,weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"3_multi",title:ie({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})||this;}return EP(t,e),t.prototype._run=function(e,t){e.selectAll(t);},t;}(DP),WP=function(e){function t(){return e.call(this,{id:"editor.action.changeAll",label:ie("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:A_.writable,kbOpts:{kbExpr:A_.editorTextFocus,primary:2108,weight:100},menuOpts:{group:"1_modification",order:1.2}})||this;}return EP(t,e),t.prototype._run=function(e,t){e.selectAll(t);},t;}(DP),BP=function(){function e(e,t,n){this.searchText=e,this.matchCase=t,this.wordSeparators=n;}return e.softEquals=function(e,t){return!e&&!t||!(!e||!t)&&e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators;},e;}(),VP=function(e){function t(t){var n=e.call(this)||this;return n.editor=t,n._isEnabled=t.getConfiguration().contribInfo.selectionHighlight,n.decorations=[],n.updateSoon=n._register(new ee(function(){return n._update();},300)),n.state=null,n._register(t.onDidChangeConfiguration(function(e){n._isEnabled=t.getConfiguration().contribInfo.selectionHighlight;})),n._register(t.onDidChangeCursorSelection(function(e){n._isEnabled&&(e.selection.isEmpty()?3===e.reason?(n.state&&n._setState(null),n.updateSoon.schedule()):n._setState(null):n._update());})),n._register(t.onDidChangeModel(function(e){n._setState(null);})),n._register(LO.get(t).getState().onFindReplaceStateChange(function(e){n._update();})),n;}return EP(t,e),t.prototype.getId=function(){return t.ID;},t.prototype._update=function(){this._setState(t._createState(this._isEnabled,this.editor));},t._createState=function(e,t){if(!e)return null;if(!t.getModel())return null;var n=t.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;var i=OP.get(t);if(!i)return null;var o=LO.get(t);if(!o)return null;var r=i.getSession(o);if(!r){var s=t.getSelections();if(s.length>1){var a=o.getState().matchCase;if(!HP(t.getModel(),s,a))return null;}r=kP.create(t,o);}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(r.searchText.length>200)return null;var u=o.getState(),l=u.matchCase;if(u.isRevealed){var c=u.searchString;l||(c=c.toLowerCase());var d=r.searchText;if(l||(d=d.toLowerCase()),c===d&&r.matchCase===u.matchCase&&r.wholeWord===u.wholeWord&&!u.isRegex)return null;}return new BP(r.searchText,r.matchCase,r.wholeWord?t.getConfiguration().wordSeparators:null);},t.prototype._setState=function(e){if(BP.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){var n=this.editor.getModel();if(!n.isTooLargeForTokenization()){var i=fs.has(n),o=n.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(e){return e.range;});o.sort(Jt.compareRangesUsingStarts);var r=this.editor.getSelections();r.sort(Jt.compareRangesUsingStarts);for(var s=[],a=0,u=0,l=o.length,c=r.length;a<l;){var d=o[a];if(u>=c)s.push(d),a++;else{var h=Jt.compareRangesUsingStarts(d,r[u]);h<0?(!r[u].isEmpty()&&Jt.areIntersecting(d,r[u])||s.push(d),a++):h>0?u++:(a++,u++);}}var p=s.map(function(e){return{range:e,options:i?t._SELECTION_HIGHLIGHT:t._SELECTION_HIGHLIGHT_OVERVIEW};});this.decorations=this.editor.deltaDecorations(this.decorations,p);}}else this.decorations=this.editor.deltaDecorations(this.decorations,[]);},t.prototype.dispose=function(){this._setState(null),e.prototype.dispose.call(this);},t.ID="editor.contrib.selectionHighlighter",t._SELECTION_HIGHLIGHT_OVERVIEW=i_.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Ad(df),position:cr.Center}}),t._SELECTION_HIGHLIGHT=i_.register({stickiness:1,className:"selectionHighlight"}),t;}(y);function HP(e,t,n){for(var i=UP(e,t[0],!n),o=1,r=t.length;o<r;o++){var s=t[o];if(s.isEmpty())return!1;if(i!==UP(e,s,!n))return!1;}return!0;}function UP(e,t,n){var i=e.getValueInRange(t);return n?i.toLowerCase():i;}nd(OP),nd(VP),td(LP),td(TP),td(IP),td(RP),td(AP),td(MP),td(PP),td(FP),td(WP);n("./node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/parameterHints.css");var jP={Visible:new yl("parameterHintsVisible",!1),MultipleSignatures:new yl("parameterHintsMultipleSignatures",!1)};function zP(e,t,n,i){return X(ds.ordered(e).map(function(o){return function(){return Promise.resolve(o.provideSignatureHelp(e,t,i,n)).catch(u);};}));}Jc("_executeSignatureHelpProvider",function(e,t){return zP(e,t,{triggerReason:Zr.Invoke,isRetrigger:!1},B.None);});var KP=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),qP=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},GP=function(e,t){return function(n,i){t(n,i,e);};},$P=ji,YP=function(e){function t(n,i){void 0===i&&(i=t.DEFAULT_DELAY);var o=e.call(this)||this;return o._onHint=o._register(new N()),o.onHint=o._onHint.event,o._onCancel=o._register(new N()),o.onCancel=o._onCancel.event,o.active=!1,o.pending=!1,o.triggerChars=new Ra(),o.retriggerChars=new Ra(),o.editor=n,o.enabled=!1,o.triggerCharactersListeners=[],o.throttledDelayer=new ee(function(){return o.doTrigger();},i),o._register(o.editor.onDidChangeConfiguration(function(){return o.onEditorConfigurationChange();})),o._register(o.editor.onDidChangeModel(function(e){return o.onModelChanged();})),o._register(o.editor.onDidChangeModelLanguage(function(e){return o.onModelChanged();})),o._register(o.editor.onDidChangeCursorSelection(function(e){return o.onCursorChange(e);})),o._register(o.editor.onDidChangeModelContent(function(e){return o.onModelContentChange();})),o._register(ds.onDidChange(o.onModelChanged,o)),o._register(o.editor.onDidType(function(e){return o.onDidType(e);})),o.onEditorConfigurationChange(),o.onModelChanged(),o;}return KP(t,e),t.prototype.cancel=function(e){void 0===e&&(e=!1),this.active=!1,this.pending=!1,this.triggerContext=void 0,this.throttledDelayer.cancel(),e||this._onCancel.fire(void 0),this.provideSignatureHelpRequest&&(this.provideSignatureHelpRequest.cancel(),this.provideSignatureHelpRequest=void 0);},t.prototype.trigger=function(e,t){if(ds.has(this.editor.getModel())){var n=this.isTriggered;return this.cancel(!0),this.triggerContext={triggerReason:e.triggerReason,triggerCharacter:e.triggerCharacter,isRetrigger:n},this.throttledDelayer.schedule(t);}},t.prototype.doTrigger=function(){var e=this;this.provideSignatureHelpRequest&&this.provideSignatureHelpRequest.cancel(),this.pending=!0;var t=this.triggerContext||{triggerReason:Zr.Invoke,isRetrigger:!1};this.triggerContext=void 0,this.provideSignatureHelpRequest=q(function(n){return zP(e.editor.getModel(),e.editor.getPosition(),t,n);}),this.provideSignatureHelpRequest.then(function(t){if(e.pending=!1,!t||!t.signatures||0===t.signatures.length)return e.cancel(),e._onCancel.fire(void 0),!1;e.active=!0;var n={hints:t};return e._onHint.fire(n),!0;}).catch(function(t){e.pending=!1,a(t);});},Object.defineProperty(t.prototype,"isTriggered",{get:function(){return this.active||this.pending||this.throttledDelayer.isScheduled();},enumerable:!0,configurable:!0}),t.prototype.onModelChanged=function(){this.cancel(),this.triggerChars=new Ra(),this.retriggerChars=new Ra();var e=this.editor.getModel();if(e)for(var t=0,n=ds.ordered(e);t<n.length;t++){var i=n[t];if(Array.isArray(i.signatureHelpTriggerCharacters))for(var o=0,r=i.signatureHelpTriggerCharacters;o<r.length;o++){var s=r[o];this.triggerChars.add(s.charCodeAt(0)),this.retriggerChars.add(s.charCodeAt(0));}if(Array.isArray(i.signatureHelpRetriggerCharacters))for(var a=0,u=i.signatureHelpRetriggerCharacters;a<u.length;a++){s=u[a];this.retriggerChars.add(s.charCodeAt(0));}}},t.prototype.onDidType=function(e){if(this.enabled){var t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerReason:Zr.TriggerCharacter,triggerCharacter:e.charAt(t)});}},t.prototype.onCursorChange=function(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerReason:Zr.ContentChange});},t.prototype.onModelContentChange=function(){this.isTriggered&&this.trigger({triggerReason:Zr.ContentChange});},t.prototype.onEditorConfigurationChange=function(){this.enabled=this.editor.getConfiguration().contribInfo.parameterHints.enabled,this.enabled||this.cancel();},t.prototype.dispose=function(){this.cancel(!0),this.triggerCharactersListeners=f(this.triggerCharactersListeners),e.prototype.dispose.call(this);},t.DEFAULT_DELAY=120,t;}(y),XP=function(){function e(e,t,n,i){var o=this;this.editor=e,this.allowEditorOverflow=!0,this.markdownRenderer=new yM(e,i,n),this.model=new YP(e),this.keyVisible=jP.Visible.bindTo(t),this.keyMultipleSignatures=jP.MultipleSignatures.bindTo(t),this.visible=!1,this.disposables=[],this.disposables.push(this.model.onHint(function(e){o.show(),o.hints=e.hints,o.currentSignature=e.hints.activeSignature,o.render();})),this.disposables.push(this.model.onCancel(function(){o.hide();}));}return e.prototype.createParamaterHintDOMNodes=function(){var e=this;this.element=$P(".editor-widget.parameter-hints-widget");var t=Vi(this.element,$P(".wrapper")),n=Vi(t,$P(".buttons")),i=Vi(n,$P(".button.previous")),o=Vi(n,$P(".button.next"));In(Tn(i,"click"))(this.previous,this,this.disposables),In(Tn(o,"click"))(this.next,this,this.disposables),this.overloads=Vi(t,$P(".overloads"));var r=$P(".body");this.scrollbar=new zv(r,{}),this.disposables.push(this.scrollbar),t.appendChild(this.scrollbar.getDomNode()),this.signature=Vi(r,$P(".signature")),this.docs=Vi(r,$P(".docs")),this.currentSignature=0,this.editor.addContentWidget(this),this.hide(),this.element.style.userSelect="text",this.disposables.push(this.editor.onDidChangeCursorSelection(function(t){e.visible&&e.editor.layoutContentWidget(e);}));var s=function(){var t=e.editor.getConfiguration().fontInfo;e.element.style.fontSize=t.fontSize+"px";};s(),W(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(e){return e.fontInfo;}).on(s,null,this.disposables),this.disposables.push(this.editor.onDidLayoutChange(function(t){return e.updateMaxHeight();})),this.updateMaxHeight();},e.prototype.show=function(){var e=this;this.model&&!this.visible&&(this.element||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(function(){return Xn(e.element,"visible");},100),this.editor.layoutContentWidget(this));},e.prototype.hide=function(){this.model&&this.visible&&(this.element||this.createParamaterHintDOMNodes(),this.keyVisible.reset(),this.visible=!1,this.hints=null,this.announcedLabel=null,Qn(this.element,"visible"),this.editor.layoutContentWidget(this));},e.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null;},e.prototype.render=function(){var e=this.hints.signatures.length>1;ei(this.element,"multiple",e),this.keyMultipleSignatures.set(e),this.signature.innerHTML="",this.docs.innerHTML="";var t=this.hints.signatures[this.currentSignature];if(t){var n=Vi(this.signature,$P(".code")),i=t.parameters.length>0,o=this.editor.getConfiguration().fontInfo;if(n.style.fontSize=o.fontSize+"px",n.style.fontFamily=o.fontFamily,i)this.renderParameters(n,t,this.hints.activeParameter);else Vi(n,$P("span")).textContent=t.label;f(this.renderDisposeables),this.renderDisposeables=[];var r=t.parameters[this.hints.activeParameter];if(r&&r.documentation){var s=$P("span.documentation");if("string"==typeof r.documentation)s.textContent=r.documentation;else{var a=this.markdownRenderer.render(r.documentation);Xn(a.element,"markdown-docs"),this.renderDisposeables.push(a),s.appendChild(a.element);}Vi(this.docs,$P("p",null,s));}if(ei(this.signature,"has-docs",!!t.documentation),"string"==typeof t.documentation)Vi(this.docs,$P("p",null,t.documentation));else{a=this.markdownRenderer.render(t.documentation);Xn(a.element,"markdown-docs"),this.renderDisposeables.push(a),Vi(this.docs,a.element);}var u=String(this.currentSignature+1);if(this.hints.signatures.length<10&&(u+="/"+this.hints.signatures.length),this.overloads.textContent=u,r){var l=this.getParameterLabel(t,this.hints.activeParameter);this.announcedLabel!==l&&(Rc(ie("hint","{0}, hint",l)),this.announcedLabel=l);}this.editor.layoutContentWidget(this),this.scrollbar.scanDomNode();}},e.prototype.renderParameters=function(e,t,n){var i=this.getParameterLabelOffsets(t,n),o=i[0],r=i[1],s=document.createElement("span");s.textContent=t.label.substring(0,o);var a=document.createElement("span");a.textContent=t.label.substring(o,r),a.className="parameter active";var u=document.createElement("span");u.textContent=t.label.substring(r),Vi(e,s,a,u);},e.prototype.getParameterLabel=function(e,t){var n=e.parameters[t];return"string"==typeof n.label?n.label:e.label.substring(n.label[0],n.label[1]);},e.prototype.getParameterLabelOffsets=function(e,t){var n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;var i=e.label.lastIndexOf(n.label);return i>=0?[i,i+n.label.length]:[0,0];}return[0,0];},e.prototype.next=function(){var e=this.hints.signatures.length,t=this.currentSignature%e==e-1,n=this.editor.getConfiguration().contribInfo.parameterHints.cycle;return(e<2||t)&&!n?(this.cancel(),!1):(t&&n?this.currentSignature=0:this.currentSignature++,this.render(),!0);},e.prototype.previous=function(){var e=this.hints.signatures.length,t=0===this.currentSignature,n=this.editor.getConfiguration().contribInfo.parameterHints.cycle;return(e<2||t)&&!n?(this.cancel(),!1):(t&&n?this.currentSignature=e-1:this.currentSignature--,this.render(),!0);},e.prototype.cancel=function(){this.model.cancel();},e.prototype.getDomNode=function(){return this.element;},e.prototype.getId=function(){return e.ID;},e.prototype.trigger=function(e){this.model.trigger(e,0);},e.prototype.updateMaxHeight=function(){var e=Math.max(this.editor.getLayoutInfo().height/4,250);this.element.style.maxHeight=e+"px";},e.prototype.dispose=function(){this.disposables=f(this.disposables),this.renderDisposeables=f(this.renderDisposeables),this.model&&(this.model.dispose(),this.model=null);},e.ID="editor.widget.parameterHintsWidget",e=qP([GP(1,bl),GP(2,wE),GP(3,tw)],e);}();Vd(function(e,t){var n=e.getColor(Yp);if(n){var i=e.type===Pd?2:1;t.addRule(".monaco-editor .parameter-hints-widget { border: "+i+"px solid "+n+"; }"),t.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+n.transparent(.5)+"; }"),t.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+n.transparent(.5)+"; }");}var o=e.getColor($p);o&&t.addRule(".monaco-editor .parameter-hints-widget { background-color: "+o+"; }");var r=e.getColor(Vh);r&&t.addRule(".monaco-editor .parameter-hints-widget a { color: "+r+"; }");var s=e.getColor(Hh);s&&t.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+s+"; }");});var ZP=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),QP=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},JP=function(e,t){return function(n,i){t(n,i,e);};},eF=function(){function e(e,t){this.editor=e,this.widget=t.createInstance(XP,this.editor);}return e.get=function(t){return t.getContribution(e.ID);},e.prototype.getId=function(){return e.ID;},e.prototype.cancel=function(){this.widget.cancel();},e.prototype.previous=function(){this.widget.previous();},e.prototype.next=function(){this.widget.next();},e.prototype.trigger=function(e){this.widget.trigger(e);},e.prototype.dispose=function(){this.widget=f(this.widget);},e.ID="editor.controller.parameterHints",e=QP([JP(1,ln)],e);}(),tF=function(e){function t(){return e.call(this,{id:"editor.action.triggerParameterHints",label:ie("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:A_.hasSignatureHelpProvider,kbOpts:{kbExpr:A_.editorTextFocus,primary:3082,weight:100}})||this;}return ZP(t,e),t.prototype.run=function(e,t){var n=eF.get(t);n&&n.trigger({triggerReason:Zr.Invoke});},t;}(Zc);nd(eF),td(tF);var nF=Xc.bindToContribution(eF.get);ed(new nF({id:"closeParameterHints",precondition:jP.Visible,handler:function(e){return e.cancel();},kbOpts:{weight:175,kbExpr:A_.editorTextFocus,primary:9,secondary:[1033]}})),ed(new nF({id:"showPrevParameterHint",precondition:dl.and(jP.Visible,jP.MultipleSignatures),handler:function(e){return e.previous();},kbOpts:{weight:175,kbExpr:A_.editorTextFocus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),ed(new nF({id:"showNextParameterHint",precondition:dl.and(jP.Visible,jP.MultipleSignatures),handler:function(e){return e.next();},kbOpts:{weight:175,kbExpr:A_.editorTextFocus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}));var iF=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),oF=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},rF=function(e,t){return function(n,i){t(n,i,e);};},sF={getMetaTitle:function(e){return e.references.length>1&&ie("meta.titleReference"," – {0} references",e.references.length);}},aF=function(){function e(e,t){e instanceof $D&&jD.inPeekEditor.bindTo(t);}return e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID;},e.ID="editor.contrib.referenceController",e=oF([rF(1,bl)],e);}(),uF=function(e){function t(){return e.call(this,{id:"editor.action.referenceSearch.trigger",label:ie("references.action.label","Find All References"),alias:"Find All References",precondition:dl.and(A_.hasReferenceProvider,jD.notInPeekEditor,A_.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:A_.editorTextFocus,primary:1094,weight:100},menuOpts:{group:"navigation",order:1.5}})||this;}return iF(t,e),t.prototype.run=function(e,t){var n=eA.get(t);if(n){var i=t.getSelection(),o=t.getModel(),r=q(function(e){return dF(o,i.getStartPosition(),e).then(function(e){return new yR(e);});});n.toggleWidget(i,r,sF);}},t;}(Zc);nd(aF),td(uF);function lF(e,t){cF(e,function(e){return e.closeWidget();});}function cF(e,t){var n=function(e){var t=e.get(pn).getFocusedCodeEditor();return t instanceof $D?t.getParentEditor():t;}(e);if(n){var i=eA.get(n);i&&t(i);}}function dF(e,t,n){var i=us.ordered(e).map(function(i){return Promise.resolve(i.provideReferences(e,t,{includeDeclaration:!0},n)).then(function(e){if(Array.isArray(e))return e;},function(e){u(e);});});return Promise.all(i).then(function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];o&&t.push.apply(t,o);}return t;});}Go.registerCommand({id:"editor.action.findReferences",handler:function(e,t,n){if(!(t instanceof _t))throw new Error("illegal argument, uri");if(!n)throw new Error("illegal argument, position");var i=e.get(pn);return i.openCodeEditor({resource:t},i.getFocusedCodeEditor()).then(function(e){if(Ru(e)){var t=eA.get(e);if(t){var i=q(function(t){return dF(e.getModel(),Qt.lift(n),t).then(function(e){return new yR(e);});}),o=new Jt(n.lineNumber,n.column,n.lineNumber,n.column);return Promise.resolve(t.toggleWidget(o,i,sF));}}});}}),Go.registerCommand({id:"editor.action.showReferences",handler:function(e,t,n,i){if(!(t instanceof _t))throw new Error("illegal argument, uri expected");if(!i)throw new Error("missing references");var o=e.get(pn);return o.openCodeEditor({resource:t},o.getFocusedCodeEditor()).then(function(e){if(Ru(e)){var t=eA.get(e);if(t)return Promise.resolve(t.toggleWidget(new Jt(n.lineNumber,n.column,n.lineNumber,n.column),q(function(e){return Promise.resolve(new yR(i));}),sF)).then(function(){return!0;});}});},description:{description:"Show references at a position in a file",args:[{name:"uri",description:"The text document in which to show references",constraint:_t},{name:"position",description:"The position at which to show",constraint:Qt.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array}]}}),Yl.registerCommandAndKeybindingRule({id:"goToNextReference",weight:250,primary:62,when:JR,handler:function(e){cF(e,function(e){e.goToNextOrPreviousReference(!0);});}}),Yl.registerCommandAndKeybindingRule({id:"goToNextReferenceFromEmbeddedEditor",weight:150,primary:62,when:jD.inPeekEditor,handler:function(e){cF(e,function(e){e.goToNextOrPreviousReference(!0);});}}),Yl.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:250,primary:1086,when:JR,handler:function(e){cF(e,function(e){e.goToNextOrPreviousReference(!1);});}}),Yl.registerCommandAndKeybindingRule({id:"goToPreviousReferenceFromEmbeddedEditor",weight:150,primary:1086,when:jD.inPeekEditor,handler:function(e){cF(e,function(e){e.goToNextOrPreviousReference(!1);});}}),Yl.registerCommandAndKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:dl.and(JR,dl.not("config.editor.stablePeek")),handler:lF}),Yl.registerCommandAndKeybindingRule({id:"closeReferenceSearchEditor",weight:-1,primary:9,secondary:[1033],when:dl.and(jD.inPeekEditor,dl.not("config.editor.stablePeek")),handler:lF}),Yl.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:dl.and(JR,RR),handler:function(e,t){var n=e.get(Zx),i=n.lastFocusedList&&n.lastFocusedList.getFocus();i instanceof mR&&cF(e,function(e){return e.openReference(i,!0);});}}),Jc("_executeReferenceProvider",function(e,t){return dF(e,t,B.None);});n("./node_modules/monaco-editor/esm/vs/editor/contrib/rename/renameInputField.css");var hF=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},pF=function(e,t){return function(n,i){t(n,i,e);};},fF=function(){function e(e,t){var n=this;this.themeService=t,this._disposables=[],this.allowEditorOverflow=!0,this._currentAcceptInput=null,this._currentCancelInput=null,this._editor=e,this._editor.addContentWidget(this),this._disposables.push(e.onDidChangeConfiguration(function(e){e.fontInfo&&n.updateFont();})),this._disposables.push(t.onThemeChange(function(e){return n.onThemeChange(e);}));}return e.prototype.onThemeChange=function(e){this.updateStyles(e);},e.prototype.dispose=function(){this._disposables=f(this._disposables),this._editor.removeContentWidget(this);},e.prototype.getId=function(){return"__renameInputWidget";},e.prototype.getDomNode=function(){return this._domNode||(this._inputField=document.createElement("input"),this._inputField.className="rename-input",this._inputField.type="text",this._inputField.setAttribute("aria-label",ie("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode=document.createElement("div"),this._domNode.style.height=this._editor.getConfiguration().lineHeight+"px",this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputField),this.updateFont(),this.updateStyles(this.themeService.getTheme())),this._domNode;},e.prototype.updateStyles=function(e){if(this._inputField){var t=e.getColor(jh),n=e.getColor(zh),i=e.getColor(Uh),o=e.getColor(Kh);this._inputField.style.backgroundColor=t?t.toString():null,this._inputField.style.color=n?n.toString():null,this._inputField.style.borderWidth=o?"1px":"0px",this._inputField.style.borderStyle=o?"solid":"none",this._inputField.style.borderColor=o?o.toString():"none",this._domNode.style.boxShadow=i?" 0 2px 8px "+i:null;}},e.prototype.updateFont=function(){if(this._inputField){var e=this._editor.getConfiguration().fontInfo;this._inputField.style.fontFamily=e.fontFamily,this._inputField.style.fontWeight=e.fontWeight,this._inputField.style.fontSize=e.fontSize+"px";}},e.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null;},e.prototype.acceptInput=function(){this._currentAcceptInput&&this._currentAcceptInput();},e.prototype.cancelInput=function(e){this._currentCancelInput&&this._currentCancelInput(e);},e.prototype.getInput=function(e,t,n,i){var o=this;this._position=new Qt(e.startLineNumber,e.startColumn),this._inputField.value=t,this._inputField.setAttribute("selectionStart",n.toString()),this._inputField.setAttribute("selectionEnd",i.toString()),this._inputField.size=Math.max(1.1*(e.endColumn-e.startColumn),20);var r,s=[];return r=function(){f(s),o._hide();},new Promise(function(n){o._currentCancelInput=function(e){return o._currentAcceptInput=null,o._currentCancelInput=null,n(e),!0;},o._currentAcceptInput=function(){0!==o._inputField.value.trim().length&&o._inputField.value!==t?(o._currentAcceptInput=null,o._currentCancelInput=null,n(o._inputField.value)):o.cancelInput(!0);};s.push(o._editor.onDidChangeCursorSelection(function(){var t=o._editor.getPosition();t&&Jt.containsPosition(e,t)||o.cancelInput(!0);})),s.push(o._editor.onDidBlurEditorWidget(function(){return o.cancelInput(!1);})),o._show();}).then(function(e){return r(),e;},function(e){return r(),Promise.reject(e);});},e.prototype._show=function(){var e=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._editor.layoutContentWidget(this),setTimeout(function(){e._inputField.focus(),e._inputField.setSelectionRange(parseInt(e._inputField.getAttribute("selectionStart")),parseInt(e._inputField.getAttribute("selectionEnd")));},100);},e.prototype._hide=function(){this._visible=!1,this._editor.layoutContentWidget(this);},e=hF([pF(1,Rd)],e);}(),gF=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),mF=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},_F=function(e,t){return function(n,i){t(n,i,e);};},vF=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e));}catch(e){r(e);}}function a(e){try{u(i.throw(e));}catch(e){r(e);}}function u(e){e.done?o(e.value):new n(function(t){t(e.value);}).then(s,a);}u((i=i.apply(e,t||[])).next());});},yF=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1];},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this;}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break;}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break;}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break;}o[2]&&s.ops.pop(),s.trys.pop();continue;}r=t.call(e,s);}catch(e){r=[6,e],i=0;}finally{n=o=0;}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0};}([r,a]);};}},bF=function(){function e(e,t){this.model=e,this.position=t,this._provider=ls.ordered(e);}return e.prototype.hasProvider=function(){return this._provider.length>0;},e.prototype.resolveRenameLocation=function(e){return vF(this,void 0,void 0,function(){var t,n,i;return yF(this,function(o){switch(o.label){case 0:return(t=this._provider[0]).resolveRenameLocation?[4,t.resolveRenameLocation(this.model,this.position,e)]:[3,2];case 1:n=o.sent(),o.label=2;case 2:return n||(i=this.model.getWordAtPosition(this.position))&&(n={range:new Jt(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word}),[2,n];}});});},e.prototype.provideRenameEdits=function(e,t,n,i){return void 0===t&&(t=0),void 0===n&&(n=[]),vF(this,void 0,void 0,function(){var o;return yF(this,function(r){switch(r.label){case 0:return t>=this._provider.length?[2,{edits:void 0,rejectReason:n.join("\n")}]:[4,this._provider[t].provideRenameEdits(this.model,this.position,e,i)];case 1:return(o=r.sent())?o.rejectReason?[2,this.provideRenameEdits(e,t+1,n.concat(o.rejectReason),i)]:[2,o]:[2,this.provideRenameEdits(e,t+1,n.concat(ie("no result","No result.")),i)];}});});},e;}();var CF=new yl("renameInputVisible",!1),wF=function(){function e(e,t,n,i,o,r){this.editor=e,this._notificationService=t,this._bulkEditService=n,this._progressService=i,this._renameInputField=new fF(e,r),this._renameInputVisible=CF.bindTo(o);}return e.get=function(t){return t.getContribution(e.ID);},e.prototype.dispose=function(){this._renameInputField.dispose();},e.prototype.getId=function(){return e.ID;},e.prototype.run=function(e){return vF(this,void 0,void 0,function(){var t,n,i,o,r,s,a,u=this;return yF(this,function(l){switch(l.label){case 0:if(!this.editor.hasModel())return[2,void 0];if(t=this.editor.getPosition(),!(n=new bF(this.editor.getModel(),t)).hasProvider())return[2,void 0];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,n.resolveRenameLocation(e)];case 2:return i=l.sent(),[3,4];case 3:return o=l.sent(),GI.get(this.editor).showMessage(o||ie("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),t),[2,void 0];case 4:return i?i.rejectReason?(GI.get(this.editor).showMessage(i.rejectReason,t),[2,void 0]):(r=this.editor.getSelection(),s=0,a=i.text.length,Jt.isEmpty(r)||Jt.spansMultipleLines(r)||!Jt.containsRange(i.range,r)||(s=Math.max(0,r.startColumn-i.range.startColumn),a=Math.min(i.range.endColumn,r.endColumn)-i.range.startColumn),this._renameInputVisible.set(!0),[2,this._renameInputField.getInput(i.range,i.text,s,a).then(function(t){if(u._renameInputVisible.reset(),"boolean"!=typeof t){u.editor.focus();var o=new lC(u.editor,15),r=Promise.resolve(n.provideRenameEdits(t,0,[],e).then(function(e){if(u.editor.hasModel()){if(!e.rejectReason)return u._bulkEditService.apply(e,{editor:u.editor}).then(function(e){e.ariaSummary&&Rc(ie("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",i.text,t,e.ariaSummary));});o.validate(u.editor)?GI.get(u.editor).showMessage(e.rejectReason,u.editor.getPosition()):u._notificationService.info(e.rejectReason);}},function(e){return u._notificationService.error(ie("rename.failed","Rename failed to execute.")),Promise.reject(e);}));return u._progressService.showWhile(r,250),r;}t&&u.editor.focus();},function(e){return u._renameInputVisible.reset(),Promise.reject(e);})]):[2,void 0];}});});},e.prototype.acceptRenameInput=function(){this._renameInputField.acceptInput();},e.prototype.cancelRenameInput=function(){this._renameInputField.cancelInput(!0);},e.ID="editor.contrib.renameController",e=mF([_F(1,sc),_F(2,ew),_F(3,_E),_F(4,bl),_F(5,Rd)],e);}(),SF=function(e){function t(){return e.call(this,{id:"editor.action.rename",label:ie("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:dl.and(A_.writable,A_.hasRenameProvider),kbOpts:{kbExpr:A_.editorTextFocus,primary:60,weight:100},menuOpts:{group:"1_modification",order:1.1}})||this;}return gF(t,e),t.prototype.runCommand=function(t,n){var i=this,o=t.get(pn),r=n||[void 0,void 0],s=r[0],u=r[1];return _t.isUri(s)&&Qt.isIPosition(u)?o.openCodeEditor({resource:s},o.getActiveCodeEditor()).then(function(e){e&&(e.setPosition(u),e.invokeWithinContext(function(t){return i.reportTelemetry(t,e),i.run(t,e);}));},a):e.prototype.runCommand.call(this,t,n);},t.prototype.run=function(e,t){var n=wF.get(t);return n?Promise.resolve(n.run(B.None)):Promise.resolve();},t;}(Zc);nd(wF),td(SF);var xF=Xc.bindToContribution(wF.get);ed(new xF({id:"acceptRenameInput",precondition:CF,handler:function(e){return e.acceptRenameInput();},kbOpts:{weight:199,kbExpr:A_.focus,primary:3}})),ed(new xF({id:"cancelRenameInput",precondition:CF,handler:function(e){return e.cancelRenameInput();},kbOpts:{weight:199,kbExpr:A_.focus,primary:9,secondary:[1033]}})),Jc("_executeDocumentRenameProvider",function(e,t,n){var i=n.newName;if("string"!=typeof i)throw p("newName");return function(e,t,n){return vF(this,void 0,void 0,function(){return yF(this,function(i){return[2,new bF(e,t).provideRenameEdits(n,void 0,void 0,B.None)];});});}(e,t,i);});var EF=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),LF=function(){function e(){}return Object.defineProperty(e.prototype,"range",{get:function(){return new Jt(this.start.lineNumber,this.start.column,this.end.lineNumber,this.end.column);},enumerable:!0,configurable:!0}),e;}(),TF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return EF(t,e),Object.defineProperty(t.prototype,"hasChildren",{get:function(){return this.children&&this.children.length>0;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.hasChildren&&!this.parent;},enumerable:!0,configurable:!0}),t.prototype.append=function(e){return!!e&&(e.parent=this,this.children||(this.children=[]),e instanceof t?e.children&&this.children.push.apply(this.children,e.children):this.children.push(e),!0);},t;}(LF),IF=function(e){function t(){var t=e.call(this)||this;return t.elements=new TF(),t.elements.parent=t,t;}return EF(t,e),t;}(LF),NF=function(){return function(e,t,n){this.range=e,this.bracket=t,this.bracketType=n;};}();function kF(e){var t=new LF();return t.start=e.range.getStartPosition(),t.end=e.range.getEndPosition(),t;}var OF=function(){return function(e,t,n){this.lineNumber=n,this.lineText=e.getLineContent(),this.startOffset=e.getStartOffset(t),this.endOffset=e.getEndOffset(t),this.type=e.getStandardTokenType(t),this.languageId=e.getLanguageId(t);};}(),DF=function(){function e(e){this._model=e,this._lineCount=this._model.getLineCount(),this._versionId=this._model.getVersionId(),this._lineNumber=0,this._tokenIndex=0,this._lineTokens=null,this._advance();}return e.prototype._advance=function(){for(this._lineTokens&&(this._tokenIndex++,this._tokenIndex>=this._lineTokens.getCount()&&(this._lineTokens=null));this._lineNumber<this._lineCount&&!this._lineTokens;)this._lineNumber++,this._model.forceTokenization(this._lineNumber),this._lineTokens=this._model.getLineTokens(this._lineNumber),this._tokenIndex=0,0===this._lineTokens.getLineContent().length&&(this._lineTokens=null);},e.prototype.next=function(){if(!this._lineTokens)return null;if(this._model.getVersionId()!==this._versionId)return null;var e=new OF(this._lineTokens,this._tokenIndex,this._lineNumber);return this._advance(),e;},e;}(),RF=function(){function e(e){this._rawTokenScanner=new DF(e),this._nextBuff=[],this._cachedLanguageBrackets=null,this._cachedLanguageId=-1;}return e.prototype.next=function(){if(this._nextBuff.length>0)return this._nextBuff.shift();var e=this._rawTokenScanner.next();if(!e)return null;var t=e.lineNumber,n=e.lineText,i=e.type,o=e.startOffset,r=e.endOffset;this._cachedLanguageId!==e.languageId&&(this._cachedLanguageId=e.languageId,this._cachedLanguageBrackets=la.getBracketsSupport(this._cachedLanguageId));var s,a=this._cachedLanguageBrackets;if(!a||qs(i))return new NF(new Jt(t,o+1,t,r+1),0,null);do{if(s=oa.findNextBracketInToken(a.forwardRegex,t,n,o,r)){var u=s.startColumn-1,l=s.endColumn-1;o<u&&this._nextBuff.push(new NF(new Jt(t,o+1,t,u+1),0,null));var c=n.substring(u,l);c=c.toLowerCase();var d=a.textIsBracket[c],h=a.textIsOpenBracket[c];this._nextBuff.push(new NF(new Jt(t,u+1,t,l+1),h?1:-1,d.languageIdentifier.language+";"+d.open+";"+d.close)),o=l;}}while(s);return o<r&&this._nextBuff.push(new NF(new Jt(t,o+1,t,r+1),0,null)),this._nextBuff.shift()||null;},e;}(),AF=function(){function e(e){this._stack=[],this._scanner=new RF(e);}return e.prototype.build=function(){for(var e=new TF();e.append(this._line()||this._any()););return e;},e.prototype._accept=function(e){var t=this._stack.pop()||this._scanner.next();if(!t)return!1;var n=e(t);return n?this._currentToken=t:this._stack.push(t),n;},e.prototype._peek=function(e){var t=!1;return this._accept(function(n){return t=e(n),!1;}),t;},e.prototype._line=function(){var e,t=new TF();for(this._peek(function(t){return e=t.range.startLineNumber,!1;});this._peek(function(t){return t.range.startLineNumber===e;})&&t.append(this._token()||this._block()););return t.children&&0!==t.children.length?1===t.children.length?t.children[0]:t:null;},e.prototype._token=function(){return this._accept(function(e){return 0===e.bracket;})?kF(this._currentToken):null;},e.prototype._block=function(){var e;if(!this._accept(function(t){return e=t.bracketType,1===t.bracket;}))return null;var t=new IF();for(t.open=kF(this._currentToken);t.elements.append(this._line()););if(!this._accept(function(t){return-1===t.bracket&&t.bracketType===e;})){var n=new TF();return n.append(t.open),n.append(t.elements),n;}return t.close=kF(this._currentToken),t;},e.prototype._any=function(){return this._accept(function(e){return!0;})?kF(this._currentToken):null;},e;}();function MF(e){return new AF(e).build();}function PF(e,t){if(e instanceof TF&&e.isEmpty)return null;if(!Jt.containsPosition(e.range,t))return null;var n=null;if(e instanceof TF){if(e.hasChildren)for(var i=0,o=e.children.length;i<o&&!n;i++)n=PF(e.children[i],t);}else e instanceof IF&&(n=PF(e.elements,t)||PF(e.open,t)||PF(e.close,t));return n||e;}var FF=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},WF=function(e,t){return function(n,i){t(n,i,e);};},BF=function(){function e(e){this._modelService=e;}return e.prototype.getRangesToPositionSync=function(e,t){var n=this._modelService.getModel(e),i=[];return n&&this._doGetRangesToPosition(n,t).forEach(function(e){i.push({type:void 0,range:e});}),i;},e.prototype._doGetRangesToPosition=function(e,t){var n,i;n=PF(MF(e),t);for(var o=[];n;)i&&Jt.equalsRange(i,n.range)||o.push(n.range),i=n.range,n=n.parent;return o=o.reverse();},e=FF([WF(0,Gr)],e);}(),VF=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),HF=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},UF=function(e,t){return function(n,i){t(n,i,e);};},jF=function(){return function(e){this.editor=e,this.next=null,this.previous=null,this.selection=e.getSelection();};}(),zF=function(){function e(e,t){this.editor=e,this._tokenSelectionSupport=t.createInstance(BF),this._state=null,this._ignoreSelection=!1;}return e.get=function(t){return t.getContribution(e.ID);},e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID;},e.prototype.run=function(e){var t=this,n=this.editor.getSelection(),i=this.editor.getModel();this._state&&this._state.editor!==this.editor&&(this._state=null);var o=Promise.resolve(null);return this._state||(o=Promise.resolve(this._tokenSelectionSupport.getRangesToPositionSync(i.uri,n.getStartPosition())).then(function(e){if(!ce(e)){var n;e.filter(function(e){var n=t.editor.getSelection(),i=new Jt(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);return i.containsPosition(n.getStartPosition())&&i.containsPosition(n.getEndPosition());}).forEach(function(e){var i=e.range,o=new jF(t.editor);o.selection=new Jt(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn),n&&(o.next=n,n.previous=o),n=o;});var i=new jF(t.editor);i.next=n,n&&(n.previous=i),t._state=i;var o=t.editor.onDidChangeCursorPosition(function(e){t._ignoreSelection||(t._state=null,o.dispose());});}})),o.then(function(){if(t._state&&(t._state=e?t._state.next:t._state.previous,t._state)){t._ignoreSelection=!0;try{t.editor.setSelection(t._state.selection);}finally{t._ignoreSelection=!1;}}});},e.ID="editor.contrib.smartSelectController",e=HF([UF(1,ln)],e);}(),KF=function(e){function t(t,n){var i=e.call(this,n)||this;return i._forward=t,i;}return VF(t,e),t.prototype.run=function(e,t){var n=zF.get(t);if(n)return n.run(this._forward);},t;}(Zc),qF=function(e){function t(){return e.call(this,!0,{id:"editor.action.smartSelect.grow",label:ie("smartSelect.grow","Expand Select"),alias:"Expand Select",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:1553,mac:{primary:3345},weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"1_basic",title:ie({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})||this;}return VF(t,e),t;}(KF),GF=function(e){function t(){return e.call(this,!1,{id:"editor.action.smartSelect.shrink",label:ie("smartSelect.shrink","Shrink Select"),alias:"Shrink Select",precondition:null,kbOpts:{kbExpr:A_.editorTextFocus,primary:1551,mac:{primary:3343},weight:100},menubarOpts:{menuId:Il.MenubarSelectionMenu,group:"1_basic",title:ie({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})||this;}return VF(t,e),t;}(KF);nd(zF),td(qF),td(GF);var $F,YF={Visible:new yl("suggestWidgetVisible",!1),MultipleSuggestions:new yl("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new yl("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new yl("acceptSuggestionOnEnter",!0)};function XF(e,t,n,i,o,r){void 0===n&&(n="bottom"),void 0===r&&(r=B.None);var s=[],a=function(e){return"none"===e?function(e){return 25!==e.kind;}:function(){return!0;};}(n),l=e.getWordUntilPosition(t),c=new Jt(t.lineNumber,l.startColumn,t.lineNumber,l.endColumn);t=t.clone();var d=cs.orderedGroups(e);"none"!==n&&$F&&d.unshift([$F]);var p=o||{triggerKind:0},f=!1;return X(d.map(function(n){return function(){return Promise.all(n.map(function(n){if(ce(i)||!(i.indexOf(n)<0))return Promise.resolve(n.provideCompletionItems(e,t,p,r)).then(function(i){var o=s.length;if(i&&!ce(i.suggestions))for(var r=0,u=i.suggestions;r<u.length;r++){var l=u[r];a(l)&&(l.range||(l.range=c),ZF(l),s.push({position:t,container:i,suggestion:l,support:n,resolve:QF(n,l,e,t)}));}o!==s.length&&n!==$F&&(f=!0);},u);}));};}),function(){return f||r.isCancellationRequested;}).then(function(){return r.isCancellationRequested?Promise.reject(h()):s.sort(nW(n));});}function ZF(e){e._labelLow||(e._labelLow=e.label.toLowerCase()),e.sortText&&!e._sortTextLow&&(e._sortTextLow=e.sortText.toLowerCase()),e.filterText&&!e._filterTextLow&&(e._filterTextLow=e.filterText.toLowerCase());}function QF(e,t,n,i){var o;return function(r){return o||(o="function"==typeof e.resolveCompletionItem?Promise.resolve(e.resolveCompletionItem(n,i,t,r)).then(function(e){!function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];t.forEach(function(t){return Object.keys(t).forEach(function(n){return e[n]=t[n];});});}(t,e);}):Promise.resolve(void 0)),o;};}function JF(e,t){if(e.suggestion._sortTextLow&&t.suggestion._sortTextLow){if(e.suggestion._sortTextLow<t.suggestion._sortTextLow)return-1;if(e.suggestion._sortTextLow>t.suggestion._sortTextLow)return 1;}return e.suggestion.label<t.suggestion.label?-1:e.suggestion.label>t.suggestion.label?1:e.suggestion.kind-t.suggestion.kind;}function eW(e,t){if(e.suggestion.kind!==t.suggestion.kind){if(25===e.suggestion.kind)return-1;if(25===t.suggestion.kind)return 1;}return JF(e,t);}function tW(e,t){if(e.suggestion.kind!==t.suggestion.kind){if(25===e.suggestion.kind)return 1;if(25===t.suggestion.kind)return-1;}return JF(e,t);}function nW(e){return"top"===e?eW:"bottom"===e?tW:JF;}Jc("_executeCompletionItemProvider",function(e,t,n){var i={incomplete:!1,suggestions:[]},o=[],r=n.maxItemsToResolve||0;return XF(e,t).then(function(e){for(var t=0,n=e;t<n.length;t++){var s=n[t];o.length<r&&o.push(s.resolve(B.None)),i.incomplete=i.incomplete||s.container.incomplete,i.suggestions.push(s.suggestion);}}).then(function(){return Promise.all(o);}).then(function(){return i;});});var iW=new(function(){function e(){this.onlyOnceSuggestions=[];}return e.prototype.provideCompletionItems=function(){var e={suggestions:this.onlyOnceSuggestions.slice(0)};return this.onlyOnceSuggestions.length=0,e;},e;}())();cs.register("*",iW);n("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/snippetSession.css");var oW,rW=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),sW=function(){function e(){this.text("");}return e.isDigitCharacter=function(e){return e>=48&&e<=57;},e.isVariableCharacter=function(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90;},e.prototype.text=function(e){this.value=e,this.pos=0;},e.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len);},e.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var t,n=this.pos,i=0,o=this.value.charCodeAt(n);if("number"==typeof(t=e._table[o]))return this.pos+=1,{type:t,pos:n,len:1};if(e.isDigitCharacter(o)){t=8;do{i+=1,o=this.value.charCodeAt(n+i);}while(e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i};}if(e.isVariableCharacter(o)){t=9;do{o=this.value.charCodeAt(n+ ++i);}while(e.isVariableCharacter(o)||e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i};}t=10;do{i+=1,o=this.value.charCodeAt(n+i);}while(!isNaN(o)&&void 0===e._table[o]&&!e.isDigitCharacter(o)&&!e.isVariableCharacter(o));return this.pos+=i,{type:t,pos:n,len:i};},e._table=((oW={})[36]=0,oW[58]=1,oW[44]=2,oW[123]=3,oW[125]=4,oW[92]=5,oW[47]=6,oW[124]=7,oW[43]=11,oW[45]=12,oW[63]=13,oW),e;}(),aW=function(){function e(){this._children=[];}return e.prototype.appendChild=function(e){return e instanceof uW&&this._children[this._children.length-1]instanceof uW?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this;},e.prototype.replace=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.slice(0);o.splice.apply(o,[i,1].concat(t)),n._children=o,function e(t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];r.parent=n,e(r.children,r);}}(t,n);},Object.defineProperty(e.prototype,"children",{get:function(){return this._children;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snippet",{get:function(){for(var e=this;;){if(!e)return;if(e instanceof mW)return e;e=e.parent;}},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.children.reduce(function(e,t){return e+t.toString();},"");},e.prototype.len=function(){return 0;},e;}(),uW=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n;}return rW(t,e),t.prototype.toString=function(){return this.value;},t.prototype.len=function(){return this.value.length;},t.prototype.clone=function(){return new t(this.value);},t;}(aW),lW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return rW(t,e),t;}(aW),cW=function(e){function t(t){var n=e.call(this)||this;return n.index=t,n;}return rW(t,e),t.compareByIndex=function(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop?-1:e.index<t.index?-1:e.index>t.index?1:0;},Object.defineProperty(t.prototype,"isFinalTabstop",{get:function(){return 0===this.index;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof dW?this._children[0]:void 0;},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(function(e){return e.clone();}),e;},t;}(lW),dW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=[],t;}return rW(t,e),t.prototype.appendChild=function(e){return e instanceof uW&&(e.parent=this,this.options.push(e)),this;},t.prototype.toString=function(){return this.options[0].value;},t.prototype.len=function(){return this.options[0].len();},t.prototype.clone=function(){var e=new t();return this.options.forEach(e.appendChild,e),e;},t;}(aW),hW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return rW(t,e),t.prototype.resolve=function(e){var t=this,n=!1,i=e.replace(this.regexp,function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2));});return!n&&this._children.some(function(e){return e instanceof pW&&Boolean(e.elseValue);})&&(i=this._replace([])),i;},t.prototype._replace=function(e){for(var t="",n=0,i=this._children;n<i.length;n++){var o=i[n];if(o instanceof pW){var r=e[o.index]||"";t+=r=o.resolve(r);}else t+=o.toString();}return t;},t.prototype.toString=function(){return"";},t.prototype.clone=function(){var e=new t();return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(function(e){return e.clone();}),e;},t;}(aW),pW=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.index=t,r.shorthandName=n,r.ifValue=i,r.elseValue=o,r;}return rW(t,e),t.prototype.resolve=function(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue;},t.prototype._toPascalCase=function(e){var t=e.match(/[a-z]+/gi);return t?t.map(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();}).join(""):e;},t.prototype.clone=function(){return new t(this.index,this.shorthandName,this.ifValue,this.elseValue);},t;}(aW),fW=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n;}return rW(t,e),t.prototype.resolve=function(e){var t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new uW(t)],!0);},t.prototype.clone=function(){var e=new t(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(function(e){return e.clone();}),e;},t;}(lW);function gW(e,t){for(var n=e.slice();n.length>0;){var i=n.shift();if(!t(i))break;n.unshift.apply(n,i.children);}}var mW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return rW(t,e),Object.defineProperty(t.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk(function(n){return n instanceof cW&&(t.push(n),e=!e||e.index<n.index?n:e),!0;}),this._placeholders={all:t,last:e};}return this._placeholders;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholders",{get:function(){return this.placeholderInfo.all;},enumerable:!0,configurable:!0}),t.prototype.offset=function(e){var t=0,n=!1;return this.walk(function(i){return i===e?(n=!0,!1):(t+=i.len(),!0);}),n?t:-1;},t.prototype.fullLen=function(e){var t=0;return gW([e],function(e){return t+=e.len(),!0;}),t;},t.prototype.enclosingPlaceholders=function(e){for(var t=[],n=e.parent;n;)n instanceof cW&&t.push(n),n=n.parent;return t;},t.prototype.resolveVariables=function(e){var t=this;return this.walk(function(n){return n instanceof fW&&n.resolve(e)&&(t._placeholders=void 0),!0;}),this;},t.prototype.appendChild=function(t){return this._placeholders=void 0,e.prototype.appendChild.call(this,t);},t.prototype.replace=function(t,n){return this._placeholders=void 0,e.prototype.replace.call(this,t,n);},t.prototype.clone=function(){var e=new t();return this._children=this.children.map(function(e){return e.clone();}),e;},t.prototype.walk=function(e){gW(this.children,e);},t;}(aW),_W=function(){function e(){this._scanner=new sW();}return e.escape=function(e){return e.replace(/\$|}|\\/g,"\\$&");},e.prototype.parse=function(e,t,n){this._scanner.text(e),this._token=this._scanner.next();for(var i=new mW();this._parse(i););var o=new Map(),r=[],s=0;i.walk(function(e){return e instanceof cW&&(s+=1,e.isFinalTabstop?o.set(0,void 0):!o.has(e.index)&&e.children.length>0?o.set(e.index,e.children):r.push(e)),!0;});for(var a=0,u=r;a<u.length;a++){var l=u[a];if(o.has(l.index)){var c=new cW(l.index);c.transform=l.transform;for(var d=0,h=o.get(l.index);d<h.length;d++){var p=h[d];c.appendChild(p.clone());}i.replace(l,[c]);}}return n||(n=s>0&&t),!o.has(0)&&n&&i.appendChild(new cW(0)),i;},e.prototype._accept=function(e,t){if(void 0===e||this._token.type===e){var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n;}return!1;},e.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1;},e.prototype._until=function(e){if(14===this._token.type)return!1;for(var t=this._token;this._token.type!==e;)if(this._token=this._scanner.next(),14===this._token.type)return!1;var n=this._scanner.value.substring(t.pos,this._token.pos);return this._token=this._scanner.next(),n;},e.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e);},e.prototype._parseEscaped=function(e){var t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new uW(t)),!0);},e.prototype._parseTabstopOrVariableName=function(e){var t,n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new cW(Number(t)):new fW(t)),!0):this._backTo(n);},e.prototype._parseComplexPlaceholder=function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);var i=new cW(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new uW("${"+t+":")),i.children.forEach(e.appendChild,e),!0;}else{if(!(i.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(n);for(var o=new dW();;){if(this._parseChoiceElement(o)){if(this._accept(2))continue;if(this._accept(7)&&(i.appendChild(o),this._accept(4)))return e.appendChild(i),!0;}return this._backTo(n),!1;}}},e.prototype._parseChoiceElement=function(e){for(var t=this._token,n=[];2!==this._token.type&&7!==this._token.type;){var i=void 0;if(!(i=(i=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||i:this._accept(void 0,!0)))return this._backTo(t),!1;n.push(i);}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new uW(n.join(""))),!0);},e.prototype._parseComplexVariable=function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);var i=new fW(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(n);for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new uW("${"+t+":")),i.children.forEach(e.appendChild,e),!0;}},e.prototype._parseTransform=function(e){for(var t=new hW(),n="",i="";!this._accept(6);){var o=void 0;if(o=this._accept(5,!0))n+=o=this._accept(6,!0)||o;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0);}}for(;!this._accept(6);){o=void 0;if(o=this._accept(5,!0))o=this._accept(6,!0)||o,t.appendChild(new uW(o));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1;}for(;!this._accept(4);){if(14===this._token.type)return!1;i+=this._accept(void 0,!0);}try{t.regexp=new RegExp(n,i);}catch(e){return!1;}return e.transform=t,!0;},e.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(0))return!1;var n=!1;this._accept(3)&&(n=!0);var i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new pW(Number(i))),!0;if(this._accept(4))return e.appendChild(new pW(Number(i))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var o=this._accept(9,!0);return o&&this._accept(4)?(e.appendChild(new pW(Number(i),o)),!0):(this._backTo(t),!1);}if(this._accept(11)){if(r=this._until(4))return e.appendChild(new pW(Number(i),void 0,r,void 0)),!0;}else if(this._accept(12)){if(s=this._until(4))return e.appendChild(new pW(Number(i),void 0,void 0,s)),!0;}else if(this._accept(13)){var r;if(r=this._until(1))if(s=this._until(4))return e.appendChild(new pW(Number(i),void 0,r,s)),!0;}else{var s;if(s=this._until(4))return e.appendChild(new pW(Number(i),void 0,void 0,s)),!0;}return this._backTo(t),!1;},e.prototype._parseAnything=function(e){return 14!==this._token.type&&(e.appendChild(new uW(this._scanner.tokenText(this._token))),this._accept(void 0),!0);},e;}(),vW=function(){function e(e){this._delegates=e;}return e.prototype.resolve=function(e){for(var t=0,n=this._delegates;t<n.length;t++){var i=n[t].resolve(e);if(void 0!==i)return i;}},e;}(),yW=function(){function e(e,t){this._model=e,this._selection=t;}return e.prototype.resolve=function(e){var t=e.name;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){var n=this._model.getValueInRange(this._selection)||void 0;if(n&&this._selection.startLineNumber!==this._selection.endLineNumber){var i=co(this._model.getLineContent(this._selection.startLineNumber),0,this._selection.startColumn-1),o=i;e.snippet.walk(function(t){return t!==e&&(t instanceof uW&&(o=co(t.value.split(/\r\n|\r|\n/).pop())),!0);});var r=yo(o,i);n=n.replace(/(\r\n|\r|\n)(.*)/g,function(e,t,n){return""+t+o.substr(r)+n;});}return n;}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){var s=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return s&&s.word||void 0;}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0;},e;}(),bW=function(){function e(e){this._model=e;}return e.prototype.resolve=function(e){var t=e.name;if("TM_FILENAME"===t)return Ao(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){var n=Ao(this._model.uri.fsPath),i=n.lastIndexOf(".");return i<=0?n:n.slice(0,i);}if("TM_DIRECTORY"===t){var o=Ro(this._model.uri.fsPath);return"."!==o?o:"";}return"TM_FILEPATH"===t?this._model.uri.fsPath:void 0;},e;}(),CW=function(){function e(e,t,n){this._clipboardService=e,this._selectionIdx=t,this._selectionCount=n;}return e.prototype.resolve=function(e){if("CLIPBOARD"===e.name&&this._clipboardService){var t=this._clipboardService.readText();if(t){var n=t.split(/\r\n|\n|\r/).filter(function(e){return!Qi(e);});return n.length===this._selectionCount?n[this._selectionIdx]:t;}}},e;}(),wW=function(){function e(){}return e.prototype.resolve=function(t){var n=t.name;return"CURRENT_YEAR"===n?String(new Date().getFullYear()):"CURRENT_YEAR_SHORT"===n?String(new Date().getFullYear()).slice(-2):"CURRENT_MONTH"===n?Ji(new Date().getMonth().valueOf()+1,2):"CURRENT_DATE"===n?Ji(new Date().getDate().valueOf(),2):"CURRENT_HOUR"===n?Ji(new Date().getHours().valueOf(),2):"CURRENT_MINUTE"===n?Ji(new Date().getMinutes().valueOf(),2):"CURRENT_SECOND"===n?Ji(new Date().getSeconds().valueOf(),2):"CURRENT_DAY_NAME"===n?e.dayNames[new Date().getDay()]:"CURRENT_DAY_NAME_SHORT"===n?e.dayNamesShort[new Date().getDay()]:"CURRENT_MONTH_NAME"===n?e.monthNames[new Date().getMonth()]:"CURRENT_MONTH_NAME_SHORT"===n?e.monthNamesShort[new Date().getMonth()]:void 0;},e.dayNames=[ie("Sunday","Sunday"),ie("Monday","Monday"),ie("Tuesday","Tuesday"),ie("Wednesday","Wednesday"),ie("Thursday","Thursday"),ie("Friday","Friday"),ie("Saturday","Saturday")],e.dayNamesShort=[ie("SundayShort","Sun"),ie("MondayShort","Mon"),ie("TuesdayShort","Tue"),ie("WednesdayShort","Wed"),ie("ThursdayShort","Thu"),ie("FridayShort","Fri"),ie("SaturdayShort","Sat")],e.monthNames=[ie("January","January"),ie("February","February"),ie("March","March"),ie("April","April"),ie("May","May"),ie("June","June"),ie("July","July"),ie("August","August"),ie("September","September"),ie("October","October"),ie("November","November"),ie("December","December")],e.monthNamesShort=[ie("JanuaryShort","Jan"),ie("FebruaryShort","Feb"),ie("MarchShort","Mar"),ie("AprilShort","Apr"),ie("MayShort","May"),ie("JuneShort","Jun"),ie("JulyShort","Jul"),ie("AugustShort","Aug"),ie("SeptemberShort","Sep"),ie("OctoberShort","Oct"),ie("NovemberShort","Nov"),ie("DecemberShort","Dec")],e;}();Vd(function(e,t){function n(t){var n=e.getColor(t);return n?n.toString():"transparent";}t.addRule(".monaco-editor .snippet-placeholder { background-color: "+n(rf)+"; outline-color: "+n(sf)+"; }"),t.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+n(af)+"; outline-color: "+n(uf)+"; }");});var SW=function(){function e(e,t,n){this._nestingLevel=1,this._editor=e,this._snippet=t,this._offset=n,this._placeholderGroups=ue(t.placeholders,cW.compareByIndex),this._placeholderGroupsIdx=-1;}return e.prototype.dispose=function(){if(this._placeholderDecorations){var e=[];this._placeholderDecorations.forEach(function(t){return e.push(t);}),this._editor.deltaDecorations(e,[]);}this._placeholderGroups.length=0;},e.prototype._initDecorations=function(){var t=this;if(!this._placeholderDecorations){this._placeholderDecorations=new Map();var n=this._editor.getModel();this._editor.changeDecorations(function(i){for(var o=0,r=t._snippet.placeholders;o<r.length;o++){var s=r[o],a=t._snippet.offset(s),u=t._snippet.fullLen(s),l=Jt.fromPositions(n.getPositionAt(t._offset+a),n.getPositionAt(t._offset+a+u)),c=s.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive,d=i.addDecoration(l,c);t._placeholderDecorations.set(s,d);}});}},e.prototype.move=function(t){var n=this;if(this._initDecorations(),this._placeholderGroupsIdx>=0){for(var i=[],o=0,r=this._placeholderGroups[this._placeholderGroupsIdx];o<r.length;o++){var s=r[o];if(s.transform){var a=this._placeholderDecorations.get(s),u=this._editor.getModel().getDecorationRange(a),l=this._editor.getModel().getValueInRange(u);i.push(ll.replaceMove(u,s.transform.resolve(l)));}}i.length>0&&this._editor.executeEdits("snippet.placeholderTransform",i);}var c=!1;!0===t&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,c=!0):!1===t&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,c=!0);var d=this._editor.getModel().changeDecorations(function(t){for(var i=new Set(),o=[],r=0,s=n._placeholderGroups[n._placeholderGroupsIdx];r<s.length;r++){var a=s[r],u=n._placeholderDecorations.get(a),l=n._editor.getModel().getDecorationRange(u);o.push(new tn(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn)),c=c&&l.isEmpty()&&a.toString().length>0,t.changeDecorationOptions(u,a.isFinalTabstop?e._decor.activeFinal:e._decor.active),i.add(a);for(var d=0,h=n._snippet.enclosingPlaceholders(a);d<h.length;d++){var p=h[d],f=n._placeholderDecorations.get(p);t.changeDecorationOptions(f,p.isFinalTabstop?e._decor.activeFinal:e._decor.active),i.add(p);}}return n._placeholderDecorations.forEach(function(n,o){i.has(o)||t.changeDecorationOptions(n,o.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive);}),o;});return c?this.move(t):d;},Object.defineProperty(e.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0;},enumerable:!0,configurable:!0}),e.prototype.computePossibleSelections=function(){for(var e=new Map(),t=0,n=this._placeholderGroups;t<n.length;t++)for(var i=void 0,o=0,r=n[t];o<r.length;o++){var s=r[o];if(s.isFinalTabstop)break;i||(i=[],e.set(s.index,i));var a=this._placeholderDecorations.get(s),u=this._editor.getModel().getDecorationRange(a);if(!u){e.delete(s.index);break;}i.push(u);}return e;},Object.defineProperty(e.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice;},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){var n=this,i=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(function(o){for(var r=0,s=n._placeholderGroups[n._placeholderGroupsIdx];r<s.length;r++){var a=s[r],u=t.shift();console.assert(!u._placeholderDecorations);for(var l=u._snippet.placeholderInfo.last.index,c=0,d=u._snippet.placeholderInfo.all;c<d.length;c++){var h=d[c];h.isFinalTabstop?h.index=a.index+(l+1)/n._nestingLevel:h.index=a.index+h.index/n._nestingLevel;}n._snippet.replace(a,u._snippet.children);var p=n._placeholderDecorations.get(a);o.removeDecoration(p),n._placeholderDecorations.delete(a);for(var f=0,g=u._snippet.placeholders;f<g.length;f++){var m=g[f],_=u._snippet.offset(m),v=u._snippet.fullLen(m),y=Jt.fromPositions(i.getPositionAt(u._offset+_),i.getPositionAt(u._offset+_+v)),b=o.addDecoration(y,e._decor.inactive);n._placeholderDecorations.set(m,b);}}n._placeholderGroups=ue(n._snippet.placeholders,cW.compareByIndex);});},e._decor={active:i_.register({stickiness:0,className:"snippet-placeholder"}),inactive:i_.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:i_.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:i_.register({stickiness:1,className:"finish-snippet-placeholder"})},e;}(),xW=function(){function e(e,t,n,i,o){void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=!0),this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._overwriteBefore=n,this._overwriteAfter=i,this._adjustWhitespace=o;}return e.adjustWhitespace=function(e,t,n){var i=co(e.getLineContent(t.lineNumber),0,t.column-1);n.walk(function(t){if(t instanceof uW&&!(t.parent instanceof dW)){for(var n=t.value.split(/\r\n|\r|\n/),o=1;o<n.length;o++){var r=co(n[o]);n[o]=e.normalizeIndentation(i+r)+n[o].substr(r.length);}var s=n.join(e.getEOL());s!==t.value&&t.parent.replace(t,[new uW(s)]);}return!0;});},e.adjustSelection=function(e,t,n,i){if(0!==n||0!==i){var o=t.positionLineNumber,r=t.positionColumn,s=r-n,a=r+i,u=e.validateRange({startLineNumber:o,startColumn:s,endLineNumber:o,endColumn:a});t=tn.createWithDirection(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn,t.getDirection());}return t;},e.createEditsAndSnippets=function(t,n,i,o,r,s){for(var a=t.getModel(),u=[],l=[],c=new bW(a),d=t.invokeWithinContext(function(e){return e.get(bO,hn);}),h=0,p=a.getValueInRange(e.adjustSelection(a,t.getSelection(),i,0)),f=a.getValueInRange(e.adjustSelection(a,t.getSelection(),0,o)),g=a.getLineFirstNonWhitespaceColumn(t.getSelection().positionLineNumber),m=t.getSelections().map(function(e,t){return{selection:e,idx:t};}).sort(function(e,t){return Jt.compareRangesUsingStarts(e.selection,t.selection);}),_=0,v=m;_<v.length;_++){var y=v[_],b=y.selection,C=y.idx,w=e.adjustSelection(a,b,i,0),S=e.adjustSelection(a,b,0,o);p!==a.getValueInRange(w)&&(w=b),f!==a.getValueInRange(S)&&(S=b);var x=b.setStartPosition(w.startLineNumber,w.startColumn).setEndPosition(S.endLineNumber,S.endColumn),E=new _W().parse(n,!0,r),L=x.getStartPosition();(s||C>0&&g!==a.getLineFirstNonWhitespaceColumn(b.positionLineNumber))&&e.adjustWhitespace(a,L,E),E.resolveVariables(new vW([c,new CW(d,C,m.length),new yW(a,b),new wW()]));var T=a.getOffsetAt(L)+h;h+=E.toString().length-a.getValueLengthInRange(x),u[C]=ll.replace(x,E.toString()),l[C]=new SW(t,E,T);}return{edits:u,snippets:l};},e.prototype.dispose=function(){f(this._snippets);},e.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"';},e.prototype.insert=function(){var t=this,n=this._editor.getModel(),i=e.createEditsAndSnippets(this._editor,this._template,this._overwriteBefore,this._overwriteAfter,!1,this._adjustWhitespace),o=i.edits,r=i.snippets;this._snippets=r;var s=n.pushEditOperations(this._editor.getSelections(),o,function(e){return t._snippets[0].hasPlaceholder?t._move(!0):e.map(function(e){return tn.fromPositions(e.range.getEndPosition());});});this._editor.setSelections(s),this._editor.revealRange(s[0]);},e.prototype.merge=function(t,n,i,o){var r=this;void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=!0),this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);var s=e.createEditsAndSnippets(this._editor,t,n,i,!0,o),a=s.edits,u=s.snippets;this._editor.setSelections(this._editor.getModel().pushEditOperations(this._editor.getSelections(),a,function(e){for(var t=0,n=r._snippets;t<n.length;t++){n[t].merge(u);}return console.assert(0===u.length),r._snippets[0].hasPlaceholder?r._move(void 0):e.map(function(e){return tn.fromPositions(e.range.getEndPosition());});}));},e.prototype.next=function(){var e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition());},e.prototype.prev=function(){var e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition());},e.prototype._move=function(e){for(var t=[],n=0,i=this._snippets;n<i.length;n++){var o=i[n].move(e);t.push.apply(t,o);}return t;},Object.defineProperty(e.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"choice",{get:function(){return this._snippets[0].choice;},enumerable:!0,configurable:!0}),e.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var e,t=this._editor.getSelections();if(t.length<this._snippets.length)return!1;for(var n=function(n){var i=n.computePossibleSelections();if(e||(e=new Map(),i.forEach(function(n,i){n.sort(Jt.compareRangesUsingStarts);for(var o=0,r=t;o<r.length;o++){var s=r[o];if(n[0].containsRange(s)){e.set(i,[]);break;}}})),0===e.size)return{value:!1};e.forEach(function(e,t){e.push.apply(e,i.get(t));});},i=0,o=this._snippets;i<o.length;i++){var r=n(o[i]);if("object"==typeof r)return r.value;}return t.sort(Jt.compareRangesUsingStarts),e.forEach(function(n,i){if(n.length===t.length){n.sort(Jt.compareRangesUsingStarts);for(var o=0;o<n.length;o++)if(!n[o].containsRange(t[o]))return void e.delete(i);}else e.delete(i);}),e.size>0;},e;}(),EW=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},LW=function(e,t){return function(n,i){t(n,i,e);};},TW=function(){function e(t,n,i){this._editor=t,this._logService=n,this._snippetListener=[],this._inSnippet=e.InSnippetMode.bindTo(i),this._hasNextTabstop=e.HasNextTabstop.bindTo(i),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(i);}return e.get=function(e){return e.getContribution("snippetController2");},e.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),f(this._session);},e.prototype.getId=function(){return"snippetController2";},e.prototype.insert=function(e,t,n,i,o,r){void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===o&&(o=!0),void 0===r&&(r=!0);try{this._doInsert(e,t,n,i,o,r);}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>");}},e.prototype._doInsert=function(e,t,n,i,o,r){var s=this;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===o&&(o=!0),void 0===r&&(r=!0),this._snippetListener=f(this._snippetListener),i&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t,n,r):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new xW(this._editor,e,t,n,r),this._session.insert()),o&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener=[this._editor.onDidChangeModelContent(function(e){return e.isFlush&&s.cancel();}),this._editor.onDidChangeModel(function(){return s.cancel();}),this._editor.onDidChangeCursorSelection(function(){return s._updateState();})];},e.prototype._updateState=function(){if(this._session){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();}},e.prototype._handleChoice=function(){var e,t,n=this,i=this._session.choice;if(i){if(this._currentChoice!==i){this._currentChoice=i,this._editor.setSelections(this._editor.getSelections().map(function(e){return tn.fromPositions(e.getStartPosition());}));var o=i.options[0];e=this._editor,t=i.options.map(function(e,t){return{kind:13,label:e.value,insertText:e.value,sortText:function(e,t){for(var n="",i=0;i<t;i++)n+=e;return n;}("a",t),range:Jt.fromPositions(n._editor.getPosition(),n._editor.getPosition().delta(0,o.value.length))};}),setTimeout(function(){var n;(n=iW.onlyOnceSuggestions).push.apply(n,t),e.getContribution("editor.contrib.suggestController").triggerSuggest([iW]);},0);}}else this._currentChoice=void 0;},e.prototype.finish=function(){for(;this._inSnippet.get();)this.next();},e.prototype.cancel=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),f(this._snippetListener),f(this._session),this._session=void 0,this._modelVersionId=-1;},e.prototype.prev=function(){this._session.prev(),this._updateState();},e.prototype.next=function(){this._session.next(),this._updateState();},e.prototype.isInSnippet=function(){return this._inSnippet.get();},e.InSnippetMode=new yl("inSnippetMode",!1),e.HasNextTabstop=new yl("hasNextTabstop",!1),e.HasPrevTabstop=new yl("hasPrevTabstop",!1),e=EW([LW(1,ex),LW(2,bl)],e);}();nd(TW);var IW=Xc.bindToContribution(TW.get);ed(new IW({id:"jumpToNextSnippetPlaceholder",precondition:dl.and(TW.InSnippetMode,TW.HasNextTabstop),handler:function(e){return e.next();},kbOpts:{weight:130,kbExpr:A_.editorTextFocus,primary:2}})),ed(new IW({id:"jumpToPrevSnippetPlaceholder",precondition:dl.and(TW.InSnippetMode,TW.HasPrevTabstop),handler:function(e){return e.prev();},kbOpts:{weight:130,kbExpr:A_.editorTextFocus,primary:1026}})),ed(new IW({id:"leaveSnippet",precondition:TW.InSnippetMode,handler:function(e){return e.cancel();},kbOpts:{weight:130,kbExpr:A_.editorTextFocus,primary:9,secondary:[1033]}})),ed(new IW({id:"acceptSnippet",precondition:TW.InSnippetMode,handler:function(e){return e.finish();}}));var NW=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),kW=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},OW=function(e,t){return function(n,i){t(n,i,e);};},DW=function(){function e(){}return e.prototype.select=function(e,t,n){if(0===n.length)return 0;for(var i=n[0].score,o=1;o<n.length;o++){var r=n[o],s=r.score,a=r.suggestion;if(s!==i)break;if(a.preselect)return o;}return 0;},e;}(),RW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return NW(t,e),t.prototype.memorize=function(e,t,n){},t.prototype.toJSON=function(){},t.prototype.fromJSON=function(){},t;}(DW),AW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._cache=new Sr(300,.66),t._seq=0,t;}return NW(t,e),t.prototype.memorize=function(e,t,n){var i=n.suggestion.label,o=e.getLanguageIdentifier().language+"/"+i;this._cache.set(o,{touch:this._seq++,type:n.suggestion.kind,insertText:n.suggestion.insertText});},t.prototype.select=function(t,n,i){if(0!==t.getWordUntilPosition(n).word.length)return e.prototype.select.call(this,t,n,i);var o=t.getLineContent(n.lineNumber).substr(n.column-10,n.column-1);if(/\s$/.test(o))return e.prototype.select.call(this,t,n,i);for(var r=-1,s=-1,a=0;a<i.length;a++){var u=i[a].suggestion,l=t.getLanguageIdentifier().language+"/"+u.label,c=this._cache.get(l);c&&c.touch>s&&c.type===u.kind&&c.insertText===u.insertText&&(s=c.touch,r=a);}return-1===r?e.prototype.select.call(this,t,n,i):r;},t.prototype.toJSON=function(){var e=[];return this._cache.forEach(function(t,n){e.push([n,t]);}),e;},t.prototype.fromJSON=function(e){this._cache.clear();for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i[0],r=i[1];r.touch=0,r.type="number"==typeof r.type?r.type:os(r.type),this._cache.set(o,r);}this._seq=this._cache.size;},t;}(DW),MW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._trie=Cr.forStrings(),t._seq=0,t;}return NW(t,e),t.prototype.memorize=function(e,t,n){var i=e.getWordUntilPosition(t).word,o=e.getLanguageIdentifier().language+"/"+i;this._trie.set(o,{type:n.suggestion.kind,insertText:n.suggestion.insertText,touch:this._seq++});},t.prototype.select=function(t,n,i){var o=t.getWordUntilPosition(n).word;if(!o)return e.prototype.select.call(this,t,n,i);var r=t.getLanguageIdentifier().language+"/"+o,s=this._trie.get(r);if(s||(s=this._trie.findSubstr(r)),s)for(var a=0;a<i.length;a++){var u=i[a].suggestion,l=u.kind,c=u.insertText;if(l===s.type&&c===s.insertText)return a;}return e.prototype.select.call(this,t,n,i);},t.prototype.toJSON=function(){var e=[];return this._trie.forEach(function(t,n){return e.push([n,t]);}),e.sort(function(e,t){return-(e[1].touch-t[1].touch);}).forEach(function(e,t){return e[1].touch=t;}),e.slice(0,200);},t.prototype.fromJSON=function(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i[0],r=i[1];r.type="number"==typeof r.type?r.type:os(r.type),this._trie.set(o,r);}}},t;}(DW),PW=function(e){function t(t,n){var i=e.call(this)||this;return i._storageService=n,i._storagePrefix="suggest/memories",i._setMode(t.getConfiguration().contribInfo.suggestSelection),i._register(t.onDidChangeConfiguration(function(e){return e.contribInfo&&i._setMode(t.getConfiguration().contribInfo.suggestSelection);})),i._register(n.onWillSaveState(function(){return i._saveState();})),i;}return NW(t,e),t.prototype._setMode=function(e){if(this._mode!==e){this._mode=e,this._strategy="recentlyUsedByPrefix"===e?new MW():"recentlyUsed"===e?new AW():new RW();try{var t=this._storageService.get(this._storagePrefix+"/"+this._mode,1);t&&this._strategy.fromJSON(JSON.parse(t));}catch(e){}}},t.prototype.memorize=function(e,t,n){this._strategy.memorize(e,t,n);},t.prototype.select=function(e,t,n){return this._strategy.select(e,t,n);},t.prototype._saveState=function(){var e=JSON.stringify(this._strategy);this._storageService.store(this._storagePrefix+"/"+this._mode,e,1);},t=kW([OW(1,vE)],t);}(y),FW=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},WW=function(e,t){return function(n,i){t(n,i,e);};},BW=function(){function e(t,n){this._editor=t,this._ckOtherSuggestions=e.OtherSuggestions.bindTo(n);}return e.prototype.dispose=function(){this.reset();},e.prototype.reset=function(){this._ckOtherSuggestions.reset(),f(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1;},e.prototype.set=function(t,n){var i=this,o=t.model,r=t.index;0!==o.items.length?e._moveIndex(!0,o,r)!==r?(this._acceptNext=n,this._model=o,this._index=r,this._listener=this._editor.onDidChangeCursorPosition(function(){i._ignore||i.reset();}),this._ckOtherSuggestions.set(!0)):this.reset():this.reset();},e._moveIndex=function(e,t,n){for(var i=n;(i=(i+t.items.length+(e?1:-1))%t.items.length)!==n&&t.items[i].suggestion.additionalTextEdits;);return i;},e.prototype.next=function(){this._move(!0);},e.prototype.prev=function(){this._move(!1);},e.prototype._move=function(t){if(this._model)try{this._ignore=!0,this._index=e._moveIndex(t,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model});}finally{this._ignore=!1;}},e.OtherSuggestions=new yl("hasOtherSuggestions",!1),e=FW([WW(1,bl)],e);}();function VW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){for(var i=0,o=e.length;i<o;i++){var r=e[i](t,n);if(r)return r;}return null;};}var HW=function(e,t,n){if(!n||n.length<t.length)return null;var i;i=e?vo(n,t):0===n.indexOf(t);if(!i)return null;return t.length>0?[{start:0,end:t.length}]:[];}.bind(void 0,!0);function UW(e){return 97<=e&&e<=122;}function jW(e){return 65<=e&&e<=90;}function zW(e){return 48<=e&&e<=57;}function KW(e){return 32===e||9===e||10===e||13===e;}function qW(e){return UW(e)||jW(e)||zW(e);}function GW(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t;}function $W(e,t){for(var n=t;n<e.length;n++){var i=e.charCodeAt(n);if(jW(i)||zW(i)||n>0&&!qW(e.charCodeAt(n-1)))return n;}return e.length;}function YW(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;var o=null,r=i+1;for(o=YW(e,t,n+1,i+1);!o&&(r=$W(t,r))<t.length;)o=YW(e,t,n+1,r),r++;return null===o?null:GW({start:i,end:i+1},o);}function XW(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){for(var t=0,n=0,i=0,o=0,r=0;r<e.length;r++)jW(i=e.charCodeAt(r))&&t++,UW(i)&&n++,KW(i)&&o++;return 0!==t&&0!==n||0!==o?t<=5:e.length<=30;}(e))return null;if(t.length>60)return null;var n=function(e){for(var t=0,n=0,i=0,o=0,r=0,s=0;s<e.length;s++)jW(r=e.charCodeAt(s))&&t++,UW(r)&&n++,qW(r)&&i++,zW(r)&&o++;return{upperPercent:t/e.length,lowerPercent:n/e.length,alphaPercent:i/e.length,numericPercent:o/e.length};}(t);if(!function(e){var t=e.upperPercent,n=e.lowerPercent,i=e.alphaPercent,o=e.numericPercent;return n>.2&&t<.8&&i>.6&&o<.2;}(n)){if(!function(e){var t=e.upperPercent;return 0===e.lowerPercent&&t>.6;}(n))return null;t=t.toLowerCase();}var i=null,o=0;for(e=e.toLowerCase();o<t.length&&null===(i=YW(e,t,0,o));)o=$W(t,o+1);return i;}var ZW=VW(HW,XW,function(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}];}),QW=VW(HW,XW,function(e,t){return function e(t,n,i,o){if(i===t.length)return[];if(o===n.length)return null;if(t[i]===n[o]){var r=null;return(r=e(t,n,i+1,o+1))?GW({start:o,end:o+1},r):null;}return e(t,n,i,o+1);}(e.toLowerCase(),t.toLowerCase(),0,0);}),JW=new Sr(1e4);function eB(e,t,n){if(void 0===n&&(n=!1),"string"!=typeof e||"string"!=typeof t)return null;var i=JW.get(e);i||(i=new RegExp(e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*"),"i"),JW.set(e,i));var o=i.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:n?QW(e,t):ZW(e,t);}function tB(e,t,n){e=e.toLowerCase(),t=t.toLowerCase();for(var i=[],o=0,r=0;r<e.length;++r){var s=t.indexOf(e.charAt(r),o);s>=0&&(i.push(s),o=s+1);}return[i.length,i];}function nB(){for(var e=[],t=[0],n=1;n<=100;n++)t.push(-n);for(n=0;n<=100;n++){var i=t.slice(0);i[0]=-n,e.push(i);}return e;}var iB=nB(),oB=nB(),rB=nB(),sB=!1;function aB(e,t,n,i,o){function r(e,t,n){for(void 0===n&&(n=" ");e.length<t;)e=n+e;return e;}for(var s=" | |"+i.split("").map(function(e){return r(e,3);}).join("|")+"\n",a=0;a<=n;a++)s+=0===a?" |":t[a-1]+"|",s+=e[a].slice(0,o+1).map(function(e){return r(e.toString(),3);}).join("|")+"\n";return s;}function uB(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:return!0;default:return!1;}}function lB(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1;}}function cB(e,t,n,i,o,r,s){var a=e.length>100?100:e.length,u=i.length>100?100:i.length;if(!(n>=a||r>=u||a>u)){for(var l=n,c=r;n<a&&r<u;)t[n]===o[r]&&(n+=1),r+=1;if(n===a){for(n=l,r=c,n=l+1;n<=a;n++)for(r=1;r<=u;r++){var d=-1,h=o[r-1];t[n-1]===h&&(d=r===n-l?e[n-1]===i[r-1]?7:5:h===i[r-1]||1!==r&&o[r-2]!==i[r-2]?uB(o,r-2)||lB(o,r-2)?5:1:e[n-1]===i[r-1]?7:5),oB[n][r]=d;var p=iB[n-1][r-1]+(d>1?1:d),f=iB[n-1][r]+-1,g=iB[n][r-1]+-1;g>=f?g>p?(iB[n][r]=g,rB[n][r]=4):g===p?(iB[n][r]=g,rB[n][r]=6):(iB[n][r]=p,rB[n][r]=2):f>p?(iB[n][r]=f,rB[n][r]=1):f===p?(iB[n][r]=f,rB[n][r]=3):(iB[n][r]=p,rB[n][r]=2);}if(sB&&(console.log(aB(iB,e,a,i,u)),console.log(aB(rB,e,a,i,u)),console.log(aB(oB,e,a,i,u))),hB=0,pB=-100,fB=l,gB=s,function e(t,n,i,o,r){if(hB>=10||i<-25)return;var s=0;for(;t>fB&&n>0;){var a=oB[t][n],u=rB[t][n];if(4===u)n-=1,r?i-=5:o.isEmpty()||(i-=1),r=!1,s=0;else{if(!(2&u))return;if(4&u&&e(t,n-1,o.isEmpty()?i:i-1,o.slice(),r),i+=a,t-=1,n-=1,o.unshift(n),r=!0,1===a){if(s+=1,t===fB&&!gB)return;}else i+=1+s*(a-1),s=0;}}i-=n>=3?9:3*n;hB+=1;i>pB&&(pB=i,dB=o);}(a,u,a===u?1:0,new mB(),!1),0!==hB)return[pB,dB.toArray()];}}}var dB,hB=0,pB=0,fB=0,gB=!1;var mB=function(){function e(){}return e.prototype.isEmpty=function(){return!this._data&&(!this._parent||this._parent.isEmpty());},e.prototype.unshift=function(e){this._data?this._data.unshift(e):this._data=[e];},e.prototype.slice=function(){var t=new e();return t._parent=this,t._parentLen=this._data?this._data.length:0,t;},e.prototype.toArray=function(){if(!this._data)return this._parent.toArray();for(var e=[],t=this;t;)t._parent&&t._parent._data&&e.push(t._parent._data.slice(t._parent._data.length-t._parentLen)),t=t._parent;return Array.prototype.concat.apply(this._data,e);},e;}();function _B(e,t,n,i,o,r,s){return function(e,t,n,i,o,r,s,a){var u=cB(e,t,n,i,o,r,a);if(u&&!s)return u;if(e.length>=3)for(var l=Math.min(7,e.length-1),c=n+1;c<l;c++){var d=vB(e,c);if(d){var h=cB(d,d.toLowerCase(),n,i,o,r,a);h&&(h[0]-=3,(!u||h[0]>u[0])&&(u=h));}}return u;}(e,t,n,i,o,r,!0,s);}function vB(e,t){if(!(t+1>=e.length)){var n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2);}}var yB=function(){function e(t,n,i,o,r){void 0===r&&(r=Xe.contribInfo.suggest),this._snippetCompareFn=e._compareCompletionItems,this._items=t,this._column=n,this._wordDistance=o,this._options=r,this._refilterKind=1,this._lineContext=i,"top"===r.snippets?this._snippetCompareFn=e._compareCompletionItemsSnippetsUp:"bottom"===r.snippets&&(this._snippetCompareFn=e._compareCompletionItemsSnippetsDown);}return e.prototype.dispose=function(){for(var e,t=new Set(),n=0,i=this._items;n<i.length;n++){var o=i[n].container;t.has(o)||(t.add(o),"function"==typeof(e=o).dispose&&0===e.dispose.length&&o.dispose());}},Object.defineProperty(e.prototype,"lineContext",{get:function(){return this._lineContext;},set:function(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete;},enumerable:!0,configurable:!0}),e.prototype.adopt=function(e){for(var t=new Array(),n=0;n<this._items.length;)e.has(this._items[n].support)?n++:(t.push(this._items[n]),this._items[n]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t;},Object.defineProperty(e.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats;},enumerable:!0,configurable:!0}),e.prototype._ensureCachedState=function(){0!==this._refilterKind&&this._createCachedState();},e.prototype._createCachedState=function(){this._isIncomplete=new Set(),this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var e=this._lineContext,t=e.leadingLineContent,n=e.characterCountDelta,i="",o="",r=1===this._refilterKind?this._items:this._filteredItems,s=[],a=!this._options.filterGraceful||r.length>2e3?cB:_B,u=0;u<r.length;u++){var l=r[u],c=l.suggestion,d=l.container;ZF(c),d.incomplete&&this._isIncomplete.add(l.support);var h=l.position.column-c.range.startColumn,p=h+n-(l.position.column-this._column);if(i.length!==p&&(o=(i=0===p?"":t.slice(-p)).toLowerCase()),l.word=i,0===p)l.score=-100,l.matches=void 0;else{for(var f=0;f<h;){var g=i.charCodeAt(f);if(32!==g&&9!==g)break;f+=1;}if(f>=p)l.score=-100,l.matches=[];else if("string"==typeof c.filterText){if(!(m=a(i,o,f,c.filterText,c._filterTextLow,0,!1)))continue;l.score=m[0],l.matches=(cB(i,o,0,c.label,c._labelLow,0,!0)||tB(i,c.label))[1];}else{var m;if(!(m=a(i,o,f,c.label,c._labelLow,0,!1)))continue;l.score=m[0],l.matches=m[1];}}switch(l.idx=u,l.distance=this._wordDistance.distance(l.position,c),s.push(l),this._stats.suggestionCount++,c.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;}}this._filteredItems=s.sort(this._snippetCompareFn),this._refilterKind=0;},e._compareCompletionItems=function(e,t){return e.score>t.score?-1:e.score<t.score?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0;},e._compareCompletionItemsSnippetsDown=function(t,n){if(t.suggestion.kind!==n.suggestion.kind){if(25===t.suggestion.kind)return 1;if(25===n.suggestion.kind)return-1;}return e._compareCompletionItems(t,n);},e._compareCompletionItemsSnippetsUp=function(t,n){if(t.suggestion.kind!==n.suggestion.kind){if(25===t.suggestion.kind)return-1;if(25===n.suggestion.kind)return 1;}return e._compareCompletionItems(t,n);},e;}(),bB=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),CB=function(){function e(){}return e.create=function(t,n){if(!n.getConfiguration().contribInfo.suggest.localityBonus)return Promise.resolve(e.None);if(!n.hasModel())return Promise.resolve(e.None);var i=n.getModel(),o=n.getPosition();if(!t.canComputeWordRanges(i.uri))return Promise.resolve(e.None);for(var r=PF(MF(i),o),s=[];r&&(r.range.isEmpty()||s.push(r.range),!(r.end.lineNumber-r.start.lineNumber>=100));)r=r.parent;return s.reverse(),0===s.length?Promise.resolve(e.None):t.computeWordRanges(i.uri,s[0]).then(function(t){return new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this;}return bB(i,e),i.prototype.distance=function(e,i){if(!t||!o.equals(n.getPosition()))return 0;if(17===i.kind)return 2<<20;var r=i.label,a=t[r];if(ce(a))return 2<<20;for(var u=se(a,Jt.fromPositions(e),Jt.compareRangesUsingStarts),l=u>=0?a[u]:a[Math.max(0,~u-1)],c=s.length,d=0,h=s;d<h.length;d++){var p=h[d];if(!Jt.containsRange(p,l))break;c-=1;}return c;},i;}(e))();});},e.None=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return bB(t,e),t.prototype.distance=function(){return 0;},t;}(e))(),e;}(),wB=function(){function e(e,t,n,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n,this.shy=i;}return e.shouldAutoTrigger=function(e){var t=e.getModel();if(!t)return!1;var n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);var i=t.getWordAtPosition(n);return!!i&&i.endColumn===n.column&&!!isNaN(Number(i.word));},e;}(),SB=function(){function e(e,t){var n=this;this._editor=e,this._editorWorker=t,this._toDispose=[],this._triggerQuickSuggest=new Q(),this._triggerRefilter=new Q(),this._state=0,this._onDidCancel=new N(),this._onDidTrigger=new N(),this._onDidSuggest=new N(),this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._completionModel=null,this._context=null,this._currentSelection=this._editor.getSelection()||new tn(1,1,1,1),this._toDispose.push(this._editor.onDidChangeModel(function(){n._updateTriggerCharacters(),n.cancel();})),this._toDispose.push(this._editor.onDidChangeModelLanguage(function(){n._updateTriggerCharacters(),n.cancel();})),this._toDispose.push(this._editor.onDidChangeConfiguration(function(){n._updateTriggerCharacters(),n._updateQuickSuggest();})),this._toDispose.push(cs.onDidChange(function(){n._updateTriggerCharacters(),n._updateActiveSuggestSession();})),this._toDispose.push(this._editor.onDidChangeCursorSelection(function(e){n._onCursorChange(e);}));var i=!1;this._toDispose.push(this._editor.onCompositionStart(function(){i=!0;})),this._toDispose.push(this._editor.onCompositionEnd(function(){i=!1,n._refilterCompletionItems();})),this._toDispose.push(this._editor.onDidChangeModelContent(function(){i||n._refilterCompletionItems();})),this._updateTriggerCharacters(),this._updateQuickSuggest();}return e.prototype.dispose=function(){f([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerCharacterListener,this._triggerQuickSuggest,this._triggerRefilter]),this._toDispose=f(this._toDispose),f(this._completionModel),this.cancel();},e.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getConfiguration().contribInfo.quickSuggestionsDelay,(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10);},e.prototype._updateTriggerCharacters=function(){var e=this;if(f(this._triggerCharacterListener),!this._editor.getConfiguration().readOnly&&this._editor.getModel()&&this._editor.getConfiguration().contribInfo.suggestOnTriggerCharacters){for(var t=Object.create(null),n=0,i=cs.all(this._editor.getModel());n<i.length;n++){var o=i[n];if(!ce(o.triggerCharacters))for(var r=0,s=o.triggerCharacters;r<s.length;r++){var a=s[r],u=t[a];u||(u=t[a]=new Set()).add($F),u.add(o);}}this._triggerCharacterListener=this._editor.onDidType(function(n){var i=n.charAt(n.length-1),o=t[i];if(o){var r=e._completionModel?e._completionModel.adopt(o):void 0;e.trigger({auto:!0,triggerCharacter:i},Boolean(e._completionModel),_r(o),r);}});}},Object.defineProperty(e.prototype,"state",{get:function(){return this._state;},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){void 0===e&&(e=!1),this._triggerRefilter.cancel(),this._triggerQuickSuggest&&this._triggerQuickSuggest.cancel(),this._requestToken&&this._requestToken.cancel(),this._state=0,f(this._completionModel),this._completionModel=null,this._context=null,this._onDidCancel.fire({retrigger:e});},e.prototype._updateActiveSuggestSession=function(){0!==this._state&&(cs.has(this._editor.getModel())?this.trigger({auto:2===this._state},!0):this.cancel());},e.prototype._onCursorChange=function(e){var t=this,n=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source)0!==this._state&&this.cancel();else if(cs.has(this._editor.getModel())&&this._editor.getModel()&&0===this._state){if(!1===this._editor.getConfiguration().contribInfo.quickSuggestions)return;if(!n.containsRange(this._currentSelection)&&!n.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getConfiguration().contribInfo.suggest.snippetsPreventQuickSuggestions&&TW.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(function(){if(wB.shouldAutoTrigger(t._editor)){var e=t._editor.getModel(),n=t._editor.getPosition();if(e){var i=t._editor.getConfiguration().contribInfo.quickSuggestions;if(!1!==i){if(!0===i);else{e.tokenizeIfCheap(n.lineNumber);var o=e.getLineTokens(n.lineNumber),r=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(n.column-1-1,0)));if(!(i.other&&0===r||i.comments&&1===r||i.strings&&2===r))return;}t.trigger({auto:!0});}}}},this._quickSuggestDelay);}},e.prototype._refilterCompletionItems=function(){var e=this;if(0!==this._state){var t=this._editor.getModel();t&&this._triggerRefilter.cancelAndSet(function(){var n=e._editor.getPosition(),i=new wB(t,n,2===e._state,!1);e._onNewContext(i);},25);}},e.prototype.trigger=function(e,t,n,i){var o=this;void 0===t&&(t=!1);var r=this._editor.getModel();if(r){var s,u=e.auto,l=new wB(r,this._editor.getPosition(),u,e.shy);this.cancel(t),this._state=u?2:1,this._onDidTrigger.fire({auto:u,shy:e.shy}),this._context=l,s=e.triggerCharacter?{triggerKind:1,triggerCharacter:e.triggerCharacter}:n&&n.length?{triggerKind:2}:{triggerKind:0},this._requestToken=new j();var c=CB.create(this._editorWorker,this._editor),d=XF(r,this._editor.getPosition(),this._editor.getConfiguration().contribInfo.suggest.snippets,n,s,this._requestToken.token);Promise.all([d,c]).then(function(t){var n=t[0],r=t[1];if(o._requestToken.dispose(),0!==o._state){var s=o._editor.getModel();if(s){if(!ce(i)){var a=nW(o._editor.getConfiguration().contribInfo.suggest.snippets);n=n.concat(i).sort(a);}var l=new wB(s,o._editor.getPosition(),u,e.shy);f(o._completionModel),o._completionModel=new yB(n,o._context.column,{leadingLineContent:l.leadingLineContent,characterCountDelta:o._context?l.column-o._context.column:0},r,o._editor.getConfiguration().contribInfo.suggest),o._onNewContext(l);}}}).catch(a);}},e.prototype._onNewContext=function(e){if(this._context)if(e.lineNumber===this._context.lineNumber){if(e.leadingWord.startColumn<this._context.leadingWord.startColumn)this.cancel();else if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto},!0):this.cancel();else if(this._completionModel)if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&0!==e.leadingWord.word.length){var t=this._completionModel.incomplete,n=this._completionModel.adopt(t);this.trigger({auto:2===this._state},!0,_r(t),n);}else{var i=this._completionModel.lineContext,o=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(wB.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=i,(o=this._completionModel.items.length>0)&&0===e.leadingWord.word.length)return void this.cancel();}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:o});}}else this.cancel();},e;}();n("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/media/suggest.css"),n("./node_modules/monaco-editor/esm/vs/base/browser/ui/list/list.css");function xB(e,t){for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i];if(!(e.start>=r.range.end)){if(e.end<r.range.start)break;var s=KS.intersect(e,r.range);KS.isEmpty(s)||n.push({range:s,size:r.size});}}return n;}function EB(e,t){return{start:e.start+t,end:e.end+t};}var LB=function(){function e(){this.groups=[],this._size=0;}return e.prototype.splice=function(e,t,n){void 0===n&&(n=[]);var i=n.length-t,o=xB({start:0,end:e},this.groups),r=xB({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(function(e){return{range:EB(e.range,i),size:e.size};}),s=n.map(function(t,n){return{range:{start:e+n,end:e+n+1},size:t.size};});this.groups=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e){for(var t=[],n=null,i=0,o=e;i<o.length;i++){var r=o[i],s=r.range.start,a=r.range.end,u=r.size;n&&u===n.size?n.range.end=a:(n={range:{start:s,end:a},size:u},t.push(n));}return t;}(e.reduce(function(e,t){return e.concat(t);},[]));}(o,s,r),this._size=this.groups.reduce(function(e,t){return e+t.size*(t.range.end-t.range.start);},0);},Object.defineProperty(e.prototype,"count",{get:function(){var e=this.groups.length;return e?this.groups[e-1].range.end:0;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size;},enumerable:!0,configurable:!0}),e.prototype.indexAt=function(e){if(e<0)return-1;for(var t=0,n=0,i=0,o=this.groups;i<o.length;i++){var r=o[i],s=r.range.end-r.range.start,a=n+s*r.size;if(e<a)return t+Math.floor((e-n)/r.size);t+=s,n=a;}return t;},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.count);},e.prototype.positionAt=function(e){if(e<0)return-1;for(var t=0,n=0,i=0,o=this.groups;i<o.length;i++){var r=o[i],s=r.range.end-r.range.start,a=n+s;if(e<a)return t+(e-n)*r.size;t+=s*r.size,n=a;}return-1;},e.prototype.dispose=function(){this.groups=null;},e;}();var TB=function(){function e(e){this.renderers=e,this.cache=new Map();}return e.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=ji(".monaco-list-row");t={domNode:n,templateId:e,templateData:this.renderers.get(e).renderTemplate(n)};}return t;},e.prototype.release=function(e){e&&this.releaseRow(e);},e.prototype.releaseRow=function(e){var t=e.domNode,n=e.templateId;t&&(Qn(t,"scrolling"),function(e){try{e.parentElement&&e.parentElement.removeChild(e);}catch(e){}}(t)),this.getTemplateCache(n).push(e);},e.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t;},e.prototype.garbageCollect=function(){var e=this;this.renderers&&(this.cache.forEach(function(t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];e.renderers.get(n).disposeTemplate(r.templateData),r.domNode=null,r.templateData=null;}}),this.cache.clear());},e.prototype.dispose=function(){this.garbageCollect(),this.cache.clear(),this.renderers=null;},e;}(),IB=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;};var NB={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0},kB=function(){function e(e,t,n,i){void 0===i&&(i=NB),this.virtualDelegate=t,this.renderers=new Map(),this.didRequestScrollableElementUpdate=!1,this.splicing=!1,this.items=[],this.itemId=0,this.rangeMap=new LB();for(var o=0,r=n;o<r.length;o++){var s=r[o];this.renderers.set(s.templateId,s);}this.cache=new TB(this.renderers),this.lastRenderTop=0,this.lastRenderHeight=0,this._domNode=document.createElement("div"),this._domNode.className="monaco-list",this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",cd.addTarget(this.rowsContainer),this.scrollableElement=new Uv(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:Oe(i,function(e){return e.verticalScrollMode;},NB.verticalScrollMode),useShadows:Oe(i,function(e){return e.useShadows;},NB.useShadows)}),this._domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this._domNode),this.disposables=[this.rangeMap,this.gesture,this.scrollableElement,this.cache],this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Tn(this.rowsContainer,ad.Change)(this.onTouchChange,this,this.disposables),Tn(this.scrollableElement.getDomNode(),"scroll")(function(e){return e.target.scrollTop=0;},null,this.disposables),M(Tn(this.rowsContainer,"dragover"),function(e){return new Hn(e);})(this.onDragOver,this,this.disposables),this.setRowLineHeight=Oe(i,function(e){return e.setRowLineHeight;},NB.setRowLineHeight),this.layout();}return Object.defineProperty(e.prototype,"domNode",{get:function(){return this._domNode;},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){if(void 0===n&&(n=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,n);}finally{this.splicing=!1;}},e.prototype._splice=function(e,t,n){var i,o=this;void 0===n&&(n=[]);for(var r=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},a=KS.intersect(r,s),u=a.start;u<a.end;u++)this.removeItemFromDOM(u);var l,c={start:e+t,end:this.items.length},d=KS.intersect(c,r),h=KS.relativeComplement(c,r),p=n.map(function(e){return{id:String(o.itemId++),element:e,size:o.virtualDelegate.getHeight(e),templateId:o.virtualDelegate.getTemplateId(e),row:null};});0===e&&t>=this.items.length?(this.rangeMap=new LB(),this.rangeMap.splice(0,0,p),this.items=p,l=[]):(this.rangeMap.splice(e,t,p),l=(i=this.items).splice.apply(i,[e,t].concat(p)));var f=n.length-t,g=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),m=EB(d,f),_=KS.intersect(g,m);for(u=_.start;u<_.end;u++)this.updateItemInDOM(this.items[u],u);for(var v=KS.relativeComplement(m,g),y=0;y<v.length;y++){var b=v[y];for(u=b.start;u<b.end;u++)this.removeItemFromDOM(u);}var C=h.map(function(e){return EB(e,f);}),w=[{start:e,end:e+n.length}].concat(C).map(function(e){return KS.intersect(g,e);}),S=this.getNextToLastElement(w);for(y=0;y<w.length;y++){var x=w[y];for(u=x.start;u<x.end;u++)this.insertItemInDOM(u,S);}return this.scrollHeight=this.getContentHeight(),this.rowsContainer.style.height=this.scrollHeight+"px",this.didRequestScrollableElementUpdate||(si(function(){o.scrollableElement.setScrollDimensions({scrollHeight:o.scrollHeight}),o.didRequestScrollableElementUpdate=!1;}),this.didRequestScrollableElementUpdate=!0),l.map(function(e){return e.element;});},Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderHeight",{get:function(){return this.scrollableElement.getScrollDimensions().height;},enumerable:!0,configurable:!0}),e.prototype.element=function(e){return this.items[e].element;},e.prototype.domElement=function(e){var t=this.items[e].row;return t&&t.domNode;},e.prototype.elementHeight=function(e){return this.items[e].size;},e.prototype.elementTop=function(e){return this.rangeMap.positionAt(e);},e.prototype.indexAt=function(e){return this.rangeMap.indexAt(e);},e.prototype.indexAfter=function(e){return this.rangeMap.indexAfter(e);},e.prototype.layout=function(e){this.scrollableElement.setScrollDimensions({height:e||Ii(this._domNode)});},e.prototype.render=function(e,t){for(var n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=this.getRenderRange(e,t),r=KS.relativeComplement(i,n),s=KS.relativeComplement(n,i),a=this.getNextToLastElement(r),u=0,l=r;u<l.length;u++)for(var c=(p=l[u]).start;c<p.end;c++)this.insertItemInDOM(c,a);for(var d=0,h=s;d<h.length;d++){var p;for(c=(p=h[d]).start;c<p.end;c++)this.removeItemFromDOM(c);}if(Cn||0!==gn()||o.g)this.rowsContainer.style.top="-"+e+"px";else{var f="translate3d(0px, -"+e+"px, 0px)";this.rowsContainer.style.transform=f,this.rowsContainer.style.webkitTransform=f;}this.lastRenderTop=e,this.lastRenderHeight=t;},e.prototype.insertItemInDOM=function(e,t){var n=this.items[e];n.row||(n.row=this.cache.alloc(n.templateId)),n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),n.row.domNode.style.height=n.size+"px",this.setRowLineHeight&&(n.row.domNode.style.lineHeight=n.size+"px"),this.updateItemInDOM(n,e),this.renderers.get(n.templateId).renderElement(n.element,e,n.row.templateData);},e.prototype.updateItemInDOM=function(e,t){e.row.domNode.style.top=this.elementTop(t)+"px",e.row.domNode.setAttribute("data-index",""+t),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("aria-setsize",""+this.length),e.row.domNode.setAttribute("aria-posinset",""+(t+1));},e.prototype.removeItemFromDOM=function(e){var t=this.items[e],n=this.renderers.get(t.templateId);n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData),this.cache.release(t.row),t.row=null;},e.prototype.getContentHeight=function(){return this.rangeMap.size;},e.prototype.getScrollTop=function(){return this.scrollableElement.getScrollPosition().scrollTop;},e.prototype.setScrollTop=function(e){this.scrollableElement.setScrollPosition({scrollTop:e});},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.getScrollTop();},set:function(e){this.setScrollTop(e);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){var e=this;return P(M(Tn(this.domNode,"click"),function(t){return e.toMouseEvent(t);}),function(e){return e.index>=0;});},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){var e=this;return P(M(Tn(this.domNode,"dblclick"),function(t){return e.toMouseEvent(t);}),function(e){return e.index>=0;});},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){var e=this;return P(M(Tn(this.domNode,"mousedown"),function(t){return e.toMouseEvent(t);}),function(e){return e.index>=0;});},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return P(M(Tn(this.domNode,"contextmenu"),function(t){return e.toMouseEvent(t);}),function(e){return e.index>=0;});},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){var e=this;return P(M(Tn(this.domNode,"touchstart"),function(t){return e.toTouchEvent(t);}),function(e){return e.index>=0;});},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){var e=this;return P(M(Tn(this.rowsContainer,ad.Tap),function(t){return e.toGestureEvent(t);}),function(e){return e.index>=0;});},enumerable:!0,configurable:!0}),e.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element};},e.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element};},e.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element};},e.prototype.onScroll=function(e){try{this.render(e.scrollTop,e.height);}catch(t){throw console.log("Got bad scroll event:",e),t;}},e.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY;},e.prototype.onDragOver=function(e){this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=e.posy;},e.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=Si(this._domNode).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(void 0!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.renderHeight-35;n<35?i=Math.max(-14,.2*(n-35)):n>o&&(i=Math.min(14,.2*(n-o))),e.scrollTop+=i;}},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null;},1e3));},e.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout();},e.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null);},e.prototype.getItemIndexFromEventTarget=function(e){for(;e instanceof HTMLElement&&e!==this.rowsContainer;){var t=e,n=t.getAttribute("data-index");if(n){var i=Number(n);if(!isNaN(i))return i;}e=t.parentElement;}return-1;},e.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)};},e.prototype.getNextToLastElement=function(e){var t=e[e.length-1];if(!t)return null;var n=this.items[t.end];return n&&n.row?n.row.domNode:null;},e.prototype.dispose=function(){if(this.items){for(var e=0,t=this.items;e<t.length;e++){var n=t[e];if(n.row)this.renderers.get(n.row.templateId).disposeTemplate(n.row.templateData),n.row=null;}this.items=null;}this._domNode&&this._domNode.parentElement&&(this._domNode.parentNode.removeChild(this._domNode),this._domNode=null),this.disposables=f(this.disposables);},IB([sd],e.prototype,"onMouseClick",null),IB([sd],e.prototype,"onMouseDblClick",null),IB([sd],e.prototype,"onMouseDown",null),IB([sd],e.prototype,"onContextMenu",null),IB([sd],e.prototype,"onTouchStart",null),IB([sd],e.prototype,"onTap",null),e;}(),OB=function(){function e(e){this.spliceables=e;}return e.prototype.splice=function(e,t,n){this.spliceables.forEach(function(i){return i.splice(e,t,n);});},e;}();var DB=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),RB=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},AB=function(){function e(e){this.trait=e,this.renderedElements=[];}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"template:"+this.trait.trait;},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return e;},e.prototype.renderElement=function(e,t,n){var i=de(this.renderedElements,function(e){return e.templateData===n;});if(i>=0){var o=this.renderedElements[i];this.trait.unrender(n),o.index=t;}else{o={index:t,templateData:n};this.renderedElements.push(o);}this.trait.renderIndex(t,n);},e.prototype.disposeElement=function(){},e.prototype.splice=function(e,t,n){for(var i=[],o=0;o<this.renderedElements.length;o++){var r=this.renderedElements[o];r.index<e?i.push(r):r.index>=e+t&&i.push({index:r.index+n-t,templateData:r.templateData});}this.renderedElements=i;},e.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t<n.length;t++){var i=n[t],o=i.index,r=i.templateData;e.indexOf(o)>-1&&this.trait.renderIndex(o,r);}},e.prototype.disposeTemplate=function(e){var t=de(this.renderedElements,function(t){return t.templateData===e;});t<0||this.renderedElements.splice(t,1);},e;}(),MB=function(){function e(e){this._trait=e,this._onChange=new N(),this.indexes=[];}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new AB(this);},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=n.length-t,o=e+t,r=this.indexes.filter(function(t){return t<e;}).concat(n.map(function(t,n){return t?n+e:-1;}).filter(function(e){return-1!==e;}),this.indexes.filter(function(e){return e>=o;}).map(function(e){return e+i;}));this.renderer.splice(e,t,n.length),this.set(r);},e.prototype.renderIndex=function(e,t){ei(t,this._trait,this.contains(e));},e.prototype.unrender=function(e){Qn(e,this._trait);},e.prototype.set=function(e,t){var n=this.indexes;this.indexes=e;var i=$B(n,e);return this.renderer.renderIndexes(i),this._onChange.fire({indexes:e,browserEvent:t}),n;},e.prototype.get=function(){return this.indexes;},e.prototype.contains=function(e){return this.indexes.some(function(t){return t===e;});},e.prototype.dispose=function(){this.indexes=null,this._onChange=f(this._onChange);},RB([sd],e.prototype,"renderer",null),e;}(),PB=function(e){function t(t){var n=e.call(this,"focused")||this;return n.getDomId=t,n;}return DB(t,e),t.prototype.renderIndex=function(t,n){e.prototype.renderIndex.call(this,t,n),n.setAttribute("role","treeitem"),n.setAttribute("id",this.getDomId(t)),this.contains(t)?n.setAttribute("aria-selected","true"):n.removeAttribute("aria-selected");},t;}(MB),FB=function(){function e(e,t,n){this.trait=e,this.view=t,this.getId=n;}return e.prototype.splice=function(e,t,n){var i=this;if(!this.getId)return this.trait.splice(e,t,n.map(function(e){return!1;}));var o=this.trait.get().map(function(e){return i.getId(i.view.element(e));}),r=n.map(function(e){return o.indexOf(i.getId(e))>-1;});this.trait.splice(e,t,r);},e;}();function WB(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName;}var BB=function(){function e(e,t,n){this.list=e,this.view=t;var i=!(!1===n.multipleSelectionSupport);this.disposables=[],this.openController=n.openController||jB;var r=W(Tn(t.domNode,"keydown")).filter(function(e){return!WB(e.target);}).map(function(e){return new Rn(e);});r.filter(function(e){return 3===e.keyCode;}).on(this.onEnter,this,this.disposables),r.filter(function(e){return 16===e.keyCode;}).on(this.onUpArrow,this,this.disposables),r.filter(function(e){return 18===e.keyCode;}).on(this.onDownArrow,this,this.disposables),r.filter(function(e){return 11===e.keyCode;}).on(this.onPageUpArrow,this,this.disposables),r.filter(function(e){return 12===e.keyCode;}).on(this.onPageDownArrow,this,this.disposables),r.filter(function(e){return 9===e.keyCode;}).on(this.onEscape,this,this.disposables),i&&r.filter(function(e){return(o.d?e.metaKey:e.ctrlKey)&&31===e.keyCode;}).on(this.onCtrlA,this,this.disposables);}return e.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent);},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus();},e.prototype.onDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus();},e.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus();},e.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus();},e.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(fe(this.list.length),e.browserEvent),this.view.domNode.focus();},e.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus();},e.prototype.dispose=function(){this.disposables=f(this.disposables);},e;}(),VB=function(){function e(e,t){this.list=e,this.view=t,this.disposables=[],this.disposables=[],W(Tn(t.domNode,"keydown")).filter(function(e){return!WB(e.target);}).map(function(e){return new Rn(e);}).filter(function(e){return!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey);}).on(this.onTab,this,this.disposables);}return e.prototype.onTab=function(e){if(e.target===this.view.domNode){var t=this.list.getFocus();if(0!==t.length){var n=this.view.domElement(t[0]).querySelector("[tabIndex]");if(n&&n instanceof HTMLElement&&-1!==n.tabIndex){var i=window.getComputedStyle(n);"hidden"!==i.visibility&&"none"!==i.display&&(e.preventDefault(),e.stopPropagation(),n.focus());}}}},e.prototype.dispose=function(){this.disposables=f(this.disposables);},e;}();function HB(e){return e instanceof MouseEvent&&2===e.button;}var UB={isSelectionSingleChangeEvent:function(e){return o.d?e.browserEvent.metaKey:e.browserEvent.ctrlKey;},isSelectionRangeChangeEvent:function(e){return e.browserEvent.shiftKey;}},jB={shouldOpen:function(e){return!(e instanceof MouseEvent)||!HB(e);}},zB=function(){function e(e,t,n){void 0===n&&(n={}),this.list=e,this.view=t,this.options=n,this.didJustPressContextMenuKey=!1,this.disposables=[],this.multipleSelectionSupport=!(!1===n.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=n.multipleSelectionController||UB),this.openController=n.openController||jB,t.onMouseDown(this.onMouseDown,this,this.disposables),t.onMouseClick(this.onPointer,this,this.disposables),t.onMouseDblClick(this.onDoubleClick,this,this.disposables),t.onTouchStart(this.onMouseDown,this,this.disposables),t.onTap(this.onPointer,this,this.disposables),cd.addTarget(t.domNode);}return Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return D(W(Tn(this.view.domNode,"keydown")).map(function(e){return new Rn(e);}).filter(function(t){return e.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode;}).filter(function(e){return e.preventDefault(),e.stopPropagation(),!1;}).map(function(t){var n=e.list.getFocus()[0];return{index:n,element:e.view.element(n),anchor:e.view.domElement(n),browserEvent:t.browserEvent};}).event,W(Tn(this.view.domNode,"keyup")).filter(function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t;}).filter(function(){return e.list.getFocus().length>0;}).map(function(t){var n=e.list.getFocus()[0];return{index:n,element:e.view.element(n),anchor:e.view.domElement(n),browserEvent:t};}).filter(function(e){return!!e.anchor;}).event,W(this.view.onContextMenu).filter(function(){return!e.didJustPressContextMenuKey;}).map(function(e){var t=e.element,n=e.index,i=e.browserEvent;return{element:t,index:n,anchor:{x:i.clientX+1,y:i.clientY},browserEvent:i};}).event);},enumerable:!0,configurable:!0}),e.prototype.isSelectionSingleChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):o.d?e.browserEvent.metaKey:e.browserEvent.ctrlKey;},e.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey;},e.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e);},e.prototype.onMouseDown=function(e){!1===this.options.focusOnMouseDown?(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation()):document.activeElement!==e.browserEvent.target&&this.view.domNode.focus();var t=this.list.getFocus()[0],n=this.list.getSelection();if(t=void 0===t?n[0]:t,this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e))return this.changeSelection(e,t);var i=e.index;if(n.every(function(e){return e!==i;})&&this.list.setFocus([i],e.browserEvent),this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return this.changeSelection(e,t);this.options.selectOnMouseDown&&!HB(e.browserEvent)&&(this.list.setSelection([i],e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open([i],e.browserEvent));},e.prototype.onPointer=function(e){if(!(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e)||this.options.selectOnMouseDown)){var t=this.list.getFocus();this.list.setSelection(t,e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open(t,e.browserEvent);}},e.prototype.onDoubleClick=function(e){if(!this.multipleSelectionSupport||!this.isSelectionChangeEvent(e)){var t=this.list.getFocus();this.list.setSelection(t,e.browserEvent),this.list.pin(t);}},e.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var i=fe(Math.min(t,n),Math.max(t,n)+1),o=function(e,t){var n=e.indexOf(t);if(-1===n)return[];var i=[],o=n-1;for(;o>=0&&e[o]===t-(n-o);)i.push(e[o--]);i.reverse(),o=n;for(;o<e.length&&e[o]===t+(o-n);)i.push(e[o++]);return i;}($B(s=this.list.getSelection(),[t]),t);if(0===o.length)return;var r=$B(i,function(e,t){var n=[],i=0,o=0;for(;i<e.length||o<t.length;)if(i>=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){i++,o++;continue;}e[i]<t[o]?n.push(e[i++]):o++;}return n;}(s,o));this.list.setSelection(r,e.browserEvent);}else if(this.isSelectionSingleChangeEvent(e)){var s;r=(s=this.list.getSelection()).filter(function(e){return e!==n;});s.length===r.length?this.list.setSelection(r.concat([n]),e.browserEvent):this.list.setSelection(r,e.browserEvent);}},e.prototype.dispose=function(){this.disposables=f(this.disposables);},RB([sd],e.prototype,"onContextMenu",null),e;}(),KB=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t;}return e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.focused { background-color: "+e.listFocusBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.focused:hover { background-color: "+e.listFocusBackground+"; }")),e.listFocusForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.focused { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.selected { background-color: "+e.listActiveSelectionBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.selected:hover { background-color: "+e.listActiveSelectionBackground+"; }")),e.listActiveSelectionForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.selected { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push(".monaco-list"+t+":focus .monaco-list-row.selected.focused { background-color: "+e.listFocusAndSelectionBackground+"; }"),e.listFocusAndSelectionForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.selected.focused { color: "+e.listFocusAndSelectionForeground+"; }"),e.listInactiveFocusBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.focused { background-color: "+e.listInactiveFocusBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.focused:hover { background-color: "+e.listInactiveFocusBackground+"; }")),e.listInactiveSelectionBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.selected { background-color: "+e.listInactiveSelectionBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.selected:hover { background-color: "+e.listInactiveSelectionBackground+"; }")),e.listInactiveSelectionForeground&&n.push(".monaco-list"+t+" .monaco-list-row.selected { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-list"+t+" .monaco-list-row:hover { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-list"+t+" .monaco-list-row:hover { color: "+e.listHoverForeground+"; }"),e.listSelectionOutline&&n.push(".monaco-list"+t+" .monaco-list-row.selected { outline: 1px dotted "+e.listSelectionOutline+"; outline-offset: -1px; }"),e.listFocusOutline&&n.push(".monaco-list"+t+":focus .monaco-list-row.focused { outline: 1px solid "+e.listFocusOutline+"; outline-offset: -1px; }"),e.listInactiveFocusOutline&&n.push(".monaco-list"+t+" .monaco-list-row.focused { outline: 1px dotted "+e.listInactiveFocusOutline+"; outline-offset: -1px; }"),e.listHoverOutline&&n.push(".monaco-list"+t+" .monaco-list-row:hover { outline: 1px dashed "+e.listHoverOutline+"; outline-offset: -1px; }");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i);},e;}(),qB={listFocusBackground:Oh.fromHex("#073655"),listActiveSelectionBackground:Oh.fromHex("#0E639C"),listActiveSelectionForeground:Oh.fromHex("#FFFFFF"),listFocusAndSelectionBackground:Oh.fromHex("#094771"),listFocusAndSelectionForeground:Oh.fromHex("#FFFFFF"),listInactiveSelectionBackground:Oh.fromHex("#3F3F46"),listHoverBackground:Oh.fromHex("#2A2D2E"),listDropBackground:Oh.fromHex("#383B3D")},GB={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0};function $B(e,t){for(var n=[],i=0,o=0;i<e.length||o<t.length;)if(i>=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){n.push(e[i]),i++,o++;continue;}e[i]<t[o]?n.push(e[i++]):n.push(t[o++]);}return n;}var YB,XB=function(e,t){return e-t;},ZB=function(){function e(e,t){this._templateId=e,this.renderers=t;}return Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId;},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return this.renderers.map(function(t){return t.renderTemplate(e);});},e.prototype.renderElement=function(e,t,n){for(var i=0,o=0,r=this.renderers;o<r.length;o++){r[o].renderElement(e,t,n[i++]);}},e.prototype.disposeElement=function(e,t,n){for(var i=0,o=0,r=this.renderers;o<r.length;o++){r[o].disposeElement(e,t,n[i++]);}},e.prototype.disposeTemplate=function(e){for(var t=0,n=0,i=this.renderers;n<i.length;n++){i[n].disposeTemplate(e[t++]);}},e;}(),QB=function(){function e(e){this.accessibilityProvider=e,this.templateId="a18n";}return e.prototype.renderTemplate=function(e){return e;},e.prototype.renderElement=function(e,t,n){var i=this.accessibilityProvider.getAriaLabel(e);i?n.setAttribute("aria-label",i):n.removeAttribute("aria-label");},e.prototype.disposeElement=function(e,t,n){},e.prototype.disposeTemplate=function(e){},e;}(),JB=function(){function e(t,n,i,o){void 0===o&&(o=GB);var r=this;this.idPrefix="list_id_"+ ++e.InstanceCount,this.eventBufferer=new A(),this.onContextMenu=S.None,this._onOpen=new N(),this._onPin=new N(),this._onDidDispose=new N(),this.focus=new PB(function(e){return r.getElementDomId(e);}),this.selection=new MB("selected"),Ie(o,qB,!1);var s=[this.focus.renderer,this.selection.renderer];if(o.accessibilityProvider&&s.push(new QB(o.accessibilityProvider)),i=i.map(function(e){return new ZB(e.templateId,s.concat([e]));}),this.view=new kB(t,n,i,o),this.view.domNode.setAttribute("role","tree"),Xn(this.view.domNode,this.idPrefix),this.view.domNode.tabIndex=0,this.styleElement=Di(this.view.domNode),this.styleController=o.styleController,this.styleController||(this.styleController=new KB(this.styleElement,this.idPrefix)),this.spliceable=new OB([new FB(this.focus,this.view,o.identityProvider),new FB(this.selection,this.view,o.identityProvider),this.view]),this.disposables=[this.focus,this.selection,this.view,this._onDidDispose],this.onDidFocus=M(Tn(this.view.domNode,"focus",!0),function(){return null;}),this.onDidBlur=M(Tn(this.view.domNode,"blur",!0),function(){return null;}),this.disposables.push(new VB(this,this.view)),"boolean"!=typeof o.keyboardSupport||o.keyboardSupport){var a=new BB(this,this.view,o);this.disposables.push(a);}("boolean"!=typeof o.mouseSupport||o.mouseSupport)&&(this.mouseController=new zB(this,this.view,o),this.disposables.push(this.mouseController),this.onContextMenu=this.mouseController.onContextMenu),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),o.ariaLabel&&this.view.domNode.setAttribute("aria-label",ie("aria list","{0}. Use the navigation keys to navigate.",o.ariaLabel)),this.style(o);}return Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return M(this.eventBufferer.wrapEvent(this.focus.onChange),function(t){return e.toListEvent(t);});},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){var e=this;return M(this.eventBufferer.wrapEvent(this.selection.onChange),function(t){return e.toListEvent(t);});},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyDown",{get:function(){return Tn(this.view.domNode,"keydown");},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this._onDidDispose.event;},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=this;if(void 0===n&&(n=[]),e<0||e>this.view.length)throw new Error("Invalid start index: "+e);if(t<0)throw new Error("Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents(function(){return i.spliceable.splice(e,t,n);});},Object.defineProperty(e.prototype,"length",{get:function(){return this.view.length;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.view.getContentHeight();},enumerable:!0,configurable:!0}),e.prototype.layout=function(e){this.view.layout(e);},e.prototype.setSelection=function(e,t){for(var n=0,i=e;n<i.length;n++){var o=i[n];if(o<0||o>=this.length)throw new Error("Invalid index "+o);}e=e.sort(XB),this.selection.set(e,t);},e.prototype.getSelection=function(){return this.selection.get();},e.prototype.setFocus=function(e,t){for(var n=0,i=e;n<i.length;n++){var o=i[n];if(o<0||o>=this.length)throw new Error("Invalid index "+o);}e=e.sort(XB),this.focus.set(e,t);},e.prototype.focusNext=function(e,t,n){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var i=this.focus.get(),o=i.length>0?i[0]+e:0;this.setFocus(t?[o%this.length]:[Math.min(o,this.length-1)],n);}},e.prototype.focusPrevious=function(e,t,n){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var i=this.focus.get(),o=i.length>0?i[0]-e:0;t&&o<0&&(o=(this.length+o%this.length)%this.length),this.setFocus([Math.max(o,0)],n);}},e.prototype.focusNextPage=function(e){var t=this,n=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);n=0===n?0:n-1;var i=this.view.element(n);if(this.getFocusedElements()[0]!==i)this.setFocus([n],e);else{var o=this.view.getScrollTop();this.view.setScrollTop(o+this.view.renderHeight-this.view.elementHeight(n)),this.view.getScrollTop()!==o&&setTimeout(function(){return t.focusNextPage(e);},0);}},e.prototype.focusPreviousPage=function(e){var t,n=this,i=this.view.getScrollTop();t=0===i?this.view.indexAt(i):this.view.indexAfter(i-1);var o=this.view.element(t);if(this.getFocusedElements()[0]!==o)this.setFocus([t],e);else{var r=i;this.view.setScrollTop(i-this.view.renderHeight),this.view.getScrollTop()!==r&&setTimeout(function(){return n.focusPreviousPage(e);},0);}},e.prototype.focusLast=function(e){0!==this.length&&this.setFocus([this.length-1],e);},e.prototype.focusFirst=function(e){0!==this.length&&this.setFocus([0],e);},e.prototype.getFocus=function(){return this.focus.get();},e.prototype.getFocusedElements=function(){var e=this;return this.getFocus().map(function(t){return e.view.element(t);});},e.prototype.reveal=function(e,t){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var n,i,o,r=this.view.getScrollTop(),s=this.view.elementTop(e),a=this.view.elementHeight(e);if(ve(t)){var u=a-this.view.renderHeight;this.view.setScrollTop(u*(n=t,i=0,o=1,Math.min(Math.max(n,i),o))+s);}else{var l=s+a,c=r+this.view.renderHeight;s<r?this.view.setScrollTop(s):l>=c&&this.view.setScrollTop(l-this.view.renderHeight);}},e.prototype.getElementDomId=function(e){return this.idPrefix+"_"+e;},e.prototype.getHTMLElement=function(){return this.view.domNode;},e.prototype.open=function(e,t){for(var n=this,i=0,o=e;i<o.length;i++){var r=o[i];if(r<0||r>=this.length)throw new Error("Invalid index "+r);}this._onOpen.fire({indexes:e,elements:e.map(function(e){return n.view.element(e);}),browserEvent:t});},e.prototype.pin=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];if(i<0||i>=this.length)throw new Error("Invalid index "+i);}this._onPin.fire(e);},e.prototype.style=function(e){this.styleController.style(e);},e.prototype.toListEvent=function(e){var t=this,n=e.indexes,i=e.browserEvent;return{indexes:n,elements:n.map(function(e){return t.view.element(e);}),browserEvent:i};},e.prototype._onFocusChange=function(){var e=this.focus.get();e.length>0?this.view.domNode.setAttribute("aria-activedescendant",this.getElementDomId(e[0])):this.view.domNode.removeAttribute("aria-activedescendant"),this.view.domNode.setAttribute("role","tree"),ei(this.view.domNode,"element-focused",e.length>0);},e.prototype._onSelectionChange=function(){var e=this.selection.get();ei(this.view.domNode,"selection-none",0===e.length),ei(this.view.domNode,"selection-single",1===e.length),ei(this.view.domNode,"selection-multiple",e.length>1);},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables=f(this.disposables),this._onOpen.dispose(),this._onPin.dispose(),this._onDidDispose.dispose();},e.InstanceCount=0,RB([sd],e.prototype,"onFocusChange",null),RB([sd],e.prototype,"onSelectionChange",null),e;}();function eV(e,t,n,i){var o=i===YB.ROOT_FOLDER?["rootfolder-icon"]:i===YB.FOLDER?["folder-icon"]:["file-icon"];if(n){var r,s=void 0;if(n.scheme===Hi.data)s=r=Vo.parseMetaData(n).get(Vo.META_DATA_LABEL);else r=tV(Uo(n).toLowerCase()),s=n.path.toLowerCase();if(i===YB.FOLDER)o.push(r+"-name-folder-icon");else{if(r){o.push(r+"-name-file-icon");for(var a=r.split("."),u=1;u<a.length;u++)o.push(a.slice(u).join(".")+"-ext-file-icon");o.push("ext-file-icon");}var l=function(e,t){var n=null;if(t){var i=e.getModel(t);if(i){var o=i.getLanguageIdentifier().language;o&&o!==hw&&(n=o);}}return n;}(e,n);(l=l||t.getModeIdByFilepathOrFirstLine(s))&&o.push(tV(l)+"-lang-file-icon");}}return o;}function tV(e){return e.replace(/\s/g,"\\$&");}!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER";}(YB||(YB={}));var nV=function(){return(nV=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e;}).apply(this,arguments);},iV=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},oV=function(e,t){return function(n,i){t(n,i,e);};},rV=Ah("editorSuggestWidget.background",{dark:Rp,light:Rp,hc:Rp},ie("editorSuggestWidgetBackground","Background color of the suggest widget.")),sV=Ah("editorSuggestWidget.border",{dark:Ap,light:Ap,hc:Ap},ie("editorSuggestWidgetBorder","Border color of the suggest widget.")),aV=Ah("editorSuggestWidget.foreground",{dark:Dp,light:Dp,hc:Dp},ie("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),uV=Ah("editorSuggestWidget.selectedBackground",{dark:op,light:op,hc:op},ie("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),lV=Ah("editorSuggestWidget.highlightForeground",{dark:fp,light:fp,hc:fp},ie("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),cV=/^(#([\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 dV(e){return e&&e.match(cV)?e:null;}function hV(e){if(!e)return!1;var t=e.suggestion;return!!t.documentation||t.detail&&t.detail!==t.label;}var pV=function(){function e(e,t,n,i,o,r){this.widget=e,this.editor=t,this.triggerKeybindingLabel=n,this._modelService=i,this._modeService=o,this._themeService=r;}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"suggestion";},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=this,n=Object.create(null);n.disposables=[],n.root=e,Xn(n.root,"show-file-icons"),n.icon=Vi(e,ji(".icon")),n.colorspan=Vi(n.icon,ji("span.colorspan"));var i=Vi(e,ji(".contents")),o=Vi(i,ji(".main"));n.iconLabel=new cR(o,{supportHighlights:!0}),n.disposables.push(n.iconLabel),n.typeLabel=Vi(o,ji("span.type-label")),n.readMore=Vi(o,ji("span.readMore")),n.readMore.title=ie("readMore","Read More...{0}",this.triggerKeybindingLabel);var r=function(){var e=t.editor.getConfiguration(),i=e.fontInfo.fontFamily,r=e.contribInfo.suggestFontSize||e.fontInfo.fontSize,s=e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight,a=e.fontInfo.fontWeight,u=r+"px",l=s+"px";n.root.style.fontSize=u,n.root.style.fontWeight=a,o.style.fontFamily=i,o.style.lineHeight=l,n.icon.style.height=l,n.icon.style.width=l,n.readMore.style.height=l,n.readMore.style.width=l;};return r(),W(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(e){return e.fontInfo||e.contribInfo;}).on(r,null,n.disposables),n;},e.prototype.renderElement=function(e,t,n){var i=this,o=n,r=e.suggestion;o.icon.className="icon "+is(r.kind),o.colorspan.style.backgroundColor="";var s,a={labelEscapeNewLines:!0,matches:function(e){var t,n=[];if(!e)return n;for(var i=0,o=Array.isArray(e[1])?e[1]:e;i<o.length;i++){var r=o[i];t&&t.end===r?t.end+=1:(t={start:r,end:r+1},n.push(t));}return n;}(e.matches)};19===r.kind&&(s=dV(r.label)||"string"==typeof r.documentation&&dV(r.documentation))?(o.icon.className="icon customcolor",o.colorspan.style.backgroundColor=s):20===r.kind&&this._themeService.getIconTheme().hasFileIcons?(o.icon.className="icon hide",a.extraClasses=[].concat(eV(this._modelService,this._modeService,_t.from({scheme:"fake",path:r.label}),YB.FILE),eV(this._modelService,this._modeService,_t.from({scheme:"fake",path:r.detail}),YB.FILE))):23===r.kind&&this._themeService.getIconTheme().hasFolderIcons?(o.icon.className="icon hide",a.extraClasses=[].concat(eV(this._modelService,this._modeService,_t.from({scheme:"fake",path:r.label}),YB.FOLDER),eV(this._modelService,this._modeService,_t.from({scheme:"fake",path:r.detail}),YB.FOLDER))):(o.icon.className="icon hide",a.extraClasses=["suggest-icon "+is(r.kind)]),o.iconLabel.setValue(r.label,void 0,a),o.typeLabel.textContent=(r.detail||"").replace(/\n.*$/m,""),hV(e)?(zi(o.readMore),o.readMore.onmousedown=function(e){e.stopPropagation(),e.preventDefault();},o.readMore.onclick=function(e){e.stopPropagation(),e.preventDefault(),i.widget.toggleDetails();}):(Ki(o.readMore),o.readMore.onmousedown=null,o.readMore.onclick=null);},e.prototype.disposeElement=function(){},e.prototype.disposeTemplate=function(e){e.disposables=f(e.disposables);},e=iV([oV(3,Gr),oV(4,tw),oV(5,Rd)],e);}(),fV=function(){function e(e,t,n,i,o){var r=this;this.widget=t,this.editor=n,this.markdownRenderer=i,this.triggerKeybindingLabel=o,this.borderWidth=1,this.disposables=[],this.el=Vi(e,ji(".details")),this.disposables.push(m(function(){return e.removeChild(r.el);})),this.body=ji(".body"),this.scrollbar=new zv(this.body,{}),Vi(this.el,this.scrollbar.getDomNode()),this.disposables.push(this.scrollbar),this.header=Vi(this.body,ji(".header")),this.close=Vi(this.header,ji("span.close")),this.close.title=ie("readLess","Read less...{0}",this.triggerKeybindingLabel),this.type=Vi(this.header,ji("p.type")),this.docs=Vi(this.body,ji("p.docs")),this.ariaLabel=null,this.configureFont(),W(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(e){return e.fontInfo;}).on(this.configureFont,this,this.disposables),i.onDidRenderCodeBlock(function(){return r.scrollbar.scanDomNode();},this,this.disposables);}return Object.defineProperty(e.prototype,"element",{get:function(){return this.el;},enumerable:!0,configurable:!0}),e.prototype.render=function(e){var t=this;if(this.renderDisposeable=f(this.renderDisposeable),!e||!hV(e))return this.type.textContent="",this.docs.textContent="",Xn(this.el,"no-docs"),void(this.ariaLabel=null);if(Qn(this.el,"no-docs"),"string"==typeof e.suggestion.documentation)Qn(this.docs,"markdown-docs"),this.docs.textContent=e.suggestion.documentation;else{Xn(this.docs,"markdown-docs"),this.docs.innerHTML="";var n=this.markdownRenderer.render(e.suggestion.documentation);this.renderDisposeable=n,this.docs.appendChild(n.element);}e.suggestion.detail?(this.type.innerText=e.suggestion.detail,zi(this.type)):(this.type.innerText="",Ki(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+2*this.borderWidth+"px",this.close.onmousedown=function(e){e.preventDefault(),e.stopPropagation();},this.close.onclick=function(e){e.preventDefault(),e.stopPropagation(),t.widget.toggleDetails();},this.body.scrollTop=0,this.scrollbar.scanDomNode(),this.ariaLabel=to("{0}{1}",e.suggestion.detail||"",e.suggestion.documentation?"string"==typeof e.suggestion.documentation?e.suggestion.documentation:e.suggestion.documentation.value:"");},e.prototype.getAriaLabel=function(){return this.ariaLabel;},e.prototype.scrollDown=function(e){void 0===e&&(e=8),this.body.scrollTop+=e;},e.prototype.scrollUp=function(e){void 0===e&&(e=8),this.body.scrollTop-=e;},e.prototype.scrollTop=function(){this.body.scrollTop=0;},e.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight;},e.prototype.pageDown=function(){this.scrollDown(80);},e.prototype.pageUp=function(){this.scrollUp(80);},e.prototype.setBorderWidth=function(e){this.borderWidth=e;},e.prototype.configureFont=function(){var e=this.editor.getConfiguration(),t=e.fontInfo.fontFamily,n=e.contribInfo.suggestFontSize||e.fontInfo.fontSize,i=e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight,o=e.fontInfo.fontWeight,r=n+"px",s=i+"px";this.el.style.fontSize=r,this.el.style.fontWeight=o,this.type.style.fontFamily=t,this.close.style.height=s,this.close.style.width=s;},e.prototype.dispose=function(){this.disposables=f(this.disposables),this.renderDisposeable=f(this.renderDisposeable);},e;}(),gV=function(){function e(e,t,n,i,o,r,s,a,u){var l=this;this.editor=e,this.telemetryService=t,this.allowEditorOverflow=!0,this.ignoreFocusEvents=!1,this.editorBlurTimeout=new Q(),this.showTimeout=new Q(),this.onDidSelectEmitter=new N(),this.onDidFocusEmitter=new N(),this.onDidHideEmitter=new N(),this.onDidShowEmitter=new N(),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.storageServiceAvailable=!0,this.expandSuggestionDocs=!1,this.firstFocusInCurrentList=!1;var c=r.lookupKeybinding("editor.action.triggerSuggest"),d=c?" ("+c.getLabel()+")":"",h=new yM(e,s,a);this.isAuto=!1,this.focusedItem=null,this.storageService=o,this.storageService.store("___suggest___",!0,0),this.storageService.get("___suggest___",0)||(this.storageServiceAvailable=!1),this.storageService.remove("___suggest___",0),this.element=ji(".editor-widget.suggest-widget"),this.editor.getConfiguration().contribInfo.iconsInSuggestions||Xn(this.element,"no-icons"),this.messageElement=Vi(this.element,ji(".message")),this.listElement=Vi(this.element,ji(".tree")),this.details=new fV(this.element,this,this.editor,h,d);var p=u.createInstance(pV,this,this.editor,d);this.list=new JB(this.listElement,this,[p],{useShadows:!1,selectOnMouseDown:!0,focusOnMouseDown:!1,openController:{shouldOpen:function(){return!1;}}}),this.toDispose=[US(this.list,i,{listInactiveFocusBackground:uV,listInactiveFocusOutline:Bh}),i.onThemeChange(function(e){return l.onThemeChange(e);}),e.onDidLayoutChange(function(){return l.onEditorLayoutChange();}),this.list.onSelectionChange(function(e){return l.onListSelection(e);}),this.list.onFocusChange(function(e){return l.onListFocus(e);}),this.editor.onDidChangeCursorSelection(function(){return l.onCursorSelectionChanged();})],this.suggestWidgetVisible=YF.Visible.bindTo(n),this.suggestWidgetMultipleSuggestions=YF.MultipleSuggestions.bindTo(n),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(i.getTheme());}return e.prototype.onCursorSelectionChanged=function(){0!==this.state&&this.editor.layoutContentWidget(this);},e.prototype.onEditorLayoutChange=function(){3!==this.state&&5!==this.state||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow();},e.prototype.onListSelection=function(e){var t=this;if(e.elements.length){var n=e.elements[0],i=e.indexes[0];n.resolve(B.None).then(function(){t.onDidSelectEmitter.fire({item:n,index:i,model:t.completionModel}),Rc(ie("suggestionAriaAccepted","{0}, accepted",n.suggestion.label)),t.editor.focus();});}},e.prototype._getSuggestionAriaAlertLabel=function(e){var t=25===e.suggestion.kind;return hV(e)?this.expandDocsSettingFromStorage()?t?ie("ariaCurrentSnippeSuggestionReadDetails","{0}, snippet suggestion. Reading details. {1}",e.suggestion.label,this.details.getAriaLabel()):ie("ariaCurrenttSuggestionReadDetails","{0}, suggestion. Reading details. {1}",e.suggestion.label,this.details.getAriaLabel()):t?ie("ariaCurrentSnippetSuggestionWithDetails","{0}, snippet suggestion, has details",e.suggestion.label):ie("ariaCurrentSuggestionWithDetails","{0}, suggestion, has details",e.suggestion.label):t?ie("ariaCurrentSnippetSuggestion","{0}, snippet suggestion",e.suggestion.label):ie("ariaCurrentSuggestion","{0}, suggestion",e.suggestion.label);},e.prototype._ariaAlert=function(e){this._lastAriaAlertLabel!==e&&(this._lastAriaAlertLabel=e,this._lastAriaAlertLabel&&Rc(this._lastAriaAlertLabel));},e.prototype.onThemeChange=function(e){var t=e.getColor(rV);t&&(this.listElement.style.backgroundColor=t.toString(),this.details.element.style.backgroundColor=t.toString(),this.messageElement.style.backgroundColor=t.toString());var n=e.getColor(sV);n&&(this.listElement.style.borderColor=n.toString(),this.details.element.style.borderColor=n.toString(),this.messageElement.style.borderColor=n.toString(),this.detailsBorderColor=n.toString());var i=e.getColor(Fh);i&&(this.detailsFocusBorderColor=i.toString()),this.details.setBorderWidth("hc"===e.type?2:1);},e.prototype.onListFocus=function(e){var t=this;if(!this.ignoreFocusEvents){if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this._ariaAlert(null);var n=e.elements[0],i=e.indexes[0];this.firstFocusInCurrentList=!this.focusedItem,n!==this.focusedItem&&(this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=n,this.list.reveal(i),this.currentSuggestionDetails=q(function(e){return n.resolve(e);}),this.currentSuggestionDetails.then(function(){t.list.length<i||(t.ignoreFocusEvents=!0,t.list.splice(i,1,[n]),t.list.setFocus([i]),t.ignoreFocusEvents=!1,t.expandDocsSettingFromStorage()?t.showDetails():Qn(t.element,"docs-side"),t._ariaAlert(t._getSuggestionAriaAlertLabel(n)));}).catch(a).then(function(){t.focusedItem===n&&(t.currentSuggestionDetails=null);})),this.onDidFocusEmitter.fire({item:n,index:i,model:this.completionModel});}},e.prototype.setState=function(t){if(this.element){var n=this.state!==t;switch(this.state=t,ei(this.element,"frozen",4===t),t){case 0:Ki(this.messageElement,this.details.element,this.listElement),this.hide(),this.listHeight=0,n&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=e.LOADING_MESSAGE,Ki(this.listElement,this.details.element),zi(this.messageElement),Qn(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,Ki(this.listElement,this.details.element),zi(this.messageElement),Qn(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:case 4:Ki(this.messageElement),zi(this.listElement),this.show();break;case 5:Ki(this.messageElement),zi(this.details.element,this.listElement),this.show(),this._ariaAlert(this.details.getAriaLabel());}}},e.prototype.showTriggered=function(e,t){var n=this;0===this.state&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=setTimeout(function(){n.loadingTimeout=null,n.setState(1);},t)));},e.prototype.showSuggestions=function(e,t,n,i){if(this.loadingTimeout&&(clearTimeout(this.loadingTimeout),this.loadingTimeout=null),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==e&&(this.completionModel=e),n&&2!==this.state&&0!==this.state)this.setState(4);else{var o=this.completionModel.items.length,r=0===o;if(this.suggestWidgetMultipleSuggestions.set(o>1),r)i?this.setState(0):this.setState(2),this.completionModel=null;else{if(3!==this.state){var s=this.completionModel.stats;s.wasAutomaticallyTriggered=!!i,this.telemetryService.publicLog("suggestWidget",nV({},s,this.editor.getTelemetryData()));}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),n?this.setState(4):this.setState(3),this.list.reveal(t,t),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor);}}},e.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;}},e.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0;}},e.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;}},e.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;}},e.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1;}},e.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;}},e.prototype.getFocusedItem=function(){if(0!==this.state&&2!==this.state&&1!==this.state)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel};},e.prototype.toggleDetailsFocus=function(){5===this.state?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):3===this.state&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog("suggestWidget:toggleDetailsFocus",this.editor.getTelemetryData());},e.prototype.toggleDetails=function(){if(hV(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Ki(this.details.element),Qn(this.element,"docs-side"),Qn(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.telemetryService.publicLog("suggestWidget:collapseDetails",this.editor.getTelemetryData());else{if(3!==this.state&&5!==this.state&&4!==this.state)return;this.updateExpandDocsSetting(!0),this.showDetails(),this._ariaAlert(this.details.getAriaLabel()),this.telemetryService.publicLog("suggestWidget:expandDetails",this.editor.getTelemetryData());}},e.prototype.showDetails=function(){this.expandSideOrBelow(),zi(this.details.element),this.details.render(this.list.getFocusedElements()[0]),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus();},e.prototype.show=function(){var e=this,t=this.updateListHeight();t!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=t),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Xn(e.element,"visible"),e.onDidShowEmitter.fire(e);},100);},e.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Qn(this.element,"visible");},e.prototype.hideWidget=function(){clearTimeout(this.loadingTimeout),this.setState(0),this.onDidHideEmitter.fire(this);},e.prototype.getPosition=function(){return 0===this.state?null:{position:this.editor.getPosition(),preference:[2,1]};},e.prototype.getDomNode=function(){return this.element;},e.prototype.getId=function(){return e.ID;},e.prototype.updateListHeight=function(){var e=0;if(2===this.state||1===this.state)e=this.unfocusedHeight;else{var t=this.list.contentHeight/this.unfocusedHeight;e=Math.min(t,12)*this.unfocusedHeight;}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.list.layout(e),e;},e.prototype.adjustDocsPosition=function(){var e=this.editor.getConfiguration().fontInfo.lineHeight,t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=xi(this.editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height,r=xi(this.element),s=r.left,a=r.top;s<i-this.listWidth?Xn(this.element,"list-right"):Qn(this.element,"list-right"),Yn(this.element,"docs-side")&&o-e>a&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px");},e.prototype.expandSideOrBelow=function(){if(!hV(this.focusedItem)&&this.firstFocusInCurrentList)return Qn(this.element,"docs-side"),void Qn(this.element,"docs-below");var e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])<this.maxWidgetWidth?(Xn(this.element,"docs-below"),Qn(this.element,"docs-side")):hV(this.focusedItem)&&(Xn(this.element,"docs-side"),Qn(this.element,"docs-below"));},Object.defineProperty(e.prototype,"maxWidgetHeight",{get:function(){return 12*this.unfocusedHeight;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unfocusedHeight",{get:function(){var e=this.editor.getConfiguration();return e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight;},enumerable:!0,configurable:!0}),e.prototype.getHeight=function(e){return this.unfocusedHeight;},e.prototype.getTemplateId=function(e){return"suggestion";},e.prototype.expandDocsSettingFromStorage=function(){return this.storageServiceAvailable?this.storageService.getBoolean("expandSuggestionDocs",0,!1):this.expandSuggestionDocs;},e.prototype.updateExpandDocsSetting=function(e){this.storageServiceAvailable?this.storageService.store("expandSuggestionDocs",e,0):this.expandSuggestionDocs=e;},e.prototype.dispose=function(){this.state=null,this.currentSuggestionDetails=null,this.focusedItem=null,this.element=null,this.messageElement=null,this.listElement=null,this.details.dispose(),this.details=null,this.list.dispose(),this.list=null,this.toDispose=f(this.toDispose),this.loadingTimeout&&(clearTimeout(this.loadingTimeout),this.loadingTimeout=null),this.editorBlurTimeout.dispose(),this.showTimeout.dispose();},e.ID="editor.widget.suggestWidget",e.LOADING_MESSAGE=ie("suggestWidget.loading","Loading..."),e.NO_SUGGESTIONS_MESSAGE=ie("suggestWidget.noSuggestions","No suggestions."),e=iV([oV(1,$o),oV(2,bl),oV(3,Rd),oV(4,vE),oV(5,zC),oV(6,tw),oV(7,wE),oV(8,ln)],e);}();Vd(function(e,t){var n=e.getColor(lV);n&&t.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+n+"; }");var i=e.getColor(aV);i&&t.addRule(".monaco-editor .suggest-widget { color: "+i+"; }");var o=e.getColor(Vh);o&&t.addRule(".monaco-editor .suggest-widget a { color: "+o+"; }");var r=e.getColor(Hh);r&&t.addRule(".monaco-editor .suggest-widget code { background-color: "+r+"; }");});var mV=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},_V=function(e,t){return function(n,i){t(n,i,e);};},vV=function(){function e(t,n){var i=this;this._editor=t,this._ckAtEnd=e.AtEnd.bindTo(n),this._editor.onDidChangeConfiguration(function(e){return e.contribInfo&&i._update();}),this._update();}return e.prototype.dispose=function(){f(this._confListener,this._selectionListener),this._ckAtEnd.reset();},e.prototype._update=function(){var e=this,t="on"===this._editor.getConfiguration().contribInfo.tabCompletion;if(this._enabled!==t)if(this._enabled=t,this._enabled){var n=function(){if(e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getSelection(),i=t.getWordAtPosition(n.getStartPosition());i?e._ckAtEnd.set(i.endColumn===n.getStartPosition().column):e._ckAtEnd.set(!1);}else e._ckAtEnd.set(!1);};this._selectionListener=this._editor.onDidChangeCursorSelection(n),n();}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0);},e.AtEnd=new yl("atEndOfWord",!1),e=mV([_V(1,bl)],e);}(),yV=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),bV=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},CV=function(e,t){return function(n,i){t(n,i,e);};},wV=function(){function e(e,t,n){var i=this;this._disposables=[],this._activeAcceptCharacters=new Set(),this._disposables.push(t.onDidShow(function(){return i._onItem(t.getFocusedItem());})),this._disposables.push(t.onDidFocus(this._onItem,this)),this._disposables.push(t.onDidHide(this.reset,this)),this._disposables.push(e.onWillType(function(t){if(i._activeItem){var o=t[t.length-1];i._activeAcceptCharacters.has(o)&&e.getConfiguration().contribInfo.acceptSuggestionOnCommitCharacter&&n(i._activeItem);}}));}return e.prototype._onItem=function(e){if(e&&!ce(e.item.suggestion.commitCharacters)){this._activeItem=e,this._activeAcceptCharacters.clear();for(var t=0,n=e.item.suggestion.commitCharacters;t<n.length;t++){var i=n[t];i.length>0&&this._activeAcceptCharacters.add(i[0]);}}else this.reset();},e.prototype.reset=function(){this._activeItem=void 0;},e.prototype.dispose=function(){f(this._disposables);},e;}(),SV=function(){function e(e,t,n,i,o){var r=this;this._editor=e,this._commandService=n,this._contextKeyService=i,this._instantiationService=o,this._toDispose=[],this._sticky=!1,this._model=new SB(this._editor,t),this._memory=new te(function(){var e=o.createInstance(PW,r._editor);return r._toDispose.push(e),e;}),this._alternatives=new te(function(){var e=new BW(r._editor,r._contextKeyService);return r._toDispose.push(e),e;}),this._toDispose.push(o.createInstance(vV,e)),this._toDispose.push(this._model.onDidTrigger(function(e){r._widget||r._createSuggestWidget(),r._widget.showTriggered(e.auto,e.shy?250:50);})),this._toDispose.push(this._model.onDidSuggest(function(e){if(!e.shy){var t=r._memory.getValue().select(r._editor.getModel(),r._editor.getPosition(),e.completionModel.items);r._widget.showSuggestions(e.completionModel,t,e.isFrozen,e.auto);}})),this._toDispose.push(this._model.onDidCancel(function(e){r._widget&&!e.retrigger&&r._widget.hideWidget();})),this._toDispose.push(this._editor.onDidBlurEditorText(function(){r._sticky||r._model.cancel();}));var s=YF.AcceptSuggestionsOnEnter.bindTo(i),a=function(){var e=r._editor.getConfiguration().contribInfo.acceptSuggestionOnEnter;s.set("on"===e||"smart"===e);};this._toDispose.push(this._editor.onDidChangeConfiguration(function(e){return a();})),a();}return e.get=function(t){return t.getContribution(e.ID);},e.prototype._createSuggestWidget=function(){var e=this;this._widget=this._instantiationService.createInstance(gV,this._editor),this._toDispose.push(this._widget.onDidSelect(function(t){return e._onDidSelectItem(t,!1,!0);},this));var t=new wV(this._editor,this._widget,function(t){return e._onDidSelectItem(t,!1,!0);});this._toDispose.push(t,this._model.onDidSuggest(function(e){0===e.completionModel.items.length&&t.reset();}));var n=YF.MakesTextEdit.bindTo(this._contextKeyService);this._toDispose.push(this._widget.onDidFocus(function(t){var i=t.item,o=e._editor.getPosition(),r=i.suggestion.range.startColumn,s=o.column,a=!0;"smart"!==e._editor.getConfiguration().contribInfo.acceptSuggestionOnEnter||2!==e._model.state||i.suggestion.command||i.suggestion.additionalTextEdits||4&i.suggestion.insertTextRules||s-r!==i.suggestion.insertText.length||(a=e._editor.getModel().getValueInRange({startLineNumber:o.lineNumber,startColumn:r,endLineNumber:o.lineNumber,endColumn:s})!==i.suggestion.insertText);n.set(a);})),this._toDispose.push({dispose:function(){n.reset();}});},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this._toDispose=f(this._toDispose),this._widget&&(this._widget.dispose(),this._widget=null),this._model&&(this._model.dispose(),this._model=null);},e.prototype._onDidSelectItem=function(e,t,n){var i,o=this;if(!e||!e.item)return this._alternatives.getValue().reset(),void this._model.cancel();var r=this._editor.getModel(),s=r.getAlternativeVersionId(),u=e.item,l=u.suggestion,c=u.position,d=this._editor.getPosition().column-c.column;n&&this._editor.pushUndoStop(),Array.isArray(l.additionalTextEdits)&&this._editor.executeEdits("suggestController.additionalTextEdits",l.additionalTextEdits.map(function(e){return ll.replace(Jt.lift(e.range),e.text);})),this._memory.getValue().memorize(r,this._editor.getPosition(),e.item);var h=l.insertText;4&l.insertTextRules||(h=_W.escape(h));var p=c.column-l.range.startColumn,f=l.range.endColumn-c.column;TW.get(this._editor).insert(h,p+d,f,!1,!1,!(1&l.insertTextRules)),n&&this._editor.pushUndoStop(),l.command?l.command.id===xV.id?this._model.trigger({auto:!0},!0):((i=this._commandService).executeCommand.apply(i,[l.command.id].concat(l.command.arguments)).then(void 0,a),this._model.cancel()):this._model.cancel(),t&&this._alternatives.getValue().set(e,function(e){for(;r.canUndo();){s!==r.getAlternativeVersionId()&&r.undo(),o._onDidSelectItem(e,!1,!1);break;}}),this._alertCompletionItem(e.item);},e.prototype._alertCompletionItem=function(e){var t=e.suggestion;Rc(ie("arai.alert.snippet","Accepting '{0}' did insert the following text: {1}",t.label,t.insertText));},e.prototype.triggerSuggest=function(e){this._model.trigger({auto:!1},!1,e),this._editor.revealLine(this._editor.getPosition().lineNumber,0),this._editor.focus();},e.prototype.triggerSuggestAndAcceptBest=function(e){var t=this,n=this._editor.getPosition(),i=function(){n.equals(t._editor.getPosition())&&t._editor.trigger("suggest",hr.Type,{text:e});};O(this._model.onDidTrigger)(function(e){var n=[];D(t._model.onDidTrigger,t._model.onDidCancel)(function(){f(n),i();},void 0,n),t._model.onDidSuggest(function(e){var o=e.completionModel;if(f(n),0!==o.items.length){var r=t._memory.getValue().select(t._editor.getModel(),t._editor.getPosition(),o.items),s=o.items[r];!function(e){if(4&e.suggestion.insertTextRules||e.suggestion.additionalTextEdits)return!0;var n=t._editor.getPosition(),i=e.suggestion.range.startColumn,o=n.column;return o-i!==e.suggestion.insertText.length||t._editor.getModel().getValueInRange({startLineNumber:n.lineNumber,startColumn:i,endLineNumber:n.lineNumber,endColumn:o})!==e.suggestion.insertText;}(s)?i():(t._editor.pushUndoStop(),t._onDidSelectItem({index:r,item:s,model:o},!0,!1));}else i();},void 0,n);}),this._model.trigger({auto:!1,shy:!0}),this._editor.revealLine(n.lineNumber,0),this._editor.focus();},e.prototype.acceptSelectedSuggestion=function(e){if(this._widget){var t=this._widget.getFocusedItem();this._onDidSelectItem(t,e,!0);}},e.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next();},e.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev();},e.prototype.cancelSuggestWidget=function(){this._widget&&(this._model.cancel(),this._widget.hideWidget());},e.prototype.selectNextSuggestion=function(){this._widget&&this._widget.selectNext();},e.prototype.selectNextPageSuggestion=function(){this._widget&&this._widget.selectNextPage();},e.prototype.selectLastSuggestion=function(){this._widget&&this._widget.selectLast();},e.prototype.selectPrevSuggestion=function(){this._widget&&this._widget.selectPrevious();},e.prototype.selectPrevPageSuggestion=function(){this._widget&&this._widget.selectPreviousPage();},e.prototype.selectFirstSuggestion=function(){this._widget&&this._widget.selectFirst();},e.prototype.toggleSuggestionDetails=function(){this._widget&&this._widget.toggleDetails();},e.prototype.toggleSuggestionFocus=function(){this._widget&&this._widget.toggleDetailsFocus();},e.ID="editor.contrib.suggestController",e=bV([CV(1,Os),CV(2,qo),CV(3,bl),CV(4,ln)],e);}(),xV=function(e){function t(){return e.call(this,{id:t.id,label:ie("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:dl.and(A_.writable,A_.hasCompletionItemProvider),kbOpts:{kbExpr:A_.textInputFocus,primary:2058,mac:{primary:266},weight:100}})||this;}return yV(t,e),t.prototype.run=function(e,t){var n=SV.get(t);n&&n.triggerSuggest();},t.id="editor.action.triggerSuggest",t;}(Zc);nd(SV),td(xV);var EV=Xc.bindToContribution(SV.get);ed(new EV({id:"acceptSelectedSuggestion",precondition:YF.Visible,handler:function(e){return e.acceptSelectedSuggestion(!0);},kbOpts:{weight:190,kbExpr:A_.textInputFocus,primary:2}})),ed(new EV({id:"acceptSelectedSuggestionOnEnter",precondition:YF.Visible,handler:function(e){return e.acceptSelectedSuggestion(!1);},kbOpts:{weight:190,kbExpr:dl.and(A_.textInputFocus,YF.AcceptSuggestionsOnEnter,YF.MakesTextEdit),primary:3}})),ed(new EV({id:"hideSuggestWidget",precondition:YF.Visible,handler:function(e){return e.cancelSuggestWidget();},kbOpts:{weight:190,kbExpr:A_.textInputFocus,primary:9,secondary:[1033]}})),ed(new EV({id:"selectNextSuggestion",precondition:dl.and(YF.Visible,YF.MultipleSuggestions),handler:function(e){return e.selectNextSuggestion();},kbOpts:{weight:190,kbExpr:A_.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),ed(new EV({id:"selectNextPageSuggestion",precondition:dl.and(YF.Visible,YF.MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion();},kbOpts:{weight:190,kbExpr:A_.textInputFocus,primary:12,secondary:[2060]}})),ed(new EV({id:"selectLastSuggestion",precondition:dl.and(YF.Visible,YF.MultipleSuggestions),handler:function(e){return e.selectLastSuggestion();}})),ed(new EV({id:"selectPrevSuggestion",precondition:dl.and(YF.Visible,YF.MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion();},kbOpts:{weight:190,kbExpr:A_.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),ed(new EV({id:"selectPrevPageSuggestion",precondition:dl.and(YF.Visible,YF.MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion();},kbOpts:{weight:190,kbExpr:A_.textInputFocus,primary:11,secondary:[2059]}})),ed(new EV({id:"selectFirstSuggestion",precondition:dl.and(YF.Visible,YF.MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion();}})),ed(new EV({id:"toggleSuggestionDetails",precondition:YF.Visible,handler:function(e){return e.toggleSuggestionDetails();},kbOpts:{weight:190,kbExpr:A_.textInputFocus,primary:2058,mac:{primary:266}}})),ed(new EV({id:"toggleSuggestionFocus",precondition:YF.Visible,handler:function(e){return e.toggleSuggestionFocus();},kbOpts:{weight:190,kbExpr:A_.textInputFocus,primary:2570,mac:{primary:778}}})),ed(new EV({id:"insertBestCompletion",precondition:dl.and(dl.equals("config.editor.tabCompletion","on"),vV.AtEnd,YF.Visible.toNegated(),BW.OtherSuggestions.toNegated(),TW.InSnippetMode.toNegated()),handler:function(e){return e.triggerSuggestAndAcceptBest("\t");},kbOpts:{weight:190,primary:2}})),ed(new EV({id:"insertNextSuggestion",precondition:dl.and(dl.equals("config.editor.tabCompletion","on"),BW.OtherSuggestions,YF.Visible.toNegated(),TW.InSnippetMode.toNegated()),handler:function(e){return e.acceptNextSuggestion();},kbOpts:{weight:190,kbExpr:A_.textInputFocus,primary:2}})),ed(new EV({id:"insertPrevSuggestion",precondition:dl.and(dl.equals("config.editor.tabCompletion","on"),BW.OtherSuggestions,YF.Visible.toNegated(),TW.InSnippetMode.toNegated()),handler:function(e){return e.acceptPrevSuggestion();},kbOpts:{weight:190,kbExpr:A_.textInputFocus,primary:1026}}));var LV=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),TV=function(e){function t(){return e.call(this,{id:t.ID,label:ie({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:null,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})||this;}return LV(t,e),t.prototype.run=function(e,t){var n=!nl.getTabFocusMode();nl.setTabFocusMode(n),Rc(n?ie("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):ie("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"));},t.ID="editor.action.toggleTabFocusMode",t;}(Zc);td(TV);var IV=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),NV=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},kV=function(e,t){return function(n,i){t(n,i,e);};},OV=Ah("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},ie("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque to not hide underlying decorations."),!0),DV=Ah("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},ie("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque to not hide underlying decorations."),!0),RV=Ah("editor.wordHighlightBorder",{light:null,dark:null,hc:Bh},ie("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),AV=Ah("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:Bh},ie("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),MV=Ah("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},ie("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque to not hide underlying decorations."),!0),PV=Ah("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},ie("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque to not hide underlying decorations."),!0),FV=new yl("hasWordHighlights",!1);function WV(e,t,n){return X(fs.ordered(e).map(function(i){return function(){return Promise.resolve(i.provideDocumentHighlights(e,t,n)).then(void 0,u);};}),function(e){return!ce(e);});}var BV=function(){function e(e,t,n){var i=this;this._wordRange=this._getCurrentWordRange(e,t),this.result=q(function(o){return i._compute(e,t,n,o);});}return e.prototype._getCurrentWordRange=function(e,t){var n=e.getWordAtPosition(t.getPosition());return n?new Jt(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null;},e.prototype.isValid=function(e,t,n){for(var i=t.startLineNumber,o=t.startColumn,r=t.endColumn,s=this._getCurrentWordRange(e,t),a=Boolean(this._wordRange&&this._wordRange.equalsRange(s)),u=0,l=n.length;!a&&u<l;u++){var c=e.getDecorationRange(n[u]);c&&c.startLineNumber===i&&c.startColumn<=o&&c.endColumn>=r&&(a=!0);}return a;},e.prototype.cancel=function(){this.result.cancel();},e;}(),VV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return IV(t,e),t.prototype._compute=function(e,t,n,i){return WV(e,t.getPosition(),i);},t;}(BV),HV=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o._selectionIsEmpty=n.isEmpty(),o;}return IV(t,e),t.prototype._compute=function(e,t,n,i){return $(250,i).then(function(){if(!t.isEmpty())return[];var i=e.getWordAtPosition(t.getPosition());return i?e.findMatches(i.word,!0,!1,!0,n,!1).map(function(e){return{range:e.range,kind:Qr.Text};}):[];});},t.prototype.isValid=function(t,n,i){var o=n.isEmpty();return this._selectionIsEmpty===o&&e.prototype.isValid.call(this,t,n,i);},t;}(BV);Jc("_executeDocumentHighlights",function(e,t){return WV(e,t,B.None);});var UV=function(){function e(e,t){var n=this;this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=FV.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getConfiguration().contribInfo.occurrencesHighlight,this.model=this.editor.getModel(),this.toUnhook=[],this.toUnhook.push(e.onDidChangeCursorPosition(function(e){n._ignorePositionChangeEvent||n.occurrencesHighlight&&n._onPositionChanged(e);})),this.toUnhook.push(e.onDidChangeModelContent(function(e){n._stopAll();})),this.toUnhook.push(e.onDidChangeConfiguration(function(e){var t=n.editor.getConfiguration().contribInfo.occurrencesHighlight;n.occurrencesHighlight!==t&&(n.occurrencesHighlight=t,n._stopAll());})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1;}return e.prototype.hasDecorations=function(){return this._decorationIds.length>0;},e.prototype.restore=function(){this.occurrencesHighlight&&this._run();},e.prototype._getSortedHighlights=function(){var e=this;return le(this._decorationIds.map(function(t){return e.model.getDecorationRange(t);}).sort(Jt.compareRangesUsingStarts));},e.prototype.moveNext=function(){var e=this,t=this._getSortedHighlights(),n=t[(de(t,function(t){return t.containsPosition(e.editor.getPosition());})+1)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);}finally{this._ignorePositionChangeEvent=!1;}},e.prototype.moveBack=function(){var e=this,t=this._getSortedHighlights(),n=t[(de(t,function(t){return t.containsPosition(e.editor.getPosition());})-1+t.length)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);}finally{this._ignorePositionChangeEvent=!1;}},e.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1));},e.prototype._stopAll=function(){this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0);},e.prototype._onPositionChanged=function(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll();},e.prototype._run=function(){var e=this,t=this.editor.getSelection();if(t.startLineNumber===t.endLineNumber){var n=t.startLineNumber,i=t.startColumn,o=t.endColumn,r=this.model.getWordAtPosition({lineNumber:n,column:i});if(!r||r.startColumn>i||r.endColumn<o)this._stopAll();else{var s,u,l,c=this.workerRequest&&this.workerRequest.isValid(this.model,t,this._decorationIds);if(this.lastCursorPositionChangeTime=new Date().getTime(),c)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var d=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=(s=this.model,u=this.editor.getSelection(),l=this.editor.getConfiguration().wordSeparators,fs.has(s)?new VV(s,u,l):new HV(s,u,l)),this.workerRequest.result.then(function(t){d===e.workerRequestTokenId&&(e.workerRequestCompleted=!0,e.workerRequestValue=t||[],e._beginRenderDecorations());},a);}}}else this._stopAll();},e.prototype._beginRenderDecorations=function(){var e=this,t=new Date().getTime(),n=this.lastCursorPositionChangeTime+250;t>=n?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(function(){e.renderDecorations();},n-t);},e.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var t=[],n=0,i=this.workerRequestValue.length;n<i;n++){var o=this.workerRequestValue[n];t.push({range:o.range,options:e._getDecorationOptions(o.kind)});}this._decorationIds=this.editor.deltaDecorations(this._decorationIds,t),this._hasWordHighlights.set(this.hasDecorations());},e._getDecorationOptions=function(e){return e===Qr.Write?this._WRITE_OPTIONS:e===Qr.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS;},e.prototype.dispose=function(){this._stopAll(),this.toUnhook=f(this.toUnhook);},e._WRITE_OPTIONS=i_.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Ad(PV),position:cr.Center}}),e._TEXT_OPTIONS=i_.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Ad(df),position:cr.Center}}),e._REGULAR_OPTIONS=i_.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Ad(MV),position:cr.Center}}),e;}(),jV=function(e){function t(t,n){var i=e.call(this)||this,o=function(){t.hasModel()&&(i.wordHighligher=new UV(t,n));};return i._register(t.onDidChangeModel(function(e){i.wordHighligher&&(i.wordHighligher.dispose(),i.wordHighligher=null),o();})),o(),i;}return IV(t,e),t.get=function(e){return e.getContribution(t.ID);},t.prototype.getId=function(){return t.ID;},t.prototype.saveViewState=function(){return!(!this.wordHighligher||!this.wordHighligher.hasDecorations());},t.prototype.moveNext=function(){this.wordHighligher&&this.wordHighligher.moveNext();},t.prototype.moveBack=function(){this.wordHighligher&&this.wordHighligher.moveBack();},t.prototype.restoreViewState=function(e){this.wordHighligher&&e&&this.wordHighligher.restore();},t.prototype.dispose=function(){this.wordHighligher&&(this.wordHighligher.dispose(),this.wordHighligher=null),e.prototype.dispose.call(this);},t.ID="editor.contrib.wordHighlighter",t=NV([kV(1,bl)],t);}(y),zV=function(e){function t(t,n){var i=e.call(this,n)||this;return i._isNext=t,i;}return IV(t,e),t.prototype.run=function(e,t){var n=jV.get(t);n&&(this._isNext?n.moveNext():n.moveBack());},t;}(Zc),KV=function(e){function t(){return e.call(this,!0,{id:"editor.action.wordHighlight.next",label:ie("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:FV,kbOpts:{kbExpr:A_.editorTextFocus,primary:65,weight:100}})||this;}return IV(t,e),t;}(zV),qV=function(e){function t(){return e.call(this,!1,{id:"editor.action.wordHighlight.prev",label:ie("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:FV,kbOpts:{kbExpr:A_.editorTextFocus,primary:1089,weight:100}})||this;}return IV(t,e),t;}(zV),GV=function(e){function t(){return e.call(this,{id:"editor.action.wordHighlight.trigger",label:ie("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:FV.toNegated(),kbOpts:{kbExpr:A_.editorTextFocus,primary:0,weight:100}})||this;}return IV(t,e),t.prototype.run=function(e,t,n){var i=jV.get(t);i&&i.restoreViewState(!0);},t;}(Zc);nd(jV),td(KV),td(qV),td(GV),Vd(function(e,t){var n=e.getColor(Bp);n&&(t.addRule(".monaco-editor .focused .selectionHighlight { background-color: "+n+"; }"),t.addRule(".monaco-editor .selectionHighlight { background-color: "+n.transparent(.5)+"; }"));var i=e.getColor(OV);i&&t.addRule(".monaco-editor .wordHighlight { background-color: "+i+"; }");var o=e.getColor(DV);o&&t.addRule(".monaco-editor .wordHighlightStrong { background-color: "+o+"; }");var r=e.getColor(Vp);r&&t.addRule(".monaco-editor .selectionHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+r+"; box-sizing: border-box; }");var s=e.getColor(RV);s&&t.addRule(".monaco-editor .wordHighlight { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; box-sizing: border-box; }");var a=e.getColor(AV);a&&t.addRule(".monaco-editor .wordHighlightStrong { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; box-sizing: border-box; }");});var $V=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),YV=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n._wordNavigationType=t.wordNavigationType,n;}return $V(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this;if(t.hasModel()){var o=t.getConfiguration(),r=tg(o.wordSeparators),s=t.getModel(),a=t.getSelections().map(function(e){var t=new Qt(e.positionLineNumber,e.positionColumn),n=i._move(r,s,t,i._wordNavigationType);return i._moveTo(e,n,i._inSelectionMode);});if(t._getCursors().setStates("moveWordCommand",0,a.map(function(e){return m_.fromModelSelection(e);})),1===a.length){var u=new Qt(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(u,0);}}},t.prototype._moveTo=function(e,t,n){return n?new tn(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new tn(t.lineNumber,t.column,t.lineNumber,t.column);},t;}(Xc),XV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return $V(t,e),t.prototype._move=function(e,t,n,i){return N_.moveWordLeft(e,t,n,i);},t;}(YV),ZV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return $V(t,e),t.prototype._move=function(e,t,n,i){return N_.moveWordRight(e,t,n,i);},t;}(YV),QV=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:2063,mac:{primary:527},weight:100}})||this;}return $V(t,e),t;}(XV),JV=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:null})||this;}return $V(t,e),t;}(XV),eH=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:null})||this;}return $V(t,e),t;}(XV),tH=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:3087,mac:{primary:1551},weight:100}})||this;}return $V(t,e),t;}(XV),nH=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:null})||this;}return $V(t,e),t;}(XV),iH=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordLeftSelect",precondition:null})||this;}return $V(t,e),t;}(XV),oH=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:null})||this;}return $V(t,e),t;}(ZV),rH=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:2065,mac:{primary:529},weight:100}})||this;}return $V(t,e),t;}(ZV),sH=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:null})||this;}return $V(t,e),t;}(ZV),aH=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:null})||this;}return $V(t,e),t;}(ZV),uH=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:3089,mac:{primary:1553},weight:100}})||this;}return $V(t,e),t;}(ZV),lH=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:null})||this;}return $V(t,e),t;}(ZV),cH=function(e){function t(t){var n=e.call(this,t)||this;return n._whitespaceHeuristics=t.whitespaceHeuristics,n._wordNavigationType=t.wordNavigationType,n;}return $V(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this;if(t.hasModel()){var o=t.getConfiguration(),r=tg(o.wordSeparators),s=t.getModel(),a=t.getSelections().map(function(e){var t=i._delete(r,s,e,i._whitespaceHeuristics,i._wordNavigationType);return new C_(t,"");});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop();}},t;}(Xc),dH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return $V(t,e),t.prototype._delete=function(e,t,n,i,o){var r=N_.deleteWordLeft(e,t,n,i,o);return r||new Jt(1,1,1,1);},t;}(cH),hH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return $V(t,e),t.prototype._delete=function(e,t,n,i,o){var r=N_.deleteWordRight(e,t,n,i,o);if(r)return r;var s=t.getLineCount(),a=t.getLineMaxColumn(s);return new Jt(s,a,s,a);},t;}(cH),pH=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:A_.writable})||this;}return $V(t,e),t;}(dH),fH=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:A_.writable})||this;}return $V(t,e),t;}(dH),gH=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:A_.writable,kbOpts:{kbExpr:A_.textInputFocus,primary:2049,mac:{primary:513},weight:100}})||this;}return $V(t,e),t;}(dH),mH=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:A_.writable})||this;}return $V(t,e),t;}(hH),_H=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:A_.writable})||this;}return $V(t,e),t;}(hH),vH=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:A_.writable,kbOpts:{kbExpr:A_.textInputFocus,primary:2068,mac:{primary:532},weight:100}})||this;}return $V(t,e),t;}(hH);ed(new QV()),ed(new JV()),ed(new eH()),ed(new tH()),ed(new nH()),ed(new iH()),ed(new oH()),ed(new rH()),ed(new sH()),ed(new aH()),ed(new uH()),ed(new lH()),ed(new pH()),ed(new fH()),ed(new gH()),ed(new mH()),ed(new _H()),ed(new vH());var yH=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),bH=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:A_.writable,kbOpts:{kbExpr:A_.textInputFocus,primary:0,mac:{primary:769},weight:100}})||this;}return yH(t,e),t.prototype._delete=function(e,t,n,i,o){var r=k_.deleteWordPartLeft(e,t,n,i);return r||new Jt(1,1,1,1);},t;}(cH),CH=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:A_.writable,kbOpts:{kbExpr:A_.textInputFocus,primary:0,mac:{primary:788},weight:100}})||this;}return yH(t,e),t.prototype._delete=function(e,t,n,i,o){var r=k_.deleteWordPartRight(e,t,n,i);if(r)return r;var s=t.getLineCount(),a=t.getLineMaxColumn(s);return new Jt(s,a,s,a);},t;}(cH),wH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return yH(t,e),t.prototype._move=function(e,t,n,i){return k_.moveWordPartLeft(e,t,n);},t;}(YV),SH=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:0,mac:{primary:783},weight:100}})||this;}return yH(t,e),t;}(wH);Go.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var xH=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:0,mac:{primary:1807},weight:100}})||this;}return yH(t,e),t;}(wH);Go.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var EH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return yH(t,e),t.prototype._move=function(e,t,n,i){return k_.moveWordPartRight(e,t,n);},t;}(YV),LH=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:0,mac:{primary:785},weight:100}})||this;}return yH(t,e),t;}(EH),TH=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:null,kbOpts:{kbExpr:A_.textInputFocus,primary:0,mac:{primary:1809},weight:100}})||this;}return yH(t,e),t;}(EH);ed(new bH()),ed(new CH()),ed(new SH()),ed(new xH()),ed(new LH()),ed(new TH());n("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp.css");var IH=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),NH=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},kH=function(e,t){return function(n,i){t(n,i,e);};},OH=new yl("accessibilityHelpWidgetVisible",!1),DH=function(e){function t(t,n){var i=e.call(this)||this;return i._editor=t,i._widget=i._register(n.createInstance(WH,i._editor)),i;}return IH(t,e),t.get=function(e){return e.getContribution(t.ID);},t.prototype.getId=function(){return t.ID;},t.prototype.show=function(){this._widget.show();},t.prototype.hide=function(){this._widget.hide();},t.ID="editor.contrib.accessibilityHelpController",t=NH([kH(1,ln)],t);}(y),RH=ie("noSelection","No selection"),AH=ie("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),MH=ie("singleSelection","Line {0}, Column {1}"),PH=ie("multiSelectionRange","{0} selections ({1} characters selected)"),FH=ie("multiSelection","{0} selections");var WH=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._contextKeyService=n,r._keybindingService=i,r._openerService=o,r._editor=t,r._isVisibleKey=OH.bindTo(r._contextKeyService),r._domNode=rd(document.createElement("div")),r._domNode.setClassName("accessibilityHelpWidget"),r._domNode.setDisplay("none"),r._domNode.setAttribute("role","dialog"),r._domNode.setAttribute("aria-hidden","true"),r._contentDomNode=rd(document.createElement("div")),r._contentDomNode.setAttribute("role","document"),r._domNode.appendChild(r._contentDomNode),r._isVisible=!1,r._register(r._editor.onDidLayoutChange(function(){r._isVisible&&r._layout();})),r._register(ii(r._contentDomNode.domNode,"keydown",function(e){if(r._isVisible&&(e.equals(2083)&&(Rc(ie("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'.")),r._editor.updateOptions({accessibilitySupport:"on"}),zn(r._contentDomNode.domNode),r._buildContent(),r._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){Rc(ie("openingDocs","Now opening the Editor Accessibility documentation page."));var t=r._editor.getRawConfiguration().accessibilityHelpUrl;void 0===t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),r._openerService.open(_t.parse(t)),e.preventDefault(),e.stopPropagation();}})),r.onblur(r._contentDomNode.domNode,function(){r.hide();}),r._editor.addOverlayWidget(r),r;}return IH(t,e),t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this);},t.prototype.getId=function(){return t.ID;},t.prototype.getDomNode=function(){return this._domNode.domNode;},t.prototype.getPosition=function(){return{preference:null};},t.prototype.show=function(){this._isVisible||(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());},t.prototype._descriptionForCommand=function(e,t,n){var i=this._keybindingService.lookupKeybinding(e);return i?to(t,i.getAriaLabel()):to(n,e);},t.prototype._buildContent=function(){var e=this._editor.getConfiguration(),t=this._editor.getSelections(),n=0;if(t){var i=this._editor.getModel();i&&t.forEach(function(e){n+=i.getValueLengthInRange(e);});}var r=function(e,t){return e&&0!==e.length?1===e.length?t?to(AH,e[0].positionLineNumber,e[0].positionColumn,t):to(MH,e[0].positionLineNumber,e[0].positionColumn):t?to(PH,e.length,t):e.length>0?to(FH,e.length):null:RH;}(t,n);e.wrappingInfo.inDiffEditor?e.readOnly?r+=ie("readonlyDiffEditor"," in a read-only pane of a diff editor."):r+=ie("editableDiffEditor"," in a pane of a diff editor."):e.readOnly?r+=ie("readonlyEditor"," in a read-only code editor"):r+=ie("editableEditor"," in a code editor");var s=o.d?ie("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."):ie("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now.");switch(e.accessibilitySupport){case 0:r+="\n\n - "+s;break;case 2:r+="\n\n - "+ie("auto_on","The editor is configured to be optimized for usage with a Screen Reader.");break;case 1:r+="\n\n - "+ie("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),r+=" "+s;}var a=ie("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),u=ie("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."),l=ie("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),c=ie("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.");e.tabFocusMode?r+="\n\n - "+this._descriptionForCommand(TV.ID,a,u):r+="\n\n - "+this._descriptionForCommand(TV.ID,l,c),r+="\n\n - "+(o.d?ie("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."):ie("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility.")),r+="\n\n"+ie("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),this._contentDomNode.domNode.appendChild(Ok(r)),this._contentDomNode.domNode.setAttribute("aria-label",r);},t.prototype.hide=function(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,zn(this._contentDomNode.domNode),this._editor.focus());},t.prototype._layout=function(){var e=this._editor.getLayoutInfo(),n=Math.max(5,Math.min(t.WIDTH,e.width-40)),i=Math.max(5,Math.min(t.HEIGHT,e.height-40));this._domNode.setWidth(n),this._domNode.setHeight(i);var o=Math.round((e.height-i)/2);this._domNode.setTop(o);var r=Math.round((e.width-n)/2);this._domNode.setLeft(r);},t.ID="editor.contrib.accessibilityHelpWidget",t.WIDTH=500,t.HEIGHT=300,t=NH([kH(1,bl),kH(2,zC),kH(3,wE)],t);}(yv),BH=function(e){function t(){return e.call(this,{id:"editor.action.showAccessibilityHelp",label:ie("ShowAccessibilityHelpAction","Show Accessibility Help"),alias:"Show Accessibility Help",precondition:null,kbOpts:{kbExpr:A_.focus,primary:vn?2107:571,weight:100}})||this;}return IH(t,e),t.prototype.run=function(e,t){var n=DH.get(t);n&&n.show();},t;}(Zc);nd(DH),td(BH),ed(new(Xc.bindToContribution(DH.get))({id:"closeAccessibilityHelp",precondition:OH,handler:function(e){return e.hide();},kbOpts:{weight:200,kbExpr:A_.focus,primary:9,secondary:[1033]}})),Vd(function(e,t){var n=e.getColor(Rp);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+n+"; }");var i=e.getColor(Uh);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(Wh);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+o+"; }");});n("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.css");var VH=function(){function e(e){var t=this;this.editor=e,this.toDispose=[],En&&(this.toDispose.push(e.onDidChangeConfiguration(function(){return t.update();})),this.update());}return e.prototype.update=function(){var e=!this.editor.getConfiguration().readOnly;!this.widget&&e?this.widget=new HH(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null);},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this.toDispose=f(this.toDispose),this.widget&&(this.widget.dispose(),this.widget=null);},e.ID="editor.contrib.iPadShowKeyboard",e;}(),HH=function(){function e(e){var t=this;this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._toDispose=[],this._toDispose.push(ni(this._domNode,"touchstart",function(e){t.editor.focus();})),this._toDispose.push(ni(this._domNode,"focus",function(e){t.editor.focus();})),this.editor.addOverlayWidget(this);}return e.prototype.dispose=function(){this.editor.removeOverlayWidget(this),this._toDispose=f(this._toDispose);},e.prototype.getId=function(){return e.ID;},e.prototype.getDomNode=function(){return this._domNode;},e.prototype.getPosition=function(){return{preference:1};},e.ID="editor.contrib.ShowKeyboardWidget",e;}();nd(VH);n("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.css");var UH=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),jH=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},zH=function(e,t){return function(n,i){t(n,i,e);};},KH=function(e){function t(t,n,i){var o=e.call(this)||this;return o._editor=t,o._modeService=i,o._widget=null,o._register(o._editor.onDidChangeModel(function(e){return o.stop();})),o._register(o._editor.onDidChangeModelLanguage(function(e){return o.stop();})),o._register(Ls.onDidChange(function(e){return o.stop();})),o;}return UH(t,e),t.get=function(e){return e.getContribution(t.ID);},t.prototype.getId=function(){return t.ID;},t.prototype.dispose=function(){this.stop(),e.prototype.dispose.call(this);},t.prototype.launch=function(){this._widget||this._editor.hasModel()&&(this._widget=new GH(this._editor,this._modeService));},t.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null);},t.ID="editor.contrib.inspectTokens",t=jH([zH(1,HC),zH(2,tw)],t);}(y),qH=function(e){function t(){return e.call(this,{id:"editor.action.inspectTokens",label:ie("inspectTokens","Developer: Inspect Tokens"),alias:"Developer: Inspect Tokens",precondition:null})||this;}return UH(t,e),t.prototype.run=function(e,t){var n=KH.get(t);n&&n.launch();},t;}(Zc);var GH=function(e){function t(t,n){var i,o=e.call(this)||this;return o.allowEditorOverflow=!0,o._editor=t,o._modeService=n,o._model=o._editor.getModel(),o._domNode=document.createElement("div"),o._domNode.className="tokens-inspect-widget",o._tokenizationSupport=(i=o._model.getLanguageIdentifier(),Ls.get(i.language)||{getInitialState:function(){return Ts;},tokenize:function(e,t,n){return Ns(i.language,0,t,n);},tokenize2:function(e,t,n){return ks(i.id,0,t,n);}}),o._compute(o._editor.getPosition()),o._register(o._editor.onDidChangeCursorPosition(function(e){return o._compute(o._editor.getPosition());})),o._editor.addContentWidget(o),o;}return UH(t,e),t.prototype.dispose=function(){this._editor.removeContentWidget(this),e.prototype.dispose.call(this);},t.prototype.getId=function(){return t._ID;},t.prototype._compute=function(e){for(var t=this._getTokensAtLine(e.lineNumber),n=0,i=t.tokens1.length-1;i>=0;i--){var o=t.tokens1[i];if(e.column-1>=o.offset){n=i;break;}}var r=0;for(i=t.tokens2.length>>>1;i>=0;i--)if(e.column-1>=t.tokens2[i<<1]){r=i;break;}var s="",a=this._model.getLineContent(e.lineNumber),u="";if(n<t.tokens1.length){var l=t.tokens1[n].offset,c=n+1<t.tokens1.length?t.tokens1[n+1].offset:a.length;u=a.substring(l,c);}s+='<h2 class="tm-token">'+function(e){for(var t="",n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);switch(o){case 9:t+="→";break;case 32:t+="·";break;case 60:t+="<";break;case 62:t+=">";break;case 38:t+="&";break;default:t+=String.fromCharCode(o);}}return t;}(u)+'<span class="tm-token-length">('+u.length+" "+(1===u.length?"char":"chars")+")</span></h2>",s+='<hr class="tokens-inspect-separator" style="clear:both"/>';var d=this._decodeMetadata(t.tokens2[1+(r<<1)]);s+='<table class="tm-metadata-table"><tbody>',s+='<tr><td class="tm-metadata-key">language</td><td class="tm-metadata-value">'+no(d.languageIdentifier.language)+"</td>",s+='<tr><td class="tm-metadata-key">token type</td><td class="tm-metadata-value">'+this._tokenTypeToString(d.tokenType)+"</td>",s+='<tr><td class="tm-metadata-key">font style</td><td class="tm-metadata-value">'+this._fontStyleToString(d.fontStyle)+"</td>",s+='<tr><td class="tm-metadata-key">foreground</td><td class="tm-metadata-value">'+Oh.Format.CSS.formatHex(d.foreground)+"</td>",s+='<tr><td class="tm-metadata-key">background</td><td class="tm-metadata-value">'+Oh.Format.CSS.formatHex(d.background)+"</td>",s+="</tbody></table>",s+='<hr class="tokens-inspect-separator"/>',n<t.tokens1.length&&(s+='<span class="tm-token-type">'+no(t.tokens1[n].type)+"</span>"),this._domNode.innerHTML=s,this._editor.layoutContentWidget(this);},t.prototype._decodeMetadata=function(e){var t=Ls.getColorMap(),n=ns.getLanguageId(e),i=ns.getTokenType(e),o=ns.getFontStyle(e),r=ns.getForeground(e),s=ns.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:o,foreground:t[r],background:t[s]};},t.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx";}return"??";},t.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t;},t.prototype._getTokensAtLine=function(e){var t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),i=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState};},t.prototype._getStateBeforeLine=function(e){for(var t=this._tokenizationSupport.getInitialState(),n=1;n<e;n++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),t,0).endState;}return t;},t.prototype.getDomNode=function(){return this._domNode;},t.prototype.getPosition=function(){return{position:this._editor.getPosition(),preference:[2,1]};},t._ID="editor.contrib.inspectTokensWidget",t;}(y);nd(KH),td(qH),Vd(function(e,t){var n=e.getColor(Yp);if(n){var i=e.type===Pd?2:1;t.addRule(".monaco-editor .tokens-inspect-widget { border: "+i+"px solid "+n+"; }"),t.addRule(".monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: "+n+"; }");}var o=e.getColor($p);o&&t.addRule(".monaco-editor .tokens-inspect-widget { background-color: "+o+"; }");});n("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickOpen/gotoLine.css"),n("./node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.css");var $H=ji,YH=function(){function e(e,t){this.os=t,this.domNode=Vi(e,$H(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode);}return e.prototype.set=function(t,n){this.didEverRender&&this.keybinding===t&&e.areSame(this.matches,n)||(this.keybinding=t,this.matches=n,this.render());},e.prototype.render=function(){if(zn(this.domNode),this.keybinding){var e=this.keybinding.getParts(),t=e[0],n=e[1];t&&this.renderPart(this.domNode,t,this.matches?this.matches.firstPart:null),n&&(Vi(this.domNode,$H("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,n,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||"";}this.didEverRender=!0;},e.prototype.renderPart=function(e,t,n){var i=Jl.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,i.ctrlKey,Boolean(n&&n.ctrlKey),i.separator),t.shiftKey&&this.renderKey(e,i.shiftKey,Boolean(n&&n.shiftKey),i.separator),t.altKey&&this.renderKey(e,i.altKey,Boolean(n&&n.altKey),i.separator),t.metaKey&&this.renderKey(e,i.metaKey,Boolean(n&&n.metaKey),i.separator);var o=t.keyLabel;o&&this.renderKey(e,o,Boolean(n&&n.keyCode),"");},e.prototype.renderKey=function(e,t,n,i){Vi(e,$H("span.monaco-keybinding-key"+(n?".highlight":""),void 0,t)),i&&Vi(e,$H("span.monaco-keybinding-key-separator",void 0,i));},e.prototype.dispose=function(){},e.areSame=function(e,t){return e===t||!e&&!t||!!e&&!!t&&Ne(e.firstPart,t.firstPart)&&Ne(e.chordPart,t.chordPart);},e;}(),XH=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),ZH=0,QH=function(){function e(e){void 0===e&&(e=[]),this.id=(ZH++).toString(),this.labelHighlights=e,this.descriptionHighlights=[];}return e.prototype.getId=function(){return this.id;},e.prototype.getLabel=function(){return null;},e.prototype.getLabelOptions=function(){return null;},e.prototype.getAriaLabel=function(){return[this.getLabel(),this.getDescription(),this.getDetail()].filter(function(e){return!!e;}).join(", ");},e.prototype.getDetail=function(){return null;},e.prototype.getIcon=function(){return null;},e.prototype.getDescription=function(){return null;},e.prototype.getTooltip=function(){return null;},e.prototype.getDescriptionTooltip=function(){return null;},e.prototype.getKeybinding=function(){return null;},e.prototype.isHidden=function(){return this.hidden;},e.prototype.setHighlights=function(e,t,n){this.labelHighlights=e,this.descriptionHighlights=t,this.detailHighlights=n;},e.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights];},e.prototype.run=function(e,t){return!1;},e;}(),JH=function(e){function t(t,n,i){var o=e.call(this)||this;return o.entry=t,o.groupLabel=n,o.withBorder=i,o;}return XH(t,e),t.prototype.getGroupLabel=function(){return this.groupLabel;},t.prototype.setGroupLabel=function(e){this.groupLabel=e;},t.prototype.showBorder=function(){return this.withBorder;},t.prototype.setShowBorder=function(e){this.withBorder=e;},t.prototype.getLabel=function(){return this.entry?this.entry.getLabel():e.prototype.getLabel.call(this);},t.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():e.prototype.getLabelOptions.call(this);},t.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():e.prototype.getAriaLabel.call(this);},t.prototype.getDetail=function(){return this.entry?this.entry.getDetail():e.prototype.getDetail.call(this);},t.prototype.getIcon=function(){return this.entry?this.entry.getIcon():e.prototype.getIcon.call(this);},t.prototype.getDescription=function(){return this.entry?this.entry.getDescription():e.prototype.getDescription.call(this);},t.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():e.prototype.getHighlights.call(this);},t.prototype.isHidden=function(){return this.entry?this.entry.isHidden():e.prototype.isHidden.call(this);},t.prototype.setHighlights=function(t,n,i){this.entry?this.entry.setHighlights(t,n,i):e.prototype.setHighlights.call(this,t,n,i);},t.prototype.run=function(t,n){return this.entry?this.entry.run(t,n):e.prototype.run.call(this,t,n);},t;}(QH),eU=function(){function e(){}return e.prototype.hasActions=function(e,t){return!1;},e.prototype.getActions=function(e,t){return i.b.as(null);},e;}(),tU=function(){function e(e,t){void 0===e&&(e=new eU()),void 0===t&&(t=null),this.actionProvider=e,this.actionRunner=t;}return e.prototype.getHeight=function(e){return e.getDetail()?44:22;},e.prototype.getTemplateId=function(e){return e instanceof JH?"quickOpenEntryGroup":"quickOpenEntry";},e.prototype.renderTemplate=function(e,t,n){var i=document.createElement("div");Xn(i,"sub-content"),t.appendChild(i);var r=ji(".quick-open-row"),s=ji(".quick-open-row"),a=ji(".quick-open-entry",null,r,s);i.appendChild(a);var u=document.createElement("span");r.appendChild(u);var l=new cR(r,{supportHighlights:!0,supportDescriptionHighlights:!0}),c=document.createElement("span");r.appendChild(c),Xn(c,"quick-open-entry-keybinding");var d=new YH(c,o.a),h=document.createElement("div");s.appendChild(h),Xn(h,"quick-open-entry-meta");var p,f=new aR(h,!0);"quickOpenEntryGroup"===e&&(p=document.createElement("div"),Xn(p,"results-group"),t.appendChild(p)),Xn(t,"actions");var g=document.createElement("div");return Xn(g,"primary-action-bar"),t.appendChild(g),{container:t,entry:a,icon:u,label:l,detail:f,keybinding:d,group:p,actionBar:new mC(g,{actionRunner:this.actionRunner})};},e.prototype.renderElement=function(e,t,n,i){if(this.actionProvider.hasActions(null,e)?Xn(n.container,"has-actions"):Qn(n.container,"has-actions"),n.actionBar.context=e,this.actionProvider.getActions(null,e).then(function(e){n.actionBar.isEmpty()&&e&&e.length>0?n.actionBar.push(e,{icon:!0,label:!1}):n.actionBar.isEmpty()||e&&0!==e.length||n.actionBar.clear();}),e instanceof JH&&e.getGroupLabel()?Xn(n.container,"has-group-label"):Qn(n.container,"has-group-label"),e instanceof JH){var o=e,r=n;o.showBorder()?(Xn(r.container,"results-group-separator"),r.container.style.borderTopColor=i.pickerGroupBorder.toString()):(Qn(r.container,"results-group-separator"),r.container.style.borderTopColor=null);var s=o.getGroupLabel()||"";r.group.textContent=s,r.group.style.color=i.pickerGroupForeground.toString();}if(e instanceof QH){var a=e.getHighlights(),u=a[0],l=a[1],c=a[2],d=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=d;var h=e.getLabelOptions()||Object.create(null);h.matches=u||[],h.title=e.getTooltip(),h.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),h.descriptionMatches=l||[],n.label.setValue(e.getLabel(),e.getDescription(),h),n.detail.set(e.getDetail(),c),n.keybinding.set(e.getKeybinding(),null);}},e.prototype.disposeTemplate=function(e,t){var n=t;n.actionBar.dispose(),n.actionBar=null,n.container=null,n.entry=null,n.keybinding.dispose(),n.keybinding=null,n.detail.dispose(),n.detail=null,n.group=null,n.icon=null,n.label.dispose(),n.label=null;},e;}(),nU=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=new eU()),this._entries=e,this._dataSource=this,this._renderer=new tU(t),this._filter=this,this._runner=this,this._accessibilityProvider=this;}return Object.defineProperty(e.prototype,"entries",{get:function(){return this._entries;},set:function(e){this._entries=e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filter;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"runner",{get:function(){return this._runner;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider;},enumerable:!0,configurable:!0}),e.prototype.getId=function(e){return e.getId();},e.prototype.getLabel=function(e){return e.getLabel();},e.prototype.getAriaLabel=function(e){return e.getAriaLabel()?ie("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):ie("quickOpenAriaLabel","picker");},e.prototype.isVisible=function(e){return!e.isHidden();},e.prototype.run=function(e,t,n){return e.run(t,n);},e;}(),iU=(n("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickOpen/editorQuickOpen.css"),n("./node_modules/monaco-editor/esm/vs/base/parts/quickopen/browser/quickopen.css"),function(){function e(e){this.modelProvider=xe(e.getModel)?e:{getModel:function(){return e;}};}return e.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t);},e.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return n&&n===t&&n.entries.length>0;},e.prototype.getChildren=function(e,t){var n=this.modelProvider.getModel();return i.b.as(n===t?n.entries:[]);},e.prototype.getParent=function(e,t){return i.b.as(null);},e;}()),oU=function(){function e(e){this.modelProvider=e;}return e.prototype.getAriaLabel=function(e,t){var n=this.modelProvider.getModel();return n.accessibilityProvider&&n.accessibilityProvider.getAriaLabel(t);},e.prototype.getPosInSet=function(e,t){var n=this.modelProvider.getModel(),i=0;if(n.filter)for(var o=0,r=n.entries;o<r.length;o++){var s=r[o];if(n.filter.isVisible(s)&&i++,s===t)break;}else i=n.entries.indexOf(t)+1;return String(i);},e.prototype.getSetSize=function(){var e=this.modelProvider.getModel(),t=0;if(e.filter)for(var n=0,i=e.entries;n<i.length;n++){var o=i[n];e.filter.isVisible(o)&&t++;}else t=e.entries.length;return String(t);},e;}(),rU=function(){function e(e){this.modelProvider=e;}return e.prototype.isVisible=function(e,t){var n=this.modelProvider.getModel();return!n.filter||n.filter.isVisible(t);},e;}(),sU=function(){function e(e,t){this.modelProvider=e,this.styles=t;}return e.prototype.updateStyles=function(e){this.styles=e;},e.prototype.getHeight=function(e,t){return this.modelProvider.getModel().renderer.getHeight(t);},e.prototype.getTemplateId=function(e,t){return this.modelProvider.getModel().renderer.getTemplateId(t);},e.prototype.renderTemplate=function(e,t,n){return this.modelProvider.getModel().renderer.renderTemplate(t,n,this.styles);},e.prototype.renderElement=function(e,t,n,i){this.modelProvider.getModel().renderer.renderElement(t,n,i,this.styles);},e.prototype.disposeTemplate=function(e,t,n){this.modelProvider.getModel().renderer.disposeTemplate(t,n);},e;}(),aU=(n("./node_modules/monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.css"),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}()),uU={progressBarBackground:Oh.fromHex("#0E70C0")},lU=function(e){function t(t,n){var i=e.call(this)||this;return i.options=n||Object.create(null),Ie(i.options,uU,!1),i.workedVal=0,i.progressBarBackground=i.options.progressBarBackground,i._register(i.showDelayedScheduler=new ee(function(){return zi(i.element);},0)),i.create(t),i;}return aU(t,e),t.prototype.create=function(e){this.element=document.createElement("div"),Xn(this.element,"monaco-progress-container"),e.appendChild(this.element),this.bit=document.createElement("div"),Xn(this.bit,"progress-bit"),this.element.appendChild(this.bit),this.applyStyles();},t.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Jn(this.element,"active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0;},t.prototype.stop=function(){return this.doDone(!1);},t.prototype.doDone=function(e){var t=this;return Xn(this.element,"done"),Yn(this.element,"infinite")?(this.bit.style.opacity="0",e?setTimeout(function(){return t.off();},200):this.off()):(this.bit.style.width="inherit",e?setTimeout(function(){return t.off();},200):this.off()),this;},t.prototype.hide=function(){Ki(this.element),this.showDelayedScheduler.cancel();},t.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles();},t.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():null;this.bit.style.backgroundColor=e;}},t;}(y),cU=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),dU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return cU(t,e),t.prototype.onContextMenu=function(t,n,i){return o.d?this.onLeftClick(t,n,i):e.prototype.onContextMenu.call(this,t,n,i);},t;}(mx),hU={background:Oh.fromHex("#1E1E1E"),foreground:Oh.fromHex("#CCCCCC"),pickerGroupForeground:Oh.fromHex("#0097FB"),pickerGroupBorder:Oh.fromHex("#3F3F46"),widgetShadow:Oh.fromHex("#000000"),progressBarBackground:Oh.fromHex("#0E70C0")},pU=ie("quickOpenAriaLabel","Quick picker. Type to narrow down results."),fU=function(e){function t(t,n,i){var o=e.call(this)||this;return o.isDisposed=!1,o.container=t,o.callbacks=n,o.options=i,o.styles=i||Object.create(null),Ie(o.styles,hU,!1),o.model=null,o;}return cU(t,e),t.prototype.getModel=function(){return this.model;},t.prototype.create=function(){var e=this;this.element=document.createElement("div"),Xn(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(ni(this.element,Pi.CONTEXT_MENU,function(e){return Fi.stop(e,!0);})),this._register(ni(this.element,Pi.FOCUS,function(t){return e.gainingFocus();},!0)),this._register(ni(this.element,Pi.BLUR,function(t){return e.loosingFocus(t);},!0)),this._register(ni(this.element,Pi.KEY_DOWN,function(t){var n=new Rn(t);if(9===n.keyCode)Fi.stop(t,!0),e.hide(2);else if(2===n.keyCode&&!n.altKey&&!n.ctrlKey&&!n.metaKey){var i=t.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");n.shiftKey&&n.target===i[0]?(Fi.stop(t,!0),i[i.length-1].focus()):n.shiftKey||n.target!==i[i.length-1]||(Fi.stop(t,!0),i[0].focus());}})),this.progressBar=this._register(new lU(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),Xn(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new Wk(this.inputContainer,null,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:pU,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(ni(this.inputBox.inputElement,Pi.INPUT,function(t){return e.onType();})),this._register(ni(this.inputBox.inputElement,Pi.KEY_DOWN,function(t){var n=new Rn(t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)Fi.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||i){Fi.stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?2:1);}})),this.resultCount=document.createElement("div"),Xn(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"),Xn(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var t=this.options.treeCreator||function(e,t,n){return new qx(e,t,n);};return this.tree=this._register(t(this.treeContainer,{dataSource:new iU(this),controller:new dU({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new sU(this,this.styles),filter:new rU(this),accessibilityProvider:new oU(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:ie("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus(function(t){e.elementFocused(t.focus,t);})),this._register(this.tree.onDidChangeSelection(function(t){if(t.selection&&t.selection.length>0){var n=t.payload&&t.payload.originalEvent instanceof Vn?t.payload.originalEvent:void 0,i=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,i?2:1);}})),this._register(ni(this.treeContainer,Pi.KEY_DOWN,function(t){var n=new Rn(t);e.quickNavigateConfiguration&&(18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(Fi.stop(t,!0),e.navigateInTree(n.keyCode)));})),this._register(ni(this.treeContainer,Pi.KEY_UP,function(t){var n=new Rn(t),i=n.keyCode;if(e.quickNavigateConfiguration){var o=e.quickNavigateConfiguration.keybindings;if(3===i||o.some(function(e){var t=e.getParts(),o=t[0];return!t[1]&&(o.shiftKey&&4===i?!(n.ctrlKey||n.altKey||n.metaKey):!(!o.altKey||6!==i)||!(!o.ctrlKey||5!==i)||!(!o.metaKey||57!==i));})){var r=e.tree.getFocus();r&&e.elementSelected(r,t);}}})),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(ni(this.treeContainer,Pi.KEY_DOWN,function(t){var n=new Rn(t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(Fi.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.treeElement.focus());})),this.element;},t.prototype.style=function(e){this.styles=e,this.applyStyles();},t.prototype.applyStyles=function(){if(this.element){var e=this.styles.foreground?this.styles.foreground.toString():null,t=this.styles.background?this.styles.background.toString():null,n=this.styles.borderColor?this.styles.borderColor.toString():null,i=this.styles.widgetShadow?this.styles.widgetShadow.toString():null;this.element.style.color=e,this.element.style.backgroundColor=t,this.element.style.borderColor=n,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.boxShadow=i?"0 5px 8px "+i:null;}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);},t.prototype.shouldOpenInBackground=function(e){if(e instanceof Rn){if(17!==e.keyCode)return!1;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;var t=this.inputBox.inputElement;return t.selectionEnd===this.inputBox.value.length&&t.selectionStart===t.selectionEnd;}return e.middleButton;},t.prototype.onType=function(){var e=this.inputBox.value;this.helpText&&(e?Ki(this.helpText):zi(this.helpText)),this.callbacks.onType(e);},t.prototype.navigateInTree=function(e,t){var n=this.tree.getInput(),i=n?n.entries:[],o=this.tree.getFocus();switch(e){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:t?this.tree.focusPrevious():this.tree.focusNext();}var r=this.tree.getFocus();i.length>1&&o===r&&(16===e||2===e&&t?this.tree.focusLast():(18===e||2===e&&!t)&&this.tree.focusFirst()),(r=this.tree.getFocus())&&this.tree.reveal(r);},t.prototype.elementFocused=function(e,t){if(e&&this.isVisible()){this.inputElement.setAttribute("aria-activedescendant",this.treeElement.getAttribute("aria-activedescendant"));var n={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(e,0,n);}},t.prototype.elementSelected=function(e,t,n){var i=!0;if(this.isVisible()){var o=n||1,r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};i=this.model.runner.run(e,o,r);}i&&this.hide(0);},t.prototype.extractKeyMods=function(e){return{ctrlCmd:e&&(e.ctrlKey||e.metaKey||e.payload&&e.payload.originalEvent&&(e.payload.originalEvent.ctrlKey||e.payload.originalEvent.metaKey)),alt:e&&(e.altKey||e.payload&&e.payload.originalEvent&&e.payload.originalEvent.altKey)};},t.prototype.show=function(e,t){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=t?t.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(Ki(this.inputContainer),zi(this.element),this.tree.domFocus()):(zi(this.inputContainer),zi(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||me(e)?Ki(this.helpText):zi(this.helpText)),me(e)?this.doShowWithPrefix(e):(t.value&&this.restoreLastInput(t.value),this.doShowWithInput(e,t&&t.autoFocus?t.autoFocus:{})),t&&t.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(t.inputSelection),this.callbacks.onShow&&this.callbacks.onShow();},t.prototype.restoreLastInput=function(e){this.inputBox.value=e,this.inputBox.select(),this.callbacks.onType(e);},t.prototype.doShowWithPrefix=function(e){this.inputBox.value=e,this.callbacks.onType(e);},t.prototype.doShowWithInput=function(e,t){this.setInput(e,t);},t.prototype.setInputAndLayout=function(e,t){var n=this;this.treeContainer.style.height=this.getHeight(e)+"px",this.tree.setInput(null).then(function(){return n.model=e,n.inputElement.setAttribute("aria-haspopup",String(e&&e.entries&&e.entries.length>0)),n.tree.setInput(e);}).then(function(){n.tree.layout();var i=e?e.entries.filter(function(t){return n.isElementVisible(e,t);}):[];n.updateResultCount(i.length),i.length&&n.autoFocus(e,i,t);});},t.prototype.isElementVisible=function(e,t){return!e.filter||e.filter.isVisible(t);},t.prototype.autoFocus=function(e,t,n){if(void 0===n&&(n={}),n.autoFocusPrefixMatch){for(var i=void 0,o=void 0,r=n.autoFocusPrefixMatch,s=r.toLowerCase(),a=0;a<t.length;a++){var u=t[a],l=e.dataSource.getLabel(u);if(i||0!==l.indexOf(r)?o||0!==l.toLowerCase().indexOf(s)||(o=u):i=u,i&&o)break;}var c=i||o;if(c)return this.tree.setFocus(c),void this.tree.reveal(c,.5);}n.autoFocusFirstEntry?(this.tree.focusFirst(),this.tree.reveal(this.tree.getFocus())):"number"==typeof n.autoFocusIndex?t.length>n.autoFocusIndex&&(this.tree.focusNth(n.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):n.autoFocusSecondEntry?t.length>1&&this.tree.focusNth(1):n.autoFocusLastEntry&&t.length>1&&this.tree.focusLast();},t.prototype.getHeight=function(e){var n=this,i=e.renderer;if(!e){var o=i.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*o:0;}var r,s=0;this.layoutDimensions&&this.layoutDimensions.height&&(r=.4*(this.layoutDimensions.height-50)),(!r||r>t.MAX_ITEMS_HEIGHT)&&(r=t.MAX_ITEMS_HEIGHT);for(var a=e.entries.filter(function(t){return n.isElementVisible(e,t);}),u=this.options.maxItemsToShow||a.length,l=0;l<u&&l<a.length;l++){var c=i.getHeight(a[l]);if(!(s+c<=r))break;s+=c;}return s;},t.prototype.updateResultCount=function(e){this.resultCount.textContent=ie({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",e);},t.prototype.hide=function(e){this.isVisible()&&(this.visible=!1,Ki(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?22*this.options.minItemsToShow:0)+"px",this.progressBar.stop().hide(),this.tree.isDOMFocused()?this.tree.domBlur():this.inputBox.hasFocus()&&this.inputBox.blur(),0===e?this.callbacks.onOk():this.callbacks.onCancel(),this.callbacks.onHide&&this.callbacks.onHide(e));},t.prototype.setInput=function(e,t,n){this.isVisible()&&(this.getInput()&&this.onInputChanging(),this.setInputAndLayout(e,t),this.inputBox&&this.inputBox.setAriaLabel(n||pU));},t.prototype.onInputChanging=function(){var e=this;this.inputChangingTimeoutHandle&&(clearTimeout(this.inputChangingTimeoutHandle),this.inputChangingTimeoutHandle=null),Xn(this.element,"content-changing"),this.inputChangingTimeoutHandle=setTimeout(function(){Qn(e.element,"content-changing");},500);},t.prototype.getInput=function(){return this.tree.getInput();},t.prototype.isVisible=function(){return this.visible;},t.prototype.layout=function(e){this.layoutDimensions=e;var n=Math.min(.62*this.layoutDimensions.width,t.MAX_WIDTH);this.element&&(this.element.style.width=n+"px",this.element.style.marginLeft="-"+n/2+"px",this.inputContainer.style.width=n-12+"px");},t.prototype.gainingFocus=function(){this.isLoosingFocus=!1;},t.prototype.loosingFocus=function(e){var t=this;if(this.isVisible()){var n=e.relatedTarget;!this.quickNavigateConfiguration&&ki(n,this.element)||(this.isLoosingFocus=!0,setTimeout(function(){t.isLoosingFocus&&!t.isDisposed&&(t.callbacks.onFocusLost&&t.callbacks.onFocusLost()||t.hide(1));},0));}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.isDisposed=!0;},t.MAX_WIDTH=600,t.MAX_ITEMS_HEIGHT=440,t;}(y),gU=function(){function e(e,t,n,i,o,r){this.codeEditor=e,this.themeService=r,this.create(t,n,i,o);}return e.prototype.create=function(e,t,n,i){var o,r;this.domNode=document.createElement("div"),this.quickOpenWidget=new fU(this.domNode,{onOk:e,onCancel:t,onType:n},{inputPlaceHolder:null,inputAriaLabel:i.inputAriaLabel,keyboardSupport:!0}),this.styler=(o=this.quickOpenWidget,HS(this.themeService,{foreground:(r={pickerGroupForeground:Mh})&&r.foreground||Mh,background:r&&r.background||Op,borderColor:r&&r.borderColor||Wh,widgetShadow:r&&r.widgetShadow||Uh,progressBarBackground:r&&r.progressBarBackground||Sp,pickerGroupForeground:r&&r.pickerGroupForeground||gp,pickerGroupBorder:r&&r.pickerGroupBorder||mp,inputBackground:r&&r.inputBackground||jh,inputForeground:r&&r.inputForeground||zh,inputBorder:r&&r.inputBorder||Kh,inputValidationInfoBorder:r&&r.inputValidationInfoBorder||Yh,inputValidationInfoBackground:r&&r.inputValidationInfoBackground||Gh,inputValidationInfoForeground:r&&r.inputValidationInfoForeground||$h,inputValidationWarningBorder:r&&r.inputValidationWarningBorder||Qh,inputValidationWarningBackground:r&&r.inputValidationWarningBackground||Xh,inputValidationWarningForeground:r&&r.inputValidationWarningForeground||Zh,inputValidationErrorBorder:r&&r.inputValidationErrorBorder||tp,inputValidationErrorBackground:r&&r.inputValidationErrorBackground||Jh,inputValidationErrorForeground:r&&r.inputValidationErrorForeground||ep,listFocusBackground:r&&r.listFocusBackground||op,listFocusForeground:r&&r.listFocusForeground||rp,listActiveSelectionBackground:r&&r.listActiveSelectionBackground||sp,listActiveSelectionForeground:r&&r.listActiveSelectionForeground||ap,listFocusAndSelectionBackground:r&&r.listFocusAndSelectionBackground||sp,listFocusAndSelectionForeground:r&&r.listFocusAndSelectionForeground||ap,listInactiveSelectionBackground:r&&r.listInactiveSelectionBackground||up,listInactiveSelectionForeground:r&&r.listInactiveSelectionForeground||lp,listInactiveFocusBackground:r&&r.listInactiveFocusBackground||cp,listHoverBackground:r&&r.listHoverBackground||dp,listHoverForeground:r&&r.listHoverForeground||hp,listDropBackground:r&&r.listDropBackground||pp,listFocusOutline:r&&r.listFocusOutline||Bh,listSelectionOutline:r&&r.listSelectionOutline||Bh,listHoverOutline:r&&r.listHoverOutline||Bh},o)),this.quickOpenWidget.create(),this.codeEditor.addOverlayWidget(this);},e.prototype.setInput=function(e,t){this.quickOpenWidget.setInput(e,t);},e.prototype.getId=function(){return e.ID;},e.prototype.getDomNode=function(){return this.domNode;},e.prototype.destroy=function(){this.codeEditor.removeOverlayWidget(this),this.quickOpenWidget.dispose(),this.styler.dispose();},e.prototype.show=function(e){this.visible=!0;var t=this.codeEditor.getLayoutInfo();t&&this.quickOpenWidget.layout(new wi(t.width,t.height)),this.quickOpenWidget.show(e),this.codeEditor.layoutOverlayWidget(this);},e.prototype.getPosition=function(){return this.visible?{preference:2}:null;},e.ID="editor.contrib.quickOpenEditorWidget",e;}(),mU=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),_U=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},vU=function(e,t){return function(n,i){t(n,i,e);};},yU=function(){function e(e,t){this.themeService=t,this.editor=e;}return e.get=function(t){return t.getContribution(e.ID);},e.prototype.getId=function(){return e.ID;},e.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null);},e.prototype.run=function(e){var t=this;this.widget&&(this.widget.destroy(),this.widget=null);var n=function(e){t.clearDecorations(),e&&t.lastKnownEditorSelection&&(t.editor.setSelection(t.lastKnownEditorSelection),t.editor.revealRangeInCenterIfOutsideViewport(t.lastKnownEditorSelection,0)),t.lastKnownEditorSelection=null,document.activeElement!==document.body&&e||t.editor.focus();};this.widget=new gU(this.editor,function(){return n(!1);},function(){return n(!0);},function(n){t.widget.setInput(e.getModel(n),e.getAutoFocus(n));},{inputAriaLabel:e.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("");},e.prototype.decorateLine=function(t,n){var i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var o=[{range:t,options:e._RANGE_HIGHLIGHT_DECORATION}],r=n.deltaDecorations(i,o);this.rangeHighlightDecorationId=r[0];},e.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null);},e.ID="editor.controller.quickOpenController",e._RANGE_HIGHLIGHT_DECORATION=i_.register({className:"rangeHighlight",isWholeLine:!0}),e=_U([vU(1,Rd)],e);}(),bU=function(e){function t(t,n){var i=e.call(this,n)||this;return i._inputAriaLabel=t,i;}return mU(t,e),t.prototype.getController=function(e){return yU.get(e);},t.prototype._show=function(e,t){e.run({inputAriaLabel:this._inputAriaLabel,getModel:function(e){return t.getModel(e);},getAutoFocus:function(e){return t.getAutoFocus(e);}});},t;}(Zc);nd(yU);var CU=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),wU=function(e){function t(t,n,i){var o=e.call(this)||this;return o.editor=n,o.decorator=i,o._parseResult=o._parseInput(t),o;}return CU(t,e),t.prototype._parseInput=function(e){var t,n,i=e.split(",").map(function(e){return parseInt(e,10);}).filter(function(e){return!isNaN(e);});t=0===i.length?new Qt(-1,-1):1===i.length?new Qt(i[0],1):new Qt(i[0],i[1]);var o=(n=Ru(this.editor)?this.editor.getModel():this.editor.getModel().modified).validatePosition(t).equals(t);return{position:t,isValid:o,label:o?t.column&&t.column>1?ie("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}",t.lineNumber,t.column):ie("gotoLineLabelValidLine","Go to line {0}",t.lineNumber,t.column):t.lineNumber<1||t.lineNumber>n.getLineCount()?ie("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to",n.getLineCount()):ie("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to",n.getLineMaxColumn(t.lineNumber))};},t.prototype.getLabel=function(){return this._parseResult.label;},t.prototype.getAriaLabel=function(){return ie("gotoLineAriaLabel","Go to line {0}",this._parseResult.label);},t.prototype.run=function(e,t){return 1===e?this.runOpen():this.runPreview();},t.prototype.runOpen=function(){if(!this._parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e,0),this.editor.focus(),!0;},t.prototype.runPreview=function(){if(!this._parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(e,this.editor),!1;},t.prototype.toSelection=function(){return new Jt(this._parseResult.position.lineNumber,this._parseResult.position.column,this._parseResult.position.lineNumber,this._parseResult.position.column);},t;}(QH);td(function(e){function t(){return e.call(this,ie("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),{id:"editor.action.gotoLine",label:ie("GotoLineAction.label","Go to Line..."),alias:"Go to Line...",precondition:null,kbOpts:{kbExpr:A_.focus,primary:2085,mac:{primary:293},weight:100}})||this;}return CU(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new nU([new wU(e,t,n.getController(t))]);},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0};}});},t;}(bU));var SU=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),xU=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.key=t,r.setHighlights(n),r.action=i,r.editor=o,r;}return SU(t,e),t.prototype.getLabel=function(){return this.action.label;},t.prototype.getAriaLabel=function(){return ie("ariaLabelEntry","{0}, commands",this.getLabel());},t.prototype.getGroupLabel=function(){return this.key;},t.prototype.run=function(e,t){var n=this;return 1===e&&(setTimeout(function(){n.editor.focus();try{(n.action.run()||Promise.resolve()).then(null,a);}catch(e){a(e);}},50),!0);},t;}(JH);td(function(e){function t(){return e.call(this,ie("quickCommandActionInput","Type the name of an action you want to execute"),{id:"editor.action.quickCommand",label:ie("QuickCommandAction.label","Command Palette"),alias:"Command Palette",precondition:null,kbOpts:{kbExpr:A_.focus,primary:vn?571:59,weight:100},menuOpts:{group:"z_commands",order:1}})||this;}return SU(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(zC);this._show(this.getController(t),{getModel:function(e){return new nU(n._editorActionsToEntries(i,t,e));},getAutoFocus:function(e){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:e};}});},t.prototype._sort=function(e,t){var n=e.getLabel().toLowerCase(),i=t.getLabel().toLowerCase();return n.localeCompare(i);},t.prototype._editorActionsToEntries=function(e,t,n){for(var i=t.getSupportedActions(),o=[],r=0;r<i.length;r++){var s=i[r],a=e.lookupKeybinding(s.id);if(s.label){var u=eB(n,s.label);u&&o.push(new xU(a?a.getLabel():"",u,s,t));}}return o=o.sort(this._sort);},t;}(bU));n("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickOpen/quickOutline.css");function EU(e,t,n){var i=[],o=ps.all(e).map(function(t){return Promise.resolve(t.provideDocumentSymbols(e,n)).then(function(e){Array.isArray(e)&&i.push.apply(i,e);},function(e){u(e);});});return Promise.all(o).then(function(){var e=[];return n.isCancellationRequested?e:(t?function e(t,n,i){for(var o=0,r=n;o<r.length;o++){var s=r[o];t.push({kind:s.kind,name:s.name,detail:s.detail,containerName:s.containerName||i,range:s.range,selectionRange:s.selectionRange,children:void 0}),s.children&&e(t,s.children,s.name);}}(e,i,""):e=i,e.sort(LU),e);});}function LU(e,t){return Jt.compareRangesUsingStarts(e.range,t.range);}Qc("_executeDocumentSymbolProvider",function(e,t){var n=t.resource;if(!(n instanceof _t))throw p("resource");var i=e.get(Gr).getModel(n);if(!i)throw p("resource");return EU(i,!1,B.None);});var TU=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),IU=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this)||this;return u.name=t,u.type=n,u.description=i,u.range=o,u.setHighlights(r),u.editor=s,u.decorator=a,u;}return TU(t,e),t.prototype.getLabel=function(){return this.name;},t.prototype.getAriaLabel=function(){return ie("entryAriaLabel","{0}, symbols",this.name);},t.prototype.getIcon=function(){return this.type;},t.prototype.getDescription=function(){return this.description;},t.prototype.getType=function(){return this.type;},t.prototype.getRange=function(){return this.range;},t.prototype.run=function(e,t){return 1===e?this.runOpen(t):this.runPreview();},t.prototype.runOpen=function(e){var t=this.toSelection();return this.editor.setSelection(t),this.editor.revealRangeInCenter(t,0),this.editor.focus(),!0;},t.prototype.runPreview=function(){var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(this.range,this.editor),!1;},t.prototype.toSelection=function(){return new Jt(this.range.startLineNumber,this.range.startColumn||1,this.range.startLineNumber,this.range.startColumn||1);},t;}(JH);td(function(e){function t(){return e.call(this,ie("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),{id:"editor.action.quickOutline",label:ie("QuickOutlineAction.label","Go to Symbol..."),alias:"Go to Symbol...",precondition:A_.hasDocumentSymbolProvider,kbOpts:{kbExpr:A_.focus,primary:3117,weight:100},menuOpts:{group:"navigation",order:3}})||this;}return TU(t,e),t.prototype.run=function(e,t){var n=this,i=t.getModel();return ps.has(i)?EU(i,!0,B.None).then(function(e){0!==e.length&&n._run(t,e);}):null;},t.prototype._run=function(e,t){var n=this;this._show(this.getController(e),{getModel:function(i){return new nU(n.toQuickOpenEntries(e,t,i));},getAutoFocus:function(e){return 0===e.indexOf(":")&&(e=e.substr(":".length)),{autoFocusPrefixMatch:e,autoFocusFirstEntry:!!e};}});},t.prototype.symbolEntry=function(e,t,n,i,o,r,s){return new IU(e,t,n,Jt.lift(i),o,r,s);},t.prototype.toQuickOpenEntries=function(e,t,n){var i,o,r=this.getController(e),s=[],a=n;0===n.indexOf(":")&&(a=a.substr(":".length));for(var u=0;u<t.length;u++){var l=t[u],c=(i=l.name,void 0===(o=void 0)&&(o=" "),ro(oo(i,o),o)),d=eB(a,c);if(d){var h=null;l.containerName&&(h=l.containerName),s.push(this.symbolEntry(c,ss(l.kind),h,l.range,d,e,r));}}if(n&&(s=0===n.indexOf(":")?s.sort(this.sortScoped.bind(this,n.toLowerCase())):s.sort(this.sortNormal.bind(this,n.toLowerCase()))),s.length>0&&0===n.indexOf(":")){var p=null,f=null,g=0;for(u=0;u<s.length;u++){var m=s[u];p!==m.getType()?(f&&f.setGroupLabel(this.typeToLabel(p,g)),p=m.getType(),f=m,g=1,m.setShowBorder(u>0)):g++;}f&&f.setGroupLabel(this.typeToLabel(p,g));}else s.length>0&&s[0].setGroupLabel(ie("symbols","symbols ({0})",s.length));return s;},t.prototype.typeToLabel=function(e,t){switch(e){case"module":return ie("modules","modules ({0})",t);case"class":return ie("class","classes ({0})",t);case"interface":return ie("interface","interfaces ({0})",t);case"method":return ie("method","methods ({0})",t);case"function":return ie("function","functions ({0})",t);case"property":return ie("property","properties ({0})",t);case"variable":return ie("variable","variables ({0})",t);case"var":return ie("variable2","variables ({0})",t);case"constructor":return ie("_constructor","constructors ({0})",t);case"call":return ie("call","calls ({0})",t);}return e;},t.prototype.sortNormal=function(e,t,n){var i=t.getLabel().toLowerCase(),o=n.getLabel().toLowerCase(),r=i.localeCompare(o);if(0!==r)return r;var s=t.getRange(),a=n.getRange();return s.startLineNumber-a.startLineNumber;},t.prototype.sortScoped=function(e,t,n){e=e.substr(":".length);var i=t.getType(),o=n.getType(),r=i.localeCompare(o);if(0!==r)return r;if(e){var s=t.getLabel().toLowerCase(),a=n.getLabel().toLowerCase(),u=s.localeCompare(a);if(0!==u)return u;}var l=t.getRange(),c=n.getRange();return l.startLineNumber-c.startLineNumber;},t;}(bU));var NU=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}(),kU=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s;},OU=function(e,t){return function(n,i){t(n,i,e);};};nd(function(e){function t(t,n,i,o,r,s,a){return e.call(this,!0,t,n,i,o,r,s,a)||this;}return NU(t,e),t=kU([OU(1,bl),OU(2,pn),OU(3,sc),OU(4,ln),OU(5,vE),OU(6,Fl)],t);}(eA));var DU=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(t,n);};return function(t,n){function i(){this.constructor=t;}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i());};}();td(function(e){function t(){var t=e.call(this,{id:"editor.action.toggleHighContrast",label:ie("toggleHighContrast","Toggle High Contrast Theme"),alias:"Toggle High Contrast Theme",precondition:null})||this;return t._originalThemeName=null,t;}return DU(t,e),t.prototype.run=function(e,t){var n=e.get(HC);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getTheme().themeName,n.setTheme("hc-black"));},t;}(Zc));},"./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/checkbox/checkbox.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/contextview/contextview.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/countBadge/countBadge.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInput.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInputCheckboxes.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconlabel.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/inputbox/inputBox.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/list/list.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/menu/menu.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/media/scrollbars.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/common/marked/marked.js":function(e,t,n){(function(t){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:g,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:g,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(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)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:g,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function i(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||y.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.options.tables?this.rules=n.tables:this.rules=n.gfm);}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=d(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d+\.)/,n.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,n.item=d(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=d(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._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",n._comment=/<!--(?!-?>)[\s\S]*?-->/,n.html=d(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=d(n.paragraph).replace("hr",n.hr).replace("heading",n.heading).replace("lheading",n.lheading).replace("tag",n._tag).getRegex(),n.blockquote=d(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=m({},n),n.gfm=m({},n.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),n.gfm.paragraph=d(n.paragraph).replace("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|").getRegex(),n.tables=m({},n.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=m({},n.normal,{html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._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+|$)/}),i.rules=n,i.lex=function(e,t){return new i(t).lex(e);},i.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0);},i.prototype.token=function(e,t){var i,o,r,s,a,u,l,c,d,h,p,f,g,m,y,b;for(e=e.replace(/^ +$/gm,"");e;)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),r[0].length>1&&this.tokens.push({type:"space"})),r=this.rules.code.exec(e))e=e.substring(r[0].length),r=r[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?r:v(r,"\n")});else if(r=this.rules.fences.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"code",lang:r[2],text:r[3]||""});else if(r=this.rules.heading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:r[1].length,text:r[2]});else if(t&&(r=this.rules.nptable.exec(e))&&(u={type:"table",header:_(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===u.align.length){for(e=e.substring(r[0].length),p=0;p<u.align.length;p++)/^ *-+: *$/.test(u.align[p])?u.align[p]="right":/^ *:-+: *$/.test(u.align[p])?u.align[p]="center":/^ *:-+ *$/.test(u.align[p])?u.align[p]="left":u.align[p]=null;for(p=0;p<u.cells.length;p++)u.cells[p]=_(u.cells[p],u.header.length);this.tokens.push(u);}else if(r=this.rules.hr.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"hr"});else if(r=this.rules.blockquote.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"blockquote_start"}),r=r[0].replace(/^ *> ?/gm,""),this.token(r,t),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),l={type:"list_start",ordered:m=(s=r[2]).length>1,start:m?+s:"",loose:!1},this.tokens.push(l),c=[],i=!1,g=(r=r[0].match(this.rules.item)).length,p=0;p<g;p++)h=(u=r[p]).length,~(u=u.replace(/^ *([*+-]|\d+\.) +/,"")).indexOf("\n ")&&(h-=u.length,u=this.options.pedantic?u.replace(/^ {1,4}/gm,""):u.replace(new RegExp("^ {1,"+h+"}","gm"),"")),this.options.smartLists&&p!==g-1&&(s===(a=n.bullet.exec(r[p+1])[0])||s.length>1&&a.length>1||(e=r.slice(p+1).join("\n")+e,p=g-1)),o=i||/\n\n(?!\s*$)/.test(u),p!==g-1&&(i="\n"===u.charAt(u.length-1),o||(o=i)),o&&(l.loose=!0),b=void 0,(y=/^\[[ xX]\] /.test(u))&&(b=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:y,checked:b,loose:o},c.push(d),this.tokens.push(d),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(g=c.length,p=0;p<g;p++)c[p].loose=!0;this.tokens.push({type:"list_end"});}else if(r=this.rules.html.exec(e))e=e.substring(r[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===r[1]||"script"===r[1]||"style"===r[1]),text:r[0]});else if(t&&(r=this.rules.def.exec(e)))e=e.substring(r[0].length),r[3]&&(r[3]=r[3].substring(1,r[3].length-1)),f=r[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[f]||(this.tokens.links[f]={href:r[2],title:r[3]});else if(t&&(r=this.rules.table.exec(e))&&(u={type:"table",header:_(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/(?: *\| *)?\n$/,"").split("\n"):[]}).header.length===u.align.length){for(e=e.substring(r[0].length),p=0;p<u.align.length;p++)/^ *-+: *$/.test(u.align[p])?u.align[p]="right":/^ *:-+: *$/.test(u.align[p])?u.align[p]="center":/^ *:-+ *$/.test(u.align[p])?u.align[p]="left":u.align[p]=null;for(p=0;p<u.cells.length;p++)u.cells[p]=_(u.cells[p].replace(/^ *\| *| *\| *$/g,""),u.header.length);this.tokens.push(u);}else if(r=this.rules.lheading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:"="===r[2]?1:2,text:r[1]});else if(t&&(r=this.rules.paragraph.exec(e)))e=e.substring(r[0].length),this.tokens.push({type:"paragraph",text:"\n"===r[1].charAt(r[1].length-1)?r[1].slice(0,-1):r[1]});else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"text",text:r[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens;};var o={escape:/^\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,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_])_(?!_)|^_([^\s_][\s\S]*?[^\s])_(?!_)|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:g,text:/^[\s\S]+?(?=[\\<!\[`*]|\b_| {2,}\n|$)/};function r(e,t){if(this.options=t||y.defaults,this.links=e,this.rules=o.normal,this.renderer=this.options.renderer||new s(),this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=o.pedantic:this.options.gfm&&(this.options.breaks?this.rules=o.breaks:this.rules=o.gfm);}function s(e){this.options=e||y.defaults;}function a(){}function u(e){this.tokens=[],this.token=null,this.options=e||y.defaults,this.options.renderer=this.options.renderer||new s(),this.renderer=this.options.renderer,this.renderer.options=this.options;}function l(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");}function c(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"";});}function d(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this;},getRegex:function(){return new RegExp(e,t);}};}function h(e,t){return p[" "+e]||(/^[^:]+:\/*[^\/]*$/.test(e)?p[" "+e]=e+"/":p[" "+e]=v(e,"/",!0)),e=p[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^\/]*)[\s\S]*/,"$1")+t:e+t;}o._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._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])?)+(?![-_])/,o.autolink=d(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=d(o.tag).replace("comment",n._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/,o._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f\\]*\)|[^\s\x00-\x1f()\\])*?)/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=d(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=d(o.reflink).replace("label",o._label).getRegex(),o.normal=m({},o),o.pedantic=m({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=m({},o.normal,{escape:d(o.escape).replace("])","~|])").getRegex(),url:d(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",o._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:d(o.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),o.breaks=m({},o.gfm,{br:d(o.br).replace("{2,}","*").getRegex(),text:d(o.gfm.text).replace("{2,}","*").getRegex()}),r.rules=o,r.output=function(e,t,n){return new r(t,n).output(e);},r.prototype.output=function(e){for(var t,n,i,o,s,a,u="";e;)if(s=this.rules.escape.exec(e))e=e.substring(s[0].length),u+=s[1];else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),i="@"===s[2]?"mailto:"+(n=l(this.mangle(s[1]))):n=l(s[1]),u+=this.renderer.link(i,null,n);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(s[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(s[0])&&(this.inLink=!1),e=e.substring(s[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):l(s[0]):s[0];else if(s=this.rules.link.exec(e))e=e.substring(s[0].length),this.inLink=!0,i=s[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i))?(i=t[1],o=t[3]):o="":o=s[3]?s[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(s,{href:r.escapes(i),title:r.escapes(o)}),this.inLink=!1;else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){u+=s[0].charAt(0),e=s[0].substring(1)+e;continue;}this.inLink=!0,u+=this.outputLink(s,t),this.inLink=!1;}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),u+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),u+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),u+=this.renderer.codespan(l(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),u+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),u+=this.renderer.del(this.output(s[1]));else if(s=this.rules.text.exec(e))e=e.substring(s[0].length),u+=this.renderer.text(l(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));}else{do{a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0];}while(a!==s[0]);e=e.substring(s[0].length),"@"===s[2]?i="mailto:"+(n=l(s[0])):(n=l(s[0]),i="www."===s[1]?"http://"+n:n),u+=this.renderer.link(i,null,n);}return u;},r.escapes=function(e){return e?e.replace(r.rules._escapes,"$1"):e;},r.prototype.outputLink=function(e,t){var n=t.href,i=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,l(e[1]));},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e;},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,o=0;o<i;o++)t=e.charCodeAt(o),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n;},s.prototype.code=function(e,t,n){if(this.options.highlight){var i=this.options.highlight(e,t);null!=i&&i!==e&&(n=!0,e=i);}return t?'<pre><code class="'+this.options.langPrefix+l(t,!0)+'">'+(n?e:l(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:l(e,!0))+"</code></pre>";},s.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n";},s.prototype.html=function(e){return e;},s.prototype.heading=function(e,t,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n";},s.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n";},s.prototype.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n";},s.prototype.listitem=function(e){return"<li>"+e+"</li>\n";},s.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> ";},s.prototype.paragraph=function(e){return"<p>"+e+"</p>\n";},s.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n";},s.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n";},s.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n";},s.prototype.strong=function(e){return"<strong>"+e+"</strong>";},s.prototype.em=function(e){return"<em>"+e+"</em>";},s.prototype.codespan=function(e){return"<code>"+e+"</code>";},s.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>";},s.prototype.del=function(e){return"<del>"+e+"</del>";},s.prototype.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(c(e)).replace(/[^\w:]/g,"").toLowerCase();}catch(e){return n;}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return n;}this.options.baseUrl&&!f.test(e)&&(e=h(this.options.baseUrl,e));try{e=encodeURI(e).replace(/%25/g,"%");}catch(e){return n;}var o='<a href="'+l(e)+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>";},s.prototype.image=function(e,t,n){this.options.baseUrl&&!f.test(e)&&(e=h(this.options.baseUrl,e));var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">";},s.prototype.text=function(e){return e;},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e;},a.prototype.link=a.prototype.image=function(e,t,n){return""+n;},a.prototype.br=function(){return"";},u.parse=function(e,t){return new u(t).parse(e);},u.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,m({},this.options,{renderer:new a()})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t;},u.prototype.next=function(){return this.token=this.tokens.pop();},u.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0;},u.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e);},u.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,c(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,o="",r="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(o+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});r+=this.renderer.tablerow(n);}return this.renderer.table(o,r);case"blockquote_start":for(r="";"blockquote_end"!==this.next().type;)r+=this.tok();return this.renderer.blockquote(r);case"list_start":r="";for(var s=this.token.ordered,a=this.token.start;"list_end"!==this.next().type;)r+=this.tok();return this.renderer.list(r,s,a);case"list_item_start":r="";var u=this.token.loose;for(this.token.task&&(r+=this.renderer.checkbox(this.token.checked));"list_item_end"!==this.next().type;)r+=u||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(r);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());}};var p={},f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(){}function m(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e;}function _(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var i=!1,o=t;--o>=0&&"\\"===n[o];)i=!i;return i?"|":" |";}).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n;}function v(e,t,n){if(0===e.length)return"";for(var i=0;i<e.length;){var o=e.charAt(e.length-i-1);if(o!==t||n){if(o===t||!n)break;i++;}else i++;}return e.substr(0,e.length-i);}function y(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null);var o,r,s=(t=m({},y.defaults,t||{})).highlight,a=0;try{o=i.lex(e,t);}catch(e){return n(e);}r=o.length;var c=function(e){if(e)return t.highlight=s,n(e);var i;try{i=u.parse(o,t);}catch(t){e=t;}return t.highlight=s,e?n(e):n(null,i);};if(!s||s.length<3)return c();if(delete t.highlight,!r)return c();for(;a<o.length;a++)!function(e){"code"!==e.type?--r||c():s(e.text,e.lang,function(t,n){return t?c(t):null==n||n===e.text?--r||c():(e.text=n,e.escaped=!0,void(--r||c()));});}(o[a]);}else try{return t&&(t=m({},y.defaults,t)),u.parse(i.lex(e,t),t);}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||y.defaults).silent)return"<p>An error occurred:</p><pre>"+l(e.message+"",!0)+"</pre>";throw e;}}g.exec=g,y.options=y.setOptions=function(e){return m(y.defaults,e),y;},y.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new s(),sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1};},y.defaults=y.getDefaults(),y.Parser=u,y.parser=u.parse,y.Renderer=s,y.TextRenderer=a,y.Lexer=i,y.lexer=i.lex,y.InlineLexer=r,y.inlineLexer=r.output,y.parse=y,e.exports=y;}(this||"undefined"!=typeof window&&window);}).call(this,n("./node_modules/webpack/buildin/global.js"));},"./node_modules/monaco-editor/esm/vs/base/common/platform.js":function(e,t,n){"use strict";(function(e,i){n.d(t,"g",function(){return f;}),n.d(t,"d",function(){return g;}),n.d(t,"c",function(){return m;}),n.d(t,"e",function(){return _;}),n.d(t,"f",function(){return v;}),n.d(t,"b",function(){return y;}),n.d(t,"h",function(){return C;}),n.d(t,"a",function(){return w;});var o=!1,r=!1,s=!1,a=!1,u=!1,l=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||l){if("object"==typeof e){o="win32"===e.platform,r="darwin"===e.platform,s="linux"===e.platform,"en","en";var c=Object({NODE_ENV:production}).VSCODE_NLS_CONFIG;if(c)try{var d=JSON.parse(c),h=d.availableLanguages["*"];d.locale,h||"en",d._translationsConfigFile;}catch(e){}a=!0;}}else{var p=navigator.userAgent;o=p.indexOf("Windows")>=0,r=p.indexOf("Macintosh")>=0,s=p.indexOf("Linux")>=0,u=!0,navigator.language;}var f=o,g=r,m=s,_=a,v=u,y="object"==typeof self?self:"object"==typeof i?i:{},b=null;function C(t){return null===b&&(b=y.setImmediate?y.setImmediate.bind(y):void 0!==e&&"function"==typeof e.nextTick?e.nextTick.bind(e):y.setTimeout.bind(y)),b(t);}var w=r?2:o?1:3;}).call(this,n("./node_modules/process/browser.js"),n("./node_modules/webpack/buildin/global.js"));},"./node_modules/monaco-editor/esm/vs/base/common/winjs.base.js":function(e,t,n){"use strict";(function(e,i){var o;n.d(t,"a",function(){return r;}),n.d(t,"b",function(){return s;}),function(){var t=Object.create(null);t["WinJS/Core/_WinJS"]={};var n=function(e,n,i){var o={},r=!1,s=n.map(function(e){return"exports"===e?(r=!0,o):t[e];}),a=i.apply({},s);t[e]=r?o:a;};n("WinJS/Core/_Global",[],function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==e?e:{};}),n("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){var t=!!e.Windows;var n=null;return{hasWinRT:t,markSupportedForProcessing:function(e){return e.supportedForProcessing=!0,e;},_setImmediate:function(t){null===n&&(n=e.setImmediate?e.setImmediate.bind(e):void 0!==i&&"function"==typeof i.nextTick?i.nextTick.bind(i):e.setTimeout.bind(e)),n(t);}};}),n("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){return e.msWriteProfilerMark||function(){};}),n("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,t,n,i){function o(e,t,n){var i,o,r,s=Object.keys(t),a=Array.isArray(e);for(o=0,r=s.length;o<r;o++){var u=s[o],l=95!==u.charCodeAt(0),c=t[u];!c||"object"!=typeof c||void 0===c.value&&"function"!=typeof c.get&&"function"!=typeof c.set?l?a?e.forEach(function(e){e[u]=c;}):e[u]=c:(i=i||{})[u]={value:c,enumerable:l,configurable:!0,writable:!0}:(void 0===c.enumerable&&(c.enumerable=l),n&&c.setName&&"function"==typeof c.setName&&c.setName(n+"."+u),(i=i||{})[u]=c);}i&&(a?e.forEach(function(e){Object.defineProperties(e,i);}):Object.defineProperties(e,i));}return function(){var n=e;function r(n,i){var o=n||{};if(i){var r=i.split(".");o===t&&"WinJS"===r[0]&&(o=e,r.splice(0,1));for(var s=0,a=r.length;s<a;s++){var u=r[s];o[u]||Object.defineProperty(o,u,{value:{},writable:!1,enumerable:!0,configurable:!0}),o=o[u];}}return o;}function s(e,t,n){var i=r(e,t);return n&&o(i,n,t||"<ANONYMOUS>"),i;}n.Namespace||(n.Namespace=Object.create(Object.prototype));var a={uninitialized:1,working:2,initialized:3};Object.defineProperties(n.Namespace,{defineWithParent:{value:s,writable:!0,enumerable:!0,configurable:!0},define:{value:function(e,n){return s(t,e,n);},writable:!0,enumerable:!0,configurable:!0},_lazy:{value:function(e){var t,n,o=a.uninitialized;return{setName:function(e){t=e;},get:function(){switch(o){case a.initialized:return n;case a.uninitialized:o=a.working;try{i("WinJS.Namespace._lazy:"+t+",StartTM"),n=e();}finally{i("WinJS.Namespace._lazy:"+t+",StopTM"),o=a.uninitialized;}return e=null,o=a.initialized,n;case a.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal";}},set:function(e){switch(o){case a.working:throw"Illegal: reentrancy on initialization";default:o=a.initialized,n=e;}},enumerable:!0,configurable:!0};},writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:function(e,n,i){var s=[e],a=null;return n&&(a=r(t,n),s.push(a)),o(s,i,n||"<ANONYMOUS>"),a;},writable:!0,enumerable:!0,configurable:!0}});}(),function(){function t(e,t,i){return e=e||function(){},n.markSupportedForProcessing(e),t&&o(e.prototype,t),i&&o(e,i),e;}e.Namespace.define("WinJS.Class",{define:t,derive:function(e,i,r,s){if(e){i=i||function(){};var a=e.prototype;return i.prototype=Object.create(a),n.markSupportedForProcessing(i),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,configurable:!0,enumerable:!0}),r&&o(i.prototype,r),s&&o(i,s),i;}return t(i,r,s);},mix:function(e){var t,n;for(e=e||function(){},t=1,n=arguments.length;t<n;t++)o(e.prototype,arguments[t]);return e;}});}(),{Namespace:e.Namespace,Class:e.Class};}),n("WinJS/Core/_ErrorFromName",["WinJS/Core/_Base"],function(e){var t=e.Class.derive(Error,function(e,t){this.name=e,this.message=t||e;},{},{supportedForProcessing:!1});return e.Namespace.define("WinJS",{ErrorFromName:t}),t;}),n("WinJS/Core/_Events",["exports","WinJS/Core/_Base"],function(e,t){function n(e){var t="_on"+e+"state";return{get:function(){var e=this[t];return e&&e.userHandler;},set:function(n){var i=this[t];n?(i||(i={wrapper:function(e){return i.userHandler(e);},userHandler:n},Object.defineProperty(this,t,{value:i,enumerable:!1,writable:!0,configurable:!0}),this.addEventListener(e,i.wrapper,!1)),i.userHandler=n):i&&(this.removeEventListener(e,i.wrapper,!1),this[t]=null);},enumerable:!0};}var i=t.Class.define(function(e,t,n){this.detail=t,this.target=n,this.timeStamp=Date.now(),this.type=e;},{bubbles:{value:!1,writable:!1},cancelable:{value:!1,writable:!1},currentTarget:{get:function(){return this.target;}},defaultPrevented:{get:function(){return this._preventDefaultCalled;}},trusted:{value:!1,writable:!1},eventPhase:{value:0,writable:!1},target:null,timeStamp:null,type:null,preventDefault:function(){this._preventDefaultCalled=!0;},stopImmediatePropagation:function(){this._stopImmediatePropagationCalled=!0;},stopPropagation:function(){}},{supportedForProcessing:!1}),o={_listeners:null,addEventListener:function(e,t,n){n=n||!1,this._listeners=this._listeners||{};for(var i=this._listeners[e]=this._listeners[e]||[],o=0,r=i.length;o<r;o++){var s=i[o];if(s.useCapture===n&&s.listener===t)return;}i.push({listener:t,useCapture:n});},dispatchEvent:function(e,t){var n=this._listeners&&this._listeners[e];if(n){for(var o=new i(e,t,this),r=0,s=(n=n.slice(0,n.length)).length;r<s&&!o._stopImmediatePropagationCalled;r++)n[r].listener(o);return o.defaultPrevented||!1;}return!1;},removeEventListener:function(e,t,n){n=n||!1;var i=this._listeners&&this._listeners[e];if(i)for(var o=0,r=i.length;o<r;o++){var s=i[o];if(s.listener===t&&s.useCapture===n){i.splice(o,1),0===i.length&&delete this._listeners[e];break;}}}};t.Namespace._moduleDefine(e,"WinJS.Utilities",{_createEventProperty:n,createEventProperties:function(){for(var e={},t=0,i=arguments.length;t<i;t++){var o=arguments[t];e["on"+o]=n(o);}return e;},eventMixin:o});}),n("WinJS/Core/_Trace",["WinJS/Core/_Global"],function(e){function t(e){return e;}return{_traceAsyncOperationStarting:e.Debug&&e.Debug.msTraceAsyncOperationStarting&&e.Debug.msTraceAsyncOperationStarting.bind(e.Debug)||t,_traceAsyncOperationCompleted:e.Debug&&e.Debug.msTraceAsyncOperationCompleted&&e.Debug.msTraceAsyncOperationCompleted.bind(e.Debug)||t,_traceAsyncCallbackStarting:e.Debug&&e.Debug.msTraceAsyncCallbackStarting&&e.Debug.msTraceAsyncCallbackStarting.bind(e.Debug)||t,_traceAsyncCallbackCompleted:e.Debug&&e.Debug.msTraceAsyncCallbackCompleted&&e.Debug.msTraceAsyncCallbackCompleted.bind(e.Debug)||t};}),n("WinJS/Promise/_StateMachine",["WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_Base","WinJS/Core/_ErrorFromName","WinJS/Core/_Events","WinJS/Core/_Trace"],function(e,t,n,i,o,r){e.Debug&&(e.Debug.setNonUserCodeExceptions=!0);var s=new(n.Class.mix(n.Class.define(null,{},{supportedForProcessing:!1}),o.eventMixin))();s._listeners={};var a="error",u="Canceled",l=!1,c={promise:1,thenPromise:2,errorPromise:4,exceptionPromise:8,completePromise:16};c.all=c.promise|c.thenPromise|c.errorPromise|c.exceptionPromise|c.completePromise;var d,h,p,f,g,m,_,v,y,b,C=1;function w(){}d={name:"created",enter:function(e){e._setState(h);},cancel:w,done:w,then:w,_completed:w,_error:w,_notify:w,_progress:w,_setCompleteValue:w,_setErrorValue:w},h={name:"working",enter:w,cancel:function(e){e._setState(g);},done:k,then:V,_completed:x,_error:O,_notify:w,_progress:M,_setCompleteValue:B,_setErrorValue:W},p={name:"waiting",enter:function(e){var t=e._value;if(t instanceof U&&t._state!==b&&t._state!==v)P(t,{promise:e});else{var n=function(i){t._errorId?e._chainedError(i,t):(A(e,i,L,t,n),e._error(i));};n.handlesOnError=!0,t.then(e._completed.bind(e),n,e._progress.bind(e));}},cancel:function(e){e._setState(f);},done:k,then:V,_completed:x,_error:O,_notify:w,_progress:M,_setCompleteValue:B,_setErrorValue:W},f={name:"waiting_canceled",enter:function(e){e._setState(m);var t=e._value;t.cancel&&t.cancel();},cancel:w,done:k,then:V,_completed:x,_error:O,_notify:w,_progress:M,_setCompleteValue:B,_setErrorValue:W},g={name:"canceled",enter:function(e){e._setState(m),e._cancelAction();},cancel:w,done:k,then:V,_completed:x,_error:O,_notify:w,_progress:M,_setCompleteValue:B,_setErrorValue:W},m={name:"canceling",enter:function(e){var t=new Error(u);t.name=t.message,e._value=t,e._setState(y);},cancel:w,done:w,then:w,_completed:w,_error:w,_notify:w,_progress:w,_setCompleteValue:w,_setErrorValue:w},_={name:"complete_notify",enter:function(e){if(e.done=K.prototype.done,e.then=K.prototype.then,e._listeners)for(var t,n=[e];n.length;)(t=n.shift())._state._notify(t,n);e._setState(v);},cancel:w,done:null,then:null,_completed:w,_error:w,_notify:D,_progress:w,_setCompleteValue:w,_setErrorValue:w},v={name:"success",enter:function(e){e.done=K.prototype.done,e.then=K.prototype.then,e._cleanupAction();},cancel:w,done:null,then:null,_completed:w,_error:w,_notify:D,_progress:w,_setCompleteValue:w,_setErrorValue:w},y={name:"error_notify",enter:function(e){if(e.done=j.prototype.done,e.then=j.prototype.then,e._listeners)for(var t,n=[e];n.length;)(t=n.shift())._state._notify(t,n);e._setState(b);},cancel:w,done:null,then:null,_completed:w,_error:w,_notify:R,_progress:w,_setCompleteValue:w,_setErrorValue:w},b={name:"error",enter:function(e){e.done=j.prototype.done,e.then=j.prototype.then,e._cleanupAction();},cancel:w,done:null,then:null,_completed:w,_error:w,_notify:R,_progress:w,_setCompleteValue:w,_setErrorValue:w};var S=n.Class.define(null,{_listeners:null,_nextState:null,_state:null,_value:null,cancel:function(){this._state.cancel(this),this._run();},done:function(e,t,n){this._state.done(this,e,t,n);},then:function e(t,n,i){if(this.then===e)return this._state.then(this,t,n,i);this.then(t,n,i);},_chainedError:function(e,t){var n=this._state._error(this,e,T,t);return this._run(),n;},_completed:function(e){var t=this._state._completed(this,e);return this._run(),t;},_error:function(e){var t=this._state._error(this,e,I);return this._run(),t;},_progress:function(e){this._state._progress(this,e);},_setState:function(e){this._nextState=e;},_setCompleteValue:function(e){this._state._setCompleteValue(this,e),this._run();},_setChainedErrorValue:function(e,t){var n=this._state._setErrorValue(this,e,T,t);return this._run(),n;},_setExceptionValue:function(e){var t=this._state._setErrorValue(this,e,N);return this._run(),t;},_run:function(){for(;this._nextState;)this._state=this._nextState,this._nextState=null,this._state.enter(this);}},{supportedForProcessing:!1});function x(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?p:_,e._value=t,e._setState(n);}function E(e,t,n,i,o,r){return{exception:e,error:t,promise:n,handler:r,id:i,parent:o};}function L(e,t,n,i){var o=n._isException;return E(o?t:null,o?null:t,e,n._errorId,n,i);}function T(e,t,n){var i=n._isException,o=n._errorId;return F(e,o,i),E(i?t:null,i?null:t,e,o,n);}function I(e,t){var n=++C;return F(e,n),E(null,t,e,n);}function N(e,t){var n=++C;return F(e,n,!0),E(t,null,e,n);}function k(e,t,n,i){P(e,{c:t,e:n,p:i,asyncOpID:r._traceAsyncOperationStarting("WinJS.Promise.done")});}function O(e,t,n,i){e._value=t,A(e,t,n,i),e._setState(y);}function D(t,n){var i,o,s=t._value,a=t._listeners;if(a)for(t._listeners=null,i=0,o=Array.isArray(a)?a.length:1;i<o;i++){var u=1===o?a:a[i],l=u.c,c=u.promise;if(r._traceAsyncOperationCompleted(u.asyncOpID,e.Debug&&e.Debug.MS_ASYNC_OP_STATUS_SUCCESS),c){r._traceAsyncCallbackStarting(u.asyncOpID);try{c._setCompleteValue(l?l(s):s);}catch(e){c._setExceptionValue(e);}finally{r._traceAsyncCallbackCompleted();}c._state!==p&&c._listeners&&n.push(c);}else K.prototype.done.call(t,l);}}function R(t,n){var i,o,s=t._value,a=t._listeners;if(a)for(t._listeners=null,i=0,o=Array.isArray(a)?a.length:1;i<o;i++){var l=1===o?a:a[i],c=l.e,d=l.promise,h=e.Debug&&(s&&s.name===u?e.Debug.MS_ASYNC_OP_STATUS_CANCELED:e.Debug.MS_ASYNC_OP_STATUS_ERROR);if(r._traceAsyncOperationCompleted(l.asyncOpID,h),d){var f=!1;try{c?(r._traceAsyncCallbackStarting(l.asyncOpID),f=!0,c.handlesOnError||A(d,s,L,t,c),d._setCompleteValue(c(s))):d._setChainedErrorValue(s,t);}catch(e){d._setExceptionValue(e);}finally{f&&r._traceAsyncCallbackCompleted();}d._state!==p&&d._listeners&&n.push(d);}else j.prototype.done.call(t,null,c);}}function A(e,t,n,i,o){if(s._listeners[a]){if(t instanceof Error&&t.message===u)return;s.dispatchEvent(a,n(e,t,i,o));}}function M(e,t){var n,i,o=e._listeners;if(o)for(n=0,i=Array.isArray(o)?o.length:1;n<i;n++){var r=1===i?o:o[n],s=r.p;if(s)try{s(t);}catch(e){}r.c||r.e||!r.promise||r.promise._progress(t);}}function P(e,t){var n=e._listeners;n?(n=Array.isArray(n)?n:[n]).push(t):n=t,e._listeners=n;}function F(e,t,n){e._isException=n||!1,e._errorId=t;}function W(e,t,n,i){e._value=t,A(e,t,n,i),e._setState(b);}function B(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?p:v,e._value=t,e._setState(n);}function V(e,t,n,i){var o=new U(e);return P(e,{promise:o,c:t,e:n,p:i,asyncOpID:r._traceAsyncOperationStarting("WinJS.Promise.then")}),o;}var H,U=n.Class.derive(S,function(e){l&&(!0===l||l&c.thenPromise)&&(this._stack=q._getStack()),this._creator=e,this._setState(d),this._run();},{_creator:null,_cancelAction:function(){this._creator&&this._creator.cancel();},_cleanupAction:function(){this._creator=null;}},{supportedForProcessing:!1}),j=n.Class.define(function(e){l&&(!0===l||l&c.errorPromise)&&(this._stack=q._getStack()),this._value=e,A(this,e,I);},{cancel:function(){},done:function(e,t){var n=this._value;if(t)try{t.handlesOnError||A(null,n,L,this,t);var i=t(n);return void(i&&"object"==typeof i&&"function"==typeof i.done&&i.done());}catch(e){n=e;}n instanceof Error&&n.message===u||q._doneHandler(n);},then:function(e,t){if(!t)return this;var n,i=this._value;try{t.handlesOnError||A(null,i,L,this,t),n=new K(t(i));}catch(e){n=e===i?this:new z(e);}return n;}},{supportedForProcessing:!1}),z=n.Class.derive(j,function(e){l&&(!0===l||l&c.exceptionPromise)&&(this._stack=q._getStack()),this._value=e,A(this,e,N);},{},{supportedForProcessing:!1}),K=n.Class.define(function(e){if(l&&(!0===l||l&c.completePromise)&&(this._stack=q._getStack()),e&&"object"==typeof e&&"function"==typeof e.then){var t=new U(null);return t._setCompleteValue(e),t;}this._value=e;},{cancel:function(){},done:function(e){if(e)try{var t=e(this._value);t&&"object"==typeof t&&"function"==typeof t.done&&t.done();}catch(e){q._doneHandler(e);}},then:function(e){try{var t=e?e(this._value):this._value;return t===this._value?this:new K(t);}catch(e){return new z(e);}}},{supportedForProcessing:!1});var q=n.Class.derive(S,function(e,t){l&&(!0===l||l&c.promise)&&(this._stack=q._getStack()),this._oncancel=t,this._setState(d),this._run();try{e(this._completed.bind(this),this._error.bind(this),this._progress.bind(this));}catch(e){this._setExceptionValue(e);}},{_oncancel:null,_cancelAction:function(){try{if(!this._oncancel)throw new Error("Promise did not implement oncancel");this._oncancel();}catch(e){e.message,e.stack;s.dispatchEvent("error",e);}},_cleanupAction:function(){this._oncancel=null;}},{addEventListener:function(e,t,n){s.addEventListener(e,t,n);},any:function(e){return new q(function(t,n){var i=Object.keys(e);0===i.length&&t();var o=0;i.forEach(function(r){q.as(e[r]).then(function(){t({key:r,value:e[r]});},function(s){s instanceof Error&&s.name===u?++o===i.length&&t(q.cancel):n({key:r,value:e[r]});});});},function(){Object.keys(e).forEach(function(t){var n=q.as(e[t]);"function"==typeof n.cancel&&n.cancel();});});},as:function(e){return e&&"object"==typeof e&&"function"==typeof e.then?e:new K(e);},cancel:{get:function(){return H=H||new j(new i(u));}},dispatchEvent:function(e,t){return s.dispatchEvent(e,t);},is:function(e){return e&&"object"==typeof e&&"function"==typeof e.then;},join:function(e){return new q(function(t,n,i){var o=Object.keys(e),r=Array.isArray(e)?[]:{},s=Array.isArray(e)?[]:{},a=0,l=o.length,c=function(e){if(0==--l){var a=Object.keys(r).length;if(0===a)t(s);else{var c=0;o.forEach(function(e){var t=r[e];t instanceof Error&&t.name===u&&c++;}),c===a?t(q.cancel):n(r);}}else i({Key:e,Done:!0});};o.forEach(function(t){var n=e[t];void 0===n?a++:q.then(n,function(e){s[t]=e,c(t);},function(e){r[t]=e,c(t);});}),0!==(l-=a)||t(s);},function(){Object.keys(e).forEach(function(t){var n=q.as(e[t]);"function"==typeof n.cancel&&n.cancel();});});},removeEventListener:function(e,t,n){s.removeEventListener(e,t,n);},supportedForProcessing:!1,then:function(e,t,n,i){return q.as(e).then(t,n,i);},thenEach:function(e,t,n,i){var o=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(r){o[r]=q.as(e[r]).then(t,n,i);}),q.join(o);},timeout:function(n,i){var o,r,s=(o=n,new q(function(n){o?r=e.setTimeout(n,o):t._setImmediate(n);},function(){r&&e.clearTimeout(r);}));return i?function(e,t){var n=function(){e.cancel();};return e.then(function(){t.cancel();}),t.then(n,n),t;}(s,i):s;},wrap:function(e){return new K(e);},wrapError:function(e){return new j(e);},_veryExpensiveTagWithStack:{get:function(){return l;},set:function(e){l=e;}},_veryExpensiveTagWithStack_tag:c,_getStack:function(){if(e.Debug&&e.Debug.debuggerEnabled)try{throw new Error();}catch(e){return e.stack;}},_cancelBlocker:function(e,t){if(!q.is(e))return q.wrap(e);var n,i,o=new q(function(e,t){n=e,i=t;},function(){n=null,i=null,t&&t();});return e.then(function(e){n&&n(e);},function(e){i&&i(e);}),o;}});return Object.defineProperties(q,o.createEventProperties(a)),q._doneHandler=function(e){t._setImmediate(function(){throw e;});},{PromiseStateMachine:S,Promise:q,state_created:d};}),n("WinJS/Promise",["WinJS/Core/_Base","WinJS/Promise/_StateMachine"],function(e,t){return e.Namespace.define("WinJS",{Promise:t.Promise}),t.Promise;}),(o=t["WinJS/Core/_WinJS"]).TPromise=o.Promise,o.PPromise=o.Promise;}();var r=o.Promise,s=o.TPromise;o.PPromise;}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"));},"./node_modules/monaco-editor/esm/vs/base/parts/quickopen/browser/quickopen.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/base/parts/tree/browser/tree.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/basic-languages/apex/apex.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return r;});var i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},o=[];["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"].forEach(function(e){o.push(e),o.push(e.toUpperCase()),o.push(function(e){return e.charAt(0).toUpperCase()+e.substr(1);}(e));});var r={defaultToken:"",tokenPostfix:".apex",keywords:o,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/azcli/azcli.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"#"}},o={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/bat/bat.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/clojure/clojure.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:";;"},brackets:[["(",")"],["[","]"],["{","}"]],autoClosingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"{",close:"}"},{open:'"',close:'"'}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"{",close:"}"},{open:'"',close:'"'}]},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],constants:["true","false","nil"],symbolCharacter:/[!#'*+\-.\/:<=>?_\w\xa1-\uffff]/,numbers:/[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?/,characters:/\\(?:backspace|formfeed|newline|return|space|tab|x[0-9A-Fa-f]{4}|u[0-9A-Fa-f]{4}|o[0-7]{3}|@symbolCharacter|[\\"()\[\]{}])/,tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/:@symbolCharacter+/,"constant"],[/@symbolCharacter+/,{cases:{"@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/;.*$/,"comment"],[/\(comment/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^)]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+/,"string"],[/@characters/,"string"],[/"/,"string","@pop"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=><!~?&%|+\-*\/\^\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@[a-zA-Z_]\w*/,"variable.predefined"],[/[a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/###/,"comment","@comment"],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\()(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\=)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\[)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\!)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\&)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\|)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\?)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\{)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\;)(\s*)(@regEx)/,["","","regexp"]],[/}/,{cases:{"$S2==interpolatedstring":{token:"string",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/###/,"comment","@pop"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},o={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,encoding:/u|u8|U|L/,tokenizer:{root:[[/@encoding?R\"(?:([^ ()\\\t]*))\(/,{token:"string.raw.begin",next:"@raw.$1"}],[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*#\s*\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/(.*)(\))(?:([^ ()\\\t]*))(\")/,{cases:{"$3==$S2":["string.raw","string.raw.end","string.raw.end",{token:"string.raw.end",next:"@pop"}],"@default":["string.raw","string.raw","string.raw","string.raw"]}}],[/.*/,"string.raw"]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/csharp/csharp.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","property","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@keywords":{token:"keyword.$0",next:"@qualified"},"@default":{token:"identifier",next:"@qualified"}}}],{include:"@whitespace"},[/}/,{cases:{"$S2==interpolatedstring":{token:"string.quote",next:"@pop"},"$S2==litinterpstring":{token:"string.quote",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/csp/csp.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={brackets:[],autoClosingPairs:[],surroundingPairs:[]},o={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/child-src/,"string.quote"],[/connect-src/,"string.quote"],[/default-src/,"string.quote"],[/font-src/,"string.quote"],[/frame-src/,"string.quote"],[/img-src/,"string.quote"],[/manifest-src/,"string.quote"],[/media-src/,"string.quote"],[/object-src/,"string.quote"],[/script-src/,"string.quote"],[/style-src/,"string.quote"],[/worker-src/,"string.quote"],[/base-uri/,"string.quote"],[/plugin-types/,"string.quote"],[/sandbox/,"string.quote"],[/disown-opener/,"string.quote"],[/form-action/,"string.quote"],[/frame-ancestors/,"string.quote"],[/report-uri/,"string.quote"],[/report-to/,"string.quote"],[/upgrade-insecure-requests/,"string.quote"],[/block-all-mixed-content/,"string.quote"],[/require-sri-for/,"string.quote"],[/reflected-xss/,"string.quote"],[/referrer/,"string.quote"],[/policy-uri/,"string.quote"],[/'self'/,"string.quote"],[/'unsafe-inline'/,"string.quote"],[/'unsafe-eval'/,"string.quote"],[/'strict-dynamic'/,"string.quote"],[/'unsafe-hashed-attributes'/,"string.quote"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/css/css.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},o={defaultToken:"",tokenPostfix:".css",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*\/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".dockerfile",instructions:/FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT/,instructionAfter:/ONBUILD/,variableAfter:/ENV/,variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(@instructionAfter)(\s+)/,["keyword",{token:"",next:"@instructions"}]],["","keyword","@instructions"]],instructions:[[/(@variableAfter)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(@instructions)/,"keyword","@arguments"]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/fsharp/fsharp.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},o={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=><!~?:&|+\-*\^%;\.,\/]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/[uU]?[yslnLI]?/,floatsuffix:/[fFmM]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[<.*>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/go/go.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/handlebars/handlebars.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return r;}),n.d(t,"language",function(){return s;});var i="undefined"==typeof monaco?self.monaco:monaco,o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+o.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+o.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:i.languages.IndentAction.Indent}}]},s={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/[#\/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/html/html.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return r;}),n.d(t,"language",function(){return s;});var i="undefined"==typeof monaco?self.monaco:monaco,o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+o.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+o.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},s={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/ini/ini.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/java/java.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},o={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return o;}),n.d(t,"language",function(){return r;});var i=n("./node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.js"),o=("undefined"==typeof monaco?self.monaco:monaco,i.conf),r={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:i.language.operators,symbols:i.language.symbols,escapes:i.language.escapes,digits:i.language.digits,octaldigits:i.language.octaldigits,binarydigits:i.language.binarydigits,hexdigits:i.language.hexdigits,regexpctl:i.language.regexpctl,regexpesc:i.language.regexpesc,tokenizer:i.language.tokenizer};},"./node_modules/monaco-editor/esm/vs/basic-languages/less/less.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},o={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/lua/lua.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/markdown/markdown.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},o={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+)\s*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"variable.source",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/msdax/msdax.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]}]},o={defaultToken:"",tokenPostfix:".msdax",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["VAR","RETURN","NOT","EVALUATE","DATATABLE","ORDER","BY","START","AT","DEFINE","MEASURE","ASC","DESC","IN","BOOLEAN","DOUBLE","INTEGER","DATETIME","CURRENCY","STRING"],functions:["CLOSINGBALANCEMONTH","CLOSINGBALANCEQUARTER","CLOSINGBALANCEYEAR","DATEADD","DATESBETWEEN","DATESINPERIOD","DATESMTD","DATESQTD","DATESYTD","ENDOFMONTH","ENDOFQUARTER","ENDOFYEAR","FIRSTDATE","FIRSTNONBLANK","LASTDATE","LASTNONBLANK","NEXTDAY","NEXTMONTH","NEXTQUARTER","NEXTYEAR","OPENINGBALANCEMONTH","OPENINGBALANCEQUARTER","OPENINGBALANCEYEAR","PARALLELPERIOD","PREVIOUSDAY","PREVIOUSMONTH","PREVIOUSQUARTER","PREVIOUSYEAR","SAMEPERIODLASTYEAR","STARTOFMONTH","STARTOFQUARTER","STARTOFYEAR","TOTALMTD","TOTALQTD","TOTALYTD","ADDCOLUMNS","ADDMISSINGITEMS","ALL","ALLEXCEPT","ALLNOBLANKROW","ALLSELECTED","CALCULATE","CALCULATETABLE","CALENDAR","CALENDARAUTO","CROSSFILTER","CROSSJOIN","CURRENTGROUP","DATATABLE","DETAILROWS","DISTINCT","EARLIER","EARLIEST","EXCEPT","FILTER","FILTERS","GENERATE","GENERATEALL","GROUPBY","IGNORE","INTERSECT","ISONORAFTER","KEEPFILTERS","LOOKUPVALUE","NATURALINNERJOIN","NATURALLEFTOUTERJOIN","RELATED","RELATEDTABLE","ROLLUP","ROLLUPADDISSUBTOTAL","ROLLUPGROUP","ROLLUPISSUBTOTAL","ROW","SAMPLE","SELECTCOLUMNS","SUBSTITUTEWITHINDEX","SUMMARIZE","SUMMARIZECOLUMNS","TOPN","TREATAS","UNION","USERELATIONSHIP","VALUES","SUM","SUMX","PATH","PATHCONTAINS","PATHITEM","PATHITEMREVERSE","PATHLENGTH","AVERAGE","AVERAGEA","AVERAGEX","COUNT","COUNTA","COUNTAX","COUNTBLANK","COUNTROWS","COUNTX","DISTINCTCOUNT","DIVIDE","GEOMEAN","GEOMEANX","MAX","MAXA","MAXX","MEDIAN","MEDIANX","MIN","MINA","MINX","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILEX.EXC","PERCENTILEX.INC","PRODUCT","PRODUCTX","RANK.EQ","RANKX","STDEV.P","STDEV.S","STDEVX.P","STDEVX.S","VAR.P","VAR.S","VARX.P","VARX.S","XIRR","XNPV","DATE","DATEDIFF","DATEVALUE","DAY","EDATE","EOMONTH","HOUR","MINUTE","MONTH","NOW","SECOND","TIME","TIMEVALUE","TODAY","WEEKDAY","WEEKNUM","YEAR","YEARFRAC","CONTAINS","CONTAINSROW","CUSTOMDATA","ERROR","HASONEFILTER","HASONEVALUE","ISBLANK","ISCROSSFILTERED","ISEMPTY","ISERROR","ISEVEN","ISFILTERED","ISLOGICAL","ISNONTEXT","ISNUMBER","ISODD","ISSUBTOTAL","ISTEXT","USERNAME","USERPRINCIPALNAME","AND","FALSE","IF","IFERROR","NOT","OR","SWITCH","TRUE","ABS","ACOS","ACOSH","ACOT","ACOTH","ASIN","ASINH","ATAN","ATANH","BETA.DIST","BETA.INV","CEILING","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","COMBIN","COMBINA","CONFIDENCE.NORM","CONFIDENCE.T","COS","COSH","COT","COTH","CURRENCY","DEGREES","EVEN","EXP","EXPON.DIST","FACT","FLOOR","GCD","INT","ISO.CEILING","LCM","LN","LOG","LOG10","MOD","MROUND","ODD","PERMUT","PI","POISSON.DIST","POWER","QUOTIENT","RADIANS","RAND","RANDBETWEEN","ROUND","ROUNDDOWN","ROUNDUP","SIGN","SIN","SINH","SQRT","SQRTPI","TAN","TANH","TRUNC","BLANK","CONCATENATE","CONCATENATEX","EXACT","FIND","FIXED","FORMAT","LEFT","LEN","LOWER","MID","REPLACE","REPT","RIGHT","SEARCH","SUBSTITUTE","TRIM","UNICHAR","UNICODE","UPPER","VALUE"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},[/[;,.]/,"delimiter"],[/[({})]/,"@brackets"],[/[a-z_][a-zA-Z0-9_]*/,{cases:{"@keywords":"keyword","@functions":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*\/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/\/\/+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*\/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N"/,{token:"string",next:"@string"}],[/"/,{token:"string",next:"@string"}]],string:[[/[^"]+/,"string"],[/""/,"string"],[/"/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/'/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^']+/,"identifier"],[/''/,"identifier"],[/'/,{token:"identifier.quote",next:"@pop"}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/mysql/mysql.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ACCESSIBLE","ACCOUNT","ACTION","ADD","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCHANGE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GLOBAL","GRANT","GRANTS","GROUP","GROUP_REPLICATION","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INTO","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","ISOLATION","ISSUER","ITERATE","JOIN","JSON","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_RETRY_COUNT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_VERSION","MASTER_USER","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NEVER","NEW","NEXT","NO","NODEGROUP","NONBLOCKING","NONE","NO_WAIT","NO_WRITE_TO_BINLOG","NUMBER","NUMERIC","NVARCHAR","OFFSET","OLD_PASSWORD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OPTIONS","OR","ORDER","OUT","OUTER","OUTFILE","OWNER","PACK_KEYS","PAGE","PARSER","PARSE_GCOL_EXPR","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PROCEDURE","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANGE","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","REDOFILE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","RESET","RESIGNAL","RESTORE","RESTRICT","RESUME","RETURN","RETURNED_SQLSTATE","RETURNS","REVERSE","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VIEW","VIRTUAL","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","Area","AsBinary","AsWKB","ASCII","ASIN","AsText","AsWKT","ASYMMETRIC_DECRYPT","ASYMMETRIC_DERIVE","ASYMMETRIC_ENCRYPT","ASYMMETRIC_SIGN","ASYMMETRIC_VERIFY","ATAN","ATAN2","ATAN","AVG","BENCHMARK","BIN","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","Buffer","CAST","CEIL","CEILING","Centroid","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","Contains","CONV","CONVERT","CONVERT_TZ","ConvexHull","COS","COT","COUNT","CRC32","CREATE_ASYMMETRIC_PRIV_KEY","CREATE_ASYMMETRIC_PUB_KEY","CREATE_DH_PARAMETERS","CREATE_DIGEST","Crosses","CURDATE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DES_DECRYPT","DES_ENCRYPT","Dimension","Disjoint","Distance","ELT","ENCODE","ENCRYPT","EndPoint","Envelope","Equals","EXP","EXPORT_SET","ExteriorRing","EXTRACT","ExtractValue","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GeomCollFromText","GeometryCollectionFromText","GeomCollFromWKB","GeometryCollectionFromWKB","GeometryCollection","GeometryN","GeometryType","GeomFromText","GeometryFromText","GeomFromWKB","GeometryFromWKB","GET_FORMAT","GET_LOCK","GLength","GREATEST","GROUP_CONCAT","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","InteriorRingN","Intersects","INTERVAL","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","IsClosed","IsEmpty","ISNULL","IsSimple","JSON_APPEND","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SEARCH","JSON_SET","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","LAST_INSERT_ID","LCASE","LEAST","LEFT","LENGTH","LineFromText","LineStringFromText","LineFromWKB","LineStringFromWKB","LineString","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MAX","MBRContains","MBRCoveredBy","MBRCovers","MBRDisjoint","MBREqual","MBREquals","MBRIntersects","MBROverlaps","MBRTouches","MBRWithin","MD5","MICROSECOND","MID","MIN","MINUTE","MLineFromText","MultiLineStringFromText","MLineFromWKB","MultiLineStringFromWKB","MOD","MONTH","MONTHNAME","MPointFromText","MultiPointFromText","MPointFromWKB","MultiPointFromWKB","MPolyFromText","MultiPolygonFromText","MPolyFromWKB","MultiPolygonFromWKB","MultiLineString","MultiPoint","MultiPolygon","NAME_CONST","NOT IN","NOW","NULLIF","NumGeometries","NumInteriorRings","NumPoints","OCT","OCTET_LENGTH","OLD_PASSWORD","ORD","Overlaps","PASSWORD","PERIOD_ADD","PERIOD_DIFF","PI","Point","PointFromText","PointFromWKB","PointN","PolyFromText","PolygonFromText","PolyFromWKB","PolygonFromWKB","Polygon","POSITION","POW","POWER","PROCEDURE ANALYSE","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","ROUND","ROW_COUNT","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","SRID","ST_Area","ST_AsBinary","ST_AsWKB","ST_AsGeoJSON","ST_AsText","ST_AsWKT","ST_Buffer","ST_Buffer_Strategy","ST_Centroid","ST_Contains","ST_ConvexHull","ST_Crosses","ST_Difference","ST_Dimension","ST_Disjoint","ST_Distance","ST_Distance_Sphere","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_GeoHash","ST_GeomCollFromText","ST_GeometryCollectionFromText","ST_GeomCollFromTxt","ST_GeomCollFromWKB","ST_GeometryCollectionFromWKB","ST_GeometryN","ST_GeometryType","ST_GeomFromGeoJSON","ST_GeomFromText","ST_GeometryFromText","ST_GeomFromWKB","ST_GeometryFromWKB","ST_InteriorRingN","ST_Intersection","ST_Intersects","ST_IsClosed","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_LatFromGeoHash","ST_Length","ST_LineFromText","ST_LineStringFromText","ST_LineFromWKB","ST_LineStringFromWKB","ST_LongFromGeoHash","ST_MakeEnvelope","ST_MLineFromText","ST_MultiLineStringFromText","ST_MLineFromWKB","ST_MultiLineStringFromWKB","ST_MPointFromText","ST_MultiPointFromText","ST_MPointFromWKB","ST_MultiPointFromWKB","ST_MPolyFromText","ST_MultiPolygonFromText","ST_MPolyFromWKB","ST_MultiPolygonFromWKB","ST_NumGeometries","ST_NumInteriorRing","ST_NumInteriorRings","ST_NumPoints","ST_Overlaps","ST_PointFromGeoHash","ST_PointFromText","ST_PointFromWKB","ST_PointN","ST_PolyFromText","ST_PolygonFromText","ST_PolyFromWKB","ST_PolygonFromWKB","ST_Simplify","ST_SRID","ST_StartPoint","ST_SymDifference","ST_Touches","ST_Union","ST_Validate","ST_Within","ST_X","ST_Y","StartPoint","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","Touches","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UpdateXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","Within","X","Y","YEAR","YEARWEEK"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*\/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/#+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*\/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],complexIdentifiers:[[/`/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^`]+/,"identifier"],[/``/,"identifier"],[/`/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/objective-c/objective-c.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".objective-c",keywords:["#import","#include","#define","#else","#endif","#if","#ifdef","#ifndef","#ident","#undef","@class","@defs","@dynamic","@encode","@end","@implementation","@interface","@package","@private","@protected","@property","@protocol","@public","@selector","@synthesize","__declspec","assign","auto","BOOL","break","bycopy","byref","case","char","Class","const","copy","continue","default","do","double","else","enum","extern","FALSE","false","float","for","goto","if","in","int","id","inout","IMP","long","nil","nonatomic","NULL","oneway","out","private","public","protected","readwrite","readonly","register","return","SEL","self","short","signed","sizeof","static","struct","super","switch","typedef","TRUE","true","union","unsigned","volatile","void","while"],decpart:/\d(_?\d)*/,decimal:/0|@decpart/,tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()<>]/,"@brackets"],[/[a-zA-Z@#]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[<>=\\+\\-\\*\\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/,"number.hex"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,{cases:{"(\\d)*":"number",$0:"number.float"}}]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/perl/perl.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},o={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*</,{token:"string.delim",switchTo:"@qstring.<.>"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*</,{token:"regexp.delim",switchTo:"@qregexp.<.>"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*</,{token:"string.delim",switchTo:"@qqstring.<.>"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/pgsql/pgsql.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["A","ABORT","ABS","ABSENT","ABSOLUTE","ACCESS","ACCORDING","ACTION","ADA","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALLOCATE","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARE","ARRAY","ARRAY_AGG","ARRAY_MAX_CARDINALITY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTRIBUTE","ATTRIBUTES","AUTHORIZATION","AVG","BACKWARD","BASE64","BEFORE","BEGIN","BEGIN_FRAME","BEGIN_PARTITION","BERNOULLI","BETWEEN","BIGINT","BINARY","BIT","BIT_LENGTH","BLOB","BLOCKED","BOM","BOOLEAN","BOTH","BREADTH","BY","C","CACHE","CALL","CALLED","CARDINALITY","CASCADE","CASCADED","CASE","CAST","CATALOG","CATALOG_NAME","CEIL","CEILING","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHARACTERS","CHARACTER_LENGTH","CHARACTER_SET_CATALOG","CHARACTER_SET_NAME","CHARACTER_SET_SCHEMA","CHAR_LENGTH","CHECK","CHECKPOINT","CLASS","CLASS_ORIGIN","CLOB","CLOSE","CLUSTER","COALESCE","COBOL","COLLATE","COLLATION","COLLATION_CATALOG","COLLATION_NAME","COLLATION_SCHEMA","COLLECT","COLUMN","COLUMNS","COLUMN_NAME","COMMAND_FUNCTION","COMMAND_FUNCTION_CODE","COMMENT","COMMENTS","COMMIT","COMMITTED","CONCURRENTLY","CONDITION","CONDITION_NUMBER","CONFIGURATION","CONFLICT","CONNECT","CONNECTION","CONNECTION_NAME","CONSTRAINT","CONSTRAINTS","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONSTRUCTOR","CONTAINS","CONTENT","CONTINUE","CONTROL","CONVERSION","CONVERT","COPY","CORR","CORRESPONDING","COST","COUNT","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CSV","CUBE","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_ROW","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATALINK","DATE","DATETIME_INTERVAL_CODE","DATETIME_INTERVAL_PRECISION","DAY","DB","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DEGREE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DEPENDS","DEPTH","DEREF","DERIVED","DESC","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DICTIONARY","DISABLE","DISCARD","DISCONNECT","DISPATCH","DISTINCT","DLNEWCOPY","DLPREVIOUSCOPY","DLURLCOMPLETE","DLURLCOMPLETEONLY","DLURLCOMPLETEWRITE","DLURLPATH","DLURLPATHONLY","DLURLPATHWRITE","DLURLSCHEME","DLURLSERVER","DLVALUE","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","DYNAMIC","DYNAMIC_FUNCTION","DYNAMIC_FUNCTION_CODE","EACH","ELEMENT","ELSE","EMPTY","ENABLE","ENCODING","ENCRYPTED","END","END-EXEC","END_FRAME","END_PARTITION","ENFORCED","ENUM","EQUALS","ESCAPE","EVENT","EVERY","EXCEPT","EXCEPTION","EXCLUDE","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXP","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILE","FILTER","FINAL","FIRST","FIRST_VALUE","FLAG","FLOAT","FLOOR","FOLLOWING","FOR","FORCE","FOREIGN","FORTRAN","FORWARD","FOUND","FRAME_ROW","FREE","FREEZE","FROM","FS","FULL","FUNCTION","FUNCTIONS","FUSION","G","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HEX","HIERARCHY","HOLD","HOUR","ID","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMEDIATELY","IMMUTABLE","IMPLEMENTATION","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INDENT","INDEX","INDEXES","INDICATOR","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTANCE","INSTANTIABLE","INSTEAD","INT","INTEGER","INTEGRITY","INTERSECT","INTERSECTION","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","K","KEY","KEY_MEMBER","KEY_TYPE","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAKPROOF","LEAST","LEFT","LENGTH","LEVEL","LIBRARY","LIKE","LIKE_REGEX","LIMIT","LINK","LISTEN","LN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCATOR","LOCK","LOCKED","LOGGED","LOWER","M","MAP","MAPPING","MATCH","MATCHED","MATERIALIZED","MAX","MAXVALUE","MAX_CARDINALITY","MEMBER","MERGE","MESSAGE_LENGTH","MESSAGE_OCTET_LENGTH","MESSAGE_TEXT","METHOD","MIN","MINUTE","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MORE","MOVE","MULTISET","MUMPS","NAME","NAMES","NAMESPACE","NATIONAL","NATURAL","NCHAR","NCLOB","NESTING","NEW","NEXT","NFC","NFD","NFKC","NFKD","NIL","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NTH_VALUE","NTILE","NULL","NULLABLE","NULLIF","NULLS","NUMBER","NUMERIC","OBJECT","OCCURRENCES_REGEX","OCTETS","OCTET_LENGTH","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPEN","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDERING","ORDINALITY","OTHERS","OUT","OUTER","OUTPUT","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","P","PAD","PARALLEL","PARAMETER","PARAMETER_MODE","PARAMETER_NAME","PARAMETER_ORDINAL_POSITION","PARAMETER_SPECIFIC_CATALOG","PARAMETER_SPECIFIC_NAME","PARAMETER_SPECIFIC_SCHEMA","PARSER","PARTIAL","PARTITION","PASCAL","PASSING","PASSTHROUGH","PASSWORD","PATH","PERCENT","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PERIOD","PERMISSION","PLACING","PLANS","PLI","POLICY","PORTION","POSITION","POSITION_REGEX","POWER","PRECEDES","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROGRAM","PUBLIC","QUOTE","RANGE","RANK","READ","READS","REAL","REASSIGN","RECHECK","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","REQUIRING","RESET","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNED_CARDINALITY","RETURNED_LENGTH","RETURNED_OCTET_LENGTH","RETURNED_SQLSTATE","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINE_CATALOG","ROUTINE_NAME","ROUTINE_SCHEMA","ROW","ROWS","ROW_COUNT","ROW_NUMBER","RULE","SAVEPOINT","SCALE","SCHEMA","SCHEMA_NAME","SCOPE","SCOPE_CATALOG","SCOPE_NAME","SCOPE_SCHEMA","SCROLL","SEARCH","SECOND","SECTION","SECURITY","SELECT","SELECTIVE","SELF","SENSITIVE","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SERVER_NAME","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SIZE","SKIP","SMALLINT","SNAPSHOT","SOME","SOURCE","SPACE","SPECIFIC","SPECIFICTYPE","SPECIFIC_NAME","SQL","SQLCODE","SQLERROR","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQRT","STABLE","STANDALONE","START","STATE","STATEMENT","STATIC","STATISTICS","STDDEV_POP","STDDEV_SAMP","STDIN","STDOUT","STORAGE","STRICT","STRIP","STRUCTURE","STYLE","SUBCLASS_ORIGIN","SUBMULTISET","SUBSTRING","SUBSTRING_REGEX","SUCCEEDS","SUM","SYMMETRIC","SYSID","SYSTEM","SYSTEM_TIME","SYSTEM_USER","T","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TABLE_NAME","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOKEN","TOP_LEVEL_COUNT","TRAILING","TRANSACTION","TRANSACTIONS_COMMITTED","TRANSACTIONS_ROLLED_BACK","TRANSACTION_ACTIVE","TRANSFORM","TRANSFORMS","TRANSLATE","TRANSLATE_REGEX","TRANSLATION","TREAT","TRIGGER","TRIGGER_CATALOG","TRIGGER_NAME","TRIGGER_SCHEMA","TRIM","TRIM_ARRAY","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNDER","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLINK","UNLISTEN","UNLOGGED","UNNAMED","UNNEST","UNTIL","UNTYPED","UPDATE","UPPER","URI","USAGE","USER","USER_DEFINED_TYPE_CATALOG","USER_DEFINED_TYPE_CODE","USER_DEFINED_TYPE_NAME","USER_DEFINED_TYPE_SCHEMA","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VALUE_OF","VARBINARY","VARCHAR","VARIADIC","VARYING","VAR_POP","VAR_SAMP","VERBOSE","VERSION","VERSIONING","VIEW","VIEWS","VOLATILE","WHEN","WHENEVER","WHERE","WHITESPACE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLAGG","XMLATTRIBUTES","XMLBINARY","XMLCAST","XMLCOMMENT","XMLCONCAT","XMLDECLARATION","XMLDOCUMENT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLITERATE","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSCHEMA","XMLSERIALIZE","XMLTABLE","XMLTEXT","XMLVALIDATE","YEAR","YES","ZONE"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["abbrev","abs","acos","acosd","age","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","ascii","asin","asind","atan","atan2","atan2d","atand","avg","bit","bit_and","bit_length","bit_or","bool_and","bool_or","bound_box","box","brin_summarize_new_values","broadcast","btrim","cardinality","cbrt","ceil","ceiling","center","char_length","character_length","chr","circle","clock_timestamp","coalesce","col_description","concat","concat_ws","convert","convert_from","convert_to","corr","cos","cosd","cot","cotd","count","covar_pop","covar_samp","cume_dist","current_catalog","current_database","current_date","current_query","current_role","current_schema","current_schemas","current_setting","current_time","current_timestamp","current_user","currval","cursor_to_xml","date_part","date_trunc","decode","degrees","dense_rank","diameter","div","encode","enum_first","enum_last","enum_range","every","exp","extract","family","first_value","floor","format","format_type","generate_series","generate_subscripts","get_bit","get_byte","get_current_ts_config","gin_clean_pending_list","greatest","grouping","has_any_column_privilege","has_column_privilege","has_database_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_schema_privilege","has_sequence_privilege","has_server_privilege","has_table_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","initcap","isclosed","isempty","isfinite","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lag","last_value","lastval","lead","least","left","length","line","ln","localtime","localtimestamp","log","lower","lower_inc","lower_inf","lpad","lseg","ltrim","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","max","md5","min","mod","mode","netmask","network","nextval","now","npoints","nth_value","ntile","nullif","num_nonnulls","num_nulls","numnode","obj_description","octet_length","overlay","parse_ident","path","pclose","percent_rank","percentile_cont","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backend_pid","pg_backup_start_time","pg_blocking_pids","pg_cancel_backend","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_terminate_backend","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","pi","plainto_tsquery","point","polygon","popen","position","power","pqserverversion","query_to_xml","querytree","quote_ident","quote_literal","quote_nullable","radians","radius","random","range_merge","rank","regexp_matches","regexp_replace","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","repeat","replace","reverse","right","round","row_number","row_security_active","row_to_json","rpad","rtrim","scale","session_user","set_bit","set_byte","set_config","set_masklen","setseed","setval","setweight","shobj_description","sign","sin","sind","split_part","sprintf","sqrt","statement_timestamp","stddev","stddev_pop","stddev_samp","string_agg","string_to_array","strip","strpos","substr","substring","sum","table_to_xml","table_to_xml_and_xmlschema","tan","tand","text","timeofday","timezone","to_ascii","to_char","to_date","to_hex","to_json","to_number","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_timestamp","to_tsquery","to_tsvector","transaction_timestamp","translate","trim","trunc","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper","upper_inc","upper_inf","user","var_pop","var_samp","variance","version","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*\/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*\/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/php/php.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*(#|//)region\\b"),end:new RegExp("^\\s*(#|//)endregion\\b")}}},o={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],doctype:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/#/,"comment.php","@phpLineComment"],[/\/\//,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};},"./node_modules/monaco-editor/esm/vs/basic-languages/postiats/postiats.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},o={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*\/\^%]+/,IDENTFST:/[a-zA-Z_]/,IDENTRST:/[a-zA-Z0-9_'$]/,symbolic:/[%&+-.\/:=@~`^|*!$#?<>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/\.@symbolic+/,action:{token:"identifier.sym"}},{regex:/\.@digit*@fexponent@FLOATSP*/,action:{token:"number.float"}},{regex:/\.@digit+/,action:{token:"number.float"}},{regex:/\$@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_dlr":{token:"keyword.dlr"},"@default":{token:"namespace"}}}},{regex:/\#@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_srp":{token:"keyword.srp"},"@default":{token:"identifier"}}}},{regex:/%\(/,action:{token:"delimiter.parenthesis"}},{regex:/^%{(#|\^|\$)?/,action:{token:"keyword",next:"@lexing_EXTCODE",nextEmbedded:"text/javascript"}},{regex:/^%}/,action:{token:"keyword"}},{regex:/'\(/,action:{token:"delimiter.parenthesis"}},{regex:/'\[/,action:{token:"delimiter.bracket"}},{regex:/'\{/,action:{token:"delimiter.brace"}},[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,["string","string.escape","string"]],[/'[^\\']'/,"string"],[/"/,"string.quote","@lexing_DQUOTE"],{regex:/`\(/,action:"@brackets"},{regex:/\\/,action:{token:"punctuation"}},{regex:/@irregular_keywords(?!@IDENTRST)/,action:{token:"keyword"}},{regex:/@IDENTFST@IDENTRST*[<!\[]?/,action:{cases:{"@keywords":{token:"keyword"},"@keywords_types":{token:"type"},"@default":{token:"identifier"}}}},{regex:/\/\/\/\//,action:{token:"comment",next:"@lexing_COMMENT_rest"}},{regex:/\/\/.*$/,action:{token:"comment"}},{regex:/\/\*/,action:{token:"comment",next:"@lexing_COMMENT_block_c"}},{regex:/-<|=</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/@symbolic+/,action:{cases:{"@operators":"keyword","@default":"operator"}}},{regex:/0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,action:{token:"number.float"}},{regex:/0[xX]@xdigit+@INTSP*/,action:{token:"number.hex"}},{regex:/0[0-7]+(?![0-9])@INTSP*/,action:{token:"number.octal"}},{regex:/@digit+(@fexponent|@deciexp)@FLOATSP*/,action:{token:"number.float"}},{regex:/@digit@digitseq0@INTSP*/,action:{token:"number.decimal"}},{regex:/@digit+@INTSP*/,action:{token:"number"}}],lexing_COMMENT_block_ml:[[/[^\(\*]+/,"comment"],[/\(\*/,"comment","@push"],[/\(\*/,"comment.invalid"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],lexing_COMMENT_block_c:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],lexing_COMMENT_rest:[[/$/,"comment","@pop"],[/.*/,"comment"]],lexing_EFFECT_commaseq0:[{regex:/@IDENTFST@IDENTRST+|@digit+/,action:{cases:{"@keywords_effects":{token:"type.effect"},"@default":{token:"identifier"}}}},{regex:/,/,action:{token:"punctuation"}},{regex:/>/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/powerquery/powerquery.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},o={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/powershell/powershell.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=><!~?&%|+\-*\/\^;\.,]+/,escapes:/`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_][\w-]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/^:\w*/,"metatag"],[/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,"variable"],[/<#/,"comment","@comment"],[/#.*$/,"comment"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/\@"/,"string",'@herestring."'],[/\@'/,"string","@herestring.'"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\$`]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/`./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/\$[\w]+$/,{cases:{'$S2=="':{token:"variable",next:"@popall"},"@default":{token:"string",next:"@popall"}}}],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}}}]],herestring:[[/^\s*(["'])@/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^\$`]+/,"string"],[/@escapes/,"string.escape"],[/`./,"string.escape.invalid"],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}]],comment:[[/[^#\.]+/,"comment"],[/#>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/pug/pug.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},o={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/python/python.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return o;}),n.d(t,"language",function(){return r;});var i="undefined"==typeof monaco?self.monaco:monaco,o={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",tokenPostfix:".python",keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","print","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z]\w*/,"tag"],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/r/r.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".r",roxygen:["@param","@return","@name","@rdname","@examples","@include","@docType","@S3method","@TODO","@aliases","@alias","@assignee","@author","@callGraphDepth","@callGraph","@callGraphPrimitives","@concept","@exportClass","@exportMethod","@exportPattern","@export","@formals","@format","@importClassesFrom","@importFrom","@importMethodsFrom","@import","@keywords","@method","@nord","@note","@references","@seealso","@setClass","@slot","@source","@title","@usage"],constants:["NULL","FALSE","TRUE","NA","Inf","NaN ","NA_integer_","NA_real_","NA_complex_","NA_character_ ","T","F","LETTERS","letters","month.abb","month.name","pi","R.version.string"],keywords:["break","next","return","if","else","for","in","repeat","while","array","category","character","complex","double","function","integer","list","logical","matrix","numeric","vector","data.frame","factor","library","require","attach","detach","source"],special:["\\n","\\r","\\t","\\b","\\a","\\f","\\v","\\'",'\\"',"\\\\"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@numbers"},{include:"@strings"},[/[{}\[\]()]/,"@brackets"],{include:"@operators"},[/#'/,"comment.doc","@roxygen"],[/(^#.*$)/,"comment"],[/\s+/,"white"],[/[,:;]/,"delimiter"],[/@[a-zA-Z]\w*/,"tag"],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@constants":"constant","@default":"identifier"}}]],roxygen:[[/@\w+/,{cases:{"@roxygen":"tag","@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/\s+/,{cases:{"@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/.*/,{token:"comment.doc",next:"@pop"}]],numbers:[[/0[xX][0-9a-fA-F]+/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/,"number"]],operators:[[/<{1,2}-/,"operator"],[/->{1,2}/,"operator"],[/%[^%\s]+%/,"operator"],[/\*\*/,"operator"],[/%%/,"operator"],[/&&/,"operator"],[/\|\|/,"operator"],[/<</,"operator"],[/>>/,"operator"],[/[-+=&|!<>^~*\/:$]/,"operator"]],strings:[[/'/,"string.escape","@stringBody"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/'/,"string.escape","@popall"],[/./,"string"]],dblStringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/"/,"string.escape","@popall"],[/./,"string"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/razor/razor.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return r;}),n.d(t,"language",function(){return s;});var i="undefined"==typeof monaco?self.monaco:monaco,o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+o.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+o.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:i.languages.IndentAction.Indent}}]},s={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(\w+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)(\w+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};},"./node_modules/monaco-editor/esm/vs/basic-languages/redis/redis.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*\/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/redshift/redshift.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*\/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*\/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/ruby/ruby.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,["white",{cases:{"for|until|while":{token:"keyword.$2",next:"@dodecl.$2"},"@declarations":{token:"keyword.$2",next:"@root.$2"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:"keyword.$0x",next:"@modifier.$0x"},for:{token:"keyword.$2",next:"@dodecl.$2"},"@linedecls":{token:"keyword.$0",next:"@root.$0"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],[/[A-Z][\w]*[!?=]?/,"constructor.identifier"],[/\$[\w]*/,"global.constant"],[/@[\w]*/,"namespace.instance.identifier"],[/@@[\w]*/,"namespace.class.identifier"],[/<<[-~](@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/[ \t\r\n]+<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/^<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],{include:"@whitespace"},[/"/,{token:"string.d.delim",next:'@dstring.d."'}],[/'/,{token:"string.sq.delim",next:"@sstring.sq"}],[/%([rsqxwW]|Q?)/,{token:"@rematch",next:"pstring"}],[/`/,{token:"string.x.delim",next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,"string.s"],[/:"/,{token:"string.s.delim",next:'@dstring.s."'}],[/:'/,{token:"string.s.delim",next:"@sstring.s"}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:"regexp.delim",next:"@regexp"}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywordops":"keyword","@operators":"operator","@default":""}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/0[dD]@decpart/,"number"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:"number.float","@default":"number"}}]],dodecl:[[/^/,{token:"",switchTo:"@root.$S2"}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},do:{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],modifier:[[/^/,"","@pop"],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},"then|else|elsif|do":{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],sstring:[[/[^\\']+/,"string.$S2"],[/\\\\|\\'|\\$/,"string.$S2.escape"],[/\\./,"string.$S2.invalid"],[/'/,{token:"string.$S2.delim",next:"@pop"}]],dstring:[[/[^\\`"#]+/,"string.$S2"],[/#/,"string.$S2.escape","@interpolated"],[/\\$/,"string.$S2.escape"],[/@escapes/,"string.$S2.escape"],[/\\./,"string.$S2.escape.invalid"],[/[`"]/,{cases:{"$#==$S3":{token:"string.$S2.delim",next:"@pop"},"@default":"string.$S2"}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":["string.heredoc",{token:"string.heredoc.delimiter",next:"@pop"}],"@default":["string.heredoc","string.heredoc"]}}],[/.*/,"string.heredoc"]],interpolated:[[/\$\w*/,"global.constant","@pop"],[/@\w*/,"namespace.class.identifier","@pop"],[/@@\w*/,"namespace.instance.identifier","@pop"],[/[{]/,{token:"string.escape.curly",switchTo:"@interpolated_compound"}],["","","@pop"]],interpolated_compound:[[/[}]/,{token:"string.escape.curly",next:"@pop"}],{include:"@root"}],pregexp:[{include:"@whitespace"},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:"regexp.delim",next:"@pop"},"$#==$S2":{token:"regexp.delim",next:"@push"},"~[)}\\]]":"@brackets.regexp.escape.control","~@regexpctl":"regexp.escape.control","@default":"regexp"}}],{include:"@regexcontrol"}],regexp:[{include:"@regexcontrol"},[/[^\\\/]/,"regexp"],["/[ixmp]*",{token:"regexp.delim"},"@pop"]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,["@brackets.regexp.escape.control","regexp.escape.control","@brackets.regexp.escape.control"]],[/(\[)(\^?)/,["@brackets.regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?[:=!])/,["@brackets.regexp.escape.control","regexp.escape.control"]],[/\(\?#/,{token:"regexp.escape.control",next:"@regexpcomment"}],[/[()]/,"@brackets.regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/#/,"regexp.escape","@interpolated"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],regexpcomment:[[/[^)]+/,"comment"],[/\)/,{token:"regexp.escape.control",next:"@pop"}]],pstring:[[/%([qws])\(/,{token:"string.$1.delim",switchTo:"@qstring.$1.(.)"}],[/%([qws])\[/,{token:"string.$1.delim",switchTo:"@qstring.$1.[.]"}],[/%([qws])\{/,{token:"string.$1.delim",switchTo:"@qstring.$1.{.}"}],[/%([qws])</,{token:"string.$1.delim",switchTo:"@qstring.$1.<.>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r</,{token:"regexp.delim",switchTo:"@pregexp.<.>"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)</,{token:"string.$1.delim",switchTo:"@qqstring.$1.<.>"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/rust/rust.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},o={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","box","break","const","continue","crate","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'\S'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/sb/sb.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},o={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/scheme/scheme.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/scss/scss.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},o={defaultToken:"",tokenPostfix:".scss",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@variabledeclaration"},{include:"@warndebug"},["[@](include)",{token:"keyword",next:"@includedeclaration"}],["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["[@](function)",{token:"keyword",next:"@functiondeclaration"}],["[@](mixin)",{token:"keyword",next:"@mixindeclaration"}],["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@controlstatement"},{include:"@selectorname"},["[&\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.curly",next:"@selectorbody"}]],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],{include:"@selector"},["[@](extend)",{token:"keyword",next:"@extendbody"}],["[@](return)",{token:"keyword",next:"@declarationbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],selectorname:[["#{",{token:"meta",next:"@variableinterpolation"}],["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@functioninvocation"},{include:"@numbers"},{include:"@strings"},{include:"@variablereference"},["(and\\b|or\\b|not\\b)","operator"],{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","operator"],[",","delimiter"],["!default","literal"],["\\(",{token:"delimiter.parenthesis",next:"@parenthizedterm"}]],rulevalue:[{include:"@term"},["!important","literal"],[";","delimiter","@pop"],["{",{token:"delimiter.curly",switchTo:"@nestedproperty"}],["(?=})",{token:"",next:"@pop"}]],nestedproperty:[["[*_]?@identifier@ws:","attribute.name","@rulevalue"],{include:"@comments"},["}",{token:"delimiter.curly",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],variabledeclaration:[["\\$@identifier@ws:","variable.decl","@declarationbody"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/shell/shell.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],symbols:/[=><!~?&|+\-*\/\^;\.,]+/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@builtins":"type.identifier","@default":""}}],{include:"@strings"},{include:"@parameters"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/-+\w+/,"attribute.name"],[/@symbols/,"delimiter"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"],[/"/,"string","@dblStringBody"]],stringBody:[[/'/,"string","@popall"],[/./,"string"]],dblStringBody:[[/"/,"string","@popall"],[/./,"string"]],heredoc:[[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,["constants","white","string.heredoc.delimiter","string.heredoc","string.heredoc.delimiter"]]],parameters:[[/\$\d+/,"variable.predefined"],[/\$\w+/,"variable"],[/\$[*@#?\-$!0_]/,"variable"],[/\$'/,"variable","@parameterBodyQuote"],[/\$"/,"variable","@parameterBodyDoubleQuote"],[/\$\(/,"variable","@parameterBodyParen"],[/\$\{/,"variable","@parameterBodyCurlyBrace"]],parameterBodyQuote:[[/[^#:%*@\-!_']+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[']/,"variable","@pop"]],parameterBodyDoubleQuote:[[/[^#:%*@\-!_"]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/["]/,"variable","@pop"]],parameterBodyParen:[[/[^#:%*@\-!_)]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[)]/,"variable","@pop"]],parameterBodyCurlyBrace:[[/[^#:%*@\-!_}]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[}]/,"variable","@pop"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/solidity/solidity.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},o={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/sql/sql.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*\/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*\/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/st/st.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},o={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","configuration","end_configuration","tcp","end_tcp","recource","end_recource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","world","dworld","array","pointer","lworld"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","сtu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(T|DT|TOD)#[0-9:-_shmyd]*/,"tag"],[/[A-Za-z]{1,6}#[0-9]*/,"tag"],[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]*/,"tag"],[/\%(I|Q|M)[0-9\.]*/,"tag"],[/(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]*/,"predefined"],[/[A_Za-z]*(_TO_)[A_Za-z]*/,"predefined"],[/[a-zA-Z_]\w*/,{cases:{"@operators":"operators","@keywords":"keyword","@typeKeywords":"type","@defineKeywords":"variable","@constant":"constant","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],{include:"@whitespace"},[/[;.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/16#[0-9a-fA-F]+/,"number.hex"],[/2#[0-9_]+/,"number.binary"],[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string_dq"}],[/'/,{token:"string.quote",bracket:"@open",next:"@string_sq"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],comment2:[[/[^\(*]+/,"comment"],[/\(\*/,"comment","@push"],["\\*\\)","comment","@pop"],[/[\(*]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/\(\*/,"comment","@comment2"]],string_dq:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],string_sq:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/swift/swift.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});/*!---------------------------------------------------------------------------------------------
|
||
* Copyright (C) David Owens II, owensd.io. All rights reserved.
|
||
*--------------------------------------------------------------------------------------------*/var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},o={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@autoclosure","@noescape","@noreturn","@NSApplicationMain","@NSCopying","@NSManaged","@objc","@UIApplicationMain","@noreturn","@availability","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet"],accessmodifiers:["public","private","internal"],keywords:["__COLUMN__","__FILE__","__FUNCTION__","__LINE__","as","as!","as?","associativity","break","case","catch","class","continue","convenience","default","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","final","for","func","get","guard","if","import","in","infix","init","inout","internal","is","lazy","left","let","mutating","nil","none","nonmutating","operator","optional","override","postfix","precedence","prefix","private","protocol","Protocol","public","repeat","required","return","right","self","Self","set","static","struct","subscript","super","switch","throw","throws","try","try!","Type","typealias","unowned","var","weak","where","while","willSet","FALSE","TRUE"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/\@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return o;}),n.d(t,"language",function(){return r;});var i="undefined"==typeof monaco?self.monaco:monaco,o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:i.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:i.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:i.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:i.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},r={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","as","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","package","private","protected","public","readonly","require","global","return","set","static","super","switch","symbol","this","throw","true","try","type","typeof","unique","var","void","while","with","yield","async","await","of"],typeKeywords:["any","boolean","number","object","string","undefined"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)/,"number.hex"],[/0[oO]?(@octaldigits)/,"number.octal"],[/0[bB](@binarydigits)/,"number.binary"],[/(@digits)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/vb/vb.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},o={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=><!~?;\.,:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/U?[DI%L&S@]?/,floatsuffix:/[R#F!]?/,tokenizer:{root:[{include:"@whitespace"},[/next(?!\w)/,{token:"keyword.tag-for"}],[/loop(?!\w)/,{token:"keyword.tag-do"}],[/end\s+(?!for|do)([a-zA-Z_]\w*)/,{token:"keyword.tag-$1"}],[/[a-zA-Z_]\w*/,{cases:{"@tagwords":{token:"keyword.tag-$0"},"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\w+/,"keyword"],[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/,"number.float"],[/&H[0-9a-f]+(@integersuffix)/,"number.hex"],[/&0[0-7]+(@integersuffix)/,"number.octal"],[/\d+(@integersuffix)/,"number"],[/#.*#/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\'|REM(?!\w)).*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/xml/xml.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};},"./node_modules/monaco-editor/esm/vs/basic-languages/yaml/yaml.js":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i;}),n.d(t,"language",function(){return o;});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0}},o={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+$/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};},"./node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaHandler.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/decorations/decorations.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLines.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/marginDecorations/marginDecorations.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimap.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/rulers/rulers.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/selections/selections.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/media/diffEditor.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/media/diffReview.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/media/editor.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/media/tokens.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/bracketMatching.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/clipboard/clipboard.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/lightBulbWidget.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/codelens/codelensWidget.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/colorPicker.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/dnd/dnd.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/find/findWidget.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/folding/folding.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/goToDefinition/goToDefinitionMouse.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/gotoErrorWidget.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/hover/hover.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/links/links.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/message/messageController.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/parameterHints.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/referenceSearch/media/peekViewWidget.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/referenceSearch/media/referencesWidget.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/rename/renameInputField.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/snippetSession.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/media/suggest.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/contrib/zoneWidget/zoneWidget.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickOpen/editorQuickOpen.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickOpen/gotoLine.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickOpen/quickOutline.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/standalone-tokens.css":function(e,t,n){},"./node_modules/monaco-editor/esm/vs/language/css/cssMode.js":function(e,t,n){"use strict";n.r(t);var i,o,r,s,a,u,l,c,d,h,p,f,g,m,_,v=function(){function e(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval(function(){return t._checkIfIdle();},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return t._stopWorker();});}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null;},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker();},e.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker();},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client;},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return this._getClient().then(function(t){e=t;}).then(function(e){return t._worker.withSyncedResources(n);}).then(function(t){return e;});},e;}();!function(e){e.create=function(e,t){return{line:e,character:t};},e.is=function(e){var t=e;return q.objectLiteral(t)&&q.number(t.line)&&q.number(t.character);};}(i||(i={})),function(e){e.create=function(e,t,n,o){if(q.number(e)&&q.number(t)&&q.number(n)&&q.number(o))return{start:i.create(e,t),end:i.create(n,o)};if(i.is(e)&&i.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+o+"]");},e.is=function(e){var t=e;return q.objectLiteral(t)&&i.is(t.start)&&i.is(t.end);};}(o||(o={})),function(e){e.create=function(e,t){return{uri:e,range:t};},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&(q.string(t.uri)||q.undefined(t.uri));};}(r||(r={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i};},e.is=function(e){var t=e;return q.number(t.red)&&q.number(t.green)&&q.number(t.blue)&&q.number(t.alpha);};}(s||(s={})),function(e){e.create=function(e,t){return{range:e,color:t};},e.is=function(e){var t=e;return o.is(t.range)&&s.is(t.color);};}(a||(a={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n};},e.is=function(e){var t=e;return q.string(t.label)&&(q.undefined(t.textEdit)||g.is(t))&&(q.undefined(t.additionalTextEdits)||q.typedArray(t.additionalTextEdits,g.is));};}(u||(u={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region";}(l||(l={})),function(e){e.create=function(e,t,n,i,o){var r={startLine:e,endLine:t};return q.defined(n)&&(r.startCharacter=n),q.defined(i)&&(r.endCharacter=i),q.defined(o)&&(r.kind=o),r;},e.is=function(e){var t=e;return q.number(t.startLine)&&q.number(t.startLine)&&(q.undefined(t.startCharacter)||q.number(t.startCharacter))&&(q.undefined(t.endCharacter)||q.number(t.endCharacter))&&(q.undefined(t.kind)||q.string(t.kind));};}(c||(c={})),function(e){e.create=function(e,t){return{location:e,message:t};},e.is=function(e){var t=e;return q.defined(t)&&r.is(t.location)&&q.string(t.message);};}(d||(d={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4;}(h||(h={})),function(e){e.create=function(e,t,n,i,o,r){var s={range:e,message:t};return q.defined(n)&&(s.severity=n),q.defined(i)&&(s.code=i),q.defined(o)&&(s.source=o),q.defined(r)&&(s.relatedInformation=r),s;},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&q.string(t.message)&&(q.number(t.severity)||q.undefined(t.severity))&&(q.number(t.code)||q.string(t.code)||q.undefined(t.code))&&(q.string(t.source)||q.undefined(t.source))&&(q.undefined(t.relatedInformation)||q.typedArray(t.relatedInformation,d.is));};}(p||(p={})),function(e){e.create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o={title:e,command:t};return q.defined(n)&&n.length>0&&(o.arguments=n),o;},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.title)&&q.string(t.command);};}(f||(f={})),function(e){e.replace=function(e,t){return{range:e,newText:t};},e.insert=function(e,t){return{range:{start:e,end:e},newText:t};},e.del=function(e){return{range:e,newText:""};},e.is=function(e){var t=e;return q.objectLiteral(t)&&q.string(t.newText)&&o.is(t.range);};}(g||(g={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t};},e.is=function(e){var t=e;return q.defined(t)&&b.is(t.textDocument)&&Array.isArray(t.edits);};}(m||(m={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||q.typedArray(t.documentChanges,m.is));};}(_||(_={}));var y,b,C,w,S,x,E,L,T,I,N,k,O,D,R,A,M,P=function(){function e(e){this.edits=e;}return e.prototype.insert=function(e,t){this.edits.push(g.insert(e,t));},e.prototype.replace=function(e,t){this.edits.push(g.replace(e,t));},e.prototype.delete=function(e){this.edits.push(g.del(e));},e.prototype.add=function(e){this.edits.push(e);},e.prototype.all=function(){return this.edits;},e.prototype.clear=function(){this.edits.splice(0,this.edits.length);},e;}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach(function(e){var n=new P(e.edits);t._textEditChanges[e.textDocument.uri]=n;}):e.changes&&Object.keys(e.changes).forEach(function(n){var i=new P(e.changes[n]);t._textEditChanges[n]=i;}));}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit;},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(b.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for versioned document changes.");var t=e;if(!(i=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),i=new P(o),this._textEditChanges[t.uri]=i;}return i;}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var i;if(!(i=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,i=new P(o),this._textEditChanges[e]=i;}return i;};}();!function(e){e.create=function(e){return{uri:e};},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.uri);};}(y||(y={})),function(e){e.create=function(e,t){return{uri:e,version:t};},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.uri)&&q.number(t.version);};}(b||(b={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i};},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.uri)&&q.string(t.languageId)&&q.number(t.version)&&q.string(t.text);};}(C||(C={})),function(e){e.PlainText="plaintext",e.Markdown="markdown";}(w||(w={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown;};}(w||(w={})),function(e){e.is=function(e){var t=e;return q.objectLiteral(e)&&w.is(t.kind)&&q.string(t.value);};}(S||(S={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25;}(x||(x={})),function(e){e.PlainText=1,e.Snippet=2;}(E||(E={})),function(e){e.create=function(e){return{label:e};};}(L||(L={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t};};}(T||(T={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&");},e.is=function(e){var t=e;return q.string(t)||q.objectLiteral(t)&&q.string(t.language)&&q.string(t.value);};}(I||(I={})),function(e){e.is=function(e){var t=e;return q.objectLiteral(t)&&(S.is(t.contents)||I.is(t.contents)||q.typedArray(t.contents,I.is))&&(void 0===e.range||o.is(e.range));};}(N||(N={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e};};}(k||(k={})),function(e){e.create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o={label:e};return q.defined(t)&&(o.documentation=t),q.defined(n)?o.parameters=n:o.parameters=[],o;};}(O||(O={})),function(e){e.Text=1,e.Read=2,e.Write=3;}(D||(D={})),function(e){e.create=function(e,t){var n={range:e};return q.number(t)&&(n.kind=t),n;};}(R||(R={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26;}(A||(A={})),function(e){e.create=function(e,t,n,i,o){var r={name:e,kind:t,location:{uri:i,range:n}};return o&&(r.containerName=o),r;};}(M||(M={}));var F,W,B,V,H,U=function(){return function(){};}();!function(e){e.create=function(e,t,n,i,o,r){var s={name:e,detail:t,kind:n,range:i,selectionRange:o};return void 0!==r&&(s.children=r),s;},e.is=function(e){var t=e;return t&&q.string(t.name)&&q.string(t.detail)&&q.number(t.kind)&&o.is(t.range)&&o.is(t.selectionRange)&&(void 0===t.deprecated||q.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children));};}(U||(U={})),function(e){e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports";}(F||(F={})),function(e){e.create=function(e,t){var n={diagnostics:e};return null!=t&&(n.only=t),n;},e.is=function(e){var t=e;return q.defined(t)&&q.typedArray(t.diagnostics,p.is)&&(void 0===t.only||q.typedArray(t.only,q.string));};}(W||(W={})),function(e){e.create=function(e,t,n){var i={title:e};return f.is(t)?i.command=t:i.edit=t,void 0!==n&&(i.kind=n),i;},e.is=function(e){var t=e;return t&&q.string(t.title)&&(void 0===t.diagnostics||q.typedArray(t.diagnostics,p.is))&&(void 0===t.kind||q.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||f.is(t.command))&&(void 0===t.edit||_.is(t.edit));};}(B||(B={})),function(e){e.create=function(e,t){var n={range:e};return q.defined(t)&&(n.data=t),n;},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&(q.undefined(t.command)||f.is(t.command));};}(V||(V={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t};},e.is=function(e){var t=e;return q.defined(t)&&q.number(t.tabSize)&&q.boolean(t.insertSpaces);};}(H||(H={}));var j=function(){return function(){};}();!function(e){e.create=function(e,t,n){return{range:e,target:t,data:n};},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&(q.undefined(t.target)||q.string(t.target));};}(j||(j={}));var z,K;!function(e){e.create=function(e,t,n,i){return new G(e,t,n,i);},e.is=function(e){var t=e;return!!(q.defined(t)&&q.string(t.uri)&&(q.undefined(t.languageId)||q.string(t.languageId))&&q.number(t.lineCount)&&q.func(t.getText)&&q.func(t.positionAt)&&q.func(t.offsetAt));},e.applyEdits=function(e,t){for(var n=e.getText(),i=function e(t,n){if(t.length<=1)return t;var i=t.length/2|0,o=t.slice(0,i),r=t.slice(i);e(o,n),e(r,n);for(var s=0,a=0,u=0;s<o.length&&a<r.length;){var l=n(o[s],r[a]);t[u++]=l<=0?o[s++]:r[a++];}for(;s<o.length;)t[u++]=o[s++];for(;a<r.length;)t[u++]=r[a++];return t;}(t,function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n;}),o=n.length,r=i.length-1;r>=0;r--){var s=i[r],a=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Ovelapping edit");n=n.substring(0,a)+s.newText+n.substring(u,n.length),o=a;}return n;};}(z||(z={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3;}(K||(K={}));var q,G=function(){function e(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=null;}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version;},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n);}return this._content;},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=null;},e.prototype.getLineOffsets=function(){if(null===this._lineOffsets){for(var e=[],t=this._content,n=!0,i=0;i<t.length;i++){n&&(e.push(i),n=!1);var o=t.charAt(i);n="\r"===o||"\n"===o,"\r"===o&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++;}n&&t.length>0&&e.push(t.length),this._lineOffsets=e;}return this._lineOffsets;},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,o=t.length;if(0===o)return i.create(0,e);for(;n<o;){var r=Math.floor((n+o)/2);t[r]>e?o=r:n=r+1;}var s=n-1;return i.create(s,e-t[s]);},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n);},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length;},enumerable:!0,configurable:!0}),e;}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e;},e.undefined=function(e){return void 0===e;},e.boolean=function(e){return!0===e||!1===e;},e.string=function(e){return"[object String]"===t.call(e);},e.number=function(e){return"[object Number]"===t.call(e);},e.func=function(e){return"[object Function]"===t.call(e);},e.objectLiteral=function(e){return null!==e&&"object"==typeof e;},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t);};}(q||(q={}));var $=monaco.Uri,Y=function(){function e(e,t,n){var i=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);var o=function(e){var t,n=e.getModeId();n===i._languageId&&(i._listener[e.uri.toString()]=e.onDidChangeContent(function(){clearTimeout(t),t=setTimeout(function(){return i._doValidate(e.uri,n);},500);}),i._doValidate(e.uri,n));},r=function(e){monaco.editor.setModelMarkers(e,i._languageId,[]);var t=e.uri.toString(),n=i._listener[t];n&&(n.dispose(),delete i._listener[t]);};this._disposables.push(monaco.editor.onDidCreateModel(o)),this._disposables.push(monaco.editor.onWillDisposeModel(r)),this._disposables.push(monaco.editor.onDidChangeModelLanguage(function(e){r(e.model),o(e.model);})),n.onDidChange(function(e){monaco.editor.getModels().forEach(function(e){e.getModeId()===i._languageId&&(r(e),o(e));});}),this._disposables.push({dispose:function(){for(var e in i._listener)i._listener[e].dispose();}}),monaco.editor.getModels().forEach(o);}return e.prototype.dispose=function(){this._disposables.forEach(function(e){return e&&e.dispose();}),this._disposables=[];},e.prototype._doValidate=function(e,t){this._worker(e).then(function(t){return t.doValidation(e.toString());}).then(function(n){var i=n.map(function(e){return n="number"==typeof(t=e).code?String(t.code):t.code,{severity:function(e){switch(e){case h.Error:return monaco.MarkerSeverity.Error;case h.Warning:return monaco.MarkerSeverity.Warning;case h.Information:return monaco.MarkerSeverity.Info;case h.Hint:return monaco.MarkerSeverity.Hint;default:return monaco.MarkerSeverity.Info;}}(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source};var t,n;}),o=monaco.editor.getModel(e);o.getModeId()===t&&monaco.editor.setModelMarkers(o,t,i);}).then(void 0,function(e){console.error(e);});},e;}();function X(e){if(e)return{character:e.column-1,line:e.lineNumber-1};}function Z(e){if(e)return new monaco.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1);}function Q(e){if(e)return{range:Z(e.range),text:e.newText};}var J=function(){function e(e){this._worker=e;}return Object.defineProperty(e.prototype,"triggerCharacters",{get:function(){return[" ",":"];},enumerable:!0,configurable:!0}),e.prototype.provideCompletionItems=function(e,t,n,i){e.getWordUntilPosition(t);var o=e.uri;return this._worker(o).then(function(e){return e.doComplete(o.toString(),X(t));}).then(function(e){if(e){var t=e.items.map(function(e){var t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,kind:function(e){var t=monaco.languages.CompletionItemKind;switch(e){case x.Text:return t.Text;case x.Method:return t.Method;case x.Function:return t.Function;case x.Constructor:return t.Constructor;case x.Field:return t.Field;case x.Variable:return t.Variable;case x.Class:return t.Class;case x.Interface:return t.Interface;case x.Module:return t.Module;case x.Property:return t.Property;case x.Unit:return t.Unit;case x.Value:return t.Value;case x.Enum:return t.Enum;case x.Keyword:return t.Keyword;case x.Snippet:return t.Snippet;case x.Color:return t.Color;case x.File:return t.File;case x.Reference:return t.Reference;}return t.Property;}(e.kind)};return e.textEdit&&(t.range=Z(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Q)),e.insertTextFormat===E.Snippet&&(t.insertTextRules=monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet),t;});return{isIncomplete:e.isIncomplete,suggestions:t};}});},e;}();function ee(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t;}var te=function(){function e(e){this._worker=e;}return e.prototype.provideHover=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.doHover(i.toString(),X(t));}).then(function(e){if(e)return{range:Z(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(ee):[ee(e)];}(e.contents)};});},e;}();var ne=function(){function e(e){this._worker=e;}return e.prototype.provideDocumentHighlights=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.findDocumentHighlights(i.toString(),X(t));}).then(function(e){if(e)return e.map(function(e){return{range:Z(e.range),kind:function(e){switch(e){case D.Read:return monaco.languages.DocumentHighlightKind.Read;case D.Write:return monaco.languages.DocumentHighlightKind.Write;case D.Text:return monaco.languages.DocumentHighlightKind.Text;}return monaco.languages.DocumentHighlightKind.Text;}(e.kind)};});});},e;}();function ie(e){return{uri:$.parse(e.uri),range:Z(e.range)};}var oe=function(){function e(e){this._worker=e;}return e.prototype.provideDefinition=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.findDefinition(i.toString(),X(t));}).then(function(e){if(e)return[ie(e)];});},e;}(),re=function(){function e(e){this._worker=e;}return e.prototype.provideReferences=function(e,t,n,i){var o=e.uri;return this._worker(o).then(function(e){return e.findReferences(o.toString(),X(t));}).then(function(e){if(e)return e.map(ie);});},e;}();var se=function(){function e(e){this._worker=e;}return e.prototype.provideRenameEdits=function(e,t,n,i){var o=e.uri;return this._worker(o).then(function(e){return e.doRename(o.toString(),X(t),n);}).then(function(e){return function(e){if(e&&e.changes){var t=[];for(var n in e.changes){for(var i=[],o=0,r=e.changes[n];o<r.length;o++){var s=r[o];i.push({range:Z(s.range),text:s.newText});}t.push({resource:$.parse(n),edits:i});}return{edits:t};}}(e);});},e;}();var ae=function(){function e(e){this._worker=e;}return e.prototype.provideDocumentSymbols=function(e,t){var n=e.uri;return this._worker(n).then(function(e){return e.findDocumentSymbols(n.toString());}).then(function(e){if(e)return e.map(function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:function(e){var t=monaco.languages.SymbolKind;switch(e){case A.File:return t.Array;case A.Module:return t.Module;case A.Namespace:return t.Namespace;case A.Package:return t.Package;case A.Class:return t.Class;case A.Method:return t.Method;case A.Property:return t.Property;case A.Field:return t.Field;case A.Constructor:return t.Constructor;case A.Enum:return t.Enum;case A.Interface:return t.Interface;case A.Function:return t.Function;case A.Variable:return t.Variable;case A.Constant:return t.Constant;case A.String:return t.String;case A.Number:return t.Number;case A.Boolean:return t.Boolean;case A.Array:return t.Array;}return t.Function;}(e.kind),range:Z(e.location.range),selectionRange:Z(e.location.range)};});});},e;}(),ue=function(){function e(e){this._worker=e;}return e.prototype.provideDocumentColors=function(e,t){var n=e.uri;return this._worker(n).then(function(e){return e.findDocumentColors(n.toString());}).then(function(e){if(e)return e.map(function(e){return{color:e.color,range:Z(e.range)};});});},e.prototype.provideColorPresentations=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.getColorPresentations(i.toString(),t.color,function(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}};}(t.range));}).then(function(e){if(e)return e.map(function(e){var t={label:e.label};return e.textEdit&&(t.textEdit=Q(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Q)),t;});});},e;}(),le=function(){function e(e){this._worker=e;}return e.prototype.provideFoldingRanges=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.provideFoldingRanges(i.toString(),t);}).then(function(e){if(e)return e.map(function(e){var t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case l.Comment:return monaco.languages.FoldingRangeKind.Comment;case l.Imports:return monaco.languages.FoldingRangeKind.Imports;case l.Region:return monaco.languages.FoldingRangeKind.Region;}return;}(e.kind)),t;});});},e;}();function ce(e){var t=new v(e),n=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return t.getLanguageServiceWorker.apply(t,[e].concat(n));},i=e.languageId;monaco.languages.registerCompletionItemProvider(i,new J(n)),monaco.languages.registerHoverProvider(i,new te(n)),monaco.languages.registerDocumentHighlightProvider(i,new ne(n)),monaco.languages.registerDefinitionProvider(i,new oe(n)),monaco.languages.registerReferenceProvider(i,new re(n)),monaco.languages.registerDocumentSymbolProvider(i,new ae(n)),monaco.languages.registerRenameProvider(i,new se(n)),monaco.languages.registerColorProvider(i,new ue(n)),monaco.languages.registerFoldingRangeProvider(i,new le(n)),new Y(i,n,e);}n.d(t,"setupMode",function(){return ce;});},"./node_modules/monaco-editor/esm/vs/language/html/htmlMode.js":function(e,t,n){"use strict";n.r(t);var i,o,r,s,a,u,l,c,d,h,p,f,g,m,_,v=function(){function e(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval(function(){return t._checkIfIdle();},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return t._stopWorker();});}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null;},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker();},e.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker();},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client;},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return this._getClient().then(function(t){e=t;}).then(function(e){return t._worker.withSyncedResources(n);}).then(function(t){return e;});},e;}();!function(e){e.create=function(e,t){return{line:e,character:t};},e.is=function(e){var t=e;return q.objectLiteral(t)&&q.number(t.line)&&q.number(t.character);};}(i||(i={})),function(e){e.create=function(e,t,n,o){if(q.number(e)&&q.number(t)&&q.number(n)&&q.number(o))return{start:i.create(e,t),end:i.create(n,o)};if(i.is(e)&&i.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+o+"]");},e.is=function(e){var t=e;return q.objectLiteral(t)&&i.is(t.start)&&i.is(t.end);};}(o||(o={})),function(e){e.create=function(e,t){return{uri:e,range:t};},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&(q.string(t.uri)||q.undefined(t.uri));};}(r||(r={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i};},e.is=function(e){var t=e;return q.number(t.red)&&q.number(t.green)&&q.number(t.blue)&&q.number(t.alpha);};}(s||(s={})),function(e){e.create=function(e,t){return{range:e,color:t};},e.is=function(e){var t=e;return o.is(t.range)&&s.is(t.color);};}(a||(a={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n};},e.is=function(e){var t=e;return q.string(t.label)&&(q.undefined(t.textEdit)||g.is(t))&&(q.undefined(t.additionalTextEdits)||q.typedArray(t.additionalTextEdits,g.is));};}(u||(u={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region";}(l||(l={})),function(e){e.create=function(e,t,n,i,o){var r={startLine:e,endLine:t};return q.defined(n)&&(r.startCharacter=n),q.defined(i)&&(r.endCharacter=i),q.defined(o)&&(r.kind=o),r;},e.is=function(e){var t=e;return q.number(t.startLine)&&q.number(t.startLine)&&(q.undefined(t.startCharacter)||q.number(t.startCharacter))&&(q.undefined(t.endCharacter)||q.number(t.endCharacter))&&(q.undefined(t.kind)||q.string(t.kind));};}(c||(c={})),function(e){e.create=function(e,t){return{location:e,message:t};},e.is=function(e){var t=e;return q.defined(t)&&r.is(t.location)&&q.string(t.message);};}(d||(d={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4;}(h||(h={})),function(e){e.create=function(e,t,n,i,o,r){var s={range:e,message:t};return q.defined(n)&&(s.severity=n),q.defined(i)&&(s.code=i),q.defined(o)&&(s.source=o),q.defined(r)&&(s.relatedInformation=r),s;},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&q.string(t.message)&&(q.number(t.severity)||q.undefined(t.severity))&&(q.number(t.code)||q.string(t.code)||q.undefined(t.code))&&(q.string(t.source)||q.undefined(t.source))&&(q.undefined(t.relatedInformation)||q.typedArray(t.relatedInformation,d.is));};}(p||(p={})),function(e){e.create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o={title:e,command:t};return q.defined(n)&&n.length>0&&(o.arguments=n),o;},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.title)&&q.string(t.command);};}(f||(f={})),function(e){e.replace=function(e,t){return{range:e,newText:t};},e.insert=function(e,t){return{range:{start:e,end:e},newText:t};},e.del=function(e){return{range:e,newText:""};},e.is=function(e){var t=e;return q.objectLiteral(t)&&q.string(t.newText)&&o.is(t.range);};}(g||(g={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t};},e.is=function(e){var t=e;return q.defined(t)&&b.is(t.textDocument)&&Array.isArray(t.edits);};}(m||(m={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||q.typedArray(t.documentChanges,m.is));};}(_||(_={}));var y,b,C,w,S,x,E,L,T,I,N,k,O,D,R,A,M,P=function(){function e(e){this.edits=e;}return e.prototype.insert=function(e,t){this.edits.push(g.insert(e,t));},e.prototype.replace=function(e,t){this.edits.push(g.replace(e,t));},e.prototype.delete=function(e){this.edits.push(g.del(e));},e.prototype.add=function(e){this.edits.push(e);},e.prototype.all=function(){return this.edits;},e.prototype.clear=function(){this.edits.splice(0,this.edits.length);},e;}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach(function(e){var n=new P(e.edits);t._textEditChanges[e.textDocument.uri]=n;}):e.changes&&Object.keys(e.changes).forEach(function(n){var i=new P(e.changes[n]);t._textEditChanges[n]=i;}));}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit;},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(b.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for versioned document changes.");var t=e;if(!(i=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),i=new P(o),this._textEditChanges[t.uri]=i;}return i;}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var i;if(!(i=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,i=new P(o),this._textEditChanges[e]=i;}return i;};}();!function(e){e.create=function(e){return{uri:e};},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.uri);};}(y||(y={})),function(e){e.create=function(e,t){return{uri:e,version:t};},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.uri)&&q.number(t.version);};}(b||(b={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i};},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.uri)&&q.string(t.languageId)&&q.number(t.version)&&q.string(t.text);};}(C||(C={})),function(e){e.PlainText="plaintext",e.Markdown="markdown";}(w||(w={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown;};}(w||(w={})),function(e){e.is=function(e){var t=e;return q.objectLiteral(e)&&w.is(t.kind)&&q.string(t.value);};}(S||(S={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25;}(x||(x={})),function(e){e.PlainText=1,e.Snippet=2;}(E||(E={})),function(e){e.create=function(e){return{label:e};};}(L||(L={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t};};}(T||(T={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&");},e.is=function(e){var t=e;return q.string(t)||q.objectLiteral(t)&&q.string(t.language)&&q.string(t.value);};}(I||(I={})),function(e){e.is=function(e){var t=e;return q.objectLiteral(t)&&(S.is(t.contents)||I.is(t.contents)||q.typedArray(t.contents,I.is))&&(void 0===e.range||o.is(e.range));};}(N||(N={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e};};}(k||(k={})),function(e){e.create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o={label:e};return q.defined(t)&&(o.documentation=t),q.defined(n)?o.parameters=n:o.parameters=[],o;};}(O||(O={})),function(e){e.Text=1,e.Read=2,e.Write=3;}(D||(D={})),function(e){e.create=function(e,t){var n={range:e};return q.number(t)&&(n.kind=t),n;};}(R||(R={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26;}(A||(A={})),function(e){e.create=function(e,t,n,i,o){var r={name:e,kind:t,location:{uri:i,range:n}};return o&&(r.containerName=o),r;};}(M||(M={}));var F,W,B,V,H,U=function(){return function(){};}();!function(e){e.create=function(e,t,n,i,o,r){var s={name:e,detail:t,kind:n,range:i,selectionRange:o};return void 0!==r&&(s.children=r),s;},e.is=function(e){var t=e;return t&&q.string(t.name)&&q.string(t.detail)&&q.number(t.kind)&&o.is(t.range)&&o.is(t.selectionRange)&&(void 0===t.deprecated||q.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children));};}(U||(U={})),function(e){e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports";}(F||(F={})),function(e){e.create=function(e,t){var n={diagnostics:e};return null!=t&&(n.only=t),n;},e.is=function(e){var t=e;return q.defined(t)&&q.typedArray(t.diagnostics,p.is)&&(void 0===t.only||q.typedArray(t.only,q.string));};}(W||(W={})),function(e){e.create=function(e,t,n){var i={title:e};return f.is(t)?i.command=t:i.edit=t,void 0!==n&&(i.kind=n),i;},e.is=function(e){var t=e;return t&&q.string(t.title)&&(void 0===t.diagnostics||q.typedArray(t.diagnostics,p.is))&&(void 0===t.kind||q.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||f.is(t.command))&&(void 0===t.edit||_.is(t.edit));};}(B||(B={})),function(e){e.create=function(e,t){var n={range:e};return q.defined(t)&&(n.data=t),n;},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&(q.undefined(t.command)||f.is(t.command));};}(V||(V={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t};},e.is=function(e){var t=e;return q.defined(t)&&q.number(t.tabSize)&&q.boolean(t.insertSpaces);};}(H||(H={}));var j=function(){return function(){};}();!function(e){e.create=function(e,t,n){return{range:e,target:t,data:n};},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&(q.undefined(t.target)||q.string(t.target));};}(j||(j={}));var z,K;!function(e){e.create=function(e,t,n,i){return new G(e,t,n,i);},e.is=function(e){var t=e;return!!(q.defined(t)&&q.string(t.uri)&&(q.undefined(t.languageId)||q.string(t.languageId))&&q.number(t.lineCount)&&q.func(t.getText)&&q.func(t.positionAt)&&q.func(t.offsetAt));},e.applyEdits=function(e,t){for(var n=e.getText(),i=function e(t,n){if(t.length<=1)return t;var i=t.length/2|0,o=t.slice(0,i),r=t.slice(i);e(o,n),e(r,n);for(var s=0,a=0,u=0;s<o.length&&a<r.length;){var l=n(o[s],r[a]);t[u++]=l<=0?o[s++]:r[a++];}for(;s<o.length;)t[u++]=o[s++];for(;a<r.length;)t[u++]=r[a++];return t;}(t,function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n;}),o=n.length,r=i.length-1;r>=0;r--){var s=i[r],a=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Ovelapping edit");n=n.substring(0,a)+s.newText+n.substring(u,n.length),o=a;}return n;};}(z||(z={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3;}(K||(K={}));var q,G=function(){function e(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=null;}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version;},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n);}return this._content;},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=null;},e.prototype.getLineOffsets=function(){if(null===this._lineOffsets){for(var e=[],t=this._content,n=!0,i=0;i<t.length;i++){n&&(e.push(i),n=!1);var o=t.charAt(i);n="\r"===o||"\n"===o,"\r"===o&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++;}n&&t.length>0&&e.push(t.length),this._lineOffsets=e;}return this._lineOffsets;},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,o=t.length;if(0===o)return i.create(0,e);for(;n<o;){var r=Math.floor((n+o)/2);t[r]>e?o=r:n=r+1;}var s=n-1;return i.create(s,e-t[s]);},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n);},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length;},enumerable:!0,configurable:!0}),e;}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e;},e.undefined=function(e){return void 0===e;},e.boolean=function(e){return!0===e||!1===e;},e.string=function(e){return"[object String]"===t.call(e);},e.number=function(e){return"[object Number]"===t.call(e);},e.func=function(e){return"[object Function]"===t.call(e);},e.objectLiteral=function(e){return null!==e&&"object"==typeof e;},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t);};}(q||(q={}));var $=monaco.Range,Y=function(){function e(e,t,n){var i=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);var o=function(e){var t,n=e.getModeId();n===i._languageId&&(i._listener[e.uri.toString()]=e.onDidChangeContent(function(){clearTimeout(t),t=setTimeout(function(){return i._doValidate(e.uri,n);},500);}),i._doValidate(e.uri,n));},r=function(e){monaco.editor.setModelMarkers(e,i._languageId,[]);var t=e.uri.toString(),n=i._listener[t];n&&(n.dispose(),delete i._listener[t]);};this._disposables.push(monaco.editor.onDidCreateModel(o)),this._disposables.push(monaco.editor.onWillDisposeModel(function(e){r(e);})),this._disposables.push(monaco.editor.onDidChangeModelLanguage(function(e){r(e.model),o(e.model);})),this._disposables.push(n.onDidChange(function(e){monaco.editor.getModels().forEach(function(e){e.getModeId()===i._languageId&&(r(e),o(e));});})),this._disposables.push({dispose:function(){for(var e in i._listener)i._listener[e].dispose();}}),monaco.editor.getModels().forEach(o);}return e.prototype.dispose=function(){this._disposables.forEach(function(e){return e&&e.dispose();}),this._disposables=[];},e.prototype._doValidate=function(e,t){this._worker(e).then(function(n){return n.doValidation(e.toString()).then(function(n){var i=n.map(function(e){return n="number"==typeof(t=e).code?String(t.code):t.code,{severity:function(e){switch(e){case h.Error:return monaco.MarkerSeverity.Error;case h.Warning:return monaco.MarkerSeverity.Warning;case h.Information:return monaco.MarkerSeverity.Info;case h.Hint:return monaco.MarkerSeverity.Hint;default:return monaco.MarkerSeverity.Info;}}(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source};var t,n;});monaco.editor.setModelMarkers(monaco.editor.getModel(e),t,i);});}).then(void 0,function(e){console.error(e);});},e;}();function X(e){if(e)return{character:e.column-1,line:e.lineNumber-1};}function Z(e){if(e)return new $(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1);}function Q(e){if(e)return{range:Z(e.range),text:e.newText};}var J=function(){function e(e){this._worker=e;}return Object.defineProperty(e.prototype,"triggerCharacters",{get:function(){return[".",":","<",'"',"=","/"];},enumerable:!0,configurable:!0}),e.prototype.provideCompletionItems=function(e,t,n,i){e.getWordUntilPosition(t);var o=e.uri;return this._worker(o).then(function(e){return e.doComplete(o.toString(),X(t));}).then(function(e){if(e){var t=e.items.map(function(e){var t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,kind:function(e){var t=monaco.languages.CompletionItemKind;switch(e){case x.Text:return t.Text;case x.Method:return t.Method;case x.Function:return t.Function;case x.Constructor:return t.Constructor;case x.Field:return t.Field;case x.Variable:return t.Variable;case x.Class:return t.Class;case x.Interface:return t.Interface;case x.Module:return t.Module;case x.Property:return t.Property;case x.Unit:return t.Unit;case x.Value:return t.Value;case x.Enum:return t.Enum;case x.Keyword:return t.Keyword;case x.Snippet:return t.Snippet;case x.Color:return t.Color;case x.File:return t.File;case x.Reference:return t.Reference;}return t.Property;}(e.kind)};return e.textEdit&&(t.range=Z(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Q)),e.insertTextFormat===E.Snippet&&(t.insertTextRules=monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet),t;});return{isIncomplete:e.isIncomplete,suggestions:t};}});},e;}();var ee=function(){function e(e){this._worker=e;}return e.prototype.provideDocumentHighlights=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.findDocumentHighlights(i.toString(),X(t));}).then(function(e){if(e)return e.map(function(e){return{range:Z(e.range),kind:function(e){var t=monaco.languages.DocumentHighlightKind;switch(e){case D.Read:return t.Read;case D.Write:return t.Write;case D.Text:return t.Text;}return t.Text;}(e.kind)};});});},e;}(),te=function(){function e(e){this._worker=e;}return e.prototype.provideLinks=function(e,t){var n=e.uri;return this._worker(n).then(function(e){return e.findDocumentLinks(n.toString());}).then(function(e){if(e)return e.map(function(e){return{range:Z(e.range),url:e.target};});});},e;}();function ne(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces};}var ie=function(){function e(e){this._worker=e;}return e.prototype.provideDocumentFormattingEdits=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.format(i.toString(),null,ne(t)).then(function(e){if(e&&0!==e.length)return e.map(Q);});});},e;}(),oe=function(){function e(e){this._worker=e;}return e.prototype.provideDocumentRangeFormattingEdits=function(e,t,n,i){var o=e.uri;return this._worker(o).then(function(e){return e.format(o.toString(),function(e){if(e)return{start:X(e.getStartPosition()),end:X(e.getEndPosition())};}(t),ne(n)).then(function(e){if(e&&0!==e.length)return e.map(Q);});});},e;}(),re=function(){function e(e){this._worker=e;}return e.prototype.provideFoldingRanges=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.provideFoldingRanges(i.toString(),t);}).then(function(e){if(e)return e.map(function(e){var t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case l.Comment:return monaco.languages.FoldingRangeKind.Comment;case l.Imports:return monaco.languages.FoldingRangeKind.Imports;case l.Region:return monaco.languages.FoldingRangeKind.Region;}return;}(e.kind)),t;});});},e;}();function se(e){var t=new v(e),n=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.getLanguageServiceWorker.apply(t,e);},i=e.languageId;monaco.languages.registerCompletionItemProvider(i,new J(n)),monaco.languages.registerDocumentHighlightProvider(i,new ee(n)),monaco.languages.registerLinkProvider(i,new te(n)),monaco.languages.registerFoldingRangeProvider(i,new re(n)),"html"===i&&(monaco.languages.registerDocumentFormattingEditProvider(i,new ie(n)),monaco.languages.registerDocumentRangeFormattingEditProvider(i,new oe(n)),new Y(i,n,e));}n.d(t,"setupMode",function(){return se;});},"./node_modules/monaco-editor/esm/vs/language/json/jsonMode.js":function(e,t,n){"use strict";n.r(t);var i,o,r,s,a,u,l,c,d,h,p,f,g,m,_,v=function(){function e(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval(function(){return t._checkIfIdle();},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return t._stopWorker();});}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null;},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker();},e.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker();},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client;},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return this._getClient().then(function(t){e=t;}).then(function(e){return t._worker.withSyncedResources(n);}).then(function(t){return e;});},e;}();!function(e){e.create=function(e,t){return{line:e,character:t};},e.is=function(e){var t=e;return q.objectLiteral(t)&&q.number(t.line)&&q.number(t.character);};}(i||(i={})),function(e){e.create=function(e,t,n,o){if(q.number(e)&&q.number(t)&&q.number(n)&&q.number(o))return{start:i.create(e,t),end:i.create(n,o)};if(i.is(e)&&i.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+o+"]");},e.is=function(e){var t=e;return q.objectLiteral(t)&&i.is(t.start)&&i.is(t.end);};}(o||(o={})),function(e){e.create=function(e,t){return{uri:e,range:t};},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&(q.string(t.uri)||q.undefined(t.uri));};}(r||(r={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i};},e.is=function(e){var t=e;return q.number(t.red)&&q.number(t.green)&&q.number(t.blue)&&q.number(t.alpha);};}(s||(s={})),function(e){e.create=function(e,t){return{range:e,color:t};},e.is=function(e){var t=e;return o.is(t.range)&&s.is(t.color);};}(a||(a={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n};},e.is=function(e){var t=e;return q.string(t.label)&&(q.undefined(t.textEdit)||g.is(t))&&(q.undefined(t.additionalTextEdits)||q.typedArray(t.additionalTextEdits,g.is));};}(u||(u={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region";}(l||(l={})),function(e){e.create=function(e,t,n,i,o){var r={startLine:e,endLine:t};return q.defined(n)&&(r.startCharacter=n),q.defined(i)&&(r.endCharacter=i),q.defined(o)&&(r.kind=o),r;},e.is=function(e){var t=e;return q.number(t.startLine)&&q.number(t.startLine)&&(q.undefined(t.startCharacter)||q.number(t.startCharacter))&&(q.undefined(t.endCharacter)||q.number(t.endCharacter))&&(q.undefined(t.kind)||q.string(t.kind));};}(c||(c={})),function(e){e.create=function(e,t){return{location:e,message:t};},e.is=function(e){var t=e;return q.defined(t)&&r.is(t.location)&&q.string(t.message);};}(d||(d={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4;}(h||(h={})),function(e){e.create=function(e,t,n,i,o,r){var s={range:e,message:t};return q.defined(n)&&(s.severity=n),q.defined(i)&&(s.code=i),q.defined(o)&&(s.source=o),q.defined(r)&&(s.relatedInformation=r),s;},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&q.string(t.message)&&(q.number(t.severity)||q.undefined(t.severity))&&(q.number(t.code)||q.string(t.code)||q.undefined(t.code))&&(q.string(t.source)||q.undefined(t.source))&&(q.undefined(t.relatedInformation)||q.typedArray(t.relatedInformation,d.is));};}(p||(p={})),function(e){e.create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o={title:e,command:t};return q.defined(n)&&n.length>0&&(o.arguments=n),o;},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.title)&&q.string(t.command);};}(f||(f={})),function(e){e.replace=function(e,t){return{range:e,newText:t};},e.insert=function(e,t){return{range:{start:e,end:e},newText:t};},e.del=function(e){return{range:e,newText:""};},e.is=function(e){var t=e;return q.objectLiteral(t)&&q.string(t.newText)&&o.is(t.range);};}(g||(g={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t};},e.is=function(e){var t=e;return q.defined(t)&&b.is(t.textDocument)&&Array.isArray(t.edits);};}(m||(m={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||q.typedArray(t.documentChanges,m.is));};}(_||(_={}));var y,b,C,w,S,x,E,L,T,I,N,k,O,D,R,A,M,P=function(){function e(e){this.edits=e;}return e.prototype.insert=function(e,t){this.edits.push(g.insert(e,t));},e.prototype.replace=function(e,t){this.edits.push(g.replace(e,t));},e.prototype.delete=function(e){this.edits.push(g.del(e));},e.prototype.add=function(e){this.edits.push(e);},e.prototype.all=function(){return this.edits;},e.prototype.clear=function(){this.edits.splice(0,this.edits.length);},e;}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach(function(e){var n=new P(e.edits);t._textEditChanges[e.textDocument.uri]=n;}):e.changes&&Object.keys(e.changes).forEach(function(n){var i=new P(e.changes[n]);t._textEditChanges[n]=i;}));}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit;},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(b.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for versioned document changes.");var t=e;if(!(i=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),i=new P(o),this._textEditChanges[t.uri]=i;}return i;}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var i;if(!(i=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,i=new P(o),this._textEditChanges[e]=i;}return i;};}();!function(e){e.create=function(e){return{uri:e};},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.uri);};}(y||(y={})),function(e){e.create=function(e,t){return{uri:e,version:t};},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.uri)&&q.number(t.version);};}(b||(b={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i};},e.is=function(e){var t=e;return q.defined(t)&&q.string(t.uri)&&q.string(t.languageId)&&q.number(t.version)&&q.string(t.text);};}(C||(C={})),function(e){e.PlainText="plaintext",e.Markdown="markdown";}(w||(w={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown;};}(w||(w={})),function(e){e.is=function(e){var t=e;return q.objectLiteral(e)&&w.is(t.kind)&&q.string(t.value);};}(S||(S={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25;}(x||(x={})),function(e){e.PlainText=1,e.Snippet=2;}(E||(E={})),function(e){e.create=function(e){return{label:e};};}(L||(L={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t};};}(T||(T={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&");},e.is=function(e){var t=e;return q.string(t)||q.objectLiteral(t)&&q.string(t.language)&&q.string(t.value);};}(I||(I={})),function(e){e.is=function(e){var t=e;return q.objectLiteral(t)&&(S.is(t.contents)||I.is(t.contents)||q.typedArray(t.contents,I.is))&&(void 0===e.range||o.is(e.range));};}(N||(N={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e};};}(k||(k={})),function(e){e.create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o={label:e};return q.defined(t)&&(o.documentation=t),q.defined(n)?o.parameters=n:o.parameters=[],o;};}(O||(O={})),function(e){e.Text=1,e.Read=2,e.Write=3;}(D||(D={})),function(e){e.create=function(e,t){var n={range:e};return q.number(t)&&(n.kind=t),n;};}(R||(R={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26;}(A||(A={})),function(e){e.create=function(e,t,n,i,o){var r={name:e,kind:t,location:{uri:i,range:n}};return o&&(r.containerName=o),r;};}(M||(M={}));var F,W,B,V,H,U=function(){return function(){};}();!function(e){e.create=function(e,t,n,i,o,r){var s={name:e,detail:t,kind:n,range:i,selectionRange:o};return void 0!==r&&(s.children=r),s;},e.is=function(e){var t=e;return t&&q.string(t.name)&&q.number(t.kind)&&o.is(t.range)&&o.is(t.selectionRange)&&(void 0===t.detail||q.string(t.detail))&&(void 0===t.deprecated||q.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children));};}(U||(U={})),function(e){e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports";}(F||(F={})),function(e){e.create=function(e,t){var n={diagnostics:e};return null!=t&&(n.only=t),n;},e.is=function(e){var t=e;return q.defined(t)&&q.typedArray(t.diagnostics,p.is)&&(void 0===t.only||q.typedArray(t.only,q.string));};}(W||(W={})),function(e){e.create=function(e,t,n){var i={title:e};return f.is(t)?i.command=t:i.edit=t,void 0!==n&&(i.kind=n),i;},e.is=function(e){var t=e;return t&&q.string(t.title)&&(void 0===t.diagnostics||q.typedArray(t.diagnostics,p.is))&&(void 0===t.kind||q.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||f.is(t.command))&&(void 0===t.edit||_.is(t.edit));};}(B||(B={})),function(e){e.create=function(e,t){var n={range:e};return q.defined(t)&&(n.data=t),n;},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&(q.undefined(t.command)||f.is(t.command));};}(V||(V={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t};},e.is=function(e){var t=e;return q.defined(t)&&q.number(t.tabSize)&&q.boolean(t.insertSpaces);};}(H||(H={}));var j=function(){return function(){};}();!function(e){e.create=function(e,t,n){return{range:e,target:t,data:n};},e.is=function(e){var t=e;return q.defined(t)&&o.is(t.range)&&(q.undefined(t.target)||q.string(t.target));};}(j||(j={}));var z,K;!function(e){e.create=function(e,t,n,i){return new G(e,t,n,i);},e.is=function(e){var t=e;return!!(q.defined(t)&&q.string(t.uri)&&(q.undefined(t.languageId)||q.string(t.languageId))&&q.number(t.lineCount)&&q.func(t.getText)&&q.func(t.positionAt)&&q.func(t.offsetAt));},e.applyEdits=function(e,t){for(var n=e.getText(),i=function e(t,n){if(t.length<=1)return t;var i=t.length/2|0,o=t.slice(0,i),r=t.slice(i);e(o,n),e(r,n);for(var s=0,a=0,u=0;s<o.length&&a<r.length;){var l=n(o[s],r[a]);t[u++]=l<=0?o[s++]:r[a++];}for(;s<o.length;)t[u++]=o[s++];for(;a<r.length;)t[u++]=r[a++];return t;}(t,function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n;}),o=n.length,r=i.length-1;r>=0;r--){var s=i[r],a=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Ovelapping edit");n=n.substring(0,a)+s.newText+n.substring(u,n.length),o=a;}return n;};}(z||(z={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3;}(K||(K={}));var q,G=function(){function e(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=null;}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version;},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n);}return this._content;},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=null;},e.prototype.getLineOffsets=function(){if(null===this._lineOffsets){for(var e=[],t=this._content,n=!0,i=0;i<t.length;i++){n&&(e.push(i),n=!1);var o=t.charAt(i);n="\r"===o||"\n"===o,"\r"===o&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++;}n&&t.length>0&&e.push(t.length),this._lineOffsets=e;}return this._lineOffsets;},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,o=t.length;if(0===o)return i.create(0,e);for(;n<o;){var r=Math.floor((n+o)/2);t[r]>e?o=r:n=r+1;}var s=n-1;return i.create(s,e-t[s]);},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n);},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length;},enumerable:!0,configurable:!0}),e;}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e;},e.undefined=function(e){return void 0===e;},e.boolean=function(e){return!0===e||!1===e;},e.string=function(e){return"[object String]"===t.call(e);},e.number=function(e){return"[object Number]"===t.call(e);},e.func=function(e){return"[object Function]"===t.call(e);},e.objectLiteral=function(e){return null!==e&&"object"==typeof e;},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t);};}(q||(q={}));monaco.Uri;var $=monaco.Range,Y=function(){function e(e,t,n){var i=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);var o=function(e){var t,n=e.getModeId();n===i._languageId&&(i._listener[e.uri.toString()]=e.onDidChangeContent(function(){clearTimeout(t),t=setTimeout(function(){return i._doValidate(e.uri,n);},500);}),i._doValidate(e.uri,n));},r=function(e){monaco.editor.setModelMarkers(e,i._languageId,[]);var t=e.uri.toString(),n=i._listener[t];n&&(n.dispose(),delete i._listener[t]);};this._disposables.push(monaco.editor.onDidCreateModel(o)),this._disposables.push(monaco.editor.onWillDisposeModel(function(e){r(e),i._resetSchema(e.uri);})),this._disposables.push(monaco.editor.onDidChangeModelLanguage(function(e){r(e.model),o(e.model),i._resetSchema(e.model.uri);})),this._disposables.push(n.onDidChange(function(e){monaco.editor.getModels().forEach(function(e){e.getModeId()===i._languageId&&(r(e),o(e));});})),this._disposables.push({dispose:function(){for(var e in monaco.editor.getModels().forEach(r),i._listener)i._listener[e].dispose();}}),monaco.editor.getModels().forEach(o);}return e.prototype.dispose=function(){this._disposables.forEach(function(e){return e&&e.dispose();}),this._disposables=[];},e.prototype._resetSchema=function(e){this._worker().then(function(t){t.resetSchema(e.toString());});},e.prototype._doValidate=function(e,t){this._worker(e).then(function(n){return n.doValidation(e.toString()).then(function(n){var i=n.map(function(e){return n="number"==typeof(t=e).code?String(t.code):t.code,{severity:function(e){switch(e){case h.Error:return monaco.MarkerSeverity.Error;case h.Warning:return monaco.MarkerSeverity.Warning;case h.Information:return monaco.MarkerSeverity.Info;case h.Hint:return monaco.MarkerSeverity.Hint;default:return monaco.MarkerSeverity.Info;}}(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source};var t,n;}),o=monaco.editor.getModel(e);o.getModeId()===t&&monaco.editor.setModelMarkers(o,t,i);});}).then(void 0,function(e){console.error(e);});},e;}();function X(e){if(e)return{character:e.column-1,line:e.lineNumber-1};}function Z(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}};}function Q(e){if(e)return new $(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1);}function J(e){if(e)return{range:Q(e.range),text:e.newText};}var ee=function(){function e(e){this._worker=e;}return Object.defineProperty(e.prototype,"triggerCharacters",{get:function(){return[" ",":"];},enumerable:!0,configurable:!0}),e.prototype.provideCompletionItems=function(e,t,n,i){e.getWordUntilPosition(t);var o=e.uri;return this._worker(o).then(function(e){return e.doComplete(o.toString(),X(t));}).then(function(e){if(e){var t=e.items.map(function(e){var t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,kind:function(e){var t=monaco.languages.CompletionItemKind;switch(e){case x.Text:return t.Text;case x.Method:return t.Method;case x.Function:return t.Function;case x.Constructor:return t.Constructor;case x.Field:return t.Field;case x.Variable:return t.Variable;case x.Class:return t.Class;case x.Interface:return t.Interface;case x.Module:return t.Module;case x.Property:return t.Property;case x.Unit:return t.Unit;case x.Value:return t.Value;case x.Enum:return t.Enum;case x.Keyword:return t.Keyword;case x.Snippet:return t.Snippet;case x.Color:return t.Color;case x.File:return t.File;case x.Reference:return t.Reference;}return t.Property;}(e.kind)};return e.textEdit&&(t.range=Q(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(J)),e.insertTextFormat===E.Snippet&&(t.insertTextRules=monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet),t;});return{isIncomplete:e.isIncomplete,suggestions:t};}});},e;}();function te(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t;}var ne=function(){function e(e){this._worker=e;}return e.prototype.provideHover=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.doHover(i.toString(),X(t));}).then(function(e){if(e)return{range:Q(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(te):[te(e)];}(e.contents)};});},e;}();var ie=function(){function e(e){this._worker=e;}return e.prototype.provideDocumentSymbols=function(e,t){var n=e.uri;return this._worker(n).then(function(e){return e.findDocumentSymbols(n.toString());}).then(function(e){if(e)return e.map(function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:function(e){var t=monaco.languages.SymbolKind;switch(e){case A.File:return t.Array;case A.Module:return t.Module;case A.Namespace:return t.Namespace;case A.Package:return t.Package;case A.Class:return t.Class;case A.Method:return t.Method;case A.Property:return t.Property;case A.Field:return t.Field;case A.Constructor:return t.Constructor;case A.Enum:return t.Enum;case A.Interface:return t.Interface;case A.Function:return t.Function;case A.Variable:return t.Variable;case A.Constant:return t.Constant;case A.String:return t.String;case A.Number:return t.Number;case A.Boolean:return t.Boolean;case A.Array:return t.Array;}return t.Function;}(e.kind),range:Q(e.location.range),selectionRange:Q(e.location.range)};});});},e;}();function oe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces};}var re=function(){function e(e){this._worker=e;}return e.prototype.provideDocumentFormattingEdits=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.format(i.toString(),null,oe(t)).then(function(e){if(e&&0!==e.length)return e.map(J);});});},e;}(),se=function(){function e(e){this._worker=e;}return e.prototype.provideDocumentRangeFormattingEdits=function(e,t,n,i){var o=e.uri;return this._worker(o).then(function(e){return e.format(o.toString(),Z(t),oe(n)).then(function(e){if(e&&0!==e.length)return e.map(J);});});},e;}(),ae=function(){function e(e){this._worker=e;}return e.prototype.provideDocumentColors=function(e,t){var n=e.uri;return this._worker(n).then(function(e){return e.findDocumentColors(n.toString());}).then(function(e){if(e)return e.map(function(e){return{color:e.color,range:Q(e.range)};});});},e.prototype.provideColorPresentations=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.getColorPresentations(i.toString(),t.color,Z(t.range));}).then(function(e){if(e)return e.map(function(e){var t={label:e.label};return e.textEdit&&(t.textEdit=J(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(J)),t;});});},e;}(),ue=function(){function e(e){this._worker=e;}return e.prototype.provideFoldingRanges=function(e,t,n){var i=e.uri;return this._worker(i).then(function(e){return e.provideFoldingRanges(i.toString(),t);}).then(function(e){if(e)return e.map(function(e){var t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case l.Comment:return monaco.languages.FoldingRangeKind.Comment;case l.Imports:return monaco.languages.FoldingRangeKind.Imports;case l.Region:return monaco.languages.FoldingRangeKind.Region;}return;}(e.kind)),t;});});},e;}();function le(e,t){void 0===t&&(t=!1);var n=0,i=e.length,o="",r=0,s=16,a=0;function u(t,i){for(var o=0,r=0;o<t||!i;){var s=e.charCodeAt(n);if(s>=48&&s<=57)r=16*r+s-48;else if(s>=65&&s<=70)r=16*r+s-65+10;else{if(!(s>=97&&s<=102))break;r=16*r+s-97+10;}n++,o++;}return o<t&&(r=-1),r;}function l(){if(o="",a=0,r=n,n>=i)return r=i,s=17;var t=e.charCodeAt(n);if(ce(t)){do{n++,o+=String.fromCharCode(t),t=e.charCodeAt(n);}while(ce(t));return s=15;}if(de(t))return n++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(n)&&(n++,o+="\n"),s=14;switch(t){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,o=function(){for(var t="",o=n;;){if(n>=i){t+=e.substring(o,n),a=2;break;}var r=e.charCodeAt(n);if(34===r){t+=e.substring(o,n),n++;break;}if(92!==r){if(r>=0&&r<=31){if(de(r)){t+=e.substring(o,n),a=2;break;}a=6;}n++;}else{if(t+=e.substring(o,n),++n>=i){a=2;break;}switch(r=e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=u(4,!0);s>=0?t+=String.fromCharCode(s):a=4;break;default:a=5;}o=n;}}return t;}(),s=10;case 47:var l=n-1;if(47===e.charCodeAt(n+1)){for(n+=2;n<i&&!de(e.charCodeAt(n));)n++;return o=e.substring(l,n),s=12;}if(42===e.charCodeAt(n+1)){n+=2;for(var d=!1;n<i;){if(42===e.charCodeAt(n)&&n+1<i&&47===e.charCodeAt(n+1)){n+=2,d=!0;break;}n++;}return d||(n++,a=1),o=e.substring(l,n),s=13;}return o+=String.fromCharCode(t),n++,s=16;case 45:if(o+=String.fromCharCode(t),++n===i||!he(e.charCodeAt(n)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=function(){var t=n;if(48===e.charCodeAt(n))n++;else for(n++;n<e.length&&he(e.charCodeAt(n));)n++;if(n<e.length&&46===e.charCodeAt(n)){if(!(++n<e.length&&he(e.charCodeAt(n))))return a=3,e.substring(t,n);for(n++;n<e.length&&he(e.charCodeAt(n));)n++;}var i=n;if(n<e.length&&(69===e.charCodeAt(n)||101===e.charCodeAt(n)))if((++n<e.length&&43===e.charCodeAt(n)||45===e.charCodeAt(n))&&n++,n<e.length&&he(e.charCodeAt(n))){for(n++;n<e.length&&he(e.charCodeAt(n));)n++;i=n;}else a=3;return e.substring(t,i);}(),s=11;default:for(;n<i&&c(t);)n++,t=e.charCodeAt(n);if(r!==n){switch(o=e.substring(r,n)){case"true":return s=8;case"false":return s=9;case"null":return s=7;}return s=16;}return o+=String.fromCharCode(t),n++,s=16;}}function c(e){if(ce(e)||de(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1;}return!0;}return{setPosition:function(e){n=e,o="",r=0,s=16,a=0;},getPosition:function(){return n;},scan:t?function(){var e;do{e=l();}while(e>=12&&e<=15);return e;}:l,getToken:function(){return s;},getTokenValue:function(){return o;},getTokenOffset:function(){return r;},getTokenLength:function(){return n-r;},getTokenError:function(){return a;}};}function ce(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e;}function de(e){return 10===e||13===e||8232===e||8233===e;}function he(e){return e>=48&&e<=57;}var pe=le;function fe(e){return{getInitialState:function(){return new Le(null,null,!1);},tokenize:function(t,n,i,o){return function(e,t,n,i,o){void 0===i&&(i=0);var r=0,s=!1;switch(n.scanError){case 2:t='"'+t,r=1;break;case 1:t="/*"+t,r=2;}var a,u,l=pe(t),c=n.lastWasColon;u={tokens:[],endState:n.clone()};for(;;){var d=i+l.getPosition(),h="";if(17===(a=l.scan()))break;if(d===i+l.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(l.getPosition(),3));switch(s&&(d-=r),s=r>0,a){case 1:case 2:h=ge,c=!1;break;case 3:case 4:h=me,c=!1;break;case 6:h=_e,c=!0;break;case 5:h=ve,c=!1;break;case 8:case 9:h=ye,c=!1;break;case 7:h=be,c=!1;break;case 10:h=c?Ce:Se,c=!1;break;case 11:h=we,c=!1;}if(e)switch(a){case 12:h=Ee;break;case 13:h=xe;}u.endState=new Le(n.getStateData(),l.getTokenError(),c),u.tokens.push({startIndex:d,scopes:h});}return u;}(e,t,n,i);}};}var ge="delimiter.bracket.json",me="delimiter.array.json",_e="delimiter.colon.json",ve="delimiter.comma.json",ye="keyword.json",be="keyword.json",Ce="string.value.json",we="number.json",Se="string.key.json",xe="comment.block.json",Ee="comment.line.json",Le=function(){function e(e,t,n){this._state=e,this.scanError=t,this.lastWasColon=n;}return e.prototype.clone=function(){return new e(this._state,this.scanError,this.lastWasColon);},e.prototype.equals=function(t){return t===this||!!(t&&t instanceof e)&&this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon;},e.prototype.getStateData=function(){return this._state;},e.prototype.setStateData=function(e){this._state=e;},e;}();function Te(e){var t=[],n=new v(e);t.push(n);var i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.getLanguageServiceWorker.apply(n,e);},o=e.languageId;t.push(monaco.languages.registerCompletionItemProvider(o,new ee(i))),t.push(monaco.languages.registerHoverProvider(o,new ne(i))),t.push(monaco.languages.registerDocumentSymbolProvider(o,new ie(i))),t.push(monaco.languages.registerDocumentFormattingEditProvider(o,new re(i))),t.push(monaco.languages.registerDocumentRangeFormattingEditProvider(o,new se(i))),t.push(new Y(o,i,e)),t.push(monaco.languages.setTokensProvider(o,fe(!0))),t.push(monaco.languages.setLanguageConfiguration(o,Ie)),t.push(monaco.languages.registerColorProvider(o,new ae(i))),t.push(monaco.languages.registerFoldingRangeProvider(o,new ue(i)));}n.d(t,"setupMode",function(){return Te;});var Ie={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};},"./node_modules/monaco-editor/esm/vs/language/typescript/tsMode.js":function(e,t,n){"use strict";n.r(t);var i,o,r=function(){function e(e,t){var n=this;this._modeId=e,this._defaults=t,this._worker=null,this._idleCheckInterval=setInterval(function(){return n._checkIfIdle();},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return n._stopWorker();});}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null;},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker();},e.prototype._checkIfIdle=function(){if(this._worker){var e=this._defaults.getWorkerMaxIdleTime(),t=Date.now()-this._lastUsedTime;e>0&&t>e&&this._stopWorker();}},e.prototype._getClient=function(){var e=this;if(this._lastUsedTime=Date.now(),!this._client){this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs()}});var t=this._worker.getProxy();this._defaults.getEagerModelSync()&&(t=t.then(function(t){return e._worker.withSyncedResources(monaco.editor.getModels().filter(function(t){return t.getModeId()===e._modeId;}).map(function(e){return e.uri;}));})),this._client=t;}return this._client;},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return this._getClient().then(function(t){e=t;}).then(function(e){return t._worker.withSyncedResources(n);}).then(function(t){return e;});},e;}(),s=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);})(e,t);},function(e,t){function n(){this.constructor=e;}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n());}),a=monaco.Uri,u=monaco.Promise;function l(e){return e?e.map(function(e){return e.text;}).join(""):"";}!function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart";}(o||(o={}));var c=function(){function e(e){this._worker=e;}return e.prototype._positionToOffset=function(e,t){return monaco.editor.getModel(e).getOffsetAt(t);},e.prototype._offsetToPosition=function(e,t){return monaco.editor.getModel(e).getPositionAt(t);},e.prototype._textSpanToRange=function(e,t){var n=this._offsetToPosition(e,t.start),i=this._offsetToPosition(e,t.start+t.length);return{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:i.lineNumber,endColumn:i.column};},e;}(),d=function(e){function t(t,n,i){var o=e.call(this,i)||this;o._defaults=t,o._selector=n,o._disposables=[],o._listener=Object.create(null);var r=function(e){if(e.getModeId()===n){var t,i=e.onDidChangeContent(function(){clearTimeout(t),t=setTimeout(function(){return o._doValidate(e.uri);},500);});o._listener[e.uri.toString()]={dispose:function(){i.dispose(),clearTimeout(t);}},o._doValidate(e.uri);}},s=function(e){monaco.editor.setModelMarkers(e,o._selector,[]);var t=e.uri.toString();o._listener[t]&&(o._listener[t].dispose(),delete o._listener[t]);};return o._disposables.push(monaco.editor.onDidCreateModel(r)),o._disposables.push(monaco.editor.onWillDisposeModel(s)),o._disposables.push(monaco.editor.onDidChangeModelLanguage(function(e){s(e.model),r(e.model);})),o._disposables.push({dispose:function(){for(var e=0,t=monaco.editor.getModels();e<t.length;e++){var n=t[e];s(n);}}}),o._disposables.push(o._defaults.onDidChange(function(){for(var e=0,t=monaco.editor.getModels();e<t.length;e++){var n=t[e];s(n),r(n);}})),monaco.editor.getModels().forEach(r),o;}return s(t,e),t.prototype.dispose=function(){this._disposables.forEach(function(e){return e&&e.dispose();}),this._disposables=[];},t.prototype._doValidate=function(e){var t=this;this._worker(e).then(function(n){if(!monaco.editor.getModel(e))return null;var i=[],o=t._defaults.getDiagnosticsOptions(),r=o.noSyntaxValidation,s=o.noSemanticValidation;return r||i.push(n.getSyntacticDiagnostics(e.toString())),s||i.push(n.getSemanticDiagnostics(e.toString())),u.join(i);}).then(function(n){if(!n||!monaco.editor.getModel(e))return null;var i=n.reduce(function(e,t){return t.concat(e);},[]).map(function(n){return t._convertDiagnostics(e,n);});monaco.editor.setModelMarkers(monaco.editor.getModel(e),t._selector,i);}).then(void 0,function(e){console.error(e);});},t.prototype._convertDiagnostics=function(e,t){var n=this._offsetToPosition(e,t.start),i=n.lineNumber,o=n.column,r=this._offsetToPosition(e,t.start+t.length),s=r.lineNumber,a=r.column;return{severity:monaco.MarkerSeverity.Error,startLineNumber:i,startColumn:o,endLineNumber:s,endColumn:a,message:function(e,t){if("string"==typeof e)return e;for(var n=e,i="",o=0;n;){if(o){i+=t;for(var r=0;r<o;r++)i+=" ";}i+=n.messageText,o++,n=n.next;}return i;}(t.messageText,"\n")};},t;}(c),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return s(t,e),Object.defineProperty(t.prototype,"triggerCharacters",{get:function(){return["."];},enumerable:!0,configurable:!0}),t.prototype.provideCompletionItems=function(e,n,i,o){e.getWordUntilPosition(n);var r=e.uri,s=this._positionToOffset(r,n);return this._worker(r).then(function(e){return e.getCompletionsAtPosition(r.toString(),s);}).then(function(e){if(e)return{suggestions:e.entries.map(function(e){return{uri:r,position:n,label:e.name,insertText:e.name,sortText:e.sortText,kind:t.convertKind(e.kind)};})};});},t.prototype.resolveCompletionItem=function(e,n,i,o){var r=this,s=i,a=s.uri,u=s.position;return this._worker(a).then(function(e){return e.getCompletionEntryDetails(a.toString(),r._positionToOffset(a,u),s.label);}).then(function(e){return e?{uri:a,position:u,label:e.name,kind:t.convertKind(e.kind),detail:l(e.displayParts),documentation:{value:l(e.documentation)}}:s;});},t.convertKind=function(e){switch(e){case y.primitiveType:case y.keyword:return monaco.languages.CompletionItemKind.Keyword;case y.variable:case y.localVariable:return monaco.languages.CompletionItemKind.Variable;case y.memberVariable:case y.memberGetAccessor:case y.memberSetAccessor:return monaco.languages.CompletionItemKind.Field;case y.function:case y.memberFunction:case y.constructSignature:case y.callSignature:case y.indexSignature:return monaco.languages.CompletionItemKind.Function;case y.enum:return monaco.languages.CompletionItemKind.Enum;case y.module:return monaco.languages.CompletionItemKind.Module;case y.class:return monaco.languages.CompletionItemKind.Class;case y.interface:return monaco.languages.CompletionItemKind.Interface;case y.warning:return monaco.languages.CompletionItemKind.File;}return monaco.languages.CompletionItemKind.Property;},t;}(c),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.signatureHelpTriggerCharacters=["(",","],t;}return s(t,e),t.prototype.provideSignatureHelp=function(e,t,n){var i=this,o=e.uri;return this._worker(o).then(function(e){return e.getSignatureHelpItems(o.toString(),i._positionToOffset(o,t));}).then(function(e){if(e){var t={activeSignature:e.selectedItemIndex,activeParameter:e.argumentIndex,signatures:[]};return e.items.forEach(function(e){var n={label:"",documentation:null,parameters:[]};n.label+=l(e.prefixDisplayParts),e.parameters.forEach(function(t,i,o){var r=l(t.displayParts),s={label:r,documentation:l(t.documentation)};n.label+=r,n.parameters.push(s),i<o.length-1&&(n.label+=l(e.separatorDisplayParts));}),n.label+=l(e.suffixDisplayParts),t.signatures.push(n);}),t;}});},t;}(c),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return s(t,e),t.prototype.provideHover=function(e,t,n){var i=this,o=e.uri;return this._worker(o).then(function(e){return e.getQuickInfoAtPosition(o.toString(),i._positionToOffset(o,t));}).then(function(e){if(e){var t=l(e.documentation),n=e.tags?e.tags.map(function(e){var t="*@"+e.name+"*";return e.text?t+(e.text.match(/\r\n|\n/g)?" \n"+e.text:" - "+e.text):t;}).join(" \n\n"):"",r=l(e.displayParts);return{range:i._textSpanToRange(o,e.textSpan),contents:[{value:"```js\n"+r+"\n```\n"},{value:t+(n?"\n\n"+n:"")}]};}});},t;}(c),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return s(t,e),t.prototype.provideDocumentHighlights=function(e,t,n){var i=this,o=e.uri;return this._worker(o).then(function(e){return e.getOccurrencesAtPosition(o.toString(),i._positionToOffset(o,t));}).then(function(e){if(e)return e.map(function(e){return{range:i._textSpanToRange(o,e.textSpan),kind:e.isWriteAccess?monaco.languages.DocumentHighlightKind.Write:monaco.languages.DocumentHighlightKind.Text};});});},t;}(c),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return s(t,e),t.prototype.provideDefinition=function(e,t,n){var i=this,o=e.uri;return this._worker(o).then(function(e){return e.getDefinitionAtPosition(o.toString(),i._positionToOffset(o,t));}).then(function(e){if(e){for(var t=[],n=0,o=e;n<o.length;n++){var r=o[n],s=a.parse(r.fileName);monaco.editor.getModel(s)&&t.push({uri:s,range:i._textSpanToRange(s,r.textSpan)});}return t;}});},t;}(c),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return s(t,e),t.prototype.provideReferences=function(e,t,n,i){var o=this,r=e.uri;return this._worker(r).then(function(e){return e.getReferencesAtPosition(r.toString(),o._positionToOffset(r,t));}).then(function(e){if(e){for(var t=[],n=0,i=e;n<i.length;n++){var r=i[n],s=a.parse(r.fileName);monaco.editor.getModel(s)&&t.push({uri:s,range:o._textSpanToRange(s,r.textSpan)});}return t;}});},t;}(c),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return s(t,e),t.prototype.provideDocumentSymbols=function(e,t){var n=this,i=e.uri;return this._worker(i).then(function(e){return e.getNavigationBarItems(i.toString());}).then(function(e){if(e){var t=function(e,o,r){var s={name:o.text,detail:"",kind:b[o.kind]||monaco.languages.SymbolKind.Variable,range:n._textSpanToRange(i,o.spans[0]),selectionRange:n._textSpanToRange(i,o.spans[0]),containerName:r};if(o.childItems&&o.childItems.length>0)for(var a=0,u=o.childItems;a<u.length;a++){var l=u[a];t(e,l,s.name);}e.push(s);},o=[];return e.forEach(function(e){return t(o,e);}),o;}});},t;}(c),y=function(){function e(){}return e.unknown="",e.keyword="keyword",e.script="script",e.module="module",e.class="class",e.interface="interface",e.type="type",e.enum="enum",e.variable="var",e.localVariable="local var",e.function="function",e.localFunction="local function",e.memberFunction="method",e.memberGetAccessor="getter",e.memberSetAccessor="setter",e.memberVariable="property",e.constructorImplementation="constructor",e.callSignature="call",e.indexSignature="index",e.constructSignature="construct",e.parameter="parameter",e.typeParameter="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.const="const",e.let="let",e.warning="warning",e;}(),b=Object.create(null);b[y.module]=monaco.languages.SymbolKind.Module,b[y.class]=monaco.languages.SymbolKind.Class,b[y.enum]=monaco.languages.SymbolKind.Enum,b[y.interface]=monaco.languages.SymbolKind.Interface,b[y.memberFunction]=monaco.languages.SymbolKind.Method,b[y.memberVariable]=monaco.languages.SymbolKind.Property,b[y.memberGetAccessor]=monaco.languages.SymbolKind.Property,b[y.memberSetAccessor]=monaco.languages.SymbolKind.Property,b[y.variable]=monaco.languages.SymbolKind.Variable,b[y.const]=monaco.languages.SymbolKind.Variable,b[y.localVariable]=monaco.languages.SymbolKind.Variable,b[y.variable]=monaco.languages.SymbolKind.Variable,b[y.function]=monaco.languages.SymbolKind.Function,b[y.localFunction]=monaco.languages.SymbolKind.Function;var C,w,S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return s(t,e),t._convertOptions=function(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:o.Smart,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1};},t.prototype._convertTextChanges=function(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)};},t;}(c),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return s(t,e),t.prototype.provideDocumentRangeFormattingEdits=function(e,t,n,i){var o=this,r=e.uri;return this._worker(r).then(function(e){return e.getFormattingEditsForRange(r.toString(),o._positionToOffset(r,{lineNumber:t.startLineNumber,column:t.startColumn}),o._positionToOffset(r,{lineNumber:t.endLineNumber,column:t.endColumn}),S._convertOptions(n));}).then(function(e){if(e)return e.map(function(e){return o._convertTextChanges(r,e);});});},t;}(S),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return s(t,e),Object.defineProperty(t.prototype,"autoFormatTriggerCharacters",{get:function(){return[";","}","\n"];},enumerable:!0,configurable:!0}),t.prototype.provideOnTypeFormattingEdits=function(e,t,n,i,o){var r=this,s=e.uri;return this._worker(s).then(function(e){return e.getFormattingEditsAfterKeystroke(s.toString(),r._positionToOffset(s,t),n,S._convertOptions(i));}).then(function(e){if(e)return e.map(function(e){return r._convertTextChanges(s,e);});});},t;}(S);function L(e){w=k(e,"typescript");}function T(e){C=k(e,"javascript");}function I(){return new monaco.Promise(function(e,t){if(!C)return t("JavaScript not registered!");e(C);});}function N(){return new monaco.Promise(function(e,t){if(!w)return t("TypeScript not registered!");e(w);});}function k(e,t){var n=new r(t,e),i=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return n.getLanguageServiceWorker.apply(n,[e].concat(t));};return monaco.languages.registerCompletionItemProvider(t,new h(i)),monaco.languages.registerSignatureHelpProvider(t,new p(i)),monaco.languages.registerHoverProvider(t,new f(i)),monaco.languages.registerDocumentHighlightProvider(t,new g(i)),monaco.languages.registerDefinitionProvider(t,new m(i)),monaco.languages.registerReferenceProvider(t,new _(i)),monaco.languages.registerDocumentSymbolProvider(t,new v(i)),monaco.languages.registerDocumentRangeFormattingEditProvider(t,new x(i)),monaco.languages.registerOnTypeFormattingEditProvider(t,new E(i)),new d(e,t,i),i;}n.d(t,"setupTypeScript",function(){return L;}),n.d(t,"setupJavaScript",function(){return T;}),n.d(t,"getJavaScriptWorker",function(){return I;}),n.d(t,"getTypeScriptWorker",function(){return N;});},"./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextMenuHandler.css":function(e,t,n){},"./node_modules/process/browser.js":function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined");}function s(){throw new Error("clearTimeout has not been defined");}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0);}catch(t){try{return n.call(null,e,0);}catch(t){return n.call(this,e,0);}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r;}catch(e){n=r;}try{i="function"==typeof clearTimeout?clearTimeout:s;}catch(e){i=s;}}();var u,l=[],c=!1,d=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&p());}function p(){if(!c){var e=a(h);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length;}u=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e);}catch(t){try{return i.call(null,e);}catch(t){return i.call(this,e);}}}(e);}}function f(e,t){this.fun=e,this.array=t;}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||a(p);},f.prototype.run=function(){this.fun.apply(null,this.array);},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[];},o.binding=function(e){throw new Error("process.binding is not supported");},o.cwd=function(){return"/";},o.chdir=function(e){throw new Error("process.chdir is not supported");},o.umask=function(){return 0;};},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this;}();try{n=n||Function("return this")()||(0,eval)("this");}catch(e){"object"==typeof window&&(n=window);}e.exports=n;}});});//# sourceMappingURL=monaco.bundle.js.map
|
||
|
||
/***/ })
|
||
|
||
}); |